12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ "./node_modules/@inertiajs/inertia-vue3/dist/index.js":
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@inertiajs/inertia-vue3/dist/index.js ***!
  6. \************************************************************/
  7. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  8. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=e(__webpack_require__(/*! lodash.isequal */ "./node_modules/lodash.isequal/index.js")),t=__webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"),n=e(__webpack_require__(/*! lodash.clonedeep */ "./node_modules/lodash.clonedeep/index.js")),o=__webpack_require__(/*! @inertiajs/inertia */ "./node_modules/@inertiajs/inertia/dist/index.js");function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function a(){var e=[].slice.call(arguments),a="string"==typeof e[0]?e[0]:null,u=("string"==typeof e[0]?e[1]:e[0])||{},s=a?o.Inertia.restore(a):null,c=n(u),l=null,p=null,f=function(e){return e},d=t.reactive(i({},s?s.data:u,{isDirty:!1,errors:s?s.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(u).reduce(function(r,t){return r[t]=e[t],r},{})},transform:function(e){return f=e,this},defaults:function(e,r){var t;return c=void 0===e?this.data():Object.assign({},n(c),r?((t={})[e]=r,t):e),this},reset:function(){var e=[].slice.call(arguments),r=n(c);return Object.assign(this,0===e.length?r:Object.keys(r).filter(function(r){return e.includes(r)}).reduce(function(e,t){return e[t]=r[t],e},{})),this},setError:function(e,r){var t;return Object.assign(this.errors,r?((t={})[e]=r,t):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,r=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce(function(t,n){var o;return i({},t,r.length>0&&!r.includes(n)?((o={})[n]=e.errors[n],o):{})},{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,r,t){var a=this,u=this;void 0===t&&(t={});var s=f(this.data()),d=i({},t,{onCancelToken:function(e){if(l=e,t.onCancelToken)return t.onCancelToken(e)},onBefore:function(e){if(u.wasSuccessful=!1,u.recentlySuccessful=!1,clearTimeout(p),t.onBefore)return t.onBefore(e)},onStart:function(e){if(u.processing=!0,t.onStart)return t.onStart(e)},onProgress:function(e){if(u.progress=e,t.onProgress)return t.onProgress(e)},onSuccess:function(e){try{var r=function(e){return c=n(a.data()),a.isDirty=!1,e};return a.processing=!1,a.progress=null,a.clearErrors(),a.wasSuccessful=!0,a.recentlySuccessful=!0,p=setTimeout(function(){return a.recentlySuccessful=!1},2e3),Promise.resolve(t.onSuccess?Promise.resolve(t.onSuccess(e)).then(r):r(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(u.processing=!1,u.progress=null,u.clearErrors().setError(e),t.onError)return t.onError(e)},onCancel:function(){if(u.processing=!1,u.progress=null,t.onCancel)return t.onCancel()},onFinish:function(){if(u.processing=!1,u.progress=null,l=null,t.onFinish)return t.onFinish()}});"delete"===e?o.Inertia.delete(r,i({},d,{data:s})):o.Inertia[e](r,s,d)},get:function(e,r){this.submit("get",e,r)},post:function(e,r){this.submit("post",e,r)},put:function(e,r){this.submit("put",e,r)},patch:function(e,r){this.submit("patch",e,r)},delete:function(e,r){this.submit("delete",e,r)},cancel:function(){l&&l.cancel()},__rememberable:null===a,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),this.setError(e.errors)}}));return t.watch(d,function(e){d.isDirty=!r(d.data(),c),a&&o.Inertia.remember(n(e.__remember()),a)},{immediate:!0,deep:!0}),d}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var r=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,t=o.Inertia.restore(r),a=this.$options.remember.data.filter(function(r){return!(null!==e[r]&&"object"==typeof e[r]&&!1===e[r].__rememberable)}),u=function(r){return null!==e[r]&&"object"==typeof e[r]&&"function"==typeof e[r].__remember&&"function"==typeof e[r].__restore};a.forEach(function(s){void 0!==e[s]&&void 0!==t&&void 0!==t[s]&&(u(s)?e[s].__restore(t[s]):e[s]=t[s]),e.$watch(s,function(){o.Inertia.remember(a.reduce(function(r,t){var o;return i({},r,((o={})[t]=n(u(t)?e[t].__remember():e[t]),o))},{}),r)},{immediate:!0,deep:!0})})}}},s=t.ref(null),c=t.ref({}),l=t.ref(null),p=null,f={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var r=e.initialPage,n=e.initialComponent,a=e.resolveComponent,u=e.titleCallback,f=e.onHeadUpdate;s.value=n?t.markRaw(n):null,c.value=r,l.value=null;var d="undefined"==typeof window;return p=o.createHeadManager(d,u,f),d||o.Inertia.init({initialPage:r,resolveComponent:a,swapComponent:function(e){try{return s.value=t.markRaw(e.component),c.value=e.page,l.value=e.preserveState?l.value:Date.now(),Promise.resolve()}catch(e){return Promise.reject(e)}}}),function(){if(s.value){s.value.inheritAttrs=!!s.value.inheritAttrs;var e=t.h(s.value,i({},c.value.props,{key:l.value}));return s.value.layout?"function"==typeof s.value.layout?s.value.layout(t.h,e):(Array.isArray(s.value.layout)?s.value.layout:[s.value.layout]).concat(e).reverse().reduce(function(e,r){return r.inheritAttrs=!!r.inheritAttrs,t.h(r,i({},c.value.props),function(){return e})}):e}}}},d={install:function(e){o.Inertia.form=a,Object.defineProperty(e.config.globalProperties,"$inertia",{get:function(){return o.Inertia}}),Object.defineProperty(e.config.globalProperties,"$page",{get:function(){return c.value}}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:function(){return p}}),e.mixin(u)}},h={props:{title:{type:String,required:!1}},data:function(){return{provider:this.$headManager.createProvider()}},beforeUnmount:function(){this.provider.disconnect()},methods:{isUnaryTag:function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart:function(e){e.props=e.props||{},e.props.inertia=void 0!==e.props["head-key"]?e.props["head-key"]:"";var r=Object.keys(e.props).reduce(function(r,t){var n=e.props[t];return["key","head-key"].includes(t)?r:""===n?r+" "+t:r+" "+t+'="'+n+'"'},"");return"<"+e.type+r+">"},renderTagChildren:function(e){var r=this;return"string"==typeof e.children?e.children:e.children.reduce(function(e,t){return e+r.renderTag(t)},"")},renderTag:function(e){if("Symbol(Text)"===e.type.toString())return e.children;if("Symbol()"===e.type.toString())return"";if("Symbol(Comment)"===e.type.toString())return"";var r=this.renderTagStart(e);return e.children&&(r+=this.renderTagChildren(e)),this.isUnaryTag(e)||(r+="</"+e.type+">"),r},addTitleElement:function(e){return this.title&&!e.find(function(e){return e.startsWith("<title")})&&e.push("<title inertia>"+this.title+"</title>"),e},renderNodes:function(e){var r=this;return this.addTitleElement(e.flatMap(function(e){return"Symbol(Fragment)"===e.type.toString()?e.children:e}).map(function(e){return r.renderTag(e)}).filter(function(e){return e}))}},render:function(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}},m={name:"InertiaLink",props:{as:{type:String,default:"a"},data:{type:Object,default:function(){return{}}},href:{type:String},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:Boolean,default:!1},preserveState:{type:Boolean,default:null},only:{type:Array,default:function(){return[]}},headers:{type:Object,default:function(){return{}}},queryStringArrayFormat:{type:String,default:"brackets"}},setup:function(e,r){var n=r.slots,a=r.attrs;return function(e){var r=e.as.toLowerCase(),u=e.method.toLowerCase(),s=o.mergeDataIntoQueryString(u,e.href||"",e.data,e.queryStringArrayFormat),c=s[0],l=s[1];return"a"===r&&"get"!==u&&console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<Link href="'+c+'" method="'+u+'" as="button">...</Link>'),t.h(e.as,i({},a,"a"===r?{href:c}:{},{onClick:function(r){var t;o.shouldIntercept(r)&&(r.preventDefault(),o.Inertia.visit(c,{data:l,method:u,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:null!=(t=e.preserveState)?t:"get"!==u,only:e.only,headers:e.headers,onCancelToken:a.onCancelToken||function(){return{}},onBefore:a.onBefore||function(){return{}},onStart:a.onStart||function(){return{}},onProgress:a.onProgress||function(){return{}},onFinish:a.onFinish||function(){return{}},onCancel:a.onCancel||function(){return{}},onSuccess:a.onSuccess||function(){return{}},onError:a.onError||function(){return{}}}))}}),n)}}};exports.App=f,exports.Head=h,exports.InertiaApp=f,exports.InertiaHead=h,exports.InertiaLink=m,exports.Link=m,exports.app=f,exports.createInertiaApp=function(e){try{var r,n,o,i,a,u,s;n=void 0===(r=e.id)?"app":r,o=e.resolve,i=e.setup,a=e.title,u=e.page,s=e.render;var c="undefined"==typeof window,l=c?null:document.getElementById(n),p=u||JSON.parse(l.dataset.page),h=function(e){return Promise.resolve(o(e)).then(function(e){return e.default||e})},m=[];return Promise.resolve(h(p.component).then(function(e){return i({el:l,app:f,App:f,props:{initialPage:p,initialComponent:e,resolveComponent:h,titleCallback:a,onHeadUpdate:c?function(e){return m=e}:null},plugin:d})})).then(function(e){return function(){if(c)return Promise.resolve(s(t.createSSRApp({render:function(){return t.h("div",{id:n,"data-page":JSON.stringify(p),innerHTML:s(e)})}}))).then(function(e){return{head:m,body:e}})}()})}catch(e){return Promise.reject(e)}},exports.link=m,exports.plugin=d,exports.useForm=a,exports.usePage=function(){return{props:t.computed(function(){return c.value.props}),url:t.computed(function(){return c.value.url}),component:t.computed(function(){return c.value.component}),version:t.computed(function(){return c.value.version})}},exports.useRemember=function(e,r){if("object"==typeof e&&null!==e&&!1===e.__rememberable)return e;var i=o.Inertia.restore(r),a=t.isReactive(e)?t.reactive:t.ref,u="function"==typeof e.__remember&&"function"==typeof e.__restore,s=void 0===i?e:a(u?e.__restore(i):i);return t.watch(s,function(t){o.Inertia.remember(n(u?e.__remember():t),r)},{immediate:!0,deep:!0}),s};
  9. //# sourceMappingURL=index.js.map
  10. /***/ }),
  11. /***/ "./node_modules/@inertiajs/inertia/dist/index.js":
  12. /*!*******************************************************!*\
  13. !*** ./node_modules/@inertiajs/inertia/dist/index.js ***!
  14. \*******************************************************/
  15. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  16. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(__webpack_require__(/*! axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js")),n=__webpack_require__(/*! qs */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js"),i=e(__webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js"));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o,s={modal:null,listener:null,show:function(e){var t=this;"object"==typeof e&&(e="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(e));var n=document.createElement("html");n.innerHTML=e,n.querySelectorAll("a").forEach(function(e){return e.setAttribute("target","_top")}),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",function(){return t.hide()});var i=document.createElement("iframe");if(i.style.backgroundColor="white",i.style.borderRadius="5px",i.style.width="100%",i.style.height="100%",this.modal.appendChild(i),document.body.prepend(this.modal),document.body.style.overflow="hidden",!i.contentWindow)throw new Error("iframe not yet ready.");i.contentWindow.document.open(),i.contentWindow.document.write(n.outerHTML),i.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(e){27===e.keyCode&&this.hide()}};function a(e,t){var n;return function(){var i=arguments,r=this;clearTimeout(n),n=setTimeout(function(){return e.apply(r,[].slice.call(i))},t)}}function c(e,t,n){for(var i in void 0===t&&(t=new FormData),void 0===n&&(n=null),e=e||{})Object.prototype.hasOwnProperty.call(e,i)&&d(t,l(n,i),e[i]);return t}function l(e,t){return e?e+"["+t+"]":t}function d(e,t,n){return Array.isArray(n)?Array.from(n.keys()).forEach(function(i){return d(e,l(t,i.toString()),n[i])}):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,""+n):null==n?e.append(t,""):void c(n,e,t)}function u(e){return new URL(e.toString(),window.location.toString())}function h(e,t,r,o){void 0===o&&(o="brackets");var s=/^https?:\/\//.test(t.toString()),a=s||t.toString().startsWith("/"),c=!a&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e===exports.Method.GET&&Object.keys(r).length,d=t.toString().includes("#"),u=new URL(t.toString(),"http://localhost");return e===exports.Method.GET&&Object.keys(r).length&&(u.search=n.stringify(i(n.parse(u.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:o}),r={}),[[s?u.protocol+"//"+u.host:"",a?u.pathname:"",c?u.pathname.substring(1):"",l?u.search:"",d?u.hash:""].join(""),r]}function p(e){return(e=new URL(e.href)).hash="",e}function f(e,t){return document.dispatchEvent(new CustomEvent("inertia:"+e,t))}(o=exports.Method||(exports.Method={})).GET="get",o.POST="post",o.PUT="put",o.PATCH="patch",o.DELETE="delete";var v=function(e){return f("finish",{detail:{visit:e}})},m=function(e){return f("navigate",{detail:{page:e}})},g="undefined"==typeof window,w=function(){function e(){this.visitId=null}var n=e.prototype;return n.init=function(e){var t=e.resolveComponent,n=e.swapComponent;this.page=e.initialPage,this.resolveComponent=t,this.swapComponent=n,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},n.handleInitialPageVisit=function(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(function(){return m(e)})},n.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",a(this.handleScrollEvent.bind(this),100),!0)},n.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},n.handleScrollEvent=function(e){"function"==typeof e.target.hasAttribute&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},n.saveScrollPositions=function(){this.replaceState(r({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map(function(e){return{top:e.scrollTop,left:e.scrollLeft}})}))},n.resetScrollPositions=function(){var e;document.documentElement.scrollTop=0,document.documentElement.scrollLeft=0,this.scrollRegions().forEach(function(e){e.scrollTop=0,e.scrollLeft=0}),this.saveScrollPositions(),window.location.hash&&(null==(e=document.getElementById(window.location.hash.slice(1)))||e.scrollIntoView())},n.restoreScrollPositions=function(){var e=this;this.page.scrollRegions&&this.scrollRegions().forEach(function(t,n){var i=e.page.scrollRegions[n];i&&(t.scrollTop=i.top,t.scrollLeft=i.left)})},n.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(function(){t.restoreScrollPositions(),m(e)})},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,p(window.location).href===p(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,i,r,o=this,s=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(i=null==(r=window.history.state)?void 0:r.scrollRegions)?i:[],this.setPage(e,{preserveScroll:s.preserveScroll,preserveState:!0}).then(function(){s.preserveScroll&&o.restoreScrollPositions(),m(e)})},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,i=void 0!==n&&n,r=t.interrupted,o=void 0!==r&&r;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=i,e.interrupted=o,v(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,v(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var i=this,o=void 0===n?{}:n,a=o.method,l=void 0===a?exports.Method.GET:a,d=o.data,v=void 0===d?{}:d,m=o.replace,g=void 0!==m&&m,w=o.preserveScroll,y=void 0!==w&&w,S=o.preserveState,b=void 0!==S&&S,E=o.only,P=void 0===E?[]:E,I=o.headers,x=void 0===I?{}:I,V=o.errorBag,T=void 0===V?"":V,L=o.forceFormData,O=void 0!==L&&L,k=o.onCancelToken,C=void 0===k?function(){}:k,M=o.onBefore,A=void 0===M?function(){}:M,F=o.onStart,R=void 0===F?function(){}:F,j=o.onProgress,D=void 0===j?function(){}:j,B=o.onFinish,q=void 0===B?function(){}:B,N=o.onCancel,H=void 0===N?function(){}:N,W=o.onSuccess,G=void 0===W?function(){}:W,U=o.onError,X=void 0===U?function(){}:U,J=o.queryStringArrayFormat,K=void 0===J?"brackets":J,_="string"==typeof e?u(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some(function(t){return e(t)})||"object"==typeof t&&null!==t&&Object.values(t).some(function(t){return e(t)})}(v)&&!O||v instanceof FormData||(v=c(v)),!(v instanceof FormData)){var z=h(l,_,v,K),Q=z[1];_=u(z[0]),v=Q}var Y={url:_,method:l,data:v,replace:g,preserveScroll:y,preserveState:b,only:P,headers:x,errorBag:T,forceFormData:O,queryStringArrayFormat:K,cancelled:!1,completed:!1,interrupted:!1};if(!1!==A(Y)&&function(e){return f("before",{cancelable:!0,detail:{visit:e}})}(Y)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=r({},Y,{onCancelToken:C,onBefore:A,onStart:R,onProgress:D,onFinish:q,onCancel:H,onSuccess:G,onError:X,queryStringArrayFormat:K,cancelToken:t.CancelToken.source()}),C({cancel:function(){i.activeVisit&&i.cancelVisit(i.activeVisit,{cancelled:!0})}}),function(e){f("start",{detail:{visit:e}})}(Y),R(Y),t({method:l,url:p(_).href,data:l===exports.Method.GET?{}:v,params:l===exports.Method.GET?v:{},cancelToken:this.activeVisit.cancelToken.token,headers:r({},x,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},P.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":P.join(",")}:{},T&&T.length?{"X-Inertia-Error-Bag":T}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){v instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){f("progress",{detail:{progress:e}})}(e),D(e))}}).then(function(e){var t;if(!i.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;P.length&&n.component===i.page.component&&(n.props=r({},i.page.props,n.props)),y=i.resolvePreserveOption(y,n),(b=i.resolvePreserveOption(b,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===i.page.component&&(n.rememberedState=window.history.state.rememberedState);var o=_,s=u(n.url);return o.hash&&!s.hash&&p(o).href===s.href&&(s.hash=o.hash,n.url=s.href),i.setPage(n,{visitId:Z,replace:g,preserveScroll:y,preserveState:b})}).then(function(){var e=i.page.props.errors||{};if(Object.keys(e).length>0){var t=T?e[T]?e[T]:{}:e;return function(e){f("error",{detail:{errors:e}})}(t),X(t)}return f("success",{detail:{page:i.page}}),G(i.page)}).catch(function(e){if(i.isInertiaResponse(e.response))return i.setPage(e.response.data,{visitId:Z});if(i.isLocationVisitResponse(e.response)){var t=u(e.response.headers["x-inertia-location"]),n=_;n.hash&&!t.hash&&p(n).href===t.href&&(t.hash=n.hash),i.locationVisit(t,!0===y)}else{if(!e.response)return Promise.reject(e);f("invalid",{cancelable:!0,detail:{response:e.response}})&&s.show(e.response.data)}}).then(function(){i.activeVisit&&i.finishVisit(i.activeVisit)}).catch(function(e){if(!t.isCancel(e)){var n=f("exception",{cancelable:!0,detail:{exception:e}});if(i.activeVisit&&i.finishVisit(i.activeVisit),n)return Promise.reject(e)}})}},n.setPage=function(e,t){var n=this,i=void 0===t?{}:t,r=i.visitId,o=void 0===r?this.createVisitId():r,s=i.replace,a=void 0!==s&&s,c=i.preserveScroll,l=void 0!==c&&c,d=i.preserveState,h=void 0!==d&&d;return Promise.resolve(this.resolveComponent(e.component)).then(function(t){o===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(a=a||u(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:h}).then(function(){l||n.resetScrollPositions(),a||m(e)}))})},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,i=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then(function(e){i===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then(function(){t.restoreScrollPositions(),m(n)}))})}else{var o=u(this.page.url);o.hash=window.location.hash,this.replaceState(r({},this.page,{url:o.href})),this.resetScrollPositions()}},n.get=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({},n,{method:exports.Method.GET,data:t}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,r({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,r({preserveState:!0},t,{replace:!0}))},n.post=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.POST,data:t}))},n.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PUT,data:t}))},n.patch=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PATCH,data:t}))},n.delete=function(e,t){return void 0===t&&(t={}),this.visit(e,r({preserveState:!0},t,{method:exports.Method.DELETE}))},n.remember=function(e,t){var n,i;void 0===t&&(t="default"),g||this.replaceState(r({},this.page,{rememberedState:r({},null==(n=this.page)?void 0:n.rememberedState,(i={},i[t]=e,i))}))},n.restore=function(e){var t,n;if(void 0===e&&(e="default"),!g)return null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),y={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("<script "))return n;var i=document.createElement("script");return i.innerHTML=n.innerHTML,n.getAttributeNames().forEach(function(e){i.setAttribute(e,n.getAttribute(e)||"")}),i},isInertiaManagedElement:function(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute("inertia")},findMatchingElementIndex:function(e,t){var n=e.getAttribute("inertia");return null!==n?t.findIndex(function(e){return e.getAttribute("inertia")===n}):-1},update:a(function(e){var t=this,n=e.map(function(e){return t.buildDOMElement(e)});Array.from(document.head.childNodes).filter(function(e){return t.isInertiaManagedElement(e)}).forEach(function(e){var i=t.findMatchingElementIndex(e,n);if(-1!==i){var r,o=n.splice(i,1)[0];o&&!e.isEqualNode(o)&&(null==e||null==(r=e.parentNode)||r.replaceChild(o,e))}else{var s;null==e||null==(s=e.parentNode)||s.removeChild(e)}}),n.forEach(function(e){return document.head.appendChild(e)})},1)},S=new w;exports.Inertia=S,exports.createHeadManager=function(e,t,n){var i={},r=0;function o(){var e=Object.values(i).reduce(function(e,t){return e.concat(t)},[]).reduce(function(e,n){if(-1===n.indexOf("<"))return e;if(0===n.indexOf("<title ")){var i=n.match(/(<title [^>]+>)(.*?)(<\/title>)/);return e.title=i?""+i[1]+t(i[2])+i[3]:n,e}var r=n.match(/ inertia="[^"]+"/);return r?e[r[0]]=n:e[Object.keys(e).length]=n,e},{});return Object.values(e)}function s(){e?n(o()):y.update(o())}return{createProvider:function(){var e=function(){var e=r+=1;return i[e]=[],e.toString()}();return{update:function(t){return function(e,t){void 0===t&&(t=[]),null!==e&&Object.keys(i).indexOf(e)>-1&&(i[e]=t),s()}(e,t)},disconnect:function(){return function(e){null!==e&&-1!==Object.keys(i).indexOf(e)&&(delete i[e],s())}(e)}}}}},exports.hrefToUrl=u,exports.mergeDataIntoQueryString=h,exports.shouldIntercept=function(e){var t="a"===e.currentTarget.tagName.toLowerCase();return!(e.target&&null!=e&&e.target.isContentEditable||e.defaultPrevented||t&&e.which>1||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey)},exports.urlWithoutHash=p;
  17. //# sourceMappingURL=index.js.map
  18. /***/ }),
  19. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js":
  20. /*!*********************************************************************!*\
  21. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/index.js ***!
  22. \*********************************************************************/
  23. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  24. module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js");
  25. /***/ }),
  26. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js":
  27. /*!********************************************************************************!*\
  28. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js ***!
  29. \********************************************************************************/
  30. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  31. "use strict";
  32. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  33. var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js");
  34. var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js");
  35. var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  36. var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js");
  37. var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js");
  38. var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js");
  39. var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  40. module.exports = function xhrAdapter(config) {
  41. return new Promise(function dispatchXhrRequest(resolve, reject) {
  42. var requestData = config.data;
  43. var requestHeaders = config.headers;
  44. var responseType = config.responseType;
  45. if (utils.isFormData(requestData)) {
  46. delete requestHeaders['Content-Type']; // Let the browser set it
  47. }
  48. var request = new XMLHttpRequest();
  49. // HTTP basic authentication
  50. if (config.auth) {
  51. var username = config.auth.username || '';
  52. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  53. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  54. }
  55. var fullPath = buildFullPath(config.baseURL, config.url);
  56. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  57. // Set the request timeout in MS
  58. request.timeout = config.timeout;
  59. function onloadend() {
  60. if (!request) {
  61. return;
  62. }
  63. // Prepare the response
  64. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  65. var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
  66. request.responseText : request.response;
  67. var response = {
  68. data: responseData,
  69. status: request.status,
  70. statusText: request.statusText,
  71. headers: responseHeaders,
  72. config: config,
  73. request: request
  74. };
  75. settle(resolve, reject, response);
  76. // Clean up request
  77. request = null;
  78. }
  79. if ('onloadend' in request) {
  80. // Use onloadend if available
  81. request.onloadend = onloadend;
  82. } else {
  83. // Listen for ready state to emulate onloadend
  84. request.onreadystatechange = function handleLoad() {
  85. if (!request || request.readyState !== 4) {
  86. return;
  87. }
  88. // The request errored out and we didn't get a response, this will be
  89. // handled by onerror instead
  90. // With one exception: request that using file: protocol, most browsers
  91. // will return status as 0 even though it's a successful request
  92. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  93. return;
  94. }
  95. // readystate handler is calling before onerror or ontimeout handlers,
  96. // so we should call onloadend on the next 'tick'
  97. setTimeout(onloadend);
  98. };
  99. }
  100. // Handle browser request cancellation (as opposed to a manual cancellation)
  101. request.onabort = function handleAbort() {
  102. if (!request) {
  103. return;
  104. }
  105. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  106. // Clean up request
  107. request = null;
  108. };
  109. // Handle low level network errors
  110. request.onerror = function handleError() {
  111. // Real errors are hidden from us by the browser
  112. // onerror should only fire if it's a network error
  113. reject(createError('Network Error', config, null, request));
  114. // Clean up request
  115. request = null;
  116. };
  117. // Handle timeout
  118. request.ontimeout = function handleTimeout() {
  119. var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
  120. if (config.timeoutErrorMessage) {
  121. timeoutErrorMessage = config.timeoutErrorMessage;
  122. }
  123. reject(createError(
  124. timeoutErrorMessage,
  125. config,
  126. config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
  127. request));
  128. // Clean up request
  129. request = null;
  130. };
  131. // Add xsrf header
  132. // This is only done if running in a standard browser environment.
  133. // Specifically not if we're in a web worker, or react-native.
  134. if (utils.isStandardBrowserEnv()) {
  135. // Add xsrf header
  136. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  137. cookies.read(config.xsrfCookieName) :
  138. undefined;
  139. if (xsrfValue) {
  140. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  141. }
  142. }
  143. // Add headers to the request
  144. if ('setRequestHeader' in request) {
  145. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  146. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  147. // Remove Content-Type if data is undefined
  148. delete requestHeaders[key];
  149. } else {
  150. // Otherwise add header to the request
  151. request.setRequestHeader(key, val);
  152. }
  153. });
  154. }
  155. // Add withCredentials to request if needed
  156. if (!utils.isUndefined(config.withCredentials)) {
  157. request.withCredentials = !!config.withCredentials;
  158. }
  159. // Add responseType to request if needed
  160. if (responseType && responseType !== 'json') {
  161. request.responseType = config.responseType;
  162. }
  163. // Handle progress if needed
  164. if (typeof config.onDownloadProgress === 'function') {
  165. request.addEventListener('progress', config.onDownloadProgress);
  166. }
  167. // Not all browsers support upload events
  168. if (typeof config.onUploadProgress === 'function' && request.upload) {
  169. request.upload.addEventListener('progress', config.onUploadProgress);
  170. }
  171. if (config.cancelToken) {
  172. // Handle cancellation
  173. config.cancelToken.promise.then(function onCanceled(cancel) {
  174. if (!request) {
  175. return;
  176. }
  177. request.abort();
  178. reject(cancel);
  179. // Clean up request
  180. request = null;
  181. });
  182. }
  183. if (!requestData) {
  184. requestData = null;
  185. }
  186. // Send the request
  187. request.send(requestData);
  188. });
  189. };
  190. /***/ }),
  191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js":
  192. /*!*************************************************************************!*\
  193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js ***!
  194. \*************************************************************************/
  195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  196. "use strict";
  197. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  198. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  199. var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js");
  200. var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  201. var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  202. /**
  203. * Create an instance of Axios
  204. *
  205. * @param {Object} defaultConfig The default config for the instance
  206. * @return {Axios} A new instance of Axios
  207. */
  208. function createInstance(defaultConfig) {
  209. var context = new Axios(defaultConfig);
  210. var instance = bind(Axios.prototype.request, context);
  211. // Copy axios.prototype to instance
  212. utils.extend(instance, Axios.prototype, context);
  213. // Copy context to instance
  214. utils.extend(instance, context);
  215. return instance;
  216. }
  217. // Create the default instance to be exported
  218. var axios = createInstance(defaults);
  219. // Expose Axios class to allow class inheritance
  220. axios.Axios = Axios;
  221. // Factory for creating new instances
  222. axios.create = function create(instanceConfig) {
  223. return createInstance(mergeConfig(axios.defaults, instanceConfig));
  224. };
  225. // Expose Cancel & CancelToken
  226. axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  227. axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js");
  228. axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  229. // Expose all/spread
  230. axios.all = function all(promises) {
  231. return Promise.all(promises);
  232. };
  233. axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js");
  234. // Expose isAxiosError
  235. axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js");
  236. module.exports = axios;
  237. // Allow use of default import syntax in TypeScript
  238. module.exports["default"] = axios;
  239. /***/ }),
  240. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js":
  241. /*!*********************************************************************************!*\
  242. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js ***!
  243. \*********************************************************************************/
  244. /***/ ((module) => {
  245. "use strict";
  246. /**
  247. * A `Cancel` is an object that is thrown when an operation is canceled.
  248. *
  249. * @class
  250. * @param {string=} message The message.
  251. */
  252. function Cancel(message) {
  253. this.message = message;
  254. }
  255. Cancel.prototype.toString = function toString() {
  256. return 'Cancel' + (this.message ? ': ' + this.message : '');
  257. };
  258. Cancel.prototype.__CANCEL__ = true;
  259. module.exports = Cancel;
  260. /***/ }),
  261. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js":
  262. /*!**************************************************************************************!*\
  263. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js ***!
  264. \**************************************************************************************/
  265. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  266. "use strict";
  267. var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  268. /**
  269. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  270. *
  271. * @class
  272. * @param {Function} executor The executor function.
  273. */
  274. function CancelToken(executor) {
  275. if (typeof executor !== 'function') {
  276. throw new TypeError('executor must be a function.');
  277. }
  278. var resolvePromise;
  279. this.promise = new Promise(function promiseExecutor(resolve) {
  280. resolvePromise = resolve;
  281. });
  282. var token = this;
  283. executor(function cancel(message) {
  284. if (token.reason) {
  285. // Cancellation has already been requested
  286. return;
  287. }
  288. token.reason = new Cancel(message);
  289. resolvePromise(token.reason);
  290. });
  291. }
  292. /**
  293. * Throws a `Cancel` if cancellation has been requested.
  294. */
  295. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  296. if (this.reason) {
  297. throw this.reason;
  298. }
  299. };
  300. /**
  301. * Returns an object that contains a new `CancelToken` and a function that, when called,
  302. * cancels the `CancelToken`.
  303. */
  304. CancelToken.source = function source() {
  305. var cancel;
  306. var token = new CancelToken(function executor(c) {
  307. cancel = c;
  308. });
  309. return {
  310. token: token,
  311. cancel: cancel
  312. };
  313. };
  314. module.exports = CancelToken;
  315. /***/ }),
  316. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js":
  317. /*!***********************************************************************************!*\
  318. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js ***!
  319. \***********************************************************************************/
  320. /***/ ((module) => {
  321. "use strict";
  322. module.exports = function isCancel(value) {
  323. return !!(value && value.__CANCEL__);
  324. };
  325. /***/ }),
  326. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js":
  327. /*!******************************************************************************!*\
  328. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js ***!
  329. \******************************************************************************/
  330. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  331. "use strict";
  332. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  333. var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  334. var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js");
  335. var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js");
  336. var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  337. var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js");
  338. var validators = validator.validators;
  339. /**
  340. * Create a new instance of Axios
  341. *
  342. * @param {Object} instanceConfig The default config for the instance
  343. */
  344. function Axios(instanceConfig) {
  345. this.defaults = instanceConfig;
  346. this.interceptors = {
  347. request: new InterceptorManager(),
  348. response: new InterceptorManager()
  349. };
  350. }
  351. /**
  352. * Dispatch a request
  353. *
  354. * @param {Object} config The config specific for this request (merged with this.defaults)
  355. */
  356. Axios.prototype.request = function request(config) {
  357. /*eslint no-param-reassign:0*/
  358. // Allow for axios('example/url'[, config]) a la fetch API
  359. if (typeof config === 'string') {
  360. config = arguments[1] || {};
  361. config.url = arguments[0];
  362. } else {
  363. config = config || {};
  364. }
  365. config = mergeConfig(this.defaults, config);
  366. // Set config.method
  367. if (config.method) {
  368. config.method = config.method.toLowerCase();
  369. } else if (this.defaults.method) {
  370. config.method = this.defaults.method.toLowerCase();
  371. } else {
  372. config.method = 'get';
  373. }
  374. var transitional = config.transitional;
  375. if (transitional !== undefined) {
  376. validator.assertOptions(transitional, {
  377. silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  378. forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  379. clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
  380. }, false);
  381. }
  382. // filter out skipped interceptors
  383. var requestInterceptorChain = [];
  384. var synchronousRequestInterceptors = true;
  385. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  386. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  387. return;
  388. }
  389. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  390. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  391. });
  392. var responseInterceptorChain = [];
  393. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  394. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  395. });
  396. var promise;
  397. if (!synchronousRequestInterceptors) {
  398. var chain = [dispatchRequest, undefined];
  399. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  400. chain = chain.concat(responseInterceptorChain);
  401. promise = Promise.resolve(config);
  402. while (chain.length) {
  403. promise = promise.then(chain.shift(), chain.shift());
  404. }
  405. return promise;
  406. }
  407. var newConfig = config;
  408. while (requestInterceptorChain.length) {
  409. var onFulfilled = requestInterceptorChain.shift();
  410. var onRejected = requestInterceptorChain.shift();
  411. try {
  412. newConfig = onFulfilled(newConfig);
  413. } catch (error) {
  414. onRejected(error);
  415. break;
  416. }
  417. }
  418. try {
  419. promise = dispatchRequest(newConfig);
  420. } catch (error) {
  421. return Promise.reject(error);
  422. }
  423. while (responseInterceptorChain.length) {
  424. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  425. }
  426. return promise;
  427. };
  428. Axios.prototype.getUri = function getUri(config) {
  429. config = mergeConfig(this.defaults, config);
  430. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  431. };
  432. // Provide aliases for supported request methods
  433. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  434. /*eslint func-names:0*/
  435. Axios.prototype[method] = function(url, config) {
  436. return this.request(mergeConfig(config || {}, {
  437. method: method,
  438. url: url,
  439. data: (config || {}).data
  440. }));
  441. };
  442. });
  443. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  444. /*eslint func-names:0*/
  445. Axios.prototype[method] = function(url, data, config) {
  446. return this.request(mergeConfig(config || {}, {
  447. method: method,
  448. url: url,
  449. data: data
  450. }));
  451. };
  452. });
  453. module.exports = Axios;
  454. /***/ }),
  455. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js":
  456. /*!*******************************************************************************************!*\
  457. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js ***!
  458. \*******************************************************************************************/
  459. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  460. "use strict";
  461. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  462. function InterceptorManager() {
  463. this.handlers = [];
  464. }
  465. /**
  466. * Add a new interceptor to the stack
  467. *
  468. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  469. * @param {Function} rejected The function to handle `reject` for a `Promise`
  470. *
  471. * @return {Number} An ID used to remove interceptor later
  472. */
  473. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  474. this.handlers.push({
  475. fulfilled: fulfilled,
  476. rejected: rejected,
  477. synchronous: options ? options.synchronous : false,
  478. runWhen: options ? options.runWhen : null
  479. });
  480. return this.handlers.length - 1;
  481. };
  482. /**
  483. * Remove an interceptor from the stack
  484. *
  485. * @param {Number} id The ID that was returned by `use`
  486. */
  487. InterceptorManager.prototype.eject = function eject(id) {
  488. if (this.handlers[id]) {
  489. this.handlers[id] = null;
  490. }
  491. };
  492. /**
  493. * Iterate over all the registered interceptors
  494. *
  495. * This method is particularly useful for skipping over any
  496. * interceptors that may have become `null` calling `eject`.
  497. *
  498. * @param {Function} fn The function to call for each interceptor
  499. */
  500. InterceptorManager.prototype.forEach = function forEach(fn) {
  501. utils.forEach(this.handlers, function forEachHandler(h) {
  502. if (h !== null) {
  503. fn(h);
  504. }
  505. });
  506. };
  507. module.exports = InterceptorManager;
  508. /***/ }),
  509. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js":
  510. /*!**************************************************************************************!*\
  511. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js ***!
  512. \**************************************************************************************/
  513. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  514. "use strict";
  515. var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js");
  516. var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js");
  517. /**
  518. * Creates a new URL by combining the baseURL with the requestedURL,
  519. * only when the requestedURL is not already an absolute URL.
  520. * If the requestURL is absolute, this function returns the requestedURL untouched.
  521. *
  522. * @param {string} baseURL The base URL
  523. * @param {string} requestedURL Absolute or relative URL to combine
  524. * @returns {string} The combined full path
  525. */
  526. module.exports = function buildFullPath(baseURL, requestedURL) {
  527. if (baseURL && !isAbsoluteURL(requestedURL)) {
  528. return combineURLs(baseURL, requestedURL);
  529. }
  530. return requestedURL;
  531. };
  532. /***/ }),
  533. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js":
  534. /*!************************************************************************************!*\
  535. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js ***!
  536. \************************************************************************************/
  537. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  538. "use strict";
  539. var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  540. /**
  541. * Create an Error with the specified message, config, error code, request and response.
  542. *
  543. * @param {string} message The error message.
  544. * @param {Object} config The config.
  545. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  546. * @param {Object} [request] The request.
  547. * @param {Object} [response] The response.
  548. * @returns {Error} The created error.
  549. */
  550. module.exports = function createError(message, config, code, request, response) {
  551. var error = new Error(message);
  552. return enhanceError(error, config, code, request, response);
  553. };
  554. /***/ }),
  555. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js":
  556. /*!****************************************************************************************!*\
  557. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js ***!
  558. \****************************************************************************************/
  559. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  560. "use strict";
  561. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  562. var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js");
  563. var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  564. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  565. /**
  566. * Throws a `Cancel` if cancellation has been requested.
  567. */
  568. function throwIfCancellationRequested(config) {
  569. if (config.cancelToken) {
  570. config.cancelToken.throwIfRequested();
  571. }
  572. }
  573. /**
  574. * Dispatch a request to the server using the configured adapter.
  575. *
  576. * @param {object} config The config that is to be used for the request
  577. * @returns {Promise} The Promise to be fulfilled
  578. */
  579. module.exports = function dispatchRequest(config) {
  580. throwIfCancellationRequested(config);
  581. // Ensure headers exist
  582. config.headers = config.headers || {};
  583. // Transform request data
  584. config.data = transformData.call(
  585. config,
  586. config.data,
  587. config.headers,
  588. config.transformRequest
  589. );
  590. // Flatten headers
  591. config.headers = utils.merge(
  592. config.headers.common || {},
  593. config.headers[config.method] || {},
  594. config.headers
  595. );
  596. utils.forEach(
  597. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  598. function cleanHeaderConfig(method) {
  599. delete config.headers[method];
  600. }
  601. );
  602. var adapter = config.adapter || defaults.adapter;
  603. return adapter(config).then(function onAdapterResolution(response) {
  604. throwIfCancellationRequested(config);
  605. // Transform response data
  606. response.data = transformData.call(
  607. config,
  608. response.data,
  609. response.headers,
  610. config.transformResponse
  611. );
  612. return response;
  613. }, function onAdapterRejection(reason) {
  614. if (!isCancel(reason)) {
  615. throwIfCancellationRequested(config);
  616. // Transform response data
  617. if (reason && reason.response) {
  618. reason.response.data = transformData.call(
  619. config,
  620. reason.response.data,
  621. reason.response.headers,
  622. config.transformResponse
  623. );
  624. }
  625. }
  626. return Promise.reject(reason);
  627. });
  628. };
  629. /***/ }),
  630. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js":
  631. /*!*************************************************************************************!*\
  632. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js ***!
  633. \*************************************************************************************/
  634. /***/ ((module) => {
  635. "use strict";
  636. /**
  637. * Update an Error with the specified config, error code, and response.
  638. *
  639. * @param {Error} error The error to update.
  640. * @param {Object} config The config.
  641. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  642. * @param {Object} [request] The request.
  643. * @param {Object} [response] The response.
  644. * @returns {Error} The error.
  645. */
  646. module.exports = function enhanceError(error, config, code, request, response) {
  647. error.config = config;
  648. if (code) {
  649. error.code = code;
  650. }
  651. error.request = request;
  652. error.response = response;
  653. error.isAxiosError = true;
  654. error.toJSON = function toJSON() {
  655. return {
  656. // Standard
  657. message: this.message,
  658. name: this.name,
  659. // Microsoft
  660. description: this.description,
  661. number: this.number,
  662. // Mozilla
  663. fileName: this.fileName,
  664. lineNumber: this.lineNumber,
  665. columnNumber: this.columnNumber,
  666. stack: this.stack,
  667. // Axios
  668. config: this.config,
  669. code: this.code
  670. };
  671. };
  672. return error;
  673. };
  674. /***/ }),
  675. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js":
  676. /*!************************************************************************************!*\
  677. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js ***!
  678. \************************************************************************************/
  679. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  680. "use strict";
  681. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  682. /**
  683. * Config-specific merge-function which creates a new config-object
  684. * by merging two configuration objects together.
  685. *
  686. * @param {Object} config1
  687. * @param {Object} config2
  688. * @returns {Object} New object resulting from merging config2 to config1
  689. */
  690. module.exports = function mergeConfig(config1, config2) {
  691. // eslint-disable-next-line no-param-reassign
  692. config2 = config2 || {};
  693. var config = {};
  694. var valueFromConfig2Keys = ['url', 'method', 'data'];
  695. var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
  696. var defaultToConfig2Keys = [
  697. 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
  698. 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
  699. 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
  700. 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
  701. 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
  702. ];
  703. var directMergeKeys = ['validateStatus'];
  704. function getMergedValue(target, source) {
  705. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  706. return utils.merge(target, source);
  707. } else if (utils.isPlainObject(source)) {
  708. return utils.merge({}, source);
  709. } else if (utils.isArray(source)) {
  710. return source.slice();
  711. }
  712. return source;
  713. }
  714. function mergeDeepProperties(prop) {
  715. if (!utils.isUndefined(config2[prop])) {
  716. config[prop] = getMergedValue(config1[prop], config2[prop]);
  717. } else if (!utils.isUndefined(config1[prop])) {
  718. config[prop] = getMergedValue(undefined, config1[prop]);
  719. }
  720. }
  721. utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
  722. if (!utils.isUndefined(config2[prop])) {
  723. config[prop] = getMergedValue(undefined, config2[prop]);
  724. }
  725. });
  726. utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
  727. utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
  728. if (!utils.isUndefined(config2[prop])) {
  729. config[prop] = getMergedValue(undefined, config2[prop]);
  730. } else if (!utils.isUndefined(config1[prop])) {
  731. config[prop] = getMergedValue(undefined, config1[prop]);
  732. }
  733. });
  734. utils.forEach(directMergeKeys, function merge(prop) {
  735. if (prop in config2) {
  736. config[prop] = getMergedValue(config1[prop], config2[prop]);
  737. } else if (prop in config1) {
  738. config[prop] = getMergedValue(undefined, config1[prop]);
  739. }
  740. });
  741. var axiosKeys = valueFromConfig2Keys
  742. .concat(mergeDeepPropertiesKeys)
  743. .concat(defaultToConfig2Keys)
  744. .concat(directMergeKeys);
  745. var otherKeys = Object
  746. .keys(config1)
  747. .concat(Object.keys(config2))
  748. .filter(function filterAxiosKeys(key) {
  749. return axiosKeys.indexOf(key) === -1;
  750. });
  751. utils.forEach(otherKeys, mergeDeepProperties);
  752. return config;
  753. };
  754. /***/ }),
  755. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js":
  756. /*!*******************************************************************************!*\
  757. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js ***!
  758. \*******************************************************************************/
  759. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  760. "use strict";
  761. var createError = __webpack_require__(/*! ./createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  762. /**
  763. * Resolve or reject a Promise based on response status.
  764. *
  765. * @param {Function} resolve A function that resolves the promise.
  766. * @param {Function} reject A function that rejects the promise.
  767. * @param {object} response The response.
  768. */
  769. module.exports = function settle(resolve, reject, response) {
  770. var validateStatus = response.config.validateStatus;
  771. if (!response.status || !validateStatus || validateStatus(response.status)) {
  772. resolve(response);
  773. } else {
  774. reject(createError(
  775. 'Request failed with status code ' + response.status,
  776. response.config,
  777. null,
  778. response.request,
  779. response
  780. ));
  781. }
  782. };
  783. /***/ }),
  784. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js":
  785. /*!**************************************************************************************!*\
  786. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js ***!
  787. \**************************************************************************************/
  788. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  789. "use strict";
  790. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  791. var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  792. /**
  793. * Transform the data for a request or a response
  794. *
  795. * @param {Object|String} data The data to be transformed
  796. * @param {Array} headers The headers for the request or response
  797. * @param {Array|Function} fns A single function or Array of functions
  798. * @returns {*} The resulting transformed data
  799. */
  800. module.exports = function transformData(data, headers, fns) {
  801. var context = this || defaults;
  802. /*eslint no-param-reassign:0*/
  803. utils.forEach(fns, function transform(fn) {
  804. data = fn.call(context, data, headers);
  805. });
  806. return data;
  807. };
  808. /***/ }),
  809. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js":
  810. /*!****************************************************************************!*\
  811. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js ***!
  812. \****************************************************************************/
  813. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  814. "use strict";
  815. /* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
  816. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  817. var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js");
  818. var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  819. var DEFAULT_CONTENT_TYPE = {
  820. 'Content-Type': 'application/x-www-form-urlencoded'
  821. };
  822. function setContentTypeIfUnset(headers, value) {
  823. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  824. headers['Content-Type'] = value;
  825. }
  826. }
  827. function getDefaultAdapter() {
  828. var adapter;
  829. if (typeof XMLHttpRequest !== 'undefined') {
  830. // For browsers use XHR adapter
  831. adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  832. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  833. // For node use HTTP adapter
  834. adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  835. }
  836. return adapter;
  837. }
  838. function stringifySafely(rawValue, parser, encoder) {
  839. if (utils.isString(rawValue)) {
  840. try {
  841. (parser || JSON.parse)(rawValue);
  842. return utils.trim(rawValue);
  843. } catch (e) {
  844. if (e.name !== 'SyntaxError') {
  845. throw e;
  846. }
  847. }
  848. }
  849. return (encoder || JSON.stringify)(rawValue);
  850. }
  851. var defaults = {
  852. transitional: {
  853. silentJSONParsing: true,
  854. forcedJSONParsing: true,
  855. clarifyTimeoutError: false
  856. },
  857. adapter: getDefaultAdapter(),
  858. transformRequest: [function transformRequest(data, headers) {
  859. normalizeHeaderName(headers, 'Accept');
  860. normalizeHeaderName(headers, 'Content-Type');
  861. if (utils.isFormData(data) ||
  862. utils.isArrayBuffer(data) ||
  863. utils.isBuffer(data) ||
  864. utils.isStream(data) ||
  865. utils.isFile(data) ||
  866. utils.isBlob(data)
  867. ) {
  868. return data;
  869. }
  870. if (utils.isArrayBufferView(data)) {
  871. return data.buffer;
  872. }
  873. if (utils.isURLSearchParams(data)) {
  874. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  875. return data.toString();
  876. }
  877. if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
  878. setContentTypeIfUnset(headers, 'application/json');
  879. return stringifySafely(data);
  880. }
  881. return data;
  882. }],
  883. transformResponse: [function transformResponse(data) {
  884. var transitional = this.transitional;
  885. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  886. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  887. var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
  888. if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
  889. try {
  890. return JSON.parse(data);
  891. } catch (e) {
  892. if (strictJSONParsing) {
  893. if (e.name === 'SyntaxError') {
  894. throw enhanceError(e, this, 'E_JSON_PARSE');
  895. }
  896. throw e;
  897. }
  898. }
  899. }
  900. return data;
  901. }],
  902. /**
  903. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  904. * timeout is not created.
  905. */
  906. timeout: 0,
  907. xsrfCookieName: 'XSRF-TOKEN',
  908. xsrfHeaderName: 'X-XSRF-TOKEN',
  909. maxContentLength: -1,
  910. maxBodyLength: -1,
  911. validateStatus: function validateStatus(status) {
  912. return status >= 200 && status < 300;
  913. }
  914. };
  915. defaults.headers = {
  916. common: {
  917. 'Accept': 'application/json, text/plain, */*'
  918. }
  919. };
  920. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  921. defaults.headers[method] = {};
  922. });
  923. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  924. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  925. });
  926. module.exports = defaults;
  927. /***/ }),
  928. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js":
  929. /*!********************************************************************************!*\
  930. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js ***!
  931. \********************************************************************************/
  932. /***/ ((module) => {
  933. "use strict";
  934. module.exports = function bind(fn, thisArg) {
  935. return function wrap() {
  936. var args = new Array(arguments.length);
  937. for (var i = 0; i < args.length; i++) {
  938. args[i] = arguments[i];
  939. }
  940. return fn.apply(thisArg, args);
  941. };
  942. };
  943. /***/ }),
  944. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js":
  945. /*!************************************************************************************!*\
  946. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js ***!
  947. \************************************************************************************/
  948. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  949. "use strict";
  950. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  951. function encode(val) {
  952. return encodeURIComponent(val).
  953. replace(/%3A/gi, ':').
  954. replace(/%24/g, '$').
  955. replace(/%2C/gi, ',').
  956. replace(/%20/g, '+').
  957. replace(/%5B/gi, '[').
  958. replace(/%5D/gi, ']');
  959. }
  960. /**
  961. * Build a URL by appending params to the end
  962. *
  963. * @param {string} url The base of the url (e.g., http://www.google.com)
  964. * @param {object} [params] The params to be appended
  965. * @returns {string} The formatted url
  966. */
  967. module.exports = function buildURL(url, params, paramsSerializer) {
  968. /*eslint no-param-reassign:0*/
  969. if (!params) {
  970. return url;
  971. }
  972. var serializedParams;
  973. if (paramsSerializer) {
  974. serializedParams = paramsSerializer(params);
  975. } else if (utils.isURLSearchParams(params)) {
  976. serializedParams = params.toString();
  977. } else {
  978. var parts = [];
  979. utils.forEach(params, function serialize(val, key) {
  980. if (val === null || typeof val === 'undefined') {
  981. return;
  982. }
  983. if (utils.isArray(val)) {
  984. key = key + '[]';
  985. } else {
  986. val = [val];
  987. }
  988. utils.forEach(val, function parseValue(v) {
  989. if (utils.isDate(v)) {
  990. v = v.toISOString();
  991. } else if (utils.isObject(v)) {
  992. v = JSON.stringify(v);
  993. }
  994. parts.push(encode(key) + '=' + encode(v));
  995. });
  996. });
  997. serializedParams = parts.join('&');
  998. }
  999. if (serializedParams) {
  1000. var hashmarkIndex = url.indexOf('#');
  1001. if (hashmarkIndex !== -1) {
  1002. url = url.slice(0, hashmarkIndex);
  1003. }
  1004. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1005. }
  1006. return url;
  1007. };
  1008. /***/ }),
  1009. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js":
  1010. /*!***************************************************************************************!*\
  1011. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js ***!
  1012. \***************************************************************************************/
  1013. /***/ ((module) => {
  1014. "use strict";
  1015. /**
  1016. * Creates a new URL by combining the specified URLs
  1017. *
  1018. * @param {string} baseURL The base URL
  1019. * @param {string} relativeURL The relative URL
  1020. * @returns {string} The combined URL
  1021. */
  1022. module.exports = function combineURLs(baseURL, relativeURL) {
  1023. return relativeURL
  1024. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1025. : baseURL;
  1026. };
  1027. /***/ }),
  1028. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js":
  1029. /*!***********************************************************************************!*\
  1030. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js ***!
  1031. \***********************************************************************************/
  1032. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1033. "use strict";
  1034. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1035. module.exports = (
  1036. utils.isStandardBrowserEnv() ?
  1037. // Standard browser envs support document.cookie
  1038. (function standardBrowserEnv() {
  1039. return {
  1040. write: function write(name, value, expires, path, domain, secure) {
  1041. var cookie = [];
  1042. cookie.push(name + '=' + encodeURIComponent(value));
  1043. if (utils.isNumber(expires)) {
  1044. cookie.push('expires=' + new Date(expires).toGMTString());
  1045. }
  1046. if (utils.isString(path)) {
  1047. cookie.push('path=' + path);
  1048. }
  1049. if (utils.isString(domain)) {
  1050. cookie.push('domain=' + domain);
  1051. }
  1052. if (secure === true) {
  1053. cookie.push('secure');
  1054. }
  1055. document.cookie = cookie.join('; ');
  1056. },
  1057. read: function read(name) {
  1058. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1059. return (match ? decodeURIComponent(match[3]) : null);
  1060. },
  1061. remove: function remove(name) {
  1062. this.write(name, '', Date.now() - 86400000);
  1063. }
  1064. };
  1065. })() :
  1066. // Non standard browser env (web workers, react-native) lack needed support.
  1067. (function nonStandardBrowserEnv() {
  1068. return {
  1069. write: function write() {},
  1070. read: function read() { return null; },
  1071. remove: function remove() {}
  1072. };
  1073. })()
  1074. );
  1075. /***/ }),
  1076. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js":
  1077. /*!*****************************************************************************************!*\
  1078. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  1079. \*****************************************************************************************/
  1080. /***/ ((module) => {
  1081. "use strict";
  1082. /**
  1083. * Determines whether the specified URL is absolute
  1084. *
  1085. * @param {string} url The URL to test
  1086. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1087. */
  1088. module.exports = function isAbsoluteURL(url) {
  1089. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1090. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1091. // by any combination of letters, digits, plus, period, or hyphen.
  1092. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  1093. };
  1094. /***/ }),
  1095. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js":
  1096. /*!****************************************************************************************!*\
  1097. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js ***!
  1098. \****************************************************************************************/
  1099. /***/ ((module) => {
  1100. "use strict";
  1101. /**
  1102. * Determines whether the payload is an error thrown by Axios
  1103. *
  1104. * @param {*} payload The value to test
  1105. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1106. */
  1107. module.exports = function isAxiosError(payload) {
  1108. return (typeof payload === 'object') && (payload.isAxiosError === true);
  1109. };
  1110. /***/ }),
  1111. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js":
  1112. /*!*******************************************************************************************!*\
  1113. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  1114. \*******************************************************************************************/
  1115. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1116. "use strict";
  1117. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1118. module.exports = (
  1119. utils.isStandardBrowserEnv() ?
  1120. // Standard browser envs have full support of the APIs needed to test
  1121. // whether the request URL is of the same origin as current location.
  1122. (function standardBrowserEnv() {
  1123. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1124. var urlParsingNode = document.createElement('a');
  1125. var originURL;
  1126. /**
  1127. * Parse a URL to discover it's components
  1128. *
  1129. * @param {String} url The URL to be parsed
  1130. * @returns {Object}
  1131. */
  1132. function resolveURL(url) {
  1133. var href = url;
  1134. if (msie) {
  1135. // IE needs attribute set twice to normalize properties
  1136. urlParsingNode.setAttribute('href', href);
  1137. href = urlParsingNode.href;
  1138. }
  1139. urlParsingNode.setAttribute('href', href);
  1140. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1141. return {
  1142. href: urlParsingNode.href,
  1143. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1144. host: urlParsingNode.host,
  1145. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1146. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1147. hostname: urlParsingNode.hostname,
  1148. port: urlParsingNode.port,
  1149. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1150. urlParsingNode.pathname :
  1151. '/' + urlParsingNode.pathname
  1152. };
  1153. }
  1154. originURL = resolveURL(window.location.href);
  1155. /**
  1156. * Determine if a URL shares the same origin as the current location
  1157. *
  1158. * @param {String} requestURL The URL to test
  1159. * @returns {boolean} True if URL shares the same origin, otherwise false
  1160. */
  1161. return function isURLSameOrigin(requestURL) {
  1162. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1163. return (parsed.protocol === originURL.protocol &&
  1164. parsed.host === originURL.host);
  1165. };
  1166. })() :
  1167. // Non standard browser envs (web workers, react-native) lack needed support.
  1168. (function nonStandardBrowserEnv() {
  1169. return function isURLSameOrigin() {
  1170. return true;
  1171. };
  1172. })()
  1173. );
  1174. /***/ }),
  1175. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js":
  1176. /*!***********************************************************************************************!*\
  1177. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
  1178. \***********************************************************************************************/
  1179. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1180. "use strict";
  1181. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1182. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1183. utils.forEach(headers, function processHeader(value, name) {
  1184. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1185. headers[normalizedName] = value;
  1186. delete headers[name];
  1187. }
  1188. });
  1189. };
  1190. /***/ }),
  1191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js":
  1192. /*!****************************************************************************************!*\
  1193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js ***!
  1194. \****************************************************************************************/
  1195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1196. "use strict";
  1197. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1198. // Headers whose duplicates are ignored by node
  1199. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1200. var ignoreDuplicateOf = [
  1201. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1202. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1203. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1204. 'referer', 'retry-after', 'user-agent'
  1205. ];
  1206. /**
  1207. * Parse headers into an object
  1208. *
  1209. * ```
  1210. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1211. * Content-Type: application/json
  1212. * Connection: keep-alive
  1213. * Transfer-Encoding: chunked
  1214. * ```
  1215. *
  1216. * @param {String} headers Headers needing to be parsed
  1217. * @returns {Object} Headers parsed into an object
  1218. */
  1219. module.exports = function parseHeaders(headers) {
  1220. var parsed = {};
  1221. var key;
  1222. var val;
  1223. var i;
  1224. if (!headers) { return parsed; }
  1225. utils.forEach(headers.split('\n'), function parser(line) {
  1226. i = line.indexOf(':');
  1227. key = utils.trim(line.substr(0, i)).toLowerCase();
  1228. val = utils.trim(line.substr(i + 1));
  1229. if (key) {
  1230. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1231. return;
  1232. }
  1233. if (key === 'set-cookie') {
  1234. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1235. } else {
  1236. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1237. }
  1238. }
  1239. });
  1240. return parsed;
  1241. };
  1242. /***/ }),
  1243. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js":
  1244. /*!**********************************************************************************!*\
  1245. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js ***!
  1246. \**********************************************************************************/
  1247. /***/ ((module) => {
  1248. "use strict";
  1249. /**
  1250. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1251. *
  1252. * Common use case would be to use `Function.prototype.apply`.
  1253. *
  1254. * ```js
  1255. * function f(x, y, z) {}
  1256. * var args = [1, 2, 3];
  1257. * f.apply(null, args);
  1258. * ```
  1259. *
  1260. * With `spread` this example can be re-written.
  1261. *
  1262. * ```js
  1263. * spread(function(x, y, z) {})([1, 2, 3]);
  1264. * ```
  1265. *
  1266. * @param {Function} callback
  1267. * @returns {Function}
  1268. */
  1269. module.exports = function spread(callback) {
  1270. return function wrap(arr) {
  1271. return callback.apply(null, arr);
  1272. };
  1273. };
  1274. /***/ }),
  1275. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js":
  1276. /*!*************************************************************************************!*\
  1277. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js ***!
  1278. \*************************************************************************************/
  1279. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1280. "use strict";
  1281. var pkg = __webpack_require__(/*! ./../../package.json */ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json");
  1282. var validators = {};
  1283. // eslint-disable-next-line func-names
  1284. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  1285. validators[type] = function validator(thing) {
  1286. return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  1287. };
  1288. });
  1289. var deprecatedWarnings = {};
  1290. var currentVerArr = pkg.version.split('.');
  1291. /**
  1292. * Compare package versions
  1293. * @param {string} version
  1294. * @param {string?} thanVersion
  1295. * @returns {boolean}
  1296. */
  1297. function isOlderVersion(version, thanVersion) {
  1298. var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
  1299. var destVer = version.split('.');
  1300. for (var i = 0; i < 3; i++) {
  1301. if (pkgVersionArr[i] > destVer[i]) {
  1302. return true;
  1303. } else if (pkgVersionArr[i] < destVer[i]) {
  1304. return false;
  1305. }
  1306. }
  1307. return false;
  1308. }
  1309. /**
  1310. * Transitional option validator
  1311. * @param {function|boolean?} validator
  1312. * @param {string?} version
  1313. * @param {string} message
  1314. * @returns {function}
  1315. */
  1316. validators.transitional = function transitional(validator, version, message) {
  1317. var isDeprecated = version && isOlderVersion(version);
  1318. function formatMessage(opt, desc) {
  1319. return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  1320. }
  1321. // eslint-disable-next-line func-names
  1322. return function(value, opt, opts) {
  1323. if (validator === false) {
  1324. throw new Error(formatMessage(opt, ' has been removed in ' + version));
  1325. }
  1326. if (isDeprecated && !deprecatedWarnings[opt]) {
  1327. deprecatedWarnings[opt] = true;
  1328. // eslint-disable-next-line no-console
  1329. console.warn(
  1330. formatMessage(
  1331. opt,
  1332. ' has been deprecated since v' + version + ' and will be removed in the near future'
  1333. )
  1334. );
  1335. }
  1336. return validator ? validator(value, opt, opts) : true;
  1337. };
  1338. };
  1339. /**
  1340. * Assert object's properties type
  1341. * @param {object} options
  1342. * @param {object} schema
  1343. * @param {boolean?} allowUnknown
  1344. */
  1345. function assertOptions(options, schema, allowUnknown) {
  1346. if (typeof options !== 'object') {
  1347. throw new TypeError('options must be an object');
  1348. }
  1349. var keys = Object.keys(options);
  1350. var i = keys.length;
  1351. while (i-- > 0) {
  1352. var opt = keys[i];
  1353. var validator = schema[opt];
  1354. if (validator) {
  1355. var value = options[opt];
  1356. var result = value === undefined || validator(value, opt, options);
  1357. if (result !== true) {
  1358. throw new TypeError('option ' + opt + ' must be ' + result);
  1359. }
  1360. continue;
  1361. }
  1362. if (allowUnknown !== true) {
  1363. throw Error('Unknown option ' + opt);
  1364. }
  1365. }
  1366. }
  1367. module.exports = {
  1368. isOlderVersion: isOlderVersion,
  1369. assertOptions: assertOptions,
  1370. validators: validators
  1371. };
  1372. /***/ }),
  1373. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js":
  1374. /*!*************************************************************************!*\
  1375. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js ***!
  1376. \*************************************************************************/
  1377. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1378. "use strict";
  1379. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  1380. // utils is a library of generic helper functions non-specific to axios
  1381. var toString = Object.prototype.toString;
  1382. /**
  1383. * Determine if a value is an Array
  1384. *
  1385. * @param {Object} val The value to test
  1386. * @returns {boolean} True if value is an Array, otherwise false
  1387. */
  1388. function isArray(val) {
  1389. return toString.call(val) === '[object Array]';
  1390. }
  1391. /**
  1392. * Determine if a value is undefined
  1393. *
  1394. * @param {Object} val The value to test
  1395. * @returns {boolean} True if the value is undefined, otherwise false
  1396. */
  1397. function isUndefined(val) {
  1398. return typeof val === 'undefined';
  1399. }
  1400. /**
  1401. * Determine if a value is a Buffer
  1402. *
  1403. * @param {Object} val The value to test
  1404. * @returns {boolean} True if value is a Buffer, otherwise false
  1405. */
  1406. function isBuffer(val) {
  1407. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1408. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1409. }
  1410. /**
  1411. * Determine if a value is an ArrayBuffer
  1412. *
  1413. * @param {Object} val The value to test
  1414. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1415. */
  1416. function isArrayBuffer(val) {
  1417. return toString.call(val) === '[object ArrayBuffer]';
  1418. }
  1419. /**
  1420. * Determine if a value is a FormData
  1421. *
  1422. * @param {Object} val The value to test
  1423. * @returns {boolean} True if value is an FormData, otherwise false
  1424. */
  1425. function isFormData(val) {
  1426. return (typeof FormData !== 'undefined') && (val instanceof FormData);
  1427. }
  1428. /**
  1429. * Determine if a value is a view on an ArrayBuffer
  1430. *
  1431. * @param {Object} val The value to test
  1432. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1433. */
  1434. function isArrayBufferView(val) {
  1435. var result;
  1436. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1437. result = ArrayBuffer.isView(val);
  1438. } else {
  1439. result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  1440. }
  1441. return result;
  1442. }
  1443. /**
  1444. * Determine if a value is a String
  1445. *
  1446. * @param {Object} val The value to test
  1447. * @returns {boolean} True if value is a String, otherwise false
  1448. */
  1449. function isString(val) {
  1450. return typeof val === 'string';
  1451. }
  1452. /**
  1453. * Determine if a value is a Number
  1454. *
  1455. * @param {Object} val The value to test
  1456. * @returns {boolean} True if value is a Number, otherwise false
  1457. */
  1458. function isNumber(val) {
  1459. return typeof val === 'number';
  1460. }
  1461. /**
  1462. * Determine if a value is an Object
  1463. *
  1464. * @param {Object} val The value to test
  1465. * @returns {boolean} True if value is an Object, otherwise false
  1466. */
  1467. function isObject(val) {
  1468. return val !== null && typeof val === 'object';
  1469. }
  1470. /**
  1471. * Determine if a value is a plain Object
  1472. *
  1473. * @param {Object} val The value to test
  1474. * @return {boolean} True if value is a plain Object, otherwise false
  1475. */
  1476. function isPlainObject(val) {
  1477. if (toString.call(val) !== '[object Object]') {
  1478. return false;
  1479. }
  1480. var prototype = Object.getPrototypeOf(val);
  1481. return prototype === null || prototype === Object.prototype;
  1482. }
  1483. /**
  1484. * Determine if a value is a Date
  1485. *
  1486. * @param {Object} val The value to test
  1487. * @returns {boolean} True if value is a Date, otherwise false
  1488. */
  1489. function isDate(val) {
  1490. return toString.call(val) === '[object Date]';
  1491. }
  1492. /**
  1493. * Determine if a value is a File
  1494. *
  1495. * @param {Object} val The value to test
  1496. * @returns {boolean} True if value is a File, otherwise false
  1497. */
  1498. function isFile(val) {
  1499. return toString.call(val) === '[object File]';
  1500. }
  1501. /**
  1502. * Determine if a value is a Blob
  1503. *
  1504. * @param {Object} val The value to test
  1505. * @returns {boolean} True if value is a Blob, otherwise false
  1506. */
  1507. function isBlob(val) {
  1508. return toString.call(val) === '[object Blob]';
  1509. }
  1510. /**
  1511. * Determine if a value is a Function
  1512. *
  1513. * @param {Object} val The value to test
  1514. * @returns {boolean} True if value is a Function, otherwise false
  1515. */
  1516. function isFunction(val) {
  1517. return toString.call(val) === '[object Function]';
  1518. }
  1519. /**
  1520. * Determine if a value is a Stream
  1521. *
  1522. * @param {Object} val The value to test
  1523. * @returns {boolean} True if value is a Stream, otherwise false
  1524. */
  1525. function isStream(val) {
  1526. return isObject(val) && isFunction(val.pipe);
  1527. }
  1528. /**
  1529. * Determine if a value is a URLSearchParams object
  1530. *
  1531. * @param {Object} val The value to test
  1532. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  1533. */
  1534. function isURLSearchParams(val) {
  1535. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  1536. }
  1537. /**
  1538. * Trim excess whitespace off the beginning and end of a string
  1539. *
  1540. * @param {String} str The String to trim
  1541. * @returns {String} The String freed of excess whitespace
  1542. */
  1543. function trim(str) {
  1544. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
  1545. }
  1546. /**
  1547. * Determine if we're running in a standard browser environment
  1548. *
  1549. * This allows axios to run in a web worker, and react-native.
  1550. * Both environments support XMLHttpRequest, but not fully standard globals.
  1551. *
  1552. * web workers:
  1553. * typeof window -> undefined
  1554. * typeof document -> undefined
  1555. *
  1556. * react-native:
  1557. * navigator.product -> 'ReactNative'
  1558. * nativescript
  1559. * navigator.product -> 'NativeScript' or 'NS'
  1560. */
  1561. function isStandardBrowserEnv() {
  1562. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  1563. navigator.product === 'NativeScript' ||
  1564. navigator.product === 'NS')) {
  1565. return false;
  1566. }
  1567. return (
  1568. typeof window !== 'undefined' &&
  1569. typeof document !== 'undefined'
  1570. );
  1571. }
  1572. /**
  1573. * Iterate over an Array or an Object invoking a function for each item.
  1574. *
  1575. * If `obj` is an Array callback will be called passing
  1576. * the value, index, and complete array for each item.
  1577. *
  1578. * If 'obj' is an Object callback will be called passing
  1579. * the value, key, and complete object for each property.
  1580. *
  1581. * @param {Object|Array} obj The object to iterate
  1582. * @param {Function} fn The callback to invoke for each item
  1583. */
  1584. function forEach(obj, fn) {
  1585. // Don't bother if no value provided
  1586. if (obj === null || typeof obj === 'undefined') {
  1587. return;
  1588. }
  1589. // Force an array if not already something iterable
  1590. if (typeof obj !== 'object') {
  1591. /*eslint no-param-reassign:0*/
  1592. obj = [obj];
  1593. }
  1594. if (isArray(obj)) {
  1595. // Iterate over array values
  1596. for (var i = 0, l = obj.length; i < l; i++) {
  1597. fn.call(null, obj[i], i, obj);
  1598. }
  1599. } else {
  1600. // Iterate over object keys
  1601. for (var key in obj) {
  1602. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1603. fn.call(null, obj[key], key, obj);
  1604. }
  1605. }
  1606. }
  1607. }
  1608. /**
  1609. * Accepts varargs expecting each argument to be an object, then
  1610. * immutably merges the properties of each object and returns result.
  1611. *
  1612. * When multiple objects contain the same key the later object in
  1613. * the arguments list will take precedence.
  1614. *
  1615. * Example:
  1616. *
  1617. * ```js
  1618. * var result = merge({foo: 123}, {foo: 456});
  1619. * console.log(result.foo); // outputs 456
  1620. * ```
  1621. *
  1622. * @param {Object} obj1 Object to merge
  1623. * @returns {Object} Result of all merge properties
  1624. */
  1625. function merge(/* obj1, obj2, obj3, ... */) {
  1626. var result = {};
  1627. function assignValue(val, key) {
  1628. if (isPlainObject(result[key]) && isPlainObject(val)) {
  1629. result[key] = merge(result[key], val);
  1630. } else if (isPlainObject(val)) {
  1631. result[key] = merge({}, val);
  1632. } else if (isArray(val)) {
  1633. result[key] = val.slice();
  1634. } else {
  1635. result[key] = val;
  1636. }
  1637. }
  1638. for (var i = 0, l = arguments.length; i < l; i++) {
  1639. forEach(arguments[i], assignValue);
  1640. }
  1641. return result;
  1642. }
  1643. /**
  1644. * Extends object a by mutably adding to it the properties of object b.
  1645. *
  1646. * @param {Object} a The object to be extended
  1647. * @param {Object} b The object to copy properties from
  1648. * @param {Object} thisArg The object to bind function to
  1649. * @return {Object} The resulting value of object a
  1650. */
  1651. function extend(a, b, thisArg) {
  1652. forEach(b, function assignValue(val, key) {
  1653. if (thisArg && typeof val === 'function') {
  1654. a[key] = bind(val, thisArg);
  1655. } else {
  1656. a[key] = val;
  1657. }
  1658. });
  1659. return a;
  1660. }
  1661. /**
  1662. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  1663. *
  1664. * @param {string} content with BOM
  1665. * @return {string} content value without BOM
  1666. */
  1667. function stripBOM(content) {
  1668. if (content.charCodeAt(0) === 0xFEFF) {
  1669. content = content.slice(1);
  1670. }
  1671. return content;
  1672. }
  1673. module.exports = {
  1674. isArray: isArray,
  1675. isArrayBuffer: isArrayBuffer,
  1676. isBuffer: isBuffer,
  1677. isFormData: isFormData,
  1678. isArrayBufferView: isArrayBufferView,
  1679. isString: isString,
  1680. isNumber: isNumber,
  1681. isObject: isObject,
  1682. isPlainObject: isPlainObject,
  1683. isUndefined: isUndefined,
  1684. isDate: isDate,
  1685. isFile: isFile,
  1686. isBlob: isBlob,
  1687. isFunction: isFunction,
  1688. isStream: isStream,
  1689. isURLSearchParams: isURLSearchParams,
  1690. isStandardBrowserEnv: isStandardBrowserEnv,
  1691. forEach: forEach,
  1692. merge: merge,
  1693. extend: extend,
  1694. trim: trim,
  1695. stripBOM: stripBOM
  1696. };
  1697. /***/ }),
  1698. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js":
  1699. /*!************************************************************************!*\
  1700. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js ***!
  1701. \************************************************************************/
  1702. /***/ ((module) => {
  1703. "use strict";
  1704. var replace = String.prototype.replace;
  1705. var percentTwenties = /%20/g;
  1706. var Format = {
  1707. RFC1738: 'RFC1738',
  1708. RFC3986: 'RFC3986'
  1709. };
  1710. module.exports = {
  1711. 'default': Format.RFC3986,
  1712. formatters: {
  1713. RFC1738: function (value) {
  1714. return replace.call(value, percentTwenties, '+');
  1715. },
  1716. RFC3986: function (value) {
  1717. return String(value);
  1718. }
  1719. },
  1720. RFC1738: Format.RFC1738,
  1721. RFC3986: Format.RFC3986
  1722. };
  1723. /***/ }),
  1724. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js":
  1725. /*!**********************************************************************!*\
  1726. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js ***!
  1727. \**********************************************************************/
  1728. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1729. "use strict";
  1730. var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js");
  1731. var parse = __webpack_require__(/*! ./parse */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js");
  1732. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1733. module.exports = {
  1734. formats: formats,
  1735. parse: parse,
  1736. stringify: stringify
  1737. };
  1738. /***/ }),
  1739. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js":
  1740. /*!**********************************************************************!*\
  1741. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js ***!
  1742. \**********************************************************************/
  1743. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1744. "use strict";
  1745. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1746. var has = Object.prototype.hasOwnProperty;
  1747. var isArray = Array.isArray;
  1748. var defaults = {
  1749. allowDots: false,
  1750. allowPrototypes: false,
  1751. allowSparse: false,
  1752. arrayLimit: 20,
  1753. charset: 'utf-8',
  1754. charsetSentinel: false,
  1755. comma: false,
  1756. decoder: utils.decode,
  1757. delimiter: '&',
  1758. depth: 5,
  1759. ignoreQueryPrefix: false,
  1760. interpretNumericEntities: false,
  1761. parameterLimit: 1000,
  1762. parseArrays: true,
  1763. plainObjects: false,
  1764. strictNullHandling: false
  1765. };
  1766. var interpretNumericEntities = function (str) {
  1767. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  1768. return String.fromCharCode(parseInt(numberStr, 10));
  1769. });
  1770. };
  1771. var parseArrayValue = function (val, options) {
  1772. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  1773. return val.split(',');
  1774. }
  1775. return val;
  1776. };
  1777. // This is what browsers will submit when the ✓ character occurs in an
  1778. // application/x-www-form-urlencoded body and the encoding of the page containing
  1779. // the form is iso-8859-1, or when the submitted form has an accept-charset
  1780. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  1781. // the ✓ character, such as us-ascii.
  1782. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  1783. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  1784. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  1785. var parseValues = function parseQueryStringValues(str, options) {
  1786. var obj = {};
  1787. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  1788. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  1789. var parts = cleanStr.split(options.delimiter, limit);
  1790. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  1791. var i;
  1792. var charset = options.charset;
  1793. if (options.charsetSentinel) {
  1794. for (i = 0; i < parts.length; ++i) {
  1795. if (parts[i].indexOf('utf8=') === 0) {
  1796. if (parts[i] === charsetSentinel) {
  1797. charset = 'utf-8';
  1798. } else if (parts[i] === isoSentinel) {
  1799. charset = 'iso-8859-1';
  1800. }
  1801. skipIndex = i;
  1802. i = parts.length; // The eslint settings do not allow break;
  1803. }
  1804. }
  1805. }
  1806. for (i = 0; i < parts.length; ++i) {
  1807. if (i === skipIndex) {
  1808. continue;
  1809. }
  1810. var part = parts[i];
  1811. var bracketEqualsPos = part.indexOf(']=');
  1812. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  1813. var key, val;
  1814. if (pos === -1) {
  1815. key = options.decoder(part, defaults.decoder, charset, 'key');
  1816. val = options.strictNullHandling ? null : '';
  1817. } else {
  1818. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  1819. val = utils.maybeMap(
  1820. parseArrayValue(part.slice(pos + 1), options),
  1821. function (encodedVal) {
  1822. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  1823. }
  1824. );
  1825. }
  1826. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  1827. val = interpretNumericEntities(val);
  1828. }
  1829. if (part.indexOf('[]=') > -1) {
  1830. val = isArray(val) ? [val] : val;
  1831. }
  1832. if (has.call(obj, key)) {
  1833. obj[key] = utils.combine(obj[key], val);
  1834. } else {
  1835. obj[key] = val;
  1836. }
  1837. }
  1838. return obj;
  1839. };
  1840. var parseObject = function (chain, val, options, valuesParsed) {
  1841. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  1842. for (var i = chain.length - 1; i >= 0; --i) {
  1843. var obj;
  1844. var root = chain[i];
  1845. if (root === '[]' && options.parseArrays) {
  1846. obj = [].concat(leaf);
  1847. } else {
  1848. obj = options.plainObjects ? Object.create(null) : {};
  1849. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  1850. var index = parseInt(cleanRoot, 10);
  1851. if (!options.parseArrays && cleanRoot === '') {
  1852. obj = { 0: leaf };
  1853. } else if (
  1854. !isNaN(index)
  1855. && root !== cleanRoot
  1856. && String(index) === cleanRoot
  1857. && index >= 0
  1858. && (options.parseArrays && index <= options.arrayLimit)
  1859. ) {
  1860. obj = [];
  1861. obj[index] = leaf;
  1862. } else if (cleanRoot !== '__proto__') {
  1863. obj[cleanRoot] = leaf;
  1864. }
  1865. }
  1866. leaf = obj;
  1867. }
  1868. return leaf;
  1869. };
  1870. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  1871. if (!givenKey) {
  1872. return;
  1873. }
  1874. // Transform dot notation to bracket notation
  1875. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  1876. // The regex chunks
  1877. var brackets = /(\[[^[\]]*])/;
  1878. var child = /(\[[^[\]]*])/g;
  1879. // Get the parent
  1880. var segment = options.depth > 0 && brackets.exec(key);
  1881. var parent = segment ? key.slice(0, segment.index) : key;
  1882. // Stash the parent if it exists
  1883. var keys = [];
  1884. if (parent) {
  1885. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  1886. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  1887. if (!options.allowPrototypes) {
  1888. return;
  1889. }
  1890. }
  1891. keys.push(parent);
  1892. }
  1893. // Loop through children appending to the array until we hit depth
  1894. var i = 0;
  1895. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  1896. i += 1;
  1897. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  1898. if (!options.allowPrototypes) {
  1899. return;
  1900. }
  1901. }
  1902. keys.push(segment[1]);
  1903. }
  1904. // If there's a remainder, just add whatever is left
  1905. if (segment) {
  1906. keys.push('[' + key.slice(segment.index) + ']');
  1907. }
  1908. return parseObject(keys, val, options, valuesParsed);
  1909. };
  1910. var normalizeParseOptions = function normalizeParseOptions(opts) {
  1911. if (!opts) {
  1912. return defaults;
  1913. }
  1914. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  1915. throw new TypeError('Decoder has to be a function.');
  1916. }
  1917. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  1918. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  1919. }
  1920. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  1921. return {
  1922. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  1923. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  1924. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  1925. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  1926. charset: charset,
  1927. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  1928. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  1929. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  1930. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  1931. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  1932. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  1933. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  1934. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  1935. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  1936. parseArrays: opts.parseArrays !== false,
  1937. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  1938. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  1939. };
  1940. };
  1941. module.exports = function (str, opts) {
  1942. var options = normalizeParseOptions(opts);
  1943. if (str === '' || str === null || typeof str === 'undefined') {
  1944. return options.plainObjects ? Object.create(null) : {};
  1945. }
  1946. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  1947. var obj = options.plainObjects ? Object.create(null) : {};
  1948. // Iterate over the keys and setup the new object
  1949. var keys = Object.keys(tempObj);
  1950. for (var i = 0; i < keys.length; ++i) {
  1951. var key = keys[i];
  1952. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  1953. obj = utils.merge(obj, newObj, options);
  1954. }
  1955. if (options.allowSparse === true) {
  1956. return obj;
  1957. }
  1958. return utils.compact(obj);
  1959. };
  1960. /***/ }),
  1961. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js":
  1962. /*!**************************************************************************!*\
  1963. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js ***!
  1964. \**************************************************************************/
  1965. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1966. "use strict";
  1967. var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/side-channel/index.js");
  1968. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1969. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1970. var has = Object.prototype.hasOwnProperty;
  1971. var arrayPrefixGenerators = {
  1972. brackets: function brackets(prefix) {
  1973. return prefix + '[]';
  1974. },
  1975. comma: 'comma',
  1976. indices: function indices(prefix, key) {
  1977. return prefix + '[' + key + ']';
  1978. },
  1979. repeat: function repeat(prefix) {
  1980. return prefix;
  1981. }
  1982. };
  1983. var isArray = Array.isArray;
  1984. var split = String.prototype.split;
  1985. var push = Array.prototype.push;
  1986. var pushToArray = function (arr, valueOrArray) {
  1987. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  1988. };
  1989. var toISO = Date.prototype.toISOString;
  1990. var defaultFormat = formats['default'];
  1991. var defaults = {
  1992. addQueryPrefix: false,
  1993. allowDots: false,
  1994. charset: 'utf-8',
  1995. charsetSentinel: false,
  1996. delimiter: '&',
  1997. encode: true,
  1998. encoder: utils.encode,
  1999. encodeValuesOnly: false,
  2000. format: defaultFormat,
  2001. formatter: formats.formatters[defaultFormat],
  2002. // deprecated
  2003. indices: false,
  2004. serializeDate: function serializeDate(date) {
  2005. return toISO.call(date);
  2006. },
  2007. skipNulls: false,
  2008. strictNullHandling: false
  2009. };
  2010. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  2011. return typeof v === 'string'
  2012. || typeof v === 'number'
  2013. || typeof v === 'boolean'
  2014. || typeof v === 'symbol'
  2015. || typeof v === 'bigint';
  2016. };
  2017. var sentinel = {};
  2018. var stringify = function stringify(
  2019. object,
  2020. prefix,
  2021. generateArrayPrefix,
  2022. strictNullHandling,
  2023. skipNulls,
  2024. encoder,
  2025. filter,
  2026. sort,
  2027. allowDots,
  2028. serializeDate,
  2029. format,
  2030. formatter,
  2031. encodeValuesOnly,
  2032. charset,
  2033. sideChannel
  2034. ) {
  2035. var obj = object;
  2036. var tmpSc = sideChannel;
  2037. var step = 0;
  2038. var findFlag = false;
  2039. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  2040. // Where object last appeared in the ref tree
  2041. var pos = tmpSc.get(object);
  2042. step += 1;
  2043. if (typeof pos !== 'undefined') {
  2044. if (pos === step) {
  2045. throw new RangeError('Cyclic object value');
  2046. } else {
  2047. findFlag = true; // Break while
  2048. }
  2049. }
  2050. if (typeof tmpSc.get(sentinel) === 'undefined') {
  2051. step = 0;
  2052. }
  2053. }
  2054. if (typeof filter === 'function') {
  2055. obj = filter(prefix, obj);
  2056. } else if (obj instanceof Date) {
  2057. obj = serializeDate(obj);
  2058. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2059. obj = utils.maybeMap(obj, function (value) {
  2060. if (value instanceof Date) {
  2061. return serializeDate(value);
  2062. }
  2063. return value;
  2064. });
  2065. }
  2066. if (obj === null) {
  2067. if (strictNullHandling) {
  2068. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  2069. }
  2070. obj = '';
  2071. }
  2072. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  2073. if (encoder) {
  2074. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  2075. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  2076. var valuesArray = split.call(String(obj), ',');
  2077. var valuesJoined = '';
  2078. for (var i = 0; i < valuesArray.length; ++i) {
  2079. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  2080. }
  2081. return [formatter(keyValue) + '=' + valuesJoined];
  2082. }
  2083. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  2084. }
  2085. return [formatter(prefix) + '=' + formatter(String(obj))];
  2086. }
  2087. var values = [];
  2088. if (typeof obj === 'undefined') {
  2089. return values;
  2090. }
  2091. var objKeys;
  2092. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2093. // we need to join elements in
  2094. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  2095. } else if (isArray(filter)) {
  2096. objKeys = filter;
  2097. } else {
  2098. var keys = Object.keys(obj);
  2099. objKeys = sort ? keys.sort(sort) : keys;
  2100. }
  2101. for (var j = 0; j < objKeys.length; ++j) {
  2102. var key = objKeys[j];
  2103. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  2104. if (skipNulls && value === null) {
  2105. continue;
  2106. }
  2107. var keyPrefix = isArray(obj)
  2108. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
  2109. : prefix + (allowDots ? '.' + key : '[' + key + ']');
  2110. sideChannel.set(object, step);
  2111. var valueSideChannel = getSideChannel();
  2112. valueSideChannel.set(sentinel, sideChannel);
  2113. pushToArray(values, stringify(
  2114. value,
  2115. keyPrefix,
  2116. generateArrayPrefix,
  2117. strictNullHandling,
  2118. skipNulls,
  2119. encoder,
  2120. filter,
  2121. sort,
  2122. allowDots,
  2123. serializeDate,
  2124. format,
  2125. formatter,
  2126. encodeValuesOnly,
  2127. charset,
  2128. valueSideChannel
  2129. ));
  2130. }
  2131. return values;
  2132. };
  2133. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  2134. if (!opts) {
  2135. return defaults;
  2136. }
  2137. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  2138. throw new TypeError('Encoder has to be a function.');
  2139. }
  2140. var charset = opts.charset || defaults.charset;
  2141. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  2142. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  2143. }
  2144. var format = formats['default'];
  2145. if (typeof opts.format !== 'undefined') {
  2146. if (!has.call(formats.formatters, opts.format)) {
  2147. throw new TypeError('Unknown format option provided.');
  2148. }
  2149. format = opts.format;
  2150. }
  2151. var formatter = formats.formatters[format];
  2152. var filter = defaults.filter;
  2153. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  2154. filter = opts.filter;
  2155. }
  2156. return {
  2157. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  2158. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  2159. charset: charset,
  2160. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  2161. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  2162. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  2163. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  2164. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  2165. filter: filter,
  2166. format: format,
  2167. formatter: formatter,
  2168. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  2169. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  2170. sort: typeof opts.sort === 'function' ? opts.sort : null,
  2171. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  2172. };
  2173. };
  2174. module.exports = function (object, opts) {
  2175. var obj = object;
  2176. var options = normalizeStringifyOptions(opts);
  2177. var objKeys;
  2178. var filter;
  2179. if (typeof options.filter === 'function') {
  2180. filter = options.filter;
  2181. obj = filter('', obj);
  2182. } else if (isArray(options.filter)) {
  2183. filter = options.filter;
  2184. objKeys = filter;
  2185. }
  2186. var keys = [];
  2187. if (typeof obj !== 'object' || obj === null) {
  2188. return '';
  2189. }
  2190. var arrayFormat;
  2191. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  2192. arrayFormat = opts.arrayFormat;
  2193. } else if (opts && 'indices' in opts) {
  2194. arrayFormat = opts.indices ? 'indices' : 'repeat';
  2195. } else {
  2196. arrayFormat = 'indices';
  2197. }
  2198. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  2199. if (!objKeys) {
  2200. objKeys = Object.keys(obj);
  2201. }
  2202. if (options.sort) {
  2203. objKeys.sort(options.sort);
  2204. }
  2205. var sideChannel = getSideChannel();
  2206. for (var i = 0; i < objKeys.length; ++i) {
  2207. var key = objKeys[i];
  2208. if (options.skipNulls && obj[key] === null) {
  2209. continue;
  2210. }
  2211. pushToArray(keys, stringify(
  2212. obj[key],
  2213. key,
  2214. generateArrayPrefix,
  2215. options.strictNullHandling,
  2216. options.skipNulls,
  2217. options.encode ? options.encoder : null,
  2218. options.filter,
  2219. options.sort,
  2220. options.allowDots,
  2221. options.serializeDate,
  2222. options.format,
  2223. options.formatter,
  2224. options.encodeValuesOnly,
  2225. options.charset,
  2226. sideChannel
  2227. ));
  2228. }
  2229. var joined = keys.join(options.delimiter);
  2230. var prefix = options.addQueryPrefix === true ? '?' : '';
  2231. if (options.charsetSentinel) {
  2232. if (options.charset === 'iso-8859-1') {
  2233. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  2234. prefix += 'utf8=%26%2310003%3B&';
  2235. } else {
  2236. // encodeURIComponent('✓')
  2237. prefix += 'utf8=%E2%9C%93&';
  2238. }
  2239. }
  2240. return joined.length > 0 ? prefix + joined : '';
  2241. };
  2242. /***/ }),
  2243. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js":
  2244. /*!**********************************************************************!*\
  2245. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js ***!
  2246. \**********************************************************************/
  2247. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  2248. "use strict";
  2249. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  2250. var has = Object.prototype.hasOwnProperty;
  2251. var isArray = Array.isArray;
  2252. var hexTable = (function () {
  2253. var array = [];
  2254. for (var i = 0; i < 256; ++i) {
  2255. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  2256. }
  2257. return array;
  2258. }());
  2259. var compactQueue = function compactQueue(queue) {
  2260. while (queue.length > 1) {
  2261. var item = queue.pop();
  2262. var obj = item.obj[item.prop];
  2263. if (isArray(obj)) {
  2264. var compacted = [];
  2265. for (var j = 0; j < obj.length; ++j) {
  2266. if (typeof obj[j] !== 'undefined') {
  2267. compacted.push(obj[j]);
  2268. }
  2269. }
  2270. item.obj[item.prop] = compacted;
  2271. }
  2272. }
  2273. };
  2274. var arrayToObject = function arrayToObject(source, options) {
  2275. var obj = options && options.plainObjects ? Object.create(null) : {};
  2276. for (var i = 0; i < source.length; ++i) {
  2277. if (typeof source[i] !== 'undefined') {
  2278. obj[i] = source[i];
  2279. }
  2280. }
  2281. return obj;
  2282. };
  2283. var merge = function merge(target, source, options) {
  2284. /* eslint no-param-reassign: 0 */
  2285. if (!source) {
  2286. return target;
  2287. }
  2288. if (typeof source !== 'object') {
  2289. if (isArray(target)) {
  2290. target.push(source);
  2291. } else if (target && typeof target === 'object') {
  2292. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  2293. target[source] = true;
  2294. }
  2295. } else {
  2296. return [target, source];
  2297. }
  2298. return target;
  2299. }
  2300. if (!target || typeof target !== 'object') {
  2301. return [target].concat(source);
  2302. }
  2303. var mergeTarget = target;
  2304. if (isArray(target) && !isArray(source)) {
  2305. mergeTarget = arrayToObject(target, options);
  2306. }
  2307. if (isArray(target) && isArray(source)) {
  2308. source.forEach(function (item, i) {
  2309. if (has.call(target, i)) {
  2310. var targetItem = target[i];
  2311. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  2312. target[i] = merge(targetItem, item, options);
  2313. } else {
  2314. target.push(item);
  2315. }
  2316. } else {
  2317. target[i] = item;
  2318. }
  2319. });
  2320. return target;
  2321. }
  2322. return Object.keys(source).reduce(function (acc, key) {
  2323. var value = source[key];
  2324. if (has.call(acc, key)) {
  2325. acc[key] = merge(acc[key], value, options);
  2326. } else {
  2327. acc[key] = value;
  2328. }
  2329. return acc;
  2330. }, mergeTarget);
  2331. };
  2332. var assign = function assignSingleSource(target, source) {
  2333. return Object.keys(source).reduce(function (acc, key) {
  2334. acc[key] = source[key];
  2335. return acc;
  2336. }, target);
  2337. };
  2338. var decode = function (str, decoder, charset) {
  2339. var strWithoutPlus = str.replace(/\+/g, ' ');
  2340. if (charset === 'iso-8859-1') {
  2341. // unescape never throws, no try...catch needed:
  2342. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  2343. }
  2344. // utf-8
  2345. try {
  2346. return decodeURIComponent(strWithoutPlus);
  2347. } catch (e) {
  2348. return strWithoutPlus;
  2349. }
  2350. };
  2351. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  2352. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  2353. // It has been adapted here for stricter adherence to RFC 3986
  2354. if (str.length === 0) {
  2355. return str;
  2356. }
  2357. var string = str;
  2358. if (typeof str === 'symbol') {
  2359. string = Symbol.prototype.toString.call(str);
  2360. } else if (typeof str !== 'string') {
  2361. string = String(str);
  2362. }
  2363. if (charset === 'iso-8859-1') {
  2364. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  2365. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  2366. });
  2367. }
  2368. var out = '';
  2369. for (var i = 0; i < string.length; ++i) {
  2370. var c = string.charCodeAt(i);
  2371. if (
  2372. c === 0x2D // -
  2373. || c === 0x2E // .
  2374. || c === 0x5F // _
  2375. || c === 0x7E // ~
  2376. || (c >= 0x30 && c <= 0x39) // 0-9
  2377. || (c >= 0x41 && c <= 0x5A) // a-z
  2378. || (c >= 0x61 && c <= 0x7A) // A-Z
  2379. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  2380. ) {
  2381. out += string.charAt(i);
  2382. continue;
  2383. }
  2384. if (c < 0x80) {
  2385. out = out + hexTable[c];
  2386. continue;
  2387. }
  2388. if (c < 0x800) {
  2389. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  2390. continue;
  2391. }
  2392. if (c < 0xD800 || c >= 0xE000) {
  2393. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  2394. continue;
  2395. }
  2396. i += 1;
  2397. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  2398. /* eslint operator-linebreak: [2, "before"] */
  2399. out += hexTable[0xF0 | (c >> 18)]
  2400. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  2401. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  2402. + hexTable[0x80 | (c & 0x3F)];
  2403. }
  2404. return out;
  2405. };
  2406. var compact = function compact(value) {
  2407. var queue = [{ obj: { o: value }, prop: 'o' }];
  2408. var refs = [];
  2409. for (var i = 0; i < queue.length; ++i) {
  2410. var item = queue[i];
  2411. var obj = item.obj[item.prop];
  2412. var keys = Object.keys(obj);
  2413. for (var j = 0; j < keys.length; ++j) {
  2414. var key = keys[j];
  2415. var val = obj[key];
  2416. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  2417. queue.push({ obj: obj, prop: key });
  2418. refs.push(val);
  2419. }
  2420. }
  2421. }
  2422. compactQueue(queue);
  2423. return value;
  2424. };
  2425. var isRegExp = function isRegExp(obj) {
  2426. return Object.prototype.toString.call(obj) === '[object RegExp]';
  2427. };
  2428. var isBuffer = function isBuffer(obj) {
  2429. if (!obj || typeof obj !== 'object') {
  2430. return false;
  2431. }
  2432. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  2433. };
  2434. var combine = function combine(a, b) {
  2435. return [].concat(a, b);
  2436. };
  2437. var maybeMap = function maybeMap(val, fn) {
  2438. if (isArray(val)) {
  2439. var mapped = [];
  2440. for (var i = 0; i < val.length; i += 1) {
  2441. mapped.push(fn(val[i]));
  2442. }
  2443. return mapped;
  2444. }
  2445. return fn(val);
  2446. };
  2447. module.exports = {
  2448. arrayToObject: arrayToObject,
  2449. assign: assign,
  2450. combine: combine,
  2451. compact: compact,
  2452. decode: decode,
  2453. encode: encode,
  2454. isBuffer: isBuffer,
  2455. isRegExp: isRegExp,
  2456. maybeMap: maybeMap,
  2457. merge: merge
  2458. };
  2459. /***/ }),
  2460. /***/ "./node_modules/@inertiajs/progress/dist/index.js":
  2461. /*!********************************************************!*\
  2462. !*** ./node_modules/@inertiajs/progress/dist/index.js ***!
  2463. \********************************************************/
  2464. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  2465. var n,e=(n=__webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js"))&&"object"==typeof n&&"default"in n?n.default:n,t=null;function r(n){document.addEventListener("inertia:start",o.bind(null,n)),document.addEventListener("inertia:progress",i),document.addEventListener("inertia:finish",s)}function o(n){t=setTimeout(function(){return e.start()},n)}function i(n){e.isStarted()&&n.detail.progress.percentage&&e.set(Math.max(e.status,n.detail.progress.percentage/100*.9))}function s(n){clearTimeout(t),e.isStarted()&&(n.detail.visit.completed?e.done():n.detail.visit.interrupted?e.set(0):n.detail.visit.cancelled&&(e.done(),e.remove()))}exports.InertiaProgress={init:function(n){var t=void 0===n?{}:n,o=t.delay,i=t.color,s=void 0===i?"#29d":i,a=t.includeCSS,p=void 0===a||a,d=t.showSpinner,l=void 0!==d&&d;r(void 0===o?250:o),e.configure({showSpinner:l}),p&&function(n){var e=document.createElement("style");e.type="text/css",e.textContent="\n #nprogress {\n pointer-events: none;\n }\n\n #nprogress .bar {\n background: "+n+";\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n }\n\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px "+n+", 0 0 5px "+n+";\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: "+n+";\n border-left-color: "+n+";\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n\n @-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n }\n @keyframes nprogress-spinner {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n ",document.head.appendChild(e)}(s)}};
  2466. //# sourceMappingURL=index.js.map
  2467. /***/ }),
  2468. /***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js":
  2469. /*!***************************************************************************!*\
  2470. !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***!
  2471. \***************************************************************************/
  2472. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  2473. "use strict";
  2474. __webpack_require__.r(__webpack_exports__);
  2475. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  2476. /* harmony export */ "BASE_TRANSITION": () => (/* binding */ BASE_TRANSITION),
  2477. /* harmony export */ "CAMELIZE": () => (/* binding */ CAMELIZE),
  2478. /* harmony export */ "CAPITALIZE": () => (/* binding */ CAPITALIZE),
  2479. /* harmony export */ "CREATE_BLOCK": () => (/* binding */ CREATE_BLOCK),
  2480. /* harmony export */ "CREATE_COMMENT": () => (/* binding */ CREATE_COMMENT),
  2481. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* binding */ CREATE_ELEMENT_BLOCK),
  2482. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* binding */ CREATE_ELEMENT_VNODE),
  2483. /* harmony export */ "CREATE_SLOTS": () => (/* binding */ CREATE_SLOTS),
  2484. /* harmony export */ "CREATE_STATIC": () => (/* binding */ CREATE_STATIC),
  2485. /* harmony export */ "CREATE_TEXT": () => (/* binding */ CREATE_TEXT),
  2486. /* harmony export */ "CREATE_VNODE": () => (/* binding */ CREATE_VNODE),
  2487. /* harmony export */ "FRAGMENT": () => (/* binding */ FRAGMENT),
  2488. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* binding */ GUARD_REACTIVE_PROPS),
  2489. /* harmony export */ "IS_MEMO_SAME": () => (/* binding */ IS_MEMO_SAME),
  2490. /* harmony export */ "IS_REF": () => (/* binding */ IS_REF),
  2491. /* harmony export */ "KEEP_ALIVE": () => (/* binding */ KEEP_ALIVE),
  2492. /* harmony export */ "MERGE_PROPS": () => (/* binding */ MERGE_PROPS),
  2493. /* harmony export */ "NORMALIZE_CLASS": () => (/* binding */ NORMALIZE_CLASS),
  2494. /* harmony export */ "NORMALIZE_PROPS": () => (/* binding */ NORMALIZE_PROPS),
  2495. /* harmony export */ "NORMALIZE_STYLE": () => (/* binding */ NORMALIZE_STYLE),
  2496. /* harmony export */ "OPEN_BLOCK": () => (/* binding */ OPEN_BLOCK),
  2497. /* harmony export */ "POP_SCOPE_ID": () => (/* binding */ POP_SCOPE_ID),
  2498. /* harmony export */ "PUSH_SCOPE_ID": () => (/* binding */ PUSH_SCOPE_ID),
  2499. /* harmony export */ "RENDER_LIST": () => (/* binding */ RENDER_LIST),
  2500. /* harmony export */ "RENDER_SLOT": () => (/* binding */ RENDER_SLOT),
  2501. /* harmony export */ "RESOLVE_COMPONENT": () => (/* binding */ RESOLVE_COMPONENT),
  2502. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* binding */ RESOLVE_DIRECTIVE),
  2503. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* binding */ RESOLVE_DYNAMIC_COMPONENT),
  2504. /* harmony export */ "RESOLVE_FILTER": () => (/* binding */ RESOLVE_FILTER),
  2505. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* binding */ SET_BLOCK_TRACKING),
  2506. /* harmony export */ "SUSPENSE": () => (/* binding */ SUSPENSE),
  2507. /* harmony export */ "TELEPORT": () => (/* binding */ TELEPORT),
  2508. /* harmony export */ "TO_DISPLAY_STRING": () => (/* binding */ TO_DISPLAY_STRING),
  2509. /* harmony export */ "TO_HANDLERS": () => (/* binding */ TO_HANDLERS),
  2510. /* harmony export */ "TO_HANDLER_KEY": () => (/* binding */ TO_HANDLER_KEY),
  2511. /* harmony export */ "UNREF": () => (/* binding */ UNREF),
  2512. /* harmony export */ "WITH_CTX": () => (/* binding */ WITH_CTX),
  2513. /* harmony export */ "WITH_DIRECTIVES": () => (/* binding */ WITH_DIRECTIVES),
  2514. /* harmony export */ "WITH_MEMO": () => (/* binding */ WITH_MEMO),
  2515. /* harmony export */ "advancePositionWithClone": () => (/* binding */ advancePositionWithClone),
  2516. /* harmony export */ "advancePositionWithMutation": () => (/* binding */ advancePositionWithMutation),
  2517. /* harmony export */ "assert": () => (/* binding */ assert),
  2518. /* harmony export */ "baseCompile": () => (/* binding */ baseCompile),
  2519. /* harmony export */ "baseParse": () => (/* binding */ baseParse),
  2520. /* harmony export */ "buildDirectiveArgs": () => (/* binding */ buildDirectiveArgs),
  2521. /* harmony export */ "buildProps": () => (/* binding */ buildProps),
  2522. /* harmony export */ "buildSlots": () => (/* binding */ buildSlots),
  2523. /* harmony export */ "checkCompatEnabled": () => (/* binding */ checkCompatEnabled),
  2524. /* harmony export */ "createArrayExpression": () => (/* binding */ createArrayExpression),
  2525. /* harmony export */ "createAssignmentExpression": () => (/* binding */ createAssignmentExpression),
  2526. /* harmony export */ "createBlockStatement": () => (/* binding */ createBlockStatement),
  2527. /* harmony export */ "createCacheExpression": () => (/* binding */ createCacheExpression),
  2528. /* harmony export */ "createCallExpression": () => (/* binding */ createCallExpression),
  2529. /* harmony export */ "createCompilerError": () => (/* binding */ createCompilerError),
  2530. /* harmony export */ "createCompoundExpression": () => (/* binding */ createCompoundExpression),
  2531. /* harmony export */ "createConditionalExpression": () => (/* binding */ createConditionalExpression),
  2532. /* harmony export */ "createForLoopParams": () => (/* binding */ createForLoopParams),
  2533. /* harmony export */ "createFunctionExpression": () => (/* binding */ createFunctionExpression),
  2534. /* harmony export */ "createIfStatement": () => (/* binding */ createIfStatement),
  2535. /* harmony export */ "createInterpolation": () => (/* binding */ createInterpolation),
  2536. /* harmony export */ "createObjectExpression": () => (/* binding */ createObjectExpression),
  2537. /* harmony export */ "createObjectProperty": () => (/* binding */ createObjectProperty),
  2538. /* harmony export */ "createReturnStatement": () => (/* binding */ createReturnStatement),
  2539. /* harmony export */ "createRoot": () => (/* binding */ createRoot),
  2540. /* harmony export */ "createSequenceExpression": () => (/* binding */ createSequenceExpression),
  2541. /* harmony export */ "createSimpleExpression": () => (/* binding */ createSimpleExpression),
  2542. /* harmony export */ "createStructuralDirectiveTransform": () => (/* binding */ createStructuralDirectiveTransform),
  2543. /* harmony export */ "createTemplateLiteral": () => (/* binding */ createTemplateLiteral),
  2544. /* harmony export */ "createTransformContext": () => (/* binding */ createTransformContext),
  2545. /* harmony export */ "createVNodeCall": () => (/* binding */ createVNodeCall),
  2546. /* harmony export */ "extractIdentifiers": () => (/* binding */ extractIdentifiers),
  2547. /* harmony export */ "findDir": () => (/* binding */ findDir),
  2548. /* harmony export */ "findProp": () => (/* binding */ findProp),
  2549. /* harmony export */ "generate": () => (/* binding */ generate),
  2550. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  2551. /* harmony export */ "getBaseTransformPreset": () => (/* binding */ getBaseTransformPreset),
  2552. /* harmony export */ "getInnerRange": () => (/* binding */ getInnerRange),
  2553. /* harmony export */ "getMemoedVNodeCall": () => (/* binding */ getMemoedVNodeCall),
  2554. /* harmony export */ "getVNodeBlockHelper": () => (/* binding */ getVNodeBlockHelper),
  2555. /* harmony export */ "getVNodeHelper": () => (/* binding */ getVNodeHelper),
  2556. /* harmony export */ "hasDynamicKeyVBind": () => (/* binding */ hasDynamicKeyVBind),
  2557. /* harmony export */ "hasScopeRef": () => (/* binding */ hasScopeRef),
  2558. /* harmony export */ "helperNameMap": () => (/* binding */ helperNameMap),
  2559. /* harmony export */ "injectProp": () => (/* binding */ injectProp),
  2560. /* harmony export */ "isBuiltInType": () => (/* binding */ isBuiltInType),
  2561. /* harmony export */ "isCoreComponent": () => (/* binding */ isCoreComponent),
  2562. /* harmony export */ "isFunctionType": () => (/* binding */ isFunctionType),
  2563. /* harmony export */ "isInDestructureAssignment": () => (/* binding */ isInDestructureAssignment),
  2564. /* harmony export */ "isMemberExpression": () => (/* binding */ isMemberExpression),
  2565. /* harmony export */ "isMemberExpressionBrowser": () => (/* binding */ isMemberExpressionBrowser),
  2566. /* harmony export */ "isMemberExpressionNode": () => (/* binding */ isMemberExpressionNode),
  2567. /* harmony export */ "isReferencedIdentifier": () => (/* binding */ isReferencedIdentifier),
  2568. /* harmony export */ "isSimpleIdentifier": () => (/* binding */ isSimpleIdentifier),
  2569. /* harmony export */ "isSlotOutlet": () => (/* binding */ isSlotOutlet),
  2570. /* harmony export */ "isStaticArgOf": () => (/* binding */ isStaticArgOf),
  2571. /* harmony export */ "isStaticExp": () => (/* binding */ isStaticExp),
  2572. /* harmony export */ "isStaticProperty": () => (/* binding */ isStaticProperty),
  2573. /* harmony export */ "isStaticPropertyKey": () => (/* binding */ isStaticPropertyKey),
  2574. /* harmony export */ "isTemplateNode": () => (/* binding */ isTemplateNode),
  2575. /* harmony export */ "isText": () => (/* binding */ isText),
  2576. /* harmony export */ "isVSlot": () => (/* binding */ isVSlot),
  2577. /* harmony export */ "locStub": () => (/* binding */ locStub),
  2578. /* harmony export */ "makeBlock": () => (/* binding */ makeBlock),
  2579. /* harmony export */ "noopDirectiveTransform": () => (/* binding */ noopDirectiveTransform),
  2580. /* harmony export */ "processExpression": () => (/* binding */ processExpression),
  2581. /* harmony export */ "processFor": () => (/* binding */ processFor),
  2582. /* harmony export */ "processIf": () => (/* binding */ processIf),
  2583. /* harmony export */ "processSlotOutlet": () => (/* binding */ processSlotOutlet),
  2584. /* harmony export */ "registerRuntimeHelpers": () => (/* binding */ registerRuntimeHelpers),
  2585. /* harmony export */ "resolveComponentType": () => (/* binding */ resolveComponentType),
  2586. /* harmony export */ "toValidAssetId": () => (/* binding */ toValidAssetId),
  2587. /* harmony export */ "trackSlotScopes": () => (/* binding */ trackSlotScopes),
  2588. /* harmony export */ "trackVForSlotScopes": () => (/* binding */ trackVForSlotScopes),
  2589. /* harmony export */ "transform": () => (/* binding */ transform),
  2590. /* harmony export */ "transformBind": () => (/* binding */ transformBind),
  2591. /* harmony export */ "transformElement": () => (/* binding */ transformElement),
  2592. /* harmony export */ "transformExpression": () => (/* binding */ transformExpression),
  2593. /* harmony export */ "transformModel": () => (/* binding */ transformModel),
  2594. /* harmony export */ "transformOn": () => (/* binding */ transformOn),
  2595. /* harmony export */ "traverseNode": () => (/* binding */ traverseNode),
  2596. /* harmony export */ "walkBlockDeclarations": () => (/* binding */ walkBlockDeclarations),
  2597. /* harmony export */ "walkFunctionParams": () => (/* binding */ walkFunctionParams),
  2598. /* harmony export */ "walkIdentifiers": () => (/* binding */ walkIdentifiers),
  2599. /* harmony export */ "warnDeprecation": () => (/* binding */ warnDeprecation)
  2600. /* harmony export */ });
  2601. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  2602. function defaultOnError(error) {
  2603. throw error;
  2604. }
  2605. function defaultOnWarn(msg) {
  2606. ( true) && console.warn(`[Vue warn] ${msg.message}`);
  2607. }
  2608. function createCompilerError(code, loc, messages, additionalMessage) {
  2609. const msg = true
  2610. ? (messages || errorMessages)[code] + (additionalMessage || ``)
  2611. : 0;
  2612. const error = new SyntaxError(String(msg));
  2613. error.code = code;
  2614. error.loc = loc;
  2615. return error;
  2616. }
  2617. const errorMessages = {
  2618. // parse errors
  2619. [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',
  2620. [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',
  2621. [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',
  2622. [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',
  2623. [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: "Illegal '/' in tags.",
  2624. [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',
  2625. [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',
  2626. [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',
  2627. [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',
  2628. [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.',
  2629. [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',
  2630. [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',
  2631. [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: "Illegal tag name. Use '&lt;' to print '<'.",
  2632. [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',
  2633. [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.',
  2634. [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',
  2635. [16 /* NESTED_COMMENT */]: "Unexpected '<!--' in comment.",
  2636. [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 ("), U+0027 (\'), and U+003C (<).',
  2637. [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 ("), U+0027 (\'), U+003C (<), U+003D (=), and U+0060 (`).',
  2638. [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: "Attribute name cannot start with '='.",
  2639. [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: "'<?' is allowed only in XML context.",
  2640. [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`,
  2641. [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: "Illegal '/' in tags.",
  2642. // Vue-specific parse errors
  2643. [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',
  2644. [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',
  2645. [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',
  2646. [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +
  2647. 'Note that dynamic directive argument cannot contain spaces.',
  2648. [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',
  2649. // transform errors
  2650. [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,
  2651. [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,
  2652. [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,
  2653. [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,
  2654. [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,
  2655. [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,
  2656. [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,
  2657. [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,
  2658. [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,
  2659. [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +
  2660. `When there are multiple named slots, all slots should use <template> ` +
  2661. `syntax to avoid scope ambiguity.`,
  2662. [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,
  2663. [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +
  2664. `default slot. These children will be ignored.`,
  2665. [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,
  2666. [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,
  2667. [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,
  2668. [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
  2669. [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,
  2670. [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,
  2671. // generic errors
  2672. [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
  2673. [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,
  2674. [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
  2675. [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`,
  2676. // just to fulfill types
  2677. [50 /* __EXTEND_POINT__ */]: ``
  2678. };
  2679. const FRAGMENT = Symbol(( true) ? `Fragment` : 0);
  2680. const TELEPORT = Symbol(( true) ? `Teleport` : 0);
  2681. const SUSPENSE = Symbol(( true) ? `Suspense` : 0);
  2682. const KEEP_ALIVE = Symbol(( true) ? `KeepAlive` : 0);
  2683. const BASE_TRANSITION = Symbol(( true) ? `BaseTransition` : 0);
  2684. const OPEN_BLOCK = Symbol(( true) ? `openBlock` : 0);
  2685. const CREATE_BLOCK = Symbol(( true) ? `createBlock` : 0);
  2686. const CREATE_ELEMENT_BLOCK = Symbol(( true) ? `createElementBlock` : 0);
  2687. const CREATE_VNODE = Symbol(( true) ? `createVNode` : 0);
  2688. const CREATE_ELEMENT_VNODE = Symbol(( true) ? `createElementVNode` : 0);
  2689. const CREATE_COMMENT = Symbol(( true) ? `createCommentVNode` : 0);
  2690. const CREATE_TEXT = Symbol(( true) ? `createTextVNode` : 0);
  2691. const CREATE_STATIC = Symbol(( true) ? `createStaticVNode` : 0);
  2692. const RESOLVE_COMPONENT = Symbol(( true) ? `resolveComponent` : 0);
  2693. const RESOLVE_DYNAMIC_COMPONENT = Symbol(( true) ? `resolveDynamicComponent` : 0);
  2694. const RESOLVE_DIRECTIVE = Symbol(( true) ? `resolveDirective` : 0);
  2695. const RESOLVE_FILTER = Symbol(( true) ? `resolveFilter` : 0);
  2696. const WITH_DIRECTIVES = Symbol(( true) ? `withDirectives` : 0);
  2697. const RENDER_LIST = Symbol(( true) ? `renderList` : 0);
  2698. const RENDER_SLOT = Symbol(( true) ? `renderSlot` : 0);
  2699. const CREATE_SLOTS = Symbol(( true) ? `createSlots` : 0);
  2700. const TO_DISPLAY_STRING = Symbol(( true) ? `toDisplayString` : 0);
  2701. const MERGE_PROPS = Symbol(( true) ? `mergeProps` : 0);
  2702. const NORMALIZE_CLASS = Symbol(( true) ? `normalizeClass` : 0);
  2703. const NORMALIZE_STYLE = Symbol(( true) ? `normalizeStyle` : 0);
  2704. const NORMALIZE_PROPS = Symbol(( true) ? `normalizeProps` : 0);
  2705. const GUARD_REACTIVE_PROPS = Symbol(( true) ? `guardReactiveProps` : 0);
  2706. const TO_HANDLERS = Symbol(( true) ? `toHandlers` : 0);
  2707. const CAMELIZE = Symbol(( true) ? `camelize` : 0);
  2708. const CAPITALIZE = Symbol(( true) ? `capitalize` : 0);
  2709. const TO_HANDLER_KEY = Symbol(( true) ? `toHandlerKey` : 0);
  2710. const SET_BLOCK_TRACKING = Symbol(( true) ? `setBlockTracking` : 0);
  2711. const PUSH_SCOPE_ID = Symbol(( true) ? `pushScopeId` : 0);
  2712. const POP_SCOPE_ID = Symbol(( true) ? `popScopeId` : 0);
  2713. const WITH_CTX = Symbol(( true) ? `withCtx` : 0);
  2714. const UNREF = Symbol(( true) ? `unref` : 0);
  2715. const IS_REF = Symbol(( true) ? `isRef` : 0);
  2716. const WITH_MEMO = Symbol(( true) ? `withMemo` : 0);
  2717. const IS_MEMO_SAME = Symbol(( true) ? `isMemoSame` : 0);
  2718. // Name mapping for runtime helpers that need to be imported from 'vue' in
  2719. // generated code. Make sure these are correctly exported in the runtime!
  2720. // Using `any` here because TS doesn't allow symbols as index type.
  2721. const helperNameMap = {
  2722. [FRAGMENT]: `Fragment`,
  2723. [TELEPORT]: `Teleport`,
  2724. [SUSPENSE]: `Suspense`,
  2725. [KEEP_ALIVE]: `KeepAlive`,
  2726. [BASE_TRANSITION]: `BaseTransition`,
  2727. [OPEN_BLOCK]: `openBlock`,
  2728. [CREATE_BLOCK]: `createBlock`,
  2729. [CREATE_ELEMENT_BLOCK]: `createElementBlock`,
  2730. [CREATE_VNODE]: `createVNode`,
  2731. [CREATE_ELEMENT_VNODE]: `createElementVNode`,
  2732. [CREATE_COMMENT]: `createCommentVNode`,
  2733. [CREATE_TEXT]: `createTextVNode`,
  2734. [CREATE_STATIC]: `createStaticVNode`,
  2735. [RESOLVE_COMPONENT]: `resolveComponent`,
  2736. [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,
  2737. [RESOLVE_DIRECTIVE]: `resolveDirective`,
  2738. [RESOLVE_FILTER]: `resolveFilter`,
  2739. [WITH_DIRECTIVES]: `withDirectives`,
  2740. [RENDER_LIST]: `renderList`,
  2741. [RENDER_SLOT]: `renderSlot`,
  2742. [CREATE_SLOTS]: `createSlots`,
  2743. [TO_DISPLAY_STRING]: `toDisplayString`,
  2744. [MERGE_PROPS]: `mergeProps`,
  2745. [NORMALIZE_CLASS]: `normalizeClass`,
  2746. [NORMALIZE_STYLE]: `normalizeStyle`,
  2747. [NORMALIZE_PROPS]: `normalizeProps`,
  2748. [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,
  2749. [TO_HANDLERS]: `toHandlers`,
  2750. [CAMELIZE]: `camelize`,
  2751. [CAPITALIZE]: `capitalize`,
  2752. [TO_HANDLER_KEY]: `toHandlerKey`,
  2753. [SET_BLOCK_TRACKING]: `setBlockTracking`,
  2754. [PUSH_SCOPE_ID]: `pushScopeId`,
  2755. [POP_SCOPE_ID]: `popScopeId`,
  2756. [WITH_CTX]: `withCtx`,
  2757. [UNREF]: `unref`,
  2758. [IS_REF]: `isRef`,
  2759. [WITH_MEMO]: `withMemo`,
  2760. [IS_MEMO_SAME]: `isMemoSame`
  2761. };
  2762. function registerRuntimeHelpers(helpers) {
  2763. Object.getOwnPropertySymbols(helpers).forEach(s => {
  2764. helperNameMap[s] = helpers[s];
  2765. });
  2766. }
  2767. // AST Utilities ---------------------------------------------------------------
  2768. // Some expressions, e.g. sequence and conditional expressions, are never
  2769. // associated with template nodes, so their source locations are just a stub.
  2770. // Container types like CompoundExpression also don't need a real location.
  2771. const locStub = {
  2772. source: '',
  2773. start: { line: 1, column: 1, offset: 0 },
  2774. end: { line: 1, column: 1, offset: 0 }
  2775. };
  2776. function createRoot(children, loc = locStub) {
  2777. return {
  2778. type: 0 /* ROOT */,
  2779. children,
  2780. helpers: [],
  2781. components: [],
  2782. directives: [],
  2783. hoists: [],
  2784. imports: [],
  2785. cached: 0,
  2786. temps: 0,
  2787. codegenNode: undefined,
  2788. loc
  2789. };
  2790. }
  2791. function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) {
  2792. if (context) {
  2793. if (isBlock) {
  2794. context.helper(OPEN_BLOCK);
  2795. context.helper(getVNodeBlockHelper(context.inSSR, isComponent));
  2796. }
  2797. else {
  2798. context.helper(getVNodeHelper(context.inSSR, isComponent));
  2799. }
  2800. if (directives) {
  2801. context.helper(WITH_DIRECTIVES);
  2802. }
  2803. }
  2804. return {
  2805. type: 13 /* VNODE_CALL */,
  2806. tag,
  2807. props,
  2808. children,
  2809. patchFlag,
  2810. dynamicProps,
  2811. directives,
  2812. isBlock,
  2813. disableTracking,
  2814. isComponent,
  2815. loc
  2816. };
  2817. }
  2818. function createArrayExpression(elements, loc = locStub) {
  2819. return {
  2820. type: 17 /* JS_ARRAY_EXPRESSION */,
  2821. loc,
  2822. elements
  2823. };
  2824. }
  2825. function createObjectExpression(properties, loc = locStub) {
  2826. return {
  2827. type: 15 /* JS_OBJECT_EXPRESSION */,
  2828. loc,
  2829. properties
  2830. };
  2831. }
  2832. function createObjectProperty(key, value) {
  2833. return {
  2834. type: 16 /* JS_PROPERTY */,
  2835. loc: locStub,
  2836. key: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(key) ? createSimpleExpression(key, true) : key,
  2837. value
  2838. };
  2839. }
  2840. function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) {
  2841. return {
  2842. type: 4 /* SIMPLE_EXPRESSION */,
  2843. loc,
  2844. content,
  2845. isStatic,
  2846. constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType
  2847. };
  2848. }
  2849. function createInterpolation(content, loc) {
  2850. return {
  2851. type: 5 /* INTERPOLATION */,
  2852. loc,
  2853. content: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(content)
  2854. ? createSimpleExpression(content, false, loc)
  2855. : content
  2856. };
  2857. }
  2858. function createCompoundExpression(children, loc = locStub) {
  2859. return {
  2860. type: 8 /* COMPOUND_EXPRESSION */,
  2861. loc,
  2862. children
  2863. };
  2864. }
  2865. function createCallExpression(callee, args = [], loc = locStub) {
  2866. return {
  2867. type: 14 /* JS_CALL_EXPRESSION */,
  2868. loc,
  2869. callee,
  2870. arguments: args
  2871. };
  2872. }
  2873. function createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) {
  2874. return {
  2875. type: 18 /* JS_FUNCTION_EXPRESSION */,
  2876. params,
  2877. returns,
  2878. newline,
  2879. isSlot,
  2880. loc
  2881. };
  2882. }
  2883. function createConditionalExpression(test, consequent, alternate, newline = true) {
  2884. return {
  2885. type: 19 /* JS_CONDITIONAL_EXPRESSION */,
  2886. test,
  2887. consequent,
  2888. alternate,
  2889. newline,
  2890. loc: locStub
  2891. };
  2892. }
  2893. function createCacheExpression(index, value, isVNode = false) {
  2894. return {
  2895. type: 20 /* JS_CACHE_EXPRESSION */,
  2896. index,
  2897. value,
  2898. isVNode,
  2899. loc: locStub
  2900. };
  2901. }
  2902. function createBlockStatement(body) {
  2903. return {
  2904. type: 21 /* JS_BLOCK_STATEMENT */,
  2905. body,
  2906. loc: locStub
  2907. };
  2908. }
  2909. function createTemplateLiteral(elements) {
  2910. return {
  2911. type: 22 /* JS_TEMPLATE_LITERAL */,
  2912. elements,
  2913. loc: locStub
  2914. };
  2915. }
  2916. function createIfStatement(test, consequent, alternate) {
  2917. return {
  2918. type: 23 /* JS_IF_STATEMENT */,
  2919. test,
  2920. consequent,
  2921. alternate,
  2922. loc: locStub
  2923. };
  2924. }
  2925. function createAssignmentExpression(left, right) {
  2926. return {
  2927. type: 24 /* JS_ASSIGNMENT_EXPRESSION */,
  2928. left,
  2929. right,
  2930. loc: locStub
  2931. };
  2932. }
  2933. function createSequenceExpression(expressions) {
  2934. return {
  2935. type: 25 /* JS_SEQUENCE_EXPRESSION */,
  2936. expressions,
  2937. loc: locStub
  2938. };
  2939. }
  2940. function createReturnStatement(returns) {
  2941. return {
  2942. type: 26 /* JS_RETURN_STATEMENT */,
  2943. returns,
  2944. loc: locStub
  2945. };
  2946. }
  2947. const isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic;
  2948. const isBuiltInType = (tag, expected) => tag === expected || tag === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hyphenate)(expected);
  2949. function isCoreComponent(tag) {
  2950. if (isBuiltInType(tag, 'Teleport')) {
  2951. return TELEPORT;
  2952. }
  2953. else if (isBuiltInType(tag, 'Suspense')) {
  2954. return SUSPENSE;
  2955. }
  2956. else if (isBuiltInType(tag, 'KeepAlive')) {
  2957. return KEEP_ALIVE;
  2958. }
  2959. else if (isBuiltInType(tag, 'BaseTransition')) {
  2960. return BASE_TRANSITION;
  2961. }
  2962. }
  2963. const nonIdentifierRE = /^\d|[^\$\w]/;
  2964. const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
  2965. const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
  2966. const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
  2967. const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
  2968. /**
  2969. * Simple lexer to check if an expression is a member expression. This is
  2970. * lax and only checks validity at the root level (i.e. does not validate exps
  2971. * inside square brackets), but it's ok since these are only used on template
  2972. * expressions and false positives are invalid expressions in the first place.
  2973. */
  2974. const isMemberExpressionBrowser = (path) => {
  2975. // remove whitespaces around . or [ first
  2976. path = path.trim().replace(whitespaceRE, s => s.trim());
  2977. let state = 0 /* inMemberExp */;
  2978. let stateStack = [];
  2979. let currentOpenBracketCount = 0;
  2980. let currentOpenParensCount = 0;
  2981. let currentStringType = null;
  2982. for (let i = 0; i < path.length; i++) {
  2983. const char = path.charAt(i);
  2984. switch (state) {
  2985. case 0 /* inMemberExp */:
  2986. if (char === '[') {
  2987. stateStack.push(state);
  2988. state = 1 /* inBrackets */;
  2989. currentOpenBracketCount++;
  2990. }
  2991. else if (char === '(') {
  2992. stateStack.push(state);
  2993. state = 2 /* inParens */;
  2994. currentOpenParensCount++;
  2995. }
  2996. else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) {
  2997. return false;
  2998. }
  2999. break;
  3000. case 1 /* inBrackets */:
  3001. if (char === `'` || char === `"` || char === '`') {
  3002. stateStack.push(state);
  3003. state = 3 /* inString */;
  3004. currentStringType = char;
  3005. }
  3006. else if (char === `[`) {
  3007. currentOpenBracketCount++;
  3008. }
  3009. else if (char === `]`) {
  3010. if (!--currentOpenBracketCount) {
  3011. state = stateStack.pop();
  3012. }
  3013. }
  3014. break;
  3015. case 2 /* inParens */:
  3016. if (char === `'` || char === `"` || char === '`') {
  3017. stateStack.push(state);
  3018. state = 3 /* inString */;
  3019. currentStringType = char;
  3020. }
  3021. else if (char === `(`) {
  3022. currentOpenParensCount++;
  3023. }
  3024. else if (char === `)`) {
  3025. // if the exp ends as a call then it should not be considered valid
  3026. if (i === path.length - 1) {
  3027. return false;
  3028. }
  3029. if (!--currentOpenParensCount) {
  3030. state = stateStack.pop();
  3031. }
  3032. }
  3033. break;
  3034. case 3 /* inString */:
  3035. if (char === currentStringType) {
  3036. state = stateStack.pop();
  3037. currentStringType = null;
  3038. }
  3039. break;
  3040. }
  3041. }
  3042. return !currentOpenBracketCount && !currentOpenParensCount;
  3043. };
  3044. const isMemberExpressionNode = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP
  3045. ;
  3046. const isMemberExpression = isMemberExpressionBrowser
  3047. ;
  3048. function getInnerRange(loc, offset, length) {
  3049. const source = loc.source.slice(offset, offset + length);
  3050. const newLoc = {
  3051. source,
  3052. start: advancePositionWithClone(loc.start, loc.source, offset),
  3053. end: loc.end
  3054. };
  3055. if (length != null) {
  3056. newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length);
  3057. }
  3058. return newLoc;
  3059. }
  3060. function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
  3061. return advancePositionWithMutation((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, pos), source, numberOfCharacters);
  3062. }
  3063. // advance by mutation without cloning (for performance reasons), since this
  3064. // gets called a lot in the parser
  3065. function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {
  3066. let linesCount = 0;
  3067. let lastNewLinePos = -1;
  3068. for (let i = 0; i < numberOfCharacters; i++) {
  3069. if (source.charCodeAt(i) === 10 /* newline char code */) {
  3070. linesCount++;
  3071. lastNewLinePos = i;
  3072. }
  3073. }
  3074. pos.offset += numberOfCharacters;
  3075. pos.line += linesCount;
  3076. pos.column =
  3077. lastNewLinePos === -1
  3078. ? pos.column + numberOfCharacters
  3079. : numberOfCharacters - lastNewLinePos;
  3080. return pos;
  3081. }
  3082. function assert(condition, msg) {
  3083. /* istanbul ignore if */
  3084. if (!condition) {
  3085. throw new Error(msg || `unexpected compiler condition`);
  3086. }
  3087. }
  3088. function findDir(node, name, allowEmpty = false) {
  3089. for (let i = 0; i < node.props.length; i++) {
  3090. const p = node.props[i];
  3091. if (p.type === 7 /* DIRECTIVE */ &&
  3092. (allowEmpty || p.exp) &&
  3093. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name) ? p.name === name : name.test(p.name))) {
  3094. return p;
  3095. }
  3096. }
  3097. }
  3098. function findProp(node, name, dynamicOnly = false, allowEmpty = false) {
  3099. for (let i = 0; i < node.props.length; i++) {
  3100. const p = node.props[i];
  3101. if (p.type === 6 /* ATTRIBUTE */) {
  3102. if (dynamicOnly)
  3103. continue;
  3104. if (p.name === name && (p.value || allowEmpty)) {
  3105. return p;
  3106. }
  3107. }
  3108. else if (p.name === 'bind' &&
  3109. (p.exp || allowEmpty) &&
  3110. isStaticArgOf(p.arg, name)) {
  3111. return p;
  3112. }
  3113. }
  3114. }
  3115. function isStaticArgOf(arg, name) {
  3116. return !!(arg && isStaticExp(arg) && arg.content === name);
  3117. }
  3118. function hasDynamicKeyVBind(node) {
  3119. return node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3120. p.name === 'bind' &&
  3121. (!p.arg || // v-bind="obj"
  3122. p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo]
  3123. !p.arg.isStatic) // v-bind:[foo]
  3124. );
  3125. }
  3126. function isText(node) {
  3127. return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */;
  3128. }
  3129. function isVSlot(p) {
  3130. return p.type === 7 /* DIRECTIVE */ && p.name === 'slot';
  3131. }
  3132. function isTemplateNode(node) {
  3133. return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */);
  3134. }
  3135. function isSlotOutlet(node) {
  3136. return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */;
  3137. }
  3138. function getVNodeHelper(ssr, isComponent) {
  3139. return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
  3140. }
  3141. function getVNodeBlockHelper(ssr, isComponent) {
  3142. return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
  3143. }
  3144. const propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
  3145. function getUnnormalizedProps(props, callPath = []) {
  3146. if (props &&
  3147. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3148. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3149. const callee = props.callee;
  3150. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(callee) && propsHelperSet.has(callee)) {
  3151. return getUnnormalizedProps(props.arguments[0], callPath.concat(props));
  3152. }
  3153. }
  3154. return [props, callPath];
  3155. }
  3156. function injectProp(node, prop, context) {
  3157. let propsWithInjection;
  3158. /**
  3159. * 1. mergeProps(...)
  3160. * 2. toHandlers(...)
  3161. * 3. normalizeProps(...)
  3162. * 4. normalizeProps(guardReactiveProps(...))
  3163. *
  3164. * we need to get the real props before normalization
  3165. */
  3166. let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
  3167. let callPath = [];
  3168. let parentCall;
  3169. if (props &&
  3170. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3171. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3172. const ret = getUnnormalizedProps(props);
  3173. props = ret[0];
  3174. callPath = ret[1];
  3175. parentCall = callPath[callPath.length - 1];
  3176. }
  3177. if (props == null || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props)) {
  3178. propsWithInjection = createObjectExpression([prop]);
  3179. }
  3180. else if (props.type === 14 /* JS_CALL_EXPRESSION */) {
  3181. // merged props... add ours
  3182. // only inject key to object literal if it's the first argument so that
  3183. // if doesn't override user provided keys
  3184. const first = props.arguments[0];
  3185. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3186. first.properties.unshift(prop);
  3187. }
  3188. else {
  3189. if (props.callee === TO_HANDLERS) {
  3190. // #2366
  3191. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3192. createObjectExpression([prop]),
  3193. props
  3194. ]);
  3195. }
  3196. else {
  3197. props.arguments.unshift(createObjectExpression([prop]));
  3198. }
  3199. }
  3200. !propsWithInjection && (propsWithInjection = props);
  3201. }
  3202. else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3203. let alreadyExists = false;
  3204. // check existing key to avoid overriding user provided keys
  3205. if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) {
  3206. const propKeyName = prop.key.content;
  3207. alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  3208. p.key.content === propKeyName);
  3209. }
  3210. if (!alreadyExists) {
  3211. props.properties.unshift(prop);
  3212. }
  3213. propsWithInjection = props;
  3214. }
  3215. else {
  3216. // single v-bind with expression, return a merged replacement
  3217. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3218. createObjectExpression([prop]),
  3219. props
  3220. ]);
  3221. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`,
  3222. // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`,
  3223. // the `guardReactiveProps` will no longer be needed
  3224. if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) {
  3225. parentCall = callPath[callPath.length - 2];
  3226. }
  3227. }
  3228. if (node.type === 13 /* VNODE_CALL */) {
  3229. if (parentCall) {
  3230. parentCall.arguments[0] = propsWithInjection;
  3231. }
  3232. else {
  3233. node.props = propsWithInjection;
  3234. }
  3235. }
  3236. else {
  3237. if (parentCall) {
  3238. parentCall.arguments[0] = propsWithInjection;
  3239. }
  3240. else {
  3241. node.arguments[2] = propsWithInjection;
  3242. }
  3243. }
  3244. }
  3245. function toValidAssetId(name, type) {
  3246. // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character
  3247. return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => {
  3248. return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString();
  3249. })}`;
  3250. }
  3251. // Check if a node contains expressions that reference current context scope ids
  3252. function hasScopeRef(node, ids) {
  3253. if (!node || Object.keys(ids).length === 0) {
  3254. return false;
  3255. }
  3256. switch (node.type) {
  3257. case 1 /* ELEMENT */:
  3258. for (let i = 0; i < node.props.length; i++) {
  3259. const p = node.props[i];
  3260. if (p.type === 7 /* DIRECTIVE */ &&
  3261. (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) {
  3262. return true;
  3263. }
  3264. }
  3265. return node.children.some(c => hasScopeRef(c, ids));
  3266. case 11 /* FOR */:
  3267. if (hasScopeRef(node.source, ids)) {
  3268. return true;
  3269. }
  3270. return node.children.some(c => hasScopeRef(c, ids));
  3271. case 9 /* IF */:
  3272. return node.branches.some(b => hasScopeRef(b, ids));
  3273. case 10 /* IF_BRANCH */:
  3274. if (hasScopeRef(node.condition, ids)) {
  3275. return true;
  3276. }
  3277. return node.children.some(c => hasScopeRef(c, ids));
  3278. case 4 /* SIMPLE_EXPRESSION */:
  3279. return (!node.isStatic &&
  3280. isSimpleIdentifier(node.content) &&
  3281. !!ids[node.content]);
  3282. case 8 /* COMPOUND_EXPRESSION */:
  3283. return node.children.some(c => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(c) && hasScopeRef(c, ids));
  3284. case 5 /* INTERPOLATION */:
  3285. case 12 /* TEXT_CALL */:
  3286. return hasScopeRef(node.content, ids);
  3287. case 2 /* TEXT */:
  3288. case 3 /* COMMENT */:
  3289. return false;
  3290. default:
  3291. if ((true)) ;
  3292. return false;
  3293. }
  3294. }
  3295. function getMemoedVNodeCall(node) {
  3296. if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) {
  3297. return node.arguments[1].returns;
  3298. }
  3299. else {
  3300. return node;
  3301. }
  3302. }
  3303. function makeBlock(node, { helper, removeHelper, inSSR }) {
  3304. if (!node.isBlock) {
  3305. node.isBlock = true;
  3306. removeHelper(getVNodeHelper(inSSR, node.isComponent));
  3307. helper(OPEN_BLOCK);
  3308. helper(getVNodeBlockHelper(inSSR, node.isComponent));
  3309. }
  3310. }
  3311. const deprecationData = {
  3312. ["COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */]: {
  3313. message: `Platform-native elements with "is" prop will no longer be ` +
  3314. `treated as components in Vue 3 unless the "is" value is explicitly ` +
  3315. `prefixed with "vue:".`,
  3316. link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
  3317. },
  3318. ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
  3319. message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
  3320. `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
  3321. `\`v-model:${key}\`.`,
  3322. link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
  3323. },
  3324. ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
  3325. message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
  3326. `Vue 3 will automatically set a binding as DOM property when appropriate.`
  3327. },
  3328. ["COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */]: {
  3329. message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript ` +
  3330. `object spread: it will now overwrite an existing non-mergeable attribute ` +
  3331. `that appears before v-bind in the case of conflict. ` +
  3332. `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
  3333. `You can also suppress this warning if the usage is intended.`,
  3334. link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
  3335. },
  3336. ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
  3337. message: `.native modifier for v-on has been removed as is no longer necessary.`,
  3338. link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
  3339. },
  3340. ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
  3341. message: `v-if / v-for precedence when used on the same element has changed ` +
  3342. `in Vue 3: v-if now takes higher precedence and will no longer have ` +
  3343. `access to v-for scope variables. It is best to avoid the ambiguity ` +
  3344. `with <template> tags or use a computed property that filters v-for ` +
  3345. `data source.`,
  3346. link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
  3347. },
  3348. ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
  3349. message: `<template> with no special directives will render as a native template ` +
  3350. `element instead of its inner content in Vue 3.`
  3351. },
  3352. ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
  3353. message: `"inline-template" has been removed in Vue 3.`,
  3354. link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
  3355. },
  3356. ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
  3357. message: `filters have been removed in Vue 3. ` +
  3358. `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
  3359. `Use method calls or computed properties instead.`,
  3360. link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
  3361. }
  3362. };
  3363. function getCompatValue(key, context) {
  3364. const config = context.options
  3365. ? context.options.compatConfig
  3366. : context.compatConfig;
  3367. const value = config && config[key];
  3368. if (key === 'MODE') {
  3369. return value || 3; // compiler defaults to v3 behavior
  3370. }
  3371. else {
  3372. return value;
  3373. }
  3374. }
  3375. function isCompatEnabled(key, context) {
  3376. const mode = getCompatValue('MODE', context);
  3377. const value = getCompatValue(key, context);
  3378. // in v3 mode, only enable if explicitly set to true
  3379. // otherwise enable for any non-false value
  3380. return mode === 3 ? value === true : value !== false;
  3381. }
  3382. function checkCompatEnabled(key, context, loc, ...args) {
  3383. const enabled = isCompatEnabled(key, context);
  3384. if (( true) && enabled) {
  3385. warnDeprecation(key, context, loc, ...args);
  3386. }
  3387. return enabled;
  3388. }
  3389. function warnDeprecation(key, context, loc, ...args) {
  3390. const val = getCompatValue(key, context);
  3391. if (val === 'suppress-warning') {
  3392. return;
  3393. }
  3394. const { message, link } = deprecationData[key];
  3395. const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`;
  3396. const err = new SyntaxError(msg);
  3397. err.code = key;
  3398. if (loc)
  3399. err.loc = loc;
  3400. context.onWarn(err);
  3401. }
  3402. // The default decoder only provides escapes for characters reserved as part of
  3403. // the template syntax, and is only used if the custom renderer did not provide
  3404. // a platform-specific decoder.
  3405. const decodeRE = /&(gt|lt|amp|apos|quot);/g;
  3406. const decodeMap = {
  3407. gt: '>',
  3408. lt: '<',
  3409. amp: '&',
  3410. apos: "'",
  3411. quot: '"'
  3412. };
  3413. const defaultParserOptions = {
  3414. delimiters: [`{{`, `}}`],
  3415. getNamespace: () => 0 /* HTML */,
  3416. getTextMode: () => 0 /* DATA */,
  3417. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3418. isPreTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3419. isCustomElement: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3420. decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),
  3421. onError: defaultOnError,
  3422. onWarn: defaultOnWarn,
  3423. comments: ("development" !== 'production')
  3424. };
  3425. function baseParse(content, options = {}) {
  3426. const context = createParserContext(content, options);
  3427. const start = getCursor(context);
  3428. return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start));
  3429. }
  3430. function createParserContext(content, rawOptions) {
  3431. const options = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, defaultParserOptions);
  3432. let key;
  3433. for (key in rawOptions) {
  3434. // @ts-ignore
  3435. options[key] =
  3436. rawOptions[key] === undefined
  3437. ? defaultParserOptions[key]
  3438. : rawOptions[key];
  3439. }
  3440. return {
  3441. options,
  3442. column: 1,
  3443. line: 1,
  3444. offset: 0,
  3445. originalSource: content,
  3446. source: content,
  3447. inPre: false,
  3448. inVPre: false,
  3449. onWarn: options.onWarn
  3450. };
  3451. }
  3452. function parseChildren(context, mode, ancestors) {
  3453. const parent = last(ancestors);
  3454. const ns = parent ? parent.ns : 0 /* HTML */;
  3455. const nodes = [];
  3456. while (!isEnd(context, mode, ancestors)) {
  3457. const s = context.source;
  3458. let node = undefined;
  3459. if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) {
  3460. if (!context.inVPre && startsWith(s, context.options.delimiters[0])) {
  3461. // '{{'
  3462. node = parseInterpolation(context, mode);
  3463. }
  3464. else if (mode === 0 /* DATA */ && s[0] === '<') {
  3465. // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
  3466. if (s.length === 1) {
  3467. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1);
  3468. }
  3469. else if (s[1] === '!') {
  3470. // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
  3471. if (startsWith(s, '<!--')) {
  3472. node = parseComment(context);
  3473. }
  3474. else if (startsWith(s, '<!DOCTYPE')) {
  3475. // Ignore DOCTYPE by a limitation.
  3476. node = parseBogusComment(context);
  3477. }
  3478. else if (startsWith(s, '<![CDATA[')) {
  3479. if (ns !== 0 /* HTML */) {
  3480. node = parseCDATA(context, ancestors);
  3481. }
  3482. else {
  3483. emitError(context, 1 /* CDATA_IN_HTML_CONTENT */);
  3484. node = parseBogusComment(context);
  3485. }
  3486. }
  3487. else {
  3488. emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */);
  3489. node = parseBogusComment(context);
  3490. }
  3491. }
  3492. else if (s[1] === '/') {
  3493. // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state
  3494. if (s.length === 2) {
  3495. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2);
  3496. }
  3497. else if (s[2] === '>') {
  3498. emitError(context, 14 /* MISSING_END_TAG_NAME */, 2);
  3499. advanceBy(context, 3);
  3500. continue;
  3501. }
  3502. else if (/[a-z]/i.test(s[2])) {
  3503. emitError(context, 23 /* X_INVALID_END_TAG */);
  3504. parseTag(context, 1 /* End */, parent);
  3505. continue;
  3506. }
  3507. else {
  3508. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2);
  3509. node = parseBogusComment(context);
  3510. }
  3511. }
  3512. else if (/[a-z]/i.test(s[1])) {
  3513. node = parseElement(context, ancestors);
  3514. // 2.x <template> with no directive compat
  3515. if (isCompatEnabled("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context) &&
  3516. node &&
  3517. node.tag === 'template' &&
  3518. !node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3519. isSpecialTemplateDirective(p.name))) {
  3520. ( true) &&
  3521. warnDeprecation("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc);
  3522. node = node.children;
  3523. }
  3524. }
  3525. else if (s[1] === '?') {
  3526. emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1);
  3527. node = parseBogusComment(context);
  3528. }
  3529. else {
  3530. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1);
  3531. }
  3532. }
  3533. }
  3534. if (!node) {
  3535. node = parseText(context, mode);
  3536. }
  3537. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  3538. for (let i = 0; i < node.length; i++) {
  3539. pushNode(nodes, node[i]);
  3540. }
  3541. }
  3542. else {
  3543. pushNode(nodes, node);
  3544. }
  3545. }
  3546. // Whitespace handling strategy like v2
  3547. let removedWhitespace = false;
  3548. if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {
  3549. const shouldCondense = context.options.whitespace !== 'preserve';
  3550. for (let i = 0; i < nodes.length; i++) {
  3551. const node = nodes[i];
  3552. if (!context.inPre && node.type === 2 /* TEXT */) {
  3553. if (!/[^\t\r\n\f ]/.test(node.content)) {
  3554. const prev = nodes[i - 1];
  3555. const next = nodes[i + 1];
  3556. // Remove if:
  3557. // - the whitespace is the first or last node, or:
  3558. // - (condense mode) the whitespace is adjacent to a comment, or:
  3559. // - (condense mode) the whitespace is between two elements AND contains newline
  3560. if (!prev ||
  3561. !next ||
  3562. (shouldCondense &&
  3563. (prev.type === 3 /* COMMENT */ ||
  3564. next.type === 3 /* COMMENT */ ||
  3565. (prev.type === 1 /* ELEMENT */ &&
  3566. next.type === 1 /* ELEMENT */ &&
  3567. /[\r\n]/.test(node.content))))) {
  3568. removedWhitespace = true;
  3569. nodes[i] = null;
  3570. }
  3571. else {
  3572. // Otherwise, the whitespace is condensed into a single space
  3573. node.content = ' ';
  3574. }
  3575. }
  3576. else if (shouldCondense) {
  3577. // in condense mode, consecutive whitespaces in text are condensed
  3578. // down to a single space.
  3579. node.content = node.content.replace(/[\t\r\n\f ]+/g, ' ');
  3580. }
  3581. }
  3582. // Remove comment nodes if desired by configuration.
  3583. else if (node.type === 3 /* COMMENT */ && !context.options.comments) {
  3584. removedWhitespace = true;
  3585. nodes[i] = null;
  3586. }
  3587. }
  3588. if (context.inPre && parent && context.options.isPreTag(parent.tag)) {
  3589. // remove leading newline per html spec
  3590. // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element
  3591. const first = nodes[0];
  3592. if (first && first.type === 2 /* TEXT */) {
  3593. first.content = first.content.replace(/^\r?\n/, '');
  3594. }
  3595. }
  3596. }
  3597. return removedWhitespace ? nodes.filter(Boolean) : nodes;
  3598. }
  3599. function pushNode(nodes, node) {
  3600. if (node.type === 2 /* TEXT */) {
  3601. const prev = last(nodes);
  3602. // Merge if both this and the previous node are text and those are
  3603. // consecutive. This happens for cases like "a < b".
  3604. if (prev &&
  3605. prev.type === 2 /* TEXT */ &&
  3606. prev.loc.end.offset === node.loc.start.offset) {
  3607. prev.content += node.content;
  3608. prev.loc.end = node.loc.end;
  3609. prev.loc.source += node.loc.source;
  3610. return;
  3611. }
  3612. }
  3613. nodes.push(node);
  3614. }
  3615. function parseCDATA(context, ancestors) {
  3616. advanceBy(context, 9);
  3617. const nodes = parseChildren(context, 3 /* CDATA */, ancestors);
  3618. if (context.source.length === 0) {
  3619. emitError(context, 6 /* EOF_IN_CDATA */);
  3620. }
  3621. else {
  3622. advanceBy(context, 3);
  3623. }
  3624. return nodes;
  3625. }
  3626. function parseComment(context) {
  3627. const start = getCursor(context);
  3628. let content;
  3629. // Regular comment.
  3630. const match = /--(\!)?>/.exec(context.source);
  3631. if (!match) {
  3632. content = context.source.slice(4);
  3633. advanceBy(context, context.source.length);
  3634. emitError(context, 7 /* EOF_IN_COMMENT */);
  3635. }
  3636. else {
  3637. if (match.index <= 3) {
  3638. emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */);
  3639. }
  3640. if (match[1]) {
  3641. emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */);
  3642. }
  3643. content = context.source.slice(4, match.index);
  3644. // Advancing with reporting nested comments.
  3645. const s = context.source.slice(0, match.index);
  3646. let prevIndex = 1, nestedIndex = 0;
  3647. while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) {
  3648. advanceBy(context, nestedIndex - prevIndex + 1);
  3649. if (nestedIndex + 4 < s.length) {
  3650. emitError(context, 16 /* NESTED_COMMENT */);
  3651. }
  3652. prevIndex = nestedIndex + 1;
  3653. }
  3654. advanceBy(context, match.index + match[0].length - prevIndex + 1);
  3655. }
  3656. return {
  3657. type: 3 /* COMMENT */,
  3658. content,
  3659. loc: getSelection(context, start)
  3660. };
  3661. }
  3662. function parseBogusComment(context) {
  3663. const start = getCursor(context);
  3664. const contentStart = context.source[1] === '?' ? 1 : 2;
  3665. let content;
  3666. const closeIndex = context.source.indexOf('>');
  3667. if (closeIndex === -1) {
  3668. content = context.source.slice(contentStart);
  3669. advanceBy(context, context.source.length);
  3670. }
  3671. else {
  3672. content = context.source.slice(contentStart, closeIndex);
  3673. advanceBy(context, closeIndex + 1);
  3674. }
  3675. return {
  3676. type: 3 /* COMMENT */,
  3677. content,
  3678. loc: getSelection(context, start)
  3679. };
  3680. }
  3681. function parseElement(context, ancestors) {
  3682. // Start tag.
  3683. const wasInPre = context.inPre;
  3684. const wasInVPre = context.inVPre;
  3685. const parent = last(ancestors);
  3686. const element = parseTag(context, 0 /* Start */, parent);
  3687. const isPreBoundary = context.inPre && !wasInPre;
  3688. const isVPreBoundary = context.inVPre && !wasInVPre;
  3689. if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {
  3690. // #4030 self-closing <pre> tag
  3691. if (isPreBoundary) {
  3692. context.inPre = false;
  3693. }
  3694. if (isVPreBoundary) {
  3695. context.inVPre = false;
  3696. }
  3697. return element;
  3698. }
  3699. // Children.
  3700. ancestors.push(element);
  3701. const mode = context.options.getTextMode(element, parent);
  3702. const children = parseChildren(context, mode, ancestors);
  3703. ancestors.pop();
  3704. // 2.x inline-template compat
  3705. {
  3706. const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template');
  3707. if (inlineTemplateProp &&
  3708. checkCompatEnabled("COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {
  3709. const loc = getSelection(context, element.loc.end);
  3710. inlineTemplateProp.value = {
  3711. type: 2 /* TEXT */,
  3712. content: loc.source,
  3713. loc
  3714. };
  3715. }
  3716. }
  3717. element.children = children;
  3718. // End tag.
  3719. if (startsWithEndTagOpen(context.source, element.tag)) {
  3720. parseTag(context, 1 /* End */, parent);
  3721. }
  3722. else {
  3723. emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start);
  3724. if (context.source.length === 0 && element.tag.toLowerCase() === 'script') {
  3725. const first = children[0];
  3726. if (first && startsWith(first.loc.source, '<!--')) {
  3727. emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */);
  3728. }
  3729. }
  3730. }
  3731. element.loc = getSelection(context, element.loc.start);
  3732. if (isPreBoundary) {
  3733. context.inPre = false;
  3734. }
  3735. if (isVPreBoundary) {
  3736. context.inVPre = false;
  3737. }
  3738. return element;
  3739. }
  3740. const isSpecialTemplateDirective = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`if,else,else-if,for,slot`);
  3741. function parseTag(context, type, parent) {
  3742. // Tag open.
  3743. const start = getCursor(context);
  3744. const match = /^<\/?([a-z][^\t\r\n\f />]*)/i.exec(context.source);
  3745. const tag = match[1];
  3746. const ns = context.options.getNamespace(tag, parent);
  3747. advanceBy(context, match[0].length);
  3748. advanceSpaces(context);
  3749. // save current state in case we need to re-parse attributes with v-pre
  3750. const cursor = getCursor(context);
  3751. const currentSource = context.source;
  3752. // check <pre> tag
  3753. if (context.options.isPreTag(tag)) {
  3754. context.inPre = true;
  3755. }
  3756. // Attributes.
  3757. let props = parseAttributes(context, type);
  3758. // check v-pre
  3759. if (type === 0 /* Start */ &&
  3760. !context.inVPre &&
  3761. props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) {
  3762. context.inVPre = true;
  3763. // reset context
  3764. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(context, cursor);
  3765. context.source = currentSource;
  3766. // re-parse attrs and filter out v-pre itself
  3767. props = parseAttributes(context, type).filter(p => p.name !== 'v-pre');
  3768. }
  3769. // Tag close.
  3770. let isSelfClosing = false;
  3771. if (context.source.length === 0) {
  3772. emitError(context, 9 /* EOF_IN_TAG */);
  3773. }
  3774. else {
  3775. isSelfClosing = startsWith(context.source, '/>');
  3776. if (type === 1 /* End */ && isSelfClosing) {
  3777. emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */);
  3778. }
  3779. advanceBy(context, isSelfClosing ? 2 : 1);
  3780. }
  3781. if (type === 1 /* End */) {
  3782. return;
  3783. }
  3784. // 2.x deprecation checks
  3785. if (( true) &&
  3786. isCompatEnabled("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {
  3787. let hasIf = false;
  3788. let hasFor = false;
  3789. for (let i = 0; i < props.length; i++) {
  3790. const p = props[i];
  3791. if (p.type === 7 /* DIRECTIVE */) {
  3792. if (p.name === 'if') {
  3793. hasIf = true;
  3794. }
  3795. else if (p.name === 'for') {
  3796. hasFor = true;
  3797. }
  3798. }
  3799. if (hasIf && hasFor) {
  3800. warnDeprecation("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));
  3801. break;
  3802. }
  3803. }
  3804. }
  3805. let tagType = 0 /* ELEMENT */;
  3806. if (!context.inVPre) {
  3807. if (tag === 'slot') {
  3808. tagType = 2 /* SLOT */;
  3809. }
  3810. else if (tag === 'template') {
  3811. if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) {
  3812. tagType = 3 /* TEMPLATE */;
  3813. }
  3814. }
  3815. else if (isComponent(tag, props, context)) {
  3816. tagType = 1 /* COMPONENT */;
  3817. }
  3818. }
  3819. return {
  3820. type: 1 /* ELEMENT */,
  3821. ns,
  3822. tag,
  3823. tagType,
  3824. props,
  3825. isSelfClosing,
  3826. children: [],
  3827. loc: getSelection(context, start),
  3828. codegenNode: undefined // to be created during transform phase
  3829. };
  3830. }
  3831. function isComponent(tag, props, context) {
  3832. const options = context.options;
  3833. if (options.isCustomElement(tag)) {
  3834. return false;
  3835. }
  3836. if (tag === 'component' ||
  3837. /^[A-Z]/.test(tag) ||
  3838. isCoreComponent(tag) ||
  3839. (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||
  3840. (options.isNativeTag && !options.isNativeTag(tag))) {
  3841. return true;
  3842. }
  3843. // at this point the tag should be a native tag, but check for potential "is"
  3844. // casting
  3845. for (let i = 0; i < props.length; i++) {
  3846. const p = props[i];
  3847. if (p.type === 6 /* ATTRIBUTE */) {
  3848. if (p.name === 'is' && p.value) {
  3849. if (p.value.content.startsWith('vue:')) {
  3850. return true;
  3851. }
  3852. else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3853. return true;
  3854. }
  3855. }
  3856. }
  3857. else {
  3858. // directive
  3859. // v-is (TODO Deprecate)
  3860. if (p.name === 'is') {
  3861. return true;
  3862. }
  3863. else if (
  3864. // :is on plain element - only treat as component in compat mode
  3865. p.name === 'bind' &&
  3866. isStaticArgOf(p.arg, 'is') &&
  3867. true &&
  3868. checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3869. return true;
  3870. }
  3871. }
  3872. }
  3873. }
  3874. function parseAttributes(context, type) {
  3875. const props = [];
  3876. const attributeNames = new Set();
  3877. while (context.source.length > 0 &&
  3878. !startsWith(context.source, '>') &&
  3879. !startsWith(context.source, '/>')) {
  3880. if (startsWith(context.source, '/')) {
  3881. emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */);
  3882. advanceBy(context, 1);
  3883. advanceSpaces(context);
  3884. continue;
  3885. }
  3886. if (type === 1 /* End */) {
  3887. emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);
  3888. }
  3889. const attr = parseAttribute(context, attributeNames);
  3890. // Trim whitespace between class
  3891. // https://github.com/vuejs/core/issues/4251
  3892. if (attr.type === 6 /* ATTRIBUTE */ &&
  3893. attr.value &&
  3894. attr.name === 'class') {
  3895. attr.value.content = attr.value.content.replace(/\s+/g, ' ').trim();
  3896. }
  3897. if (type === 0 /* Start */) {
  3898. props.push(attr);
  3899. }
  3900. if (/^[^\t\r\n\f />]/.test(context.source)) {
  3901. emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */);
  3902. }
  3903. advanceSpaces(context);
  3904. }
  3905. return props;
  3906. }
  3907. function parseAttribute(context, nameSet) {
  3908. // Name.
  3909. const start = getCursor(context);
  3910. const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
  3911. const name = match[0];
  3912. if (nameSet.has(name)) {
  3913. emitError(context, 2 /* DUPLICATE_ATTRIBUTE */);
  3914. }
  3915. nameSet.add(name);
  3916. if (name[0] === '=') {
  3917. emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */);
  3918. }
  3919. {
  3920. const pattern = /["'<]/g;
  3921. let m;
  3922. while ((m = pattern.exec(name))) {
  3923. emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index);
  3924. }
  3925. }
  3926. advanceBy(context, name.length);
  3927. // Value
  3928. let value = undefined;
  3929. if (/^[\t\r\n\f ]*=/.test(context.source)) {
  3930. advanceSpaces(context);
  3931. advanceBy(context, 1);
  3932. advanceSpaces(context);
  3933. value = parseAttributeValue(context);
  3934. if (!value) {
  3935. emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */);
  3936. }
  3937. }
  3938. const loc = getSelection(context, start);
  3939. if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(name)) {
  3940. const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(name);
  3941. let isPropShorthand = startsWith(name, '.');
  3942. let dirName = match[1] ||
  3943. (isPropShorthand || startsWith(name, ':')
  3944. ? 'bind'
  3945. : startsWith(name, '@')
  3946. ? 'on'
  3947. : 'slot');
  3948. let arg;
  3949. if (match[2]) {
  3950. const isSlot = dirName === 'slot';
  3951. const startOffset = name.lastIndexOf(match[2]);
  3952. const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));
  3953. let content = match[2];
  3954. let isStatic = true;
  3955. if (content.startsWith('[')) {
  3956. isStatic = false;
  3957. if (!content.endsWith(']')) {
  3958. emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);
  3959. content = content.slice(1);
  3960. }
  3961. else {
  3962. content = content.slice(1, content.length - 1);
  3963. }
  3964. }
  3965. else if (isSlot) {
  3966. // #1241 special case for v-slot: vuetify relies extensively on slot
  3967. // names containing dots. v-slot doesn't have any modifiers and Vue 2.x
  3968. // supports such usage so we are keeping it consistent with 2.x.
  3969. content += match[3] || '';
  3970. }
  3971. arg = {
  3972. type: 4 /* SIMPLE_EXPRESSION */,
  3973. content,
  3974. isStatic,
  3975. constType: isStatic
  3976. ? 3 /* CAN_STRINGIFY */
  3977. : 0 /* NOT_CONSTANT */,
  3978. loc
  3979. };
  3980. }
  3981. if (value && value.isQuoted) {
  3982. const valueLoc = value.loc;
  3983. valueLoc.start.offset++;
  3984. valueLoc.start.column++;
  3985. valueLoc.end = advancePositionWithClone(valueLoc.start, value.content);
  3986. valueLoc.source = valueLoc.source.slice(1, -1);
  3987. }
  3988. const modifiers = match[3] ? match[3].slice(1).split('.') : [];
  3989. if (isPropShorthand)
  3990. modifiers.push('prop');
  3991. // 2.x compat v-bind:foo.sync -> v-model:foo
  3992. if (dirName === 'bind' && arg) {
  3993. if (modifiers.includes('sync') &&
  3994. checkCompatEnabled("COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {
  3995. dirName = 'model';
  3996. modifiers.splice(modifiers.indexOf('sync'), 1);
  3997. }
  3998. if (( true) && modifiers.includes('prop')) {
  3999. checkCompatEnabled("COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */, context, loc);
  4000. }
  4001. }
  4002. return {
  4003. type: 7 /* DIRECTIVE */,
  4004. name: dirName,
  4005. exp: value && {
  4006. type: 4 /* SIMPLE_EXPRESSION */,
  4007. content: value.content,
  4008. isStatic: false,
  4009. // Treat as non-constant by default. This can be potentially set to
  4010. // other values by `transformExpression` to make it eligible for hoisting.
  4011. constType: 0 /* NOT_CONSTANT */,
  4012. loc: value.loc
  4013. },
  4014. arg,
  4015. modifiers,
  4016. loc
  4017. };
  4018. }
  4019. // missing directive name or illegal directive name
  4020. if (!context.inVPre && startsWith(name, 'v-')) {
  4021. emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);
  4022. }
  4023. return {
  4024. type: 6 /* ATTRIBUTE */,
  4025. name,
  4026. value: value && {
  4027. type: 2 /* TEXT */,
  4028. content: value.content,
  4029. loc: value.loc
  4030. },
  4031. loc
  4032. };
  4033. }
  4034. function parseAttributeValue(context) {
  4035. const start = getCursor(context);
  4036. let content;
  4037. const quote = context.source[0];
  4038. const isQuoted = quote === `"` || quote === `'`;
  4039. if (isQuoted) {
  4040. // Quoted value.
  4041. advanceBy(context, 1);
  4042. const endIndex = context.source.indexOf(quote);
  4043. if (endIndex === -1) {
  4044. content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */);
  4045. }
  4046. else {
  4047. content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */);
  4048. advanceBy(context, 1);
  4049. }
  4050. }
  4051. else {
  4052. // Unquoted
  4053. const match = /^[^\t\r\n\f >]+/.exec(context.source);
  4054. if (!match) {
  4055. return undefined;
  4056. }
  4057. const unexpectedChars = /["'<=`]/g;
  4058. let m;
  4059. while ((m = unexpectedChars.exec(match[0]))) {
  4060. emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index);
  4061. }
  4062. content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */);
  4063. }
  4064. return { content, isQuoted, loc: getSelection(context, start) };
  4065. }
  4066. function parseInterpolation(context, mode) {
  4067. const [open, close] = context.options.delimiters;
  4068. const closeIndex = context.source.indexOf(close, open.length);
  4069. if (closeIndex === -1) {
  4070. emitError(context, 25 /* X_MISSING_INTERPOLATION_END */);
  4071. return undefined;
  4072. }
  4073. const start = getCursor(context);
  4074. advanceBy(context, open.length);
  4075. const innerStart = getCursor(context);
  4076. const innerEnd = getCursor(context);
  4077. const rawContentLength = closeIndex - open.length;
  4078. const rawContent = context.source.slice(0, rawContentLength);
  4079. const preTrimContent = parseTextData(context, rawContentLength, mode);
  4080. const content = preTrimContent.trim();
  4081. const startOffset = preTrimContent.indexOf(content);
  4082. if (startOffset > 0) {
  4083. advancePositionWithMutation(innerStart, rawContent, startOffset);
  4084. }
  4085. const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset);
  4086. advancePositionWithMutation(innerEnd, rawContent, endOffset);
  4087. advanceBy(context, close.length);
  4088. return {
  4089. type: 5 /* INTERPOLATION */,
  4090. content: {
  4091. type: 4 /* SIMPLE_EXPRESSION */,
  4092. isStatic: false,
  4093. // Set `isConstant` to false by default and will decide in transformExpression
  4094. constType: 0 /* NOT_CONSTANT */,
  4095. content,
  4096. loc: getSelection(context, innerStart, innerEnd)
  4097. },
  4098. loc: getSelection(context, start)
  4099. };
  4100. }
  4101. function parseText(context, mode) {
  4102. const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]];
  4103. let endIndex = context.source.length;
  4104. for (let i = 0; i < endTokens.length; i++) {
  4105. const index = context.source.indexOf(endTokens[i], 1);
  4106. if (index !== -1 && endIndex > index) {
  4107. endIndex = index;
  4108. }
  4109. }
  4110. const start = getCursor(context);
  4111. const content = parseTextData(context, endIndex, mode);
  4112. return {
  4113. type: 2 /* TEXT */,
  4114. content,
  4115. loc: getSelection(context, start)
  4116. };
  4117. }
  4118. /**
  4119. * Get text data with a given length from the current location.
  4120. * This translates HTML entities in the text data.
  4121. */
  4122. function parseTextData(context, length, mode) {
  4123. const rawText = context.source.slice(0, length);
  4124. advanceBy(context, length);
  4125. if (mode === 2 /* RAWTEXT */ ||
  4126. mode === 3 /* CDATA */ ||
  4127. !rawText.includes('&')) {
  4128. return rawText;
  4129. }
  4130. else {
  4131. // DATA or RCDATA containing "&"". Entity decoding required.
  4132. return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */);
  4133. }
  4134. }
  4135. function getCursor(context) {
  4136. const { column, line, offset } = context;
  4137. return { column, line, offset };
  4138. }
  4139. function getSelection(context, start, end) {
  4140. end = end || getCursor(context);
  4141. return {
  4142. start,
  4143. end,
  4144. source: context.originalSource.slice(start.offset, end.offset)
  4145. };
  4146. }
  4147. function last(xs) {
  4148. return xs[xs.length - 1];
  4149. }
  4150. function startsWith(source, searchString) {
  4151. return source.startsWith(searchString);
  4152. }
  4153. function advanceBy(context, numberOfCharacters) {
  4154. const { source } = context;
  4155. advancePositionWithMutation(context, source, numberOfCharacters);
  4156. context.source = source.slice(numberOfCharacters);
  4157. }
  4158. function advanceSpaces(context) {
  4159. const match = /^[\t\r\n\f ]+/.exec(context.source);
  4160. if (match) {
  4161. advanceBy(context, match[0].length);
  4162. }
  4163. }
  4164. function getNewPosition(context, start, numberOfCharacters) {
  4165. return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters);
  4166. }
  4167. function emitError(context, code, offset, loc = getCursor(context)) {
  4168. if (offset) {
  4169. loc.offset += offset;
  4170. loc.column += offset;
  4171. }
  4172. context.options.onError(createCompilerError(code, {
  4173. start: loc,
  4174. end: loc,
  4175. source: ''
  4176. }));
  4177. }
  4178. function isEnd(context, mode, ancestors) {
  4179. const s = context.source;
  4180. switch (mode) {
  4181. case 0 /* DATA */:
  4182. if (startsWith(s, '</')) {
  4183. // TODO: probably bad performance
  4184. for (let i = ancestors.length - 1; i >= 0; --i) {
  4185. if (startsWithEndTagOpen(s, ancestors[i].tag)) {
  4186. return true;
  4187. }
  4188. }
  4189. }
  4190. break;
  4191. case 1 /* RCDATA */:
  4192. case 2 /* RAWTEXT */: {
  4193. const parent = last(ancestors);
  4194. if (parent && startsWithEndTagOpen(s, parent.tag)) {
  4195. return true;
  4196. }
  4197. break;
  4198. }
  4199. case 3 /* CDATA */:
  4200. if (startsWith(s, ']]>')) {
  4201. return true;
  4202. }
  4203. break;
  4204. }
  4205. return !s;
  4206. }
  4207. function startsWithEndTagOpen(source, tag) {
  4208. return (startsWith(source, '</') &&
  4209. source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() &&
  4210. /[\t\r\n\f />]/.test(source[2 + tag.length] || '>'));
  4211. }
  4212. function hoistStatic(root, context) {
  4213. walk(root, context,
  4214. // Root node is unfortunately non-hoistable due to potential parent
  4215. // fallthrough attributes.
  4216. isSingleElementRoot(root, root.children[0]));
  4217. }
  4218. function isSingleElementRoot(root, child) {
  4219. const { children } = root;
  4220. return (children.length === 1 &&
  4221. child.type === 1 /* ELEMENT */ &&
  4222. !isSlotOutlet(child));
  4223. }
  4224. function walk(node, context, doNotHoistNode = false) {
  4225. const { children } = node;
  4226. const originalCount = children.length;
  4227. let hoistedCount = 0;
  4228. for (let i = 0; i < children.length; i++) {
  4229. const child = children[i];
  4230. // only plain elements & text calls are eligible for hoisting.
  4231. if (child.type === 1 /* ELEMENT */ &&
  4232. child.tagType === 0 /* ELEMENT */) {
  4233. const constantType = doNotHoistNode
  4234. ? 0 /* NOT_CONSTANT */
  4235. : getConstantType(child, context);
  4236. if (constantType > 0 /* NOT_CONSTANT */) {
  4237. if (constantType >= 2 /* CAN_HOIST */) {
  4238. child.codegenNode.patchFlag =
  4239. -1 /* HOISTED */ + (( true) ? ` /* HOISTED */` : 0);
  4240. child.codegenNode = context.hoist(child.codegenNode);
  4241. hoistedCount++;
  4242. continue;
  4243. }
  4244. }
  4245. else {
  4246. // node may contain dynamic children, but its props may be eligible for
  4247. // hoisting.
  4248. const codegenNode = child.codegenNode;
  4249. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4250. const flag = getPatchFlag(codegenNode);
  4251. if ((!flag ||
  4252. flag === 512 /* NEED_PATCH */ ||
  4253. flag === 1 /* TEXT */) &&
  4254. getGeneratedPropsConstantType(child, context) >=
  4255. 2 /* CAN_HOIST */) {
  4256. const props = getNodeProps(child);
  4257. if (props) {
  4258. codegenNode.props = context.hoist(props);
  4259. }
  4260. }
  4261. if (codegenNode.dynamicProps) {
  4262. codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);
  4263. }
  4264. }
  4265. }
  4266. }
  4267. else if (child.type === 12 /* TEXT_CALL */ &&
  4268. getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
  4269. child.codegenNode = context.hoist(child.codegenNode);
  4270. hoistedCount++;
  4271. }
  4272. // walk further
  4273. if (child.type === 1 /* ELEMENT */) {
  4274. const isComponent = child.tagType === 1 /* COMPONENT */;
  4275. if (isComponent) {
  4276. context.scopes.vSlot++;
  4277. }
  4278. walk(child, context);
  4279. if (isComponent) {
  4280. context.scopes.vSlot--;
  4281. }
  4282. }
  4283. else if (child.type === 11 /* FOR */) {
  4284. // Do not hoist v-for single child because it has to be a block
  4285. walk(child, context, child.children.length === 1);
  4286. }
  4287. else if (child.type === 9 /* IF */) {
  4288. for (let i = 0; i < child.branches.length; i++) {
  4289. // Do not hoist v-if single child because it has to be a block
  4290. walk(child.branches[i], context, child.branches[i].children.length === 1);
  4291. }
  4292. }
  4293. }
  4294. if (hoistedCount && context.transformHoist) {
  4295. context.transformHoist(children, context, node);
  4296. }
  4297. // all children were hoisted - the entire children array is hoistable.
  4298. if (hoistedCount &&
  4299. hoistedCount === originalCount &&
  4300. node.type === 1 /* ELEMENT */ &&
  4301. node.tagType === 0 /* ELEMENT */ &&
  4302. node.codegenNode &&
  4303. node.codegenNode.type === 13 /* VNODE_CALL */ &&
  4304. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node.codegenNode.children)) {
  4305. node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children));
  4306. }
  4307. }
  4308. function getConstantType(node, context) {
  4309. const { constantCache } = context;
  4310. switch (node.type) {
  4311. case 1 /* ELEMENT */:
  4312. if (node.tagType !== 0 /* ELEMENT */) {
  4313. return 0 /* NOT_CONSTANT */;
  4314. }
  4315. const cached = constantCache.get(node);
  4316. if (cached !== undefined) {
  4317. return cached;
  4318. }
  4319. const codegenNode = node.codegenNode;
  4320. if (codegenNode.type !== 13 /* VNODE_CALL */) {
  4321. return 0 /* NOT_CONSTANT */;
  4322. }
  4323. if (codegenNode.isBlock &&
  4324. node.tag !== 'svg' &&
  4325. node.tag !== 'foreignObject') {
  4326. return 0 /* NOT_CONSTANT */;
  4327. }
  4328. const flag = getPatchFlag(codegenNode);
  4329. if (!flag) {
  4330. let returnType = 3 /* CAN_STRINGIFY */;
  4331. // Element itself has no patch flag. However we still need to check:
  4332. // 1. Even for a node with no patch flag, it is possible for it to contain
  4333. // non-hoistable expressions that refers to scope variables, e.g. compiler
  4334. // injected keys or cached event handlers. Therefore we need to always
  4335. // check the codegenNode's props to be sure.
  4336. const generatedPropsType = getGeneratedPropsConstantType(node, context);
  4337. if (generatedPropsType === 0 /* NOT_CONSTANT */) {
  4338. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4339. return 0 /* NOT_CONSTANT */;
  4340. }
  4341. if (generatedPropsType < returnType) {
  4342. returnType = generatedPropsType;
  4343. }
  4344. // 2. its children.
  4345. for (let i = 0; i < node.children.length; i++) {
  4346. const childType = getConstantType(node.children[i], context);
  4347. if (childType === 0 /* NOT_CONSTANT */) {
  4348. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4349. return 0 /* NOT_CONSTANT */;
  4350. }
  4351. if (childType < returnType) {
  4352. returnType = childType;
  4353. }
  4354. }
  4355. // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0
  4356. // type, check if any of the props can cause the type to be lowered
  4357. // we can skip can_patch because it's guaranteed by the absence of a
  4358. // patchFlag.
  4359. if (returnType > 1 /* CAN_SKIP_PATCH */) {
  4360. for (let i = 0; i < node.props.length; i++) {
  4361. const p = node.props[i];
  4362. if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) {
  4363. const expType = getConstantType(p.exp, context);
  4364. if (expType === 0 /* NOT_CONSTANT */) {
  4365. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4366. return 0 /* NOT_CONSTANT */;
  4367. }
  4368. if (expType < returnType) {
  4369. returnType = expType;
  4370. }
  4371. }
  4372. }
  4373. }
  4374. // only svg/foreignObject could be block here, however if they are
  4375. // static then they don't need to be blocks since there will be no
  4376. // nested updates.
  4377. if (codegenNode.isBlock) {
  4378. context.removeHelper(OPEN_BLOCK);
  4379. context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));
  4380. codegenNode.isBlock = false;
  4381. context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));
  4382. }
  4383. constantCache.set(node, returnType);
  4384. return returnType;
  4385. }
  4386. else {
  4387. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4388. return 0 /* NOT_CONSTANT */;
  4389. }
  4390. case 2 /* TEXT */:
  4391. case 3 /* COMMENT */:
  4392. return 3 /* CAN_STRINGIFY */;
  4393. case 9 /* IF */:
  4394. case 11 /* FOR */:
  4395. case 10 /* IF_BRANCH */:
  4396. return 0 /* NOT_CONSTANT */;
  4397. case 5 /* INTERPOLATION */:
  4398. case 12 /* TEXT_CALL */:
  4399. return getConstantType(node.content, context);
  4400. case 4 /* SIMPLE_EXPRESSION */:
  4401. return node.constType;
  4402. case 8 /* COMPOUND_EXPRESSION */:
  4403. let returnType = 3 /* CAN_STRINGIFY */;
  4404. for (let i = 0; i < node.children.length; i++) {
  4405. const child = node.children[i];
  4406. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(child)) {
  4407. continue;
  4408. }
  4409. const childType = getConstantType(child, context);
  4410. if (childType === 0 /* NOT_CONSTANT */) {
  4411. return 0 /* NOT_CONSTANT */;
  4412. }
  4413. else if (childType < returnType) {
  4414. returnType = childType;
  4415. }
  4416. }
  4417. return returnType;
  4418. default:
  4419. if ((true)) ;
  4420. return 0 /* NOT_CONSTANT */;
  4421. }
  4422. }
  4423. const allowHoistedHelperSet = new Set([
  4424. NORMALIZE_CLASS,
  4425. NORMALIZE_STYLE,
  4426. NORMALIZE_PROPS,
  4427. GUARD_REACTIVE_PROPS
  4428. ]);
  4429. function getConstantTypeOfHelperCall(value, context) {
  4430. if (value.type === 14 /* JS_CALL_EXPRESSION */ &&
  4431. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(value.callee) &&
  4432. allowHoistedHelperSet.has(value.callee)) {
  4433. const arg = value.arguments[0];
  4434. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  4435. return getConstantType(arg, context);
  4436. }
  4437. else if (arg.type === 14 /* JS_CALL_EXPRESSION */) {
  4438. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))`
  4439. return getConstantTypeOfHelperCall(arg, context);
  4440. }
  4441. }
  4442. return 0 /* NOT_CONSTANT */;
  4443. }
  4444. function getGeneratedPropsConstantType(node, context) {
  4445. let returnType = 3 /* CAN_STRINGIFY */;
  4446. const props = getNodeProps(node);
  4447. if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  4448. const { properties } = props;
  4449. for (let i = 0; i < properties.length; i++) {
  4450. const { key, value } = properties[i];
  4451. const keyType = getConstantType(key, context);
  4452. if (keyType === 0 /* NOT_CONSTANT */) {
  4453. return keyType;
  4454. }
  4455. if (keyType < returnType) {
  4456. returnType = keyType;
  4457. }
  4458. let valueType;
  4459. if (value.type === 4 /* SIMPLE_EXPRESSION */) {
  4460. valueType = getConstantType(value, context);
  4461. }
  4462. else if (value.type === 14 /* JS_CALL_EXPRESSION */) {
  4463. // some helper calls can be hoisted,
  4464. // such as the `normalizeProps` generated by the compiler for pre-normalize class,
  4465. // in this case we need to respect the ConstantType of the helper's arguments
  4466. valueType = getConstantTypeOfHelperCall(value, context);
  4467. }
  4468. else {
  4469. valueType = 0 /* NOT_CONSTANT */;
  4470. }
  4471. if (valueType === 0 /* NOT_CONSTANT */) {
  4472. return valueType;
  4473. }
  4474. if (valueType < returnType) {
  4475. returnType = valueType;
  4476. }
  4477. }
  4478. }
  4479. return returnType;
  4480. }
  4481. function getNodeProps(node) {
  4482. const codegenNode = node.codegenNode;
  4483. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4484. return codegenNode.props;
  4485. }
  4486. }
  4487. function getPatchFlag(node) {
  4488. const flag = node.patchFlag;
  4489. return flag ? parseInt(flag, 10) : undefined;
  4490. }
  4491. function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, isCustomElement = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
  4492. const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
  4493. const context = {
  4494. // options
  4495. selfName: nameMatch && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(nameMatch[1])),
  4496. prefixIdentifiers,
  4497. hoistStatic,
  4498. cacheHandlers,
  4499. nodeTransforms,
  4500. directiveTransforms,
  4501. transformHoist,
  4502. isBuiltInComponent,
  4503. isCustomElement,
  4504. expressionPlugins,
  4505. scopeId,
  4506. slotted,
  4507. ssr,
  4508. inSSR,
  4509. ssrCssVars,
  4510. bindingMetadata,
  4511. inline,
  4512. isTS,
  4513. onError,
  4514. onWarn,
  4515. compatConfig,
  4516. // state
  4517. root,
  4518. helpers: new Map(),
  4519. components: new Set(),
  4520. directives: new Set(),
  4521. hoists: [],
  4522. imports: [],
  4523. constantCache: new Map(),
  4524. temps: 0,
  4525. cached: 0,
  4526. identifiers: Object.create(null),
  4527. scopes: {
  4528. vFor: 0,
  4529. vSlot: 0,
  4530. vPre: 0,
  4531. vOnce: 0
  4532. },
  4533. parent: null,
  4534. currentNode: root,
  4535. childIndex: 0,
  4536. inVOnce: false,
  4537. // methods
  4538. helper(name) {
  4539. const count = context.helpers.get(name) || 0;
  4540. context.helpers.set(name, count + 1);
  4541. return name;
  4542. },
  4543. removeHelper(name) {
  4544. const count = context.helpers.get(name);
  4545. if (count) {
  4546. const currentCount = count - 1;
  4547. if (!currentCount) {
  4548. context.helpers.delete(name);
  4549. }
  4550. else {
  4551. context.helpers.set(name, currentCount);
  4552. }
  4553. }
  4554. },
  4555. helperString(name) {
  4556. return `_${helperNameMap[context.helper(name)]}`;
  4557. },
  4558. replaceNode(node) {
  4559. /* istanbul ignore if */
  4560. if ((true)) {
  4561. if (!context.currentNode) {
  4562. throw new Error(`Node being replaced is already removed.`);
  4563. }
  4564. if (!context.parent) {
  4565. throw new Error(`Cannot replace root node.`);
  4566. }
  4567. }
  4568. context.parent.children[context.childIndex] = context.currentNode = node;
  4569. },
  4570. removeNode(node) {
  4571. if (( true) && !context.parent) {
  4572. throw new Error(`Cannot remove root node.`);
  4573. }
  4574. const list = context.parent.children;
  4575. const removalIndex = node
  4576. ? list.indexOf(node)
  4577. : context.currentNode
  4578. ? context.childIndex
  4579. : -1;
  4580. /* istanbul ignore if */
  4581. if (( true) && removalIndex < 0) {
  4582. throw new Error(`node being removed is not a child of current parent`);
  4583. }
  4584. if (!node || node === context.currentNode) {
  4585. // current node removed
  4586. context.currentNode = null;
  4587. context.onNodeRemoved();
  4588. }
  4589. else {
  4590. // sibling node removed
  4591. if (context.childIndex > removalIndex) {
  4592. context.childIndex--;
  4593. context.onNodeRemoved();
  4594. }
  4595. }
  4596. context.parent.children.splice(removalIndex, 1);
  4597. },
  4598. onNodeRemoved: () => { },
  4599. addIdentifiers(exp) {
  4600. },
  4601. removeIdentifiers(exp) {
  4602. },
  4603. hoist(exp) {
  4604. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(exp))
  4605. exp = createSimpleExpression(exp);
  4606. context.hoists.push(exp);
  4607. const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */);
  4608. identifier.hoisted = exp;
  4609. return identifier;
  4610. },
  4611. cache(exp, isVNode = false) {
  4612. return createCacheExpression(context.cached++, exp, isVNode);
  4613. }
  4614. };
  4615. {
  4616. context.filters = new Set();
  4617. }
  4618. return context;
  4619. }
  4620. function transform(root, options) {
  4621. const context = createTransformContext(root, options);
  4622. traverseNode(root, context);
  4623. if (options.hoistStatic) {
  4624. hoistStatic(root, context);
  4625. }
  4626. if (!options.ssr) {
  4627. createRootCodegen(root, context);
  4628. }
  4629. // finalize meta information
  4630. root.helpers = [...context.helpers.keys()];
  4631. root.components = [...context.components];
  4632. root.directives = [...context.directives];
  4633. root.imports = context.imports;
  4634. root.hoists = context.hoists;
  4635. root.temps = context.temps;
  4636. root.cached = context.cached;
  4637. {
  4638. root.filters = [...context.filters];
  4639. }
  4640. }
  4641. function createRootCodegen(root, context) {
  4642. const { helper } = context;
  4643. const { children } = root;
  4644. if (children.length === 1) {
  4645. const child = children[0];
  4646. // if the single child is an element, turn it into a block.
  4647. if (isSingleElementRoot(root, child) && child.codegenNode) {
  4648. // single element root is never hoisted so codegenNode will never be
  4649. // SimpleExpressionNode
  4650. const codegenNode = child.codegenNode;
  4651. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4652. makeBlock(codegenNode, context);
  4653. }
  4654. root.codegenNode = codegenNode;
  4655. }
  4656. else {
  4657. // - single <slot/>, IfNode, ForNode: already blocks.
  4658. // - single text node: always patched.
  4659. // root codegen falls through via genNode()
  4660. root.codegenNode = child;
  4661. }
  4662. }
  4663. else if (children.length > 1) {
  4664. // root has multiple nodes - return a fragment block.
  4665. let patchFlag = 64 /* STABLE_FRAGMENT */;
  4666. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  4667. // check if the fragment actually contains a single valid child with
  4668. // the rest being comments
  4669. if (( true) &&
  4670. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  4671. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  4672. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  4673. }
  4674. root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, undefined, false /* isComponent */);
  4675. }
  4676. else ;
  4677. }
  4678. function traverseChildren(parent, context) {
  4679. let i = 0;
  4680. const nodeRemoved = () => {
  4681. i--;
  4682. };
  4683. for (; i < parent.children.length; i++) {
  4684. const child = parent.children[i];
  4685. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child))
  4686. continue;
  4687. context.parent = parent;
  4688. context.childIndex = i;
  4689. context.onNodeRemoved = nodeRemoved;
  4690. traverseNode(child, context);
  4691. }
  4692. }
  4693. function traverseNode(node, context) {
  4694. context.currentNode = node;
  4695. // apply transform plugins
  4696. const { nodeTransforms } = context;
  4697. const exitFns = [];
  4698. for (let i = 0; i < nodeTransforms.length; i++) {
  4699. const onExit = nodeTransforms[i](node, context);
  4700. if (onExit) {
  4701. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(onExit)) {
  4702. exitFns.push(...onExit);
  4703. }
  4704. else {
  4705. exitFns.push(onExit);
  4706. }
  4707. }
  4708. if (!context.currentNode) {
  4709. // node was removed
  4710. return;
  4711. }
  4712. else {
  4713. // node may have been replaced
  4714. node = context.currentNode;
  4715. }
  4716. }
  4717. switch (node.type) {
  4718. case 3 /* COMMENT */:
  4719. if (!context.ssr) {
  4720. // inject import for the Comment symbol, which is needed for creating
  4721. // comment nodes with `createVNode`
  4722. context.helper(CREATE_COMMENT);
  4723. }
  4724. break;
  4725. case 5 /* INTERPOLATION */:
  4726. // no need to traverse, but we need to inject toString helper
  4727. if (!context.ssr) {
  4728. context.helper(TO_DISPLAY_STRING);
  4729. }
  4730. break;
  4731. // for container types, further traverse downwards
  4732. case 9 /* IF */:
  4733. for (let i = 0; i < node.branches.length; i++) {
  4734. traverseNode(node.branches[i], context);
  4735. }
  4736. break;
  4737. case 10 /* IF_BRANCH */:
  4738. case 11 /* FOR */:
  4739. case 1 /* ELEMENT */:
  4740. case 0 /* ROOT */:
  4741. traverseChildren(node, context);
  4742. break;
  4743. }
  4744. // exit transforms
  4745. context.currentNode = node;
  4746. let i = exitFns.length;
  4747. while (i--) {
  4748. exitFns[i]();
  4749. }
  4750. }
  4751. function createStructuralDirectiveTransform(name, fn) {
  4752. const matches = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name)
  4753. ? (n) => n === name
  4754. : (n) => name.test(n);
  4755. return (node, context) => {
  4756. if (node.type === 1 /* ELEMENT */) {
  4757. const { props } = node;
  4758. // structural directive transforms are not concerned with slots
  4759. // as they are handled separately in vSlot.ts
  4760. if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) {
  4761. return;
  4762. }
  4763. const exitFns = [];
  4764. for (let i = 0; i < props.length; i++) {
  4765. const prop = props[i];
  4766. if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) {
  4767. // structural directives are removed to avoid infinite recursion
  4768. // also we remove them *before* applying so that it can further
  4769. // traverse itself in case it moves the node around
  4770. props.splice(i, 1);
  4771. i--;
  4772. const onExit = fn(node, prop, context);
  4773. if (onExit)
  4774. exitFns.push(onExit);
  4775. }
  4776. }
  4777. return exitFns;
  4778. }
  4779. };
  4780. }
  4781. const PURE_ANNOTATION = `/*#__PURE__*/`;
  4782. function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {
  4783. const context = {
  4784. mode,
  4785. prefixIdentifiers,
  4786. sourceMap,
  4787. filename,
  4788. scopeId,
  4789. optimizeImports,
  4790. runtimeGlobalName,
  4791. runtimeModuleName,
  4792. ssrRuntimeModuleName,
  4793. ssr,
  4794. isTS,
  4795. inSSR,
  4796. source: ast.loc.source,
  4797. code: ``,
  4798. column: 1,
  4799. line: 1,
  4800. offset: 0,
  4801. indentLevel: 0,
  4802. pure: false,
  4803. map: undefined,
  4804. helper(key) {
  4805. return `_${helperNameMap[key]}`;
  4806. },
  4807. push(code, node) {
  4808. context.code += code;
  4809. },
  4810. indent() {
  4811. newline(++context.indentLevel);
  4812. },
  4813. deindent(withoutNewLine = false) {
  4814. if (withoutNewLine) {
  4815. --context.indentLevel;
  4816. }
  4817. else {
  4818. newline(--context.indentLevel);
  4819. }
  4820. },
  4821. newline() {
  4822. newline(context.indentLevel);
  4823. }
  4824. };
  4825. function newline(n) {
  4826. context.push('\n' + ` `.repeat(n));
  4827. }
  4828. return context;
  4829. }
  4830. function generate(ast, options = {}) {
  4831. const context = createCodegenContext(ast, options);
  4832. if (options.onContextCreated)
  4833. options.onContextCreated(context);
  4834. const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;
  4835. const hasHelpers = ast.helpers.length > 0;
  4836. const useWithBlock = !prefixIdentifiers && mode !== 'module';
  4837. // preambles
  4838. // in setup() inline mode, the preamble is generated in a sub context
  4839. // and returned separately.
  4840. const preambleContext = context;
  4841. {
  4842. genFunctionPreamble(ast, preambleContext);
  4843. }
  4844. // enter render function
  4845. const functionName = ssr ? `ssrRender` : `render`;
  4846. const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache'];
  4847. const signature = args.join(', ');
  4848. {
  4849. push(`function ${functionName}(${signature}) {`);
  4850. }
  4851. indent();
  4852. if (useWithBlock) {
  4853. push(`with (_ctx) {`);
  4854. indent();
  4855. // function mode const declarations should be inside with block
  4856. // also they should be renamed to avoid collision with user properties
  4857. if (hasHelpers) {
  4858. push(`const { ${ast.helpers
  4859. .map(s => `${helperNameMap[s]}: _${helperNameMap[s]}`)
  4860. .join(', ')} } = _Vue`);
  4861. push(`\n`);
  4862. newline();
  4863. }
  4864. }
  4865. // generate asset resolution statements
  4866. if (ast.components.length) {
  4867. genAssets(ast.components, 'component', context);
  4868. if (ast.directives.length || ast.temps > 0) {
  4869. newline();
  4870. }
  4871. }
  4872. if (ast.directives.length) {
  4873. genAssets(ast.directives, 'directive', context);
  4874. if (ast.temps > 0) {
  4875. newline();
  4876. }
  4877. }
  4878. if (ast.filters && ast.filters.length) {
  4879. newline();
  4880. genAssets(ast.filters, 'filter', context);
  4881. newline();
  4882. }
  4883. if (ast.temps > 0) {
  4884. push(`let `);
  4885. for (let i = 0; i < ast.temps; i++) {
  4886. push(`${i > 0 ? `, ` : ``}_temp${i}`);
  4887. }
  4888. }
  4889. if (ast.components.length || ast.directives.length || ast.temps) {
  4890. push(`\n`);
  4891. newline();
  4892. }
  4893. // generate the VNode tree expression
  4894. if (!ssr) {
  4895. push(`return `);
  4896. }
  4897. if (ast.codegenNode) {
  4898. genNode(ast.codegenNode, context);
  4899. }
  4900. else {
  4901. push(`null`);
  4902. }
  4903. if (useWithBlock) {
  4904. deindent();
  4905. push(`}`);
  4906. }
  4907. deindent();
  4908. push(`}`);
  4909. return {
  4910. ast,
  4911. code: context.code,
  4912. preamble: ``,
  4913. // SourceMapGenerator does have toJSON() method but it's not in the types
  4914. map: context.map ? context.map.toJSON() : undefined
  4915. };
  4916. }
  4917. function genFunctionPreamble(ast, context) {
  4918. const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;
  4919. const VueBinding = runtimeGlobalName;
  4920. const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
  4921. // Generate const declaration for helpers
  4922. // In prefix mode, we place the const declaration at top so it's done
  4923. // only once; But if we not prefixing, we place the declaration inside the
  4924. // with block so it doesn't incur the `in` check cost for every helper access.
  4925. if (ast.helpers.length > 0) {
  4926. {
  4927. // "with" mode.
  4928. // save Vue in a separate variable to avoid collision
  4929. push(`const _Vue = ${VueBinding}\n`);
  4930. // in "with" mode, helpers are declared inside the with block to avoid
  4931. // has check cost, but hoists are lifted out of the function - we need
  4932. // to provide the helper here.
  4933. if (ast.hoists.length) {
  4934. const staticHelpers = [
  4935. CREATE_VNODE,
  4936. CREATE_ELEMENT_VNODE,
  4937. CREATE_COMMENT,
  4938. CREATE_TEXT,
  4939. CREATE_STATIC
  4940. ]
  4941. .filter(helper => ast.helpers.includes(helper))
  4942. .map(aliasHelper)
  4943. .join(', ');
  4944. push(`const { ${staticHelpers} } = _Vue\n`);
  4945. }
  4946. }
  4947. }
  4948. genHoists(ast.hoists, context);
  4949. newline();
  4950. push(`return `);
  4951. }
  4952. function genAssets(assets, type, { helper, push, newline, isTS }) {
  4953. const resolver = helper(type === 'filter'
  4954. ? RESOLVE_FILTER
  4955. : type === 'component'
  4956. ? RESOLVE_COMPONENT
  4957. : RESOLVE_DIRECTIVE);
  4958. for (let i = 0; i < assets.length; i++) {
  4959. let id = assets[i];
  4960. // potential component implicit self-reference inferred from SFC filename
  4961. const maybeSelfReference = id.endsWith('__self');
  4962. if (maybeSelfReference) {
  4963. id = id.slice(0, -6);
  4964. }
  4965. push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);
  4966. if (i < assets.length - 1) {
  4967. newline();
  4968. }
  4969. }
  4970. }
  4971. function genHoists(hoists, context) {
  4972. if (!hoists.length) {
  4973. return;
  4974. }
  4975. context.pure = true;
  4976. const { push, newline, helper, scopeId, mode } = context;
  4977. newline();
  4978. for (let i = 0; i < hoists.length; i++) {
  4979. const exp = hoists[i];
  4980. if (exp) {
  4981. push(`const _hoisted_${i + 1} = ${``}`);
  4982. genNode(exp, context);
  4983. newline();
  4984. }
  4985. }
  4986. context.pure = false;
  4987. }
  4988. function isText$1(n) {
  4989. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(n) ||
  4990. n.type === 4 /* SIMPLE_EXPRESSION */ ||
  4991. n.type === 2 /* TEXT */ ||
  4992. n.type === 5 /* INTERPOLATION */ ||
  4993. n.type === 8 /* COMPOUND_EXPRESSION */);
  4994. }
  4995. function genNodeListAsArray(nodes, context) {
  4996. const multilines = nodes.length > 3 ||
  4997. ((( true)) && nodes.some(n => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(n) || !isText$1(n)));
  4998. context.push(`[`);
  4999. multilines && context.indent();
  5000. genNodeList(nodes, context, multilines);
  5001. multilines && context.deindent();
  5002. context.push(`]`);
  5003. }
  5004. function genNodeList(nodes, context, multilines = false, comma = true) {
  5005. const { push, newline } = context;
  5006. for (let i = 0; i < nodes.length; i++) {
  5007. const node = nodes[i];
  5008. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5009. push(node);
  5010. }
  5011. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  5012. genNodeListAsArray(node, context);
  5013. }
  5014. else {
  5015. genNode(node, context);
  5016. }
  5017. if (i < nodes.length - 1) {
  5018. if (multilines) {
  5019. comma && push(',');
  5020. newline();
  5021. }
  5022. else {
  5023. comma && push(', ');
  5024. }
  5025. }
  5026. }
  5027. }
  5028. function genNode(node, context) {
  5029. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5030. context.push(node);
  5031. return;
  5032. }
  5033. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(node)) {
  5034. context.push(context.helper(node));
  5035. return;
  5036. }
  5037. switch (node.type) {
  5038. case 1 /* ELEMENT */:
  5039. case 9 /* IF */:
  5040. case 11 /* FOR */:
  5041. ( true) &&
  5042. assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` +
  5043. `Apply appropriate transforms first.`);
  5044. genNode(node.codegenNode, context);
  5045. break;
  5046. case 2 /* TEXT */:
  5047. genText(node, context);
  5048. break;
  5049. case 4 /* SIMPLE_EXPRESSION */:
  5050. genExpression(node, context);
  5051. break;
  5052. case 5 /* INTERPOLATION */:
  5053. genInterpolation(node, context);
  5054. break;
  5055. case 12 /* TEXT_CALL */:
  5056. genNode(node.codegenNode, context);
  5057. break;
  5058. case 8 /* COMPOUND_EXPRESSION */:
  5059. genCompoundExpression(node, context);
  5060. break;
  5061. case 3 /* COMMENT */:
  5062. genComment(node, context);
  5063. break;
  5064. case 13 /* VNODE_CALL */:
  5065. genVNodeCall(node, context);
  5066. break;
  5067. case 14 /* JS_CALL_EXPRESSION */:
  5068. genCallExpression(node, context);
  5069. break;
  5070. case 15 /* JS_OBJECT_EXPRESSION */:
  5071. genObjectExpression(node, context);
  5072. break;
  5073. case 17 /* JS_ARRAY_EXPRESSION */:
  5074. genArrayExpression(node, context);
  5075. break;
  5076. case 18 /* JS_FUNCTION_EXPRESSION */:
  5077. genFunctionExpression(node, context);
  5078. break;
  5079. case 19 /* JS_CONDITIONAL_EXPRESSION */:
  5080. genConditionalExpression(node, context);
  5081. break;
  5082. case 20 /* JS_CACHE_EXPRESSION */:
  5083. genCacheExpression(node, context);
  5084. break;
  5085. case 21 /* JS_BLOCK_STATEMENT */:
  5086. genNodeList(node.body, context, true, false);
  5087. break;
  5088. // SSR only types
  5089. case 22 /* JS_TEMPLATE_LITERAL */:
  5090. break;
  5091. case 23 /* JS_IF_STATEMENT */:
  5092. break;
  5093. case 24 /* JS_ASSIGNMENT_EXPRESSION */:
  5094. break;
  5095. case 25 /* JS_SEQUENCE_EXPRESSION */:
  5096. break;
  5097. case 26 /* JS_RETURN_STATEMENT */:
  5098. break;
  5099. /* istanbul ignore next */
  5100. case 10 /* IF_BRANCH */:
  5101. // noop
  5102. break;
  5103. default:
  5104. if ((true)) {
  5105. assert(false, `unhandled codegen node type: ${node.type}`);
  5106. // make sure we exhaust all possible types
  5107. const exhaustiveCheck = node;
  5108. return exhaustiveCheck;
  5109. }
  5110. }
  5111. }
  5112. function genText(node, context) {
  5113. context.push(JSON.stringify(node.content), node);
  5114. }
  5115. function genExpression(node, context) {
  5116. const { content, isStatic } = node;
  5117. context.push(isStatic ? JSON.stringify(content) : content, node);
  5118. }
  5119. function genInterpolation(node, context) {
  5120. const { push, helper, pure } = context;
  5121. if (pure)
  5122. push(PURE_ANNOTATION);
  5123. push(`${helper(TO_DISPLAY_STRING)}(`);
  5124. genNode(node.content, context);
  5125. push(`)`);
  5126. }
  5127. function genCompoundExpression(node, context) {
  5128. for (let i = 0; i < node.children.length; i++) {
  5129. const child = node.children[i];
  5130. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child)) {
  5131. context.push(child);
  5132. }
  5133. else {
  5134. genNode(child, context);
  5135. }
  5136. }
  5137. }
  5138. function genExpressionAsPropertyKey(node, context) {
  5139. const { push } = context;
  5140. if (node.type === 8 /* COMPOUND_EXPRESSION */) {
  5141. push(`[`);
  5142. genCompoundExpression(node, context);
  5143. push(`]`);
  5144. }
  5145. else if (node.isStatic) {
  5146. // only quote keys if necessary
  5147. const text = isSimpleIdentifier(node.content)
  5148. ? node.content
  5149. : JSON.stringify(node.content);
  5150. push(text, node);
  5151. }
  5152. else {
  5153. push(`[${node.content}]`, node);
  5154. }
  5155. }
  5156. function genComment(node, context) {
  5157. const { push, helper, pure } = context;
  5158. if (pure) {
  5159. push(PURE_ANNOTATION);
  5160. }
  5161. push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node);
  5162. }
  5163. function genVNodeCall(node, context) {
  5164. const { push, helper, pure } = context;
  5165. const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;
  5166. if (directives) {
  5167. push(helper(WITH_DIRECTIVES) + `(`);
  5168. }
  5169. if (isBlock) {
  5170. push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);
  5171. }
  5172. if (pure) {
  5173. push(PURE_ANNOTATION);
  5174. }
  5175. const callHelper = isBlock
  5176. ? getVNodeBlockHelper(context.inSSR, isComponent)
  5177. : getVNodeHelper(context.inSSR, isComponent);
  5178. push(helper(callHelper) + `(`, node);
  5179. genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context);
  5180. push(`)`);
  5181. if (isBlock) {
  5182. push(`)`);
  5183. }
  5184. if (directives) {
  5185. push(`, `);
  5186. genNode(directives, context);
  5187. push(`)`);
  5188. }
  5189. }
  5190. function genNullableArgs(args) {
  5191. let i = args.length;
  5192. while (i--) {
  5193. if (args[i] != null)
  5194. break;
  5195. }
  5196. return args.slice(0, i + 1).map(arg => arg || `null`);
  5197. }
  5198. // JavaScript
  5199. function genCallExpression(node, context) {
  5200. const { push, helper, pure } = context;
  5201. const callee = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node.callee) ? node.callee : helper(node.callee);
  5202. if (pure) {
  5203. push(PURE_ANNOTATION);
  5204. }
  5205. push(callee + `(`, node);
  5206. genNodeList(node.arguments, context);
  5207. push(`)`);
  5208. }
  5209. function genObjectExpression(node, context) {
  5210. const { push, indent, deindent, newline } = context;
  5211. const { properties } = node;
  5212. if (!properties.length) {
  5213. push(`{}`, node);
  5214. return;
  5215. }
  5216. const multilines = properties.length > 1 ||
  5217. ((( true)) &&
  5218. properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */));
  5219. push(multilines ? `{` : `{ `);
  5220. multilines && indent();
  5221. for (let i = 0; i < properties.length; i++) {
  5222. const { key, value } = properties[i];
  5223. // key
  5224. genExpressionAsPropertyKey(key, context);
  5225. push(`: `);
  5226. // value
  5227. genNode(value, context);
  5228. if (i < properties.length - 1) {
  5229. // will only reach this if it's multilines
  5230. push(`,`);
  5231. newline();
  5232. }
  5233. }
  5234. multilines && deindent();
  5235. push(multilines ? `}` : ` }`);
  5236. }
  5237. function genArrayExpression(node, context) {
  5238. genNodeListAsArray(node.elements, context);
  5239. }
  5240. function genFunctionExpression(node, context) {
  5241. const { push, indent, deindent } = context;
  5242. const { params, returns, body, newline, isSlot } = node;
  5243. if (isSlot) {
  5244. // wrap slot functions with owner context
  5245. push(`_${helperNameMap[WITH_CTX]}(`);
  5246. }
  5247. push(`(`, node);
  5248. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(params)) {
  5249. genNodeList(params, context);
  5250. }
  5251. else if (params) {
  5252. genNode(params, context);
  5253. }
  5254. push(`) => `);
  5255. if (newline || body) {
  5256. push(`{`);
  5257. indent();
  5258. }
  5259. if (returns) {
  5260. if (newline) {
  5261. push(`return `);
  5262. }
  5263. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(returns)) {
  5264. genNodeListAsArray(returns, context);
  5265. }
  5266. else {
  5267. genNode(returns, context);
  5268. }
  5269. }
  5270. else if (body) {
  5271. genNode(body, context);
  5272. }
  5273. if (newline || body) {
  5274. deindent();
  5275. push(`}`);
  5276. }
  5277. if (isSlot) {
  5278. if (node.isNonScopedSlot) {
  5279. push(`, undefined, true`);
  5280. }
  5281. push(`)`);
  5282. }
  5283. }
  5284. function genConditionalExpression(node, context) {
  5285. const { test, consequent, alternate, newline: needNewline } = node;
  5286. const { push, indent, deindent, newline } = context;
  5287. if (test.type === 4 /* SIMPLE_EXPRESSION */) {
  5288. const needsParens = !isSimpleIdentifier(test.content);
  5289. needsParens && push(`(`);
  5290. genExpression(test, context);
  5291. needsParens && push(`)`);
  5292. }
  5293. else {
  5294. push(`(`);
  5295. genNode(test, context);
  5296. push(`)`);
  5297. }
  5298. needNewline && indent();
  5299. context.indentLevel++;
  5300. needNewline || push(` `);
  5301. push(`? `);
  5302. genNode(consequent, context);
  5303. context.indentLevel--;
  5304. needNewline && newline();
  5305. needNewline || push(` `);
  5306. push(`: `);
  5307. const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */;
  5308. if (!isNested) {
  5309. context.indentLevel++;
  5310. }
  5311. genNode(alternate, context);
  5312. if (!isNested) {
  5313. context.indentLevel--;
  5314. }
  5315. needNewline && deindent(true /* without newline */);
  5316. }
  5317. function genCacheExpression(node, context) {
  5318. const { push, helper, indent, deindent, newline } = context;
  5319. push(`_cache[${node.index}] || (`);
  5320. if (node.isVNode) {
  5321. indent();
  5322. push(`${helper(SET_BLOCK_TRACKING)}(-1),`);
  5323. newline();
  5324. }
  5325. push(`_cache[${node.index}] = `);
  5326. genNode(node.value, context);
  5327. if (node.isVNode) {
  5328. push(`,`);
  5329. newline();
  5330. push(`${helper(SET_BLOCK_TRACKING)}(1),`);
  5331. newline();
  5332. push(`_cache[${node.index}]`);
  5333. deindent();
  5334. }
  5335. push(`)`);
  5336. }
  5337. function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {
  5338. {
  5339. return;
  5340. }
  5341. }
  5342. function isReferencedIdentifier(id, parent, parentStack) {
  5343. {
  5344. return false;
  5345. }
  5346. }
  5347. function isInDestructureAssignment(parent, parentStack) {
  5348. if (parent &&
  5349. (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) {
  5350. let i = parentStack.length;
  5351. while (i--) {
  5352. const p = parentStack[i];
  5353. if (p.type === 'AssignmentExpression') {
  5354. return true;
  5355. }
  5356. else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {
  5357. break;
  5358. }
  5359. }
  5360. }
  5361. return false;
  5362. }
  5363. function walkFunctionParams(node, onIdent) {
  5364. for (const p of node.params) {
  5365. for (const id of extractIdentifiers(p)) {
  5366. onIdent(id);
  5367. }
  5368. }
  5369. }
  5370. function walkBlockDeclarations(block, onIdent) {
  5371. for (const stmt of block.body) {
  5372. if (stmt.type === 'VariableDeclaration') {
  5373. if (stmt.declare)
  5374. continue;
  5375. for (const decl of stmt.declarations) {
  5376. for (const id of extractIdentifiers(decl.id)) {
  5377. onIdent(id);
  5378. }
  5379. }
  5380. }
  5381. else if (stmt.type === 'FunctionDeclaration' ||
  5382. stmt.type === 'ClassDeclaration') {
  5383. if (stmt.declare || !stmt.id)
  5384. continue;
  5385. onIdent(stmt.id);
  5386. }
  5387. }
  5388. }
  5389. function extractIdentifiers(param, nodes = []) {
  5390. switch (param.type) {
  5391. case 'Identifier':
  5392. nodes.push(param);
  5393. break;
  5394. case 'MemberExpression':
  5395. let object = param;
  5396. while (object.type === 'MemberExpression') {
  5397. object = object.object;
  5398. }
  5399. nodes.push(object);
  5400. break;
  5401. case 'ObjectPattern':
  5402. for (const prop of param.properties) {
  5403. if (prop.type === 'RestElement') {
  5404. extractIdentifiers(prop.argument, nodes);
  5405. }
  5406. else {
  5407. extractIdentifiers(prop.value, nodes);
  5408. }
  5409. }
  5410. break;
  5411. case 'ArrayPattern':
  5412. param.elements.forEach(element => {
  5413. if (element)
  5414. extractIdentifiers(element, nodes);
  5415. });
  5416. break;
  5417. case 'RestElement':
  5418. extractIdentifiers(param.argument, nodes);
  5419. break;
  5420. case 'AssignmentPattern':
  5421. extractIdentifiers(param.left, nodes);
  5422. break;
  5423. }
  5424. return nodes;
  5425. }
  5426. const isFunctionType = (node) => {
  5427. return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
  5428. };
  5429. const isStaticProperty = (node) => node &&
  5430. (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&
  5431. !node.computed;
  5432. const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
  5433. // these keywords should not appear inside expressions, but operators like
  5434. // typeof, instanceof and in are allowed
  5435. const prohibitedKeywordRE = new RegExp('\\b' +
  5436. ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
  5437. 'super,throw,while,yield,delete,export,import,return,switch,default,' +
  5438. 'extends,finally,continue,debugger,function,arguments,typeof,void')
  5439. .split(',')
  5440. .join('\\b|\\b') +
  5441. '\\b');
  5442. // strip strings in expressions
  5443. const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
  5444. /**
  5445. * Validate a non-prefixed expression.
  5446. * This is only called when using the in-browser runtime compiler since it
  5447. * doesn't prefix expressions.
  5448. */
  5449. function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) {
  5450. const exp = node.content;
  5451. // empty expressions are validated per-directive since some directives
  5452. // do allow empty expressions.
  5453. if (!exp.trim()) {
  5454. return;
  5455. }
  5456. try {
  5457. new Function(asRawStatements
  5458. ? ` ${exp} `
  5459. : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`);
  5460. }
  5461. catch (e) {
  5462. let message = e.message;
  5463. const keywordMatch = exp
  5464. .replace(stripStringRE, '')
  5465. .match(prohibitedKeywordRE);
  5466. if (keywordMatch) {
  5467. message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`;
  5468. }
  5469. context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));
  5470. }
  5471. }
  5472. const transformExpression = (node, context) => {
  5473. if (node.type === 5 /* INTERPOLATION */) {
  5474. node.content = processExpression(node.content, context);
  5475. }
  5476. else if (node.type === 1 /* ELEMENT */) {
  5477. // handle directives on element
  5478. for (let i = 0; i < node.props.length; i++) {
  5479. const dir = node.props[i];
  5480. // do not process for v-on & v-for since they are special handled
  5481. if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') {
  5482. const exp = dir.exp;
  5483. const arg = dir.arg;
  5484. // do not process exp if this is v-on:arg - we need special handling
  5485. // for wrapping inline statements.
  5486. if (exp &&
  5487. exp.type === 4 /* SIMPLE_EXPRESSION */ &&
  5488. !(dir.name === 'on' && arg)) {
  5489. dir.exp = processExpression(exp, context,
  5490. // slot args must be processed as function params
  5491. dir.name === 'slot');
  5492. }
  5493. if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) {
  5494. dir.arg = processExpression(arg, context);
  5495. }
  5496. }
  5497. }
  5498. }
  5499. };
  5500. // Important: since this function uses Node.js only dependencies, it should
  5501. // always be used with a leading !true check so that it can be
  5502. // tree-shaken from the browser build.
  5503. function processExpression(node, context,
  5504. // some expressions like v-slot props & v-for aliases should be parsed as
  5505. // function params
  5506. asParams = false,
  5507. // v-on handler values may contain multiple statements
  5508. asRawStatements = false, localVars = Object.create(context.identifiers)) {
  5509. {
  5510. if ((true)) {
  5511. // simple in-browser validation (same logic in 2.x)
  5512. validateBrowserExpression(node, context, asParams, asRawStatements);
  5513. }
  5514. return node;
  5515. }
  5516. }
  5517. const transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {
  5518. return processIf(node, dir, context, (ifNode, branch, isRoot) => {
  5519. // #1587: We need to dynamically increment the key based on the current
  5520. // node's sibling nodes, since chained v-if/else branches are
  5521. // rendered at the same depth
  5522. const siblings = context.parent.children;
  5523. let i = siblings.indexOf(ifNode);
  5524. let key = 0;
  5525. while (i-- >= 0) {
  5526. const sibling = siblings[i];
  5527. if (sibling && sibling.type === 9 /* IF */) {
  5528. key += sibling.branches.length;
  5529. }
  5530. }
  5531. // Exit callback. Complete the codegenNode when all children have been
  5532. // transformed.
  5533. return () => {
  5534. if (isRoot) {
  5535. ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);
  5536. }
  5537. else {
  5538. // attach this branch's codegen node to the v-if root.
  5539. const parentCondition = getParentCondition(ifNode.codegenNode);
  5540. parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);
  5541. }
  5542. };
  5543. });
  5544. });
  5545. // target-agnostic transform used for both Client and SSR
  5546. function processIf(node, dir, context, processCodegen) {
  5547. if (dir.name !== 'else' &&
  5548. (!dir.exp || !dir.exp.content.trim())) {
  5549. const loc = dir.exp ? dir.exp.loc : node.loc;
  5550. context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));
  5551. dir.exp = createSimpleExpression(`true`, false, loc);
  5552. }
  5553. if ( true && dir.exp) {
  5554. validateBrowserExpression(dir.exp, context);
  5555. }
  5556. if (dir.name === 'if') {
  5557. const branch = createIfBranch(node, dir);
  5558. const ifNode = {
  5559. type: 9 /* IF */,
  5560. loc: node.loc,
  5561. branches: [branch]
  5562. };
  5563. context.replaceNode(ifNode);
  5564. if (processCodegen) {
  5565. return processCodegen(ifNode, branch, true);
  5566. }
  5567. }
  5568. else {
  5569. // locate the adjacent v-if
  5570. const siblings = context.parent.children;
  5571. const comments = [];
  5572. let i = siblings.indexOf(node);
  5573. while (i-- >= -1) {
  5574. const sibling = siblings[i];
  5575. if (( true) && sibling && sibling.type === 3 /* COMMENT */) {
  5576. context.removeNode(sibling);
  5577. comments.unshift(sibling);
  5578. continue;
  5579. }
  5580. if (sibling &&
  5581. sibling.type === 2 /* TEXT */ &&
  5582. !sibling.content.trim().length) {
  5583. context.removeNode(sibling);
  5584. continue;
  5585. }
  5586. if (sibling && sibling.type === 9 /* IF */) {
  5587. // Check if v-else was followed by v-else-if
  5588. if (dir.name === 'else-if' &&
  5589. sibling.branches[sibling.branches.length - 1].condition === undefined) {
  5590. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5591. }
  5592. // move the node to the if node's branches
  5593. context.removeNode();
  5594. const branch = createIfBranch(node, dir);
  5595. if (( true) &&
  5596. comments.length &&
  5597. // #3619 ignore comments if the v-if is direct child of <transition>
  5598. !(context.parent &&
  5599. context.parent.type === 1 /* ELEMENT */ &&
  5600. isBuiltInType(context.parent.tag, 'transition'))) {
  5601. branch.children = [...comments, ...branch.children];
  5602. }
  5603. // check if user is forcing same key on different branches
  5604. if (true) {
  5605. const key = branch.userKey;
  5606. if (key) {
  5607. sibling.branches.forEach(({ userKey }) => {
  5608. if (isSameKey(userKey, key)) {
  5609. context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));
  5610. }
  5611. });
  5612. }
  5613. }
  5614. sibling.branches.push(branch);
  5615. const onExit = processCodegen && processCodegen(sibling, branch, false);
  5616. // since the branch was removed, it will not be traversed.
  5617. // make sure to traverse here.
  5618. traverseNode(branch, context);
  5619. // call on exit
  5620. if (onExit)
  5621. onExit();
  5622. // make sure to reset currentNode after traversal to indicate this
  5623. // node has been removed.
  5624. context.currentNode = null;
  5625. }
  5626. else {
  5627. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5628. }
  5629. break;
  5630. }
  5631. }
  5632. }
  5633. function createIfBranch(node, dir) {
  5634. return {
  5635. type: 10 /* IF_BRANCH */,
  5636. loc: node.loc,
  5637. condition: dir.name === 'else' ? undefined : dir.exp,
  5638. children: node.tagType === 3 /* TEMPLATE */ && !findDir(node, 'for')
  5639. ? node.children
  5640. : [node],
  5641. userKey: findProp(node, `key`)
  5642. };
  5643. }
  5644. function createCodegenNodeForBranch(branch, keyIndex, context) {
  5645. if (branch.condition) {
  5646. return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context),
  5647. // make sure to pass in asBlock: true so that the comment node call
  5648. // closes the current block.
  5649. createCallExpression(context.helper(CREATE_COMMENT), [
  5650. ( true) ? '"v-if"' : 0,
  5651. 'true'
  5652. ]));
  5653. }
  5654. else {
  5655. return createChildrenCodegenNode(branch, keyIndex, context);
  5656. }
  5657. }
  5658. function createChildrenCodegenNode(branch, keyIndex, context) {
  5659. const { helper } = context;
  5660. const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
  5661. const { children } = branch;
  5662. const firstChild = children[0];
  5663. const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */;
  5664. if (needFragmentWrapper) {
  5665. if (children.length === 1 && firstChild.type === 11 /* FOR */) {
  5666. // optimize away nested fragments when child is a ForNode
  5667. const vnodeCall = firstChild.codegenNode;
  5668. injectProp(vnodeCall, keyProperty, context);
  5669. return vnodeCall;
  5670. }
  5671. else {
  5672. let patchFlag = 64 /* STABLE_FRAGMENT */;
  5673. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  5674. // check if the fragment actually contains a single valid child with
  5675. // the rest being comments
  5676. if (( true) &&
  5677. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  5678. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  5679. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  5680. }
  5681. return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, false, false /* isComponent */, branch.loc);
  5682. }
  5683. }
  5684. else {
  5685. const ret = firstChild.codegenNode;
  5686. const vnodeCall = getMemoedVNodeCall(ret);
  5687. // Change createVNode to createBlock.
  5688. if (vnodeCall.type === 13 /* VNODE_CALL */) {
  5689. makeBlock(vnodeCall, context);
  5690. }
  5691. // inject branch key
  5692. injectProp(vnodeCall, keyProperty, context);
  5693. return ret;
  5694. }
  5695. }
  5696. function isSameKey(a, b) {
  5697. if (!a || a.type !== b.type) {
  5698. return false;
  5699. }
  5700. if (a.type === 6 /* ATTRIBUTE */) {
  5701. if (a.value.content !== b.value.content) {
  5702. return false;
  5703. }
  5704. }
  5705. else {
  5706. // directive
  5707. const exp = a.exp;
  5708. const branchExp = b.exp;
  5709. if (exp.type !== branchExp.type) {
  5710. return false;
  5711. }
  5712. if (exp.type !== 4 /* SIMPLE_EXPRESSION */ ||
  5713. exp.isStatic !== branchExp.isStatic ||
  5714. exp.content !== branchExp.content) {
  5715. return false;
  5716. }
  5717. }
  5718. return true;
  5719. }
  5720. function getParentCondition(node) {
  5721. while (true) {
  5722. if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5723. if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5724. node = node.alternate;
  5725. }
  5726. else {
  5727. return node;
  5728. }
  5729. }
  5730. else if (node.type === 20 /* JS_CACHE_EXPRESSION */) {
  5731. node = node.value;
  5732. }
  5733. }
  5734. }
  5735. const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {
  5736. const { helper, removeHelper } = context;
  5737. return processFor(node, dir, context, forNode => {
  5738. // create the loop render function expression now, and add the
  5739. // iterator on exit after all children have been traversed
  5740. const renderExp = createCallExpression(helper(RENDER_LIST), [
  5741. forNode.source
  5742. ]);
  5743. const isTemplate = isTemplateNode(node);
  5744. const memo = findDir(node, 'memo');
  5745. const keyProp = findProp(node, `key`);
  5746. const keyExp = keyProp &&
  5747. (keyProp.type === 6 /* ATTRIBUTE */
  5748. ? createSimpleExpression(keyProp.value.content, true)
  5749. : keyProp.exp);
  5750. const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;
  5751. const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ &&
  5752. forNode.source.constType > 0 /* NOT_CONSTANT */;
  5753. const fragmentFlag = isStableFragment
  5754. ? 64 /* STABLE_FRAGMENT */
  5755. : keyProp
  5756. ? 128 /* KEYED_FRAGMENT */
  5757. : 256 /* UNKEYED_FRAGMENT */;
  5758. forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag +
  5759. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[fragmentFlag]} */` : 0), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc);
  5760. return () => {
  5761. // finish the codegen now that all children have been traversed
  5762. let childBlock;
  5763. const { children } = forNode;
  5764. // check <template v-for> key placement
  5765. if (( true) && isTemplate) {
  5766. node.children.some(c => {
  5767. if (c.type === 1 /* ELEMENT */) {
  5768. const key = findProp(c, 'key');
  5769. if (key) {
  5770. context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));
  5771. return true;
  5772. }
  5773. }
  5774. });
  5775. }
  5776. const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */;
  5777. const slotOutlet = isSlotOutlet(node)
  5778. ? node
  5779. : isTemplate &&
  5780. node.children.length === 1 &&
  5781. isSlotOutlet(node.children[0])
  5782. ? node.children[0] // api-extractor somehow fails to infer this
  5783. : null;
  5784. if (slotOutlet) {
  5785. // <slot v-for="..."> or <template v-for="..."><slot/></template>
  5786. childBlock = slotOutlet.codegenNode;
  5787. if (isTemplate && keyProperty) {
  5788. // <template v-for="..." :key="..."><slot/></template>
  5789. // we need to inject the key to the renderSlot() call.
  5790. // the props for renderSlot is passed as the 3rd argument.
  5791. injectProp(childBlock, keyProperty, context);
  5792. }
  5793. }
  5794. else if (needFragmentWrapper) {
  5795. // <template v-for="..."> with text or multi-elements
  5796. // should generate a fragment block for each loop
  5797. childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ +
  5798. (( true)
  5799. ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]} */`
  5800. : 0), undefined, undefined, true, undefined, false /* isComponent */);
  5801. }
  5802. else {
  5803. // Normal element v-for. Directly use the child's codegenNode
  5804. // but mark it as a block.
  5805. childBlock = children[0]
  5806. .codegenNode;
  5807. if (isTemplate && keyProperty) {
  5808. injectProp(childBlock, keyProperty, context);
  5809. }
  5810. if (childBlock.isBlock !== !isStableFragment) {
  5811. if (childBlock.isBlock) {
  5812. // switch from block to vnode
  5813. removeHelper(OPEN_BLOCK);
  5814. removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5815. }
  5816. else {
  5817. // switch from vnode to block
  5818. removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5819. }
  5820. }
  5821. childBlock.isBlock = !isStableFragment;
  5822. if (childBlock.isBlock) {
  5823. helper(OPEN_BLOCK);
  5824. helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5825. }
  5826. else {
  5827. helper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5828. }
  5829. }
  5830. if (memo) {
  5831. const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [
  5832. createSimpleExpression(`_cached`)
  5833. ]));
  5834. loop.body = createBlockStatement([
  5835. createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
  5836. createCompoundExpression([
  5837. `if (_cached`,
  5838. ...(keyExp ? [` && _cached.key === `, keyExp] : []),
  5839. ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
  5840. ]),
  5841. createCompoundExpression([`const _item = `, childBlock]),
  5842. createSimpleExpression(`_item.memo = _memo`),
  5843. createSimpleExpression(`return _item`)
  5844. ]);
  5845. renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++)));
  5846. }
  5847. else {
  5848. renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */));
  5849. }
  5850. };
  5851. });
  5852. });
  5853. // target-agnostic transform used for both Client and SSR
  5854. function processFor(node, dir, context, processCodegen) {
  5855. if (!dir.exp) {
  5856. context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));
  5857. return;
  5858. }
  5859. const parseResult = parseForExpression(
  5860. // can only be simple expression because vFor transform is applied
  5861. // before expression transform.
  5862. dir.exp, context);
  5863. if (!parseResult) {
  5864. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));
  5865. return;
  5866. }
  5867. const { addIdentifiers, removeIdentifiers, scopes } = context;
  5868. const { source, value, key, index } = parseResult;
  5869. const forNode = {
  5870. type: 11 /* FOR */,
  5871. loc: dir.loc,
  5872. source,
  5873. valueAlias: value,
  5874. keyAlias: key,
  5875. objectIndexAlias: index,
  5876. parseResult,
  5877. children: isTemplateNode(node) ? node.children : [node]
  5878. };
  5879. context.replaceNode(forNode);
  5880. // bookkeeping
  5881. scopes.vFor++;
  5882. const onExit = processCodegen && processCodegen(forNode);
  5883. return () => {
  5884. scopes.vFor--;
  5885. if (onExit)
  5886. onExit();
  5887. };
  5888. }
  5889. const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
  5890. // This regex doesn't cover the case if key or index aliases have destructuring,
  5891. // but those do not make sense in the first place, so this works in practice.
  5892. const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
  5893. const stripParensRE = /^\(|\)$/g;
  5894. function parseForExpression(input, context) {
  5895. const loc = input.loc;
  5896. const exp = input.content;
  5897. const inMatch = exp.match(forAliasRE);
  5898. if (!inMatch)
  5899. return;
  5900. const [, LHS, RHS] = inMatch;
  5901. const result = {
  5902. source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)),
  5903. value: undefined,
  5904. key: undefined,
  5905. index: undefined
  5906. };
  5907. if (true) {
  5908. validateBrowserExpression(result.source, context);
  5909. }
  5910. let valueContent = LHS.trim().replace(stripParensRE, '').trim();
  5911. const trimmedOffset = LHS.indexOf(valueContent);
  5912. const iteratorMatch = valueContent.match(forIteratorRE);
  5913. if (iteratorMatch) {
  5914. valueContent = valueContent.replace(forIteratorRE, '').trim();
  5915. const keyContent = iteratorMatch[1].trim();
  5916. let keyOffset;
  5917. if (keyContent) {
  5918. keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
  5919. result.key = createAliasExpression(loc, keyContent, keyOffset);
  5920. if (true) {
  5921. validateBrowserExpression(result.key, context, true);
  5922. }
  5923. }
  5924. if (iteratorMatch[2]) {
  5925. const indexContent = iteratorMatch[2].trim();
  5926. if (indexContent) {
  5927. result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key
  5928. ? keyOffset + keyContent.length
  5929. : trimmedOffset + valueContent.length));
  5930. if (true) {
  5931. validateBrowserExpression(result.index, context, true);
  5932. }
  5933. }
  5934. }
  5935. }
  5936. if (valueContent) {
  5937. result.value = createAliasExpression(loc, valueContent, trimmedOffset);
  5938. if (true) {
  5939. validateBrowserExpression(result.value, context, true);
  5940. }
  5941. }
  5942. return result;
  5943. }
  5944. function createAliasExpression(range, content, offset) {
  5945. return createSimpleExpression(content, false, getInnerRange(range, offset, content.length));
  5946. }
  5947. function createForLoopParams({ value, key, index }, memoArgs = []) {
  5948. return createParamsList([value, key, index, ...memoArgs]);
  5949. }
  5950. function createParamsList(args) {
  5951. let i = args.length;
  5952. while (i--) {
  5953. if (args[i])
  5954. break;
  5955. }
  5956. return args
  5957. .slice(0, i + 1)
  5958. .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
  5959. }
  5960. const defaultFallback = createSimpleExpression(`undefined`, false);
  5961. // A NodeTransform that:
  5962. // 1. Tracks scope identifiers for scoped slots so that they don't get prefixed
  5963. // by transformExpression. This is only applied in non-browser builds with
  5964. // { prefixIdentifiers: true }.
  5965. // 2. Track v-slot depths so that we know a slot is inside another slot.
  5966. // Note the exit callback is executed before buildSlots() on the same node,
  5967. // so only nested slots see positive numbers.
  5968. const trackSlotScopes = (node, context) => {
  5969. if (node.type === 1 /* ELEMENT */ &&
  5970. (node.tagType === 1 /* COMPONENT */ ||
  5971. node.tagType === 3 /* TEMPLATE */)) {
  5972. // We are only checking non-empty v-slot here
  5973. // since we only care about slots that introduce scope variables.
  5974. const vSlot = findDir(node, 'slot');
  5975. if (vSlot) {
  5976. vSlot.exp;
  5977. context.scopes.vSlot++;
  5978. return () => {
  5979. context.scopes.vSlot--;
  5980. };
  5981. }
  5982. }
  5983. };
  5984. // A NodeTransform that tracks scope identifiers for scoped slots with v-for.
  5985. // This transform is only applied in non-browser builds with { prefixIdentifiers: true }
  5986. const trackVForSlotScopes = (node, context) => {
  5987. let vFor;
  5988. if (isTemplateNode(node) &&
  5989. node.props.some(isVSlot) &&
  5990. (vFor = findDir(node, 'for'))) {
  5991. const result = (vFor.parseResult = parseForExpression(vFor.exp, context));
  5992. if (result) {
  5993. const { value, key, index } = result;
  5994. const { addIdentifiers, removeIdentifiers } = context;
  5995. value && addIdentifiers(value);
  5996. key && addIdentifiers(key);
  5997. index && addIdentifiers(index);
  5998. return () => {
  5999. value && removeIdentifiers(value);
  6000. key && removeIdentifiers(key);
  6001. index && removeIdentifiers(index);
  6002. };
  6003. }
  6004. }
  6005. };
  6006. const buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc);
  6007. // Instead of being a DirectiveTransform, v-slot processing is called during
  6008. // transformElement to build the slots object for a component.
  6009. function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
  6010. context.helper(WITH_CTX);
  6011. const { children, loc } = node;
  6012. const slotsProperties = [];
  6013. const dynamicSlots = [];
  6014. // If the slot is inside a v-for or another v-slot, force it to be dynamic
  6015. // since it likely uses a scope variable.
  6016. let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;
  6017. // 1. Check for slot with slotProps on component itself.
  6018. // <Comp v-slot="{ prop }"/>
  6019. const onComponentSlot = findDir(node, 'slot', true);
  6020. if (onComponentSlot) {
  6021. const { arg, exp } = onComponentSlot;
  6022. if (arg && !isStaticExp(arg)) {
  6023. hasDynamicSlots = true;
  6024. }
  6025. slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc)));
  6026. }
  6027. // 2. Iterate through children and check for template slots
  6028. // <template v-slot:foo="{ prop }">
  6029. let hasTemplateSlots = false;
  6030. let hasNamedDefaultSlot = false;
  6031. const implicitDefaultChildren = [];
  6032. const seenSlotNames = new Set();
  6033. for (let i = 0; i < children.length; i++) {
  6034. const slotElement = children[i];
  6035. let slotDir;
  6036. if (!isTemplateNode(slotElement) ||
  6037. !(slotDir = findDir(slotElement, 'slot', true))) {
  6038. // not a <template v-slot>, skip.
  6039. if (slotElement.type !== 3 /* COMMENT */) {
  6040. implicitDefaultChildren.push(slotElement);
  6041. }
  6042. continue;
  6043. }
  6044. if (onComponentSlot) {
  6045. // already has on-component slot - this is incorrect usage.
  6046. context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));
  6047. break;
  6048. }
  6049. hasTemplateSlots = true;
  6050. const { children: slotChildren, loc: slotLoc } = slotElement;
  6051. const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir;
  6052. // check if name is dynamic.
  6053. let staticSlotName;
  6054. if (isStaticExp(slotName)) {
  6055. staticSlotName = slotName ? slotName.content : `default`;
  6056. }
  6057. else {
  6058. hasDynamicSlots = true;
  6059. }
  6060. const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc);
  6061. // check if this slot is conditional (v-if/v-for)
  6062. let vIf;
  6063. let vElse;
  6064. let vFor;
  6065. if ((vIf = findDir(slotElement, 'if'))) {
  6066. hasDynamicSlots = true;
  6067. dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback));
  6068. }
  6069. else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) {
  6070. // find adjacent v-if
  6071. let j = i;
  6072. let prev;
  6073. while (j--) {
  6074. prev = children[j];
  6075. if (prev.type !== 3 /* COMMENT */) {
  6076. break;
  6077. }
  6078. }
  6079. if (prev && isTemplateNode(prev) && findDir(prev, 'if')) {
  6080. // remove node
  6081. children.splice(i, 1);
  6082. i--;
  6083. // attach this slot to previous conditional
  6084. let conditional = dynamicSlots[dynamicSlots.length - 1];
  6085. while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  6086. conditional = conditional.alternate;
  6087. }
  6088. conditional.alternate = vElse.exp
  6089. ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)
  6090. : buildDynamicSlot(slotName, slotFunction);
  6091. }
  6092. else {
  6093. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));
  6094. }
  6095. }
  6096. else if ((vFor = findDir(slotElement, 'for'))) {
  6097. hasDynamicSlots = true;
  6098. const parseResult = vFor.parseResult ||
  6099. parseForExpression(vFor.exp, context);
  6100. if (parseResult) {
  6101. // Render the dynamic slots as an array and add it to the createSlot()
  6102. // args. The runtime knows how to handle it appropriately.
  6103. dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [
  6104. parseResult.source,
  6105. createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */)
  6106. ]));
  6107. }
  6108. else {
  6109. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));
  6110. }
  6111. }
  6112. else {
  6113. // check duplicate static names
  6114. if (staticSlotName) {
  6115. if (seenSlotNames.has(staticSlotName)) {
  6116. context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));
  6117. continue;
  6118. }
  6119. seenSlotNames.add(staticSlotName);
  6120. if (staticSlotName === 'default') {
  6121. hasNamedDefaultSlot = true;
  6122. }
  6123. }
  6124. slotsProperties.push(createObjectProperty(slotName, slotFunction));
  6125. }
  6126. }
  6127. if (!onComponentSlot) {
  6128. const buildDefaultSlotProperty = (props, children) => {
  6129. const fn = buildSlotFn(props, children, loc);
  6130. if (context.compatConfig) {
  6131. fn.isNonScopedSlot = true;
  6132. }
  6133. return createObjectProperty(`default`, fn);
  6134. };
  6135. if (!hasTemplateSlots) {
  6136. // implicit default slot (on component)
  6137. slotsProperties.push(buildDefaultSlotProperty(undefined, children));
  6138. }
  6139. else if (implicitDefaultChildren.length &&
  6140. // #3766
  6141. // with whitespace: 'preserve', whitespaces between slots will end up in
  6142. // implicitDefaultChildren. Ignore if all implicit children are whitespaces.
  6143. implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {
  6144. // implicit default slot (mixed with named slots)
  6145. if (hasNamedDefaultSlot) {
  6146. context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));
  6147. }
  6148. else {
  6149. slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));
  6150. }
  6151. }
  6152. }
  6153. const slotFlag = hasDynamicSlots
  6154. ? 2 /* DYNAMIC */
  6155. : hasForwardedSlots(node.children)
  6156. ? 3 /* FORWARDED */
  6157. : 1 /* STABLE */;
  6158. let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`,
  6159. // 2 = compiled but dynamic = can skip normalization, but must run diff
  6160. // 1 = compiled and static = can skip normalization AND diff as optimized
  6161. createSimpleExpression(slotFlag + (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.slotFlagsText[slotFlag]} */` : 0), false))), loc);
  6162. if (dynamicSlots.length) {
  6163. slots = createCallExpression(context.helper(CREATE_SLOTS), [
  6164. slots,
  6165. createArrayExpression(dynamicSlots)
  6166. ]);
  6167. }
  6168. return {
  6169. slots,
  6170. hasDynamicSlots
  6171. };
  6172. }
  6173. function buildDynamicSlot(name, fn) {
  6174. return createObjectExpression([
  6175. createObjectProperty(`name`, name),
  6176. createObjectProperty(`fn`, fn)
  6177. ]);
  6178. }
  6179. function hasForwardedSlots(children) {
  6180. for (let i = 0; i < children.length; i++) {
  6181. const child = children[i];
  6182. switch (child.type) {
  6183. case 1 /* ELEMENT */:
  6184. if (child.tagType === 2 /* SLOT */ ||
  6185. hasForwardedSlots(child.children)) {
  6186. return true;
  6187. }
  6188. break;
  6189. case 9 /* IF */:
  6190. if (hasForwardedSlots(child.branches))
  6191. return true;
  6192. break;
  6193. case 10 /* IF_BRANCH */:
  6194. case 11 /* FOR */:
  6195. if (hasForwardedSlots(child.children))
  6196. return true;
  6197. break;
  6198. }
  6199. }
  6200. return false;
  6201. }
  6202. function isNonWhitespaceContent(node) {
  6203. if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */)
  6204. return true;
  6205. return node.type === 2 /* TEXT */
  6206. ? !!node.content.trim()
  6207. : isNonWhitespaceContent(node.content);
  6208. }
  6209. // some directive transforms (e.g. v-model) may return a symbol for runtime
  6210. // import, which should be used instead of a resolveDirective call.
  6211. const directiveImportMap = new WeakMap();
  6212. // generate a JavaScript AST for this element's codegen
  6213. const transformElement = (node, context) => {
  6214. // perform the work on exit, after all child expressions have been
  6215. // processed and merged.
  6216. return function postTransformElement() {
  6217. node = context.currentNode;
  6218. if (!(node.type === 1 /* ELEMENT */ &&
  6219. (node.tagType === 0 /* ELEMENT */ ||
  6220. node.tagType === 1 /* COMPONENT */))) {
  6221. return;
  6222. }
  6223. const { tag, props } = node;
  6224. const isComponent = node.tagType === 1 /* COMPONENT */;
  6225. // The goal of the transform is to create a codegenNode implementing the
  6226. // VNodeCall interface.
  6227. let vnodeTag = isComponent
  6228. ? resolveComponentType(node, context)
  6229. : `"${tag}"`;
  6230. const isDynamicComponent = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;
  6231. let vnodeProps;
  6232. let vnodeChildren;
  6233. let vnodePatchFlag;
  6234. let patchFlag = 0;
  6235. let vnodeDynamicProps;
  6236. let dynamicPropNames;
  6237. let vnodeDirectives;
  6238. let shouldUseBlock =
  6239. // dynamic component may resolve to plain elements
  6240. isDynamicComponent ||
  6241. vnodeTag === TELEPORT ||
  6242. vnodeTag === SUSPENSE ||
  6243. (!isComponent &&
  6244. // <svg> and <foreignObject> must be forced into blocks so that block
  6245. // updates inside get proper isSVG flag at runtime. (#639, #643)
  6246. // This is technically web-specific, but splitting the logic out of core
  6247. // leads to too much unnecessary complexity.
  6248. (tag === 'svg' || tag === 'foreignObject'));
  6249. // props
  6250. if (props.length > 0) {
  6251. const propsBuildResult = buildProps(node, context);
  6252. vnodeProps = propsBuildResult.props;
  6253. patchFlag = propsBuildResult.patchFlag;
  6254. dynamicPropNames = propsBuildResult.dynamicPropNames;
  6255. const directives = propsBuildResult.directives;
  6256. vnodeDirectives =
  6257. directives && directives.length
  6258. ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context)))
  6259. : undefined;
  6260. if (propsBuildResult.shouldUseBlock) {
  6261. shouldUseBlock = true;
  6262. }
  6263. }
  6264. // children
  6265. if (node.children.length > 0) {
  6266. if (vnodeTag === KEEP_ALIVE) {
  6267. // Although a built-in component, we compile KeepAlive with raw children
  6268. // instead of slot functions so that it can be used inside Transition
  6269. // or other Transition-wrapping HOCs.
  6270. // To ensure correct updates with block optimizations, we need to:
  6271. // 1. Force keep-alive into a block. This avoids its children being
  6272. // collected by a parent block.
  6273. shouldUseBlock = true;
  6274. // 2. Force keep-alive to always be updated, since it uses raw children.
  6275. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6276. if (( true) && node.children.length > 1) {
  6277. context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {
  6278. start: node.children[0].loc.start,
  6279. end: node.children[node.children.length - 1].loc.end,
  6280. source: ''
  6281. }));
  6282. }
  6283. }
  6284. const shouldBuildAsSlots = isComponent &&
  6285. // Teleport is not a real component and has dedicated runtime handling
  6286. vnodeTag !== TELEPORT &&
  6287. // explained above.
  6288. vnodeTag !== KEEP_ALIVE;
  6289. if (shouldBuildAsSlots) {
  6290. const { slots, hasDynamicSlots } = buildSlots(node, context);
  6291. vnodeChildren = slots;
  6292. if (hasDynamicSlots) {
  6293. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6294. }
  6295. }
  6296. else if (node.children.length === 1 && vnodeTag !== TELEPORT) {
  6297. const child = node.children[0];
  6298. const type = child.type;
  6299. // check for dynamic text children
  6300. const hasDynamicTextChild = type === 5 /* INTERPOLATION */ ||
  6301. type === 8 /* COMPOUND_EXPRESSION */;
  6302. if (hasDynamicTextChild &&
  6303. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  6304. patchFlag |= 1 /* TEXT */;
  6305. }
  6306. // pass directly if the only child is a text node
  6307. // (plain / interpolation / expression)
  6308. if (hasDynamicTextChild || type === 2 /* TEXT */) {
  6309. vnodeChildren = child;
  6310. }
  6311. else {
  6312. vnodeChildren = node.children;
  6313. }
  6314. }
  6315. else {
  6316. vnodeChildren = node.children;
  6317. }
  6318. }
  6319. // patchFlag & dynamicPropNames
  6320. if (patchFlag !== 0) {
  6321. if ((true)) {
  6322. if (patchFlag < 0) {
  6323. // special flags (negative and mutually exclusive)
  6324. vnodePatchFlag = patchFlag + ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[patchFlag]} */`;
  6325. }
  6326. else {
  6327. // bitwise flags
  6328. const flagNames = Object.keys(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames)
  6329. .map(Number)
  6330. .filter(n => n > 0 && patchFlag & n)
  6331. .map(n => _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[n])
  6332. .join(`, `);
  6333. vnodePatchFlag = patchFlag + ` /* ${flagNames} */`;
  6334. }
  6335. }
  6336. else {}
  6337. if (dynamicPropNames && dynamicPropNames.length) {
  6338. vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);
  6339. }
  6340. }
  6341. node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc);
  6342. };
  6343. };
  6344. function resolveComponentType(node, context, ssr = false) {
  6345. let { tag } = node;
  6346. // 1. dynamic component
  6347. const isExplicitDynamic = isComponentTag(tag);
  6348. const isProp = findProp(node, 'is');
  6349. if (isProp) {
  6350. if (isExplicitDynamic ||
  6351. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))) {
  6352. const exp = isProp.type === 6 /* ATTRIBUTE */
  6353. ? isProp.value && createSimpleExpression(isProp.value.content, true)
  6354. : isProp.exp;
  6355. if (exp) {
  6356. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6357. exp
  6358. ]);
  6359. }
  6360. }
  6361. else if (isProp.type === 6 /* ATTRIBUTE */ &&
  6362. isProp.value.content.startsWith('vue:')) {
  6363. // <button is="vue:xxx">
  6364. // if not <component>, only is value that starts with "vue:" will be
  6365. // treated as component by the parse phase and reach here, unless it's
  6366. // compat mode where all is values are considered components
  6367. tag = isProp.value.content.slice(4);
  6368. }
  6369. }
  6370. // 1.5 v-is (TODO: Deprecate)
  6371. const isDir = !isExplicitDynamic && findDir(node, 'is');
  6372. if (isDir && isDir.exp) {
  6373. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6374. isDir.exp
  6375. ]);
  6376. }
  6377. // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...)
  6378. const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);
  6379. if (builtIn) {
  6380. // built-ins are simply fallthroughs / have special handling during ssr
  6381. // so we don't need to import their runtime equivalents
  6382. if (!ssr)
  6383. context.helper(builtIn);
  6384. return builtIn;
  6385. }
  6386. // 5. user component (resolve)
  6387. context.helper(RESOLVE_COMPONENT);
  6388. context.components.add(tag);
  6389. return toValidAssetId(tag, `component`);
  6390. }
  6391. function buildProps(node, context, props = node.props, ssr = false) {
  6392. const { tag, loc: elementLoc, children } = node;
  6393. const isComponent = node.tagType === 1 /* COMPONENT */;
  6394. let properties = [];
  6395. const mergeArgs = [];
  6396. const runtimeDirectives = [];
  6397. const hasChildren = children.length > 0;
  6398. let shouldUseBlock = false;
  6399. // patchFlag analysis
  6400. let patchFlag = 0;
  6401. let hasRef = false;
  6402. let hasClassBinding = false;
  6403. let hasStyleBinding = false;
  6404. let hasHydrationEventBinding = false;
  6405. let hasDynamicKeys = false;
  6406. let hasVnodeHook = false;
  6407. const dynamicPropNames = [];
  6408. const analyzePatchFlag = ({ key, value }) => {
  6409. if (isStaticExp(key)) {
  6410. const name = key.content;
  6411. const isEventHandler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name);
  6412. if (!isComponent &&
  6413. isEventHandler &&
  6414. // omit the flag for click handlers because hydration gives click
  6415. // dedicated fast path.
  6416. name.toLowerCase() !== 'onclick' &&
  6417. // omit v-model handlers
  6418. name !== 'onUpdate:modelValue' &&
  6419. // omit onVnodeXXX hooks
  6420. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6421. hasHydrationEventBinding = true;
  6422. }
  6423. if (isEventHandler && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6424. hasVnodeHook = true;
  6425. }
  6426. if (value.type === 20 /* JS_CACHE_EXPRESSION */ ||
  6427. ((value.type === 4 /* SIMPLE_EXPRESSION */ ||
  6428. value.type === 8 /* COMPOUND_EXPRESSION */) &&
  6429. getConstantType(value, context) > 0)) {
  6430. // skip if the prop is a cached handler or has constant value
  6431. return;
  6432. }
  6433. if (name === 'ref') {
  6434. hasRef = true;
  6435. }
  6436. else if (name === 'class') {
  6437. hasClassBinding = true;
  6438. }
  6439. else if (name === 'style') {
  6440. hasStyleBinding = true;
  6441. }
  6442. else if (name !== 'key' && !dynamicPropNames.includes(name)) {
  6443. dynamicPropNames.push(name);
  6444. }
  6445. // treat the dynamic class and style binding of the component as dynamic props
  6446. if (isComponent &&
  6447. (name === 'class' || name === 'style') &&
  6448. !dynamicPropNames.includes(name)) {
  6449. dynamicPropNames.push(name);
  6450. }
  6451. }
  6452. else {
  6453. hasDynamicKeys = true;
  6454. }
  6455. };
  6456. for (let i = 0; i < props.length; i++) {
  6457. // static attribute
  6458. const prop = props[i];
  6459. if (prop.type === 6 /* ATTRIBUTE */) {
  6460. const { loc, name, value } = prop;
  6461. let isStatic = true;
  6462. if (name === 'ref') {
  6463. hasRef = true;
  6464. if (context.scopes.vFor > 0) {
  6465. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6466. }
  6467. }
  6468. // skip is on <component>, or is="vue:xxx"
  6469. if (name === 'is' &&
  6470. (isComponentTag(tag) ||
  6471. (value && value.content.startsWith('vue:')) ||
  6472. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context)))) {
  6473. continue;
  6474. }
  6475. properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
  6476. }
  6477. else {
  6478. // directives
  6479. const { name, arg, exp, loc } = prop;
  6480. const isVBind = name === 'bind';
  6481. const isVOn = name === 'on';
  6482. // skip v-slot - it is handled by its dedicated transform.
  6483. if (name === 'slot') {
  6484. if (!isComponent) {
  6485. context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));
  6486. }
  6487. continue;
  6488. }
  6489. // skip v-once/v-memo - they are handled by dedicated transforms.
  6490. if (name === 'once' || name === 'memo') {
  6491. continue;
  6492. }
  6493. // skip v-is and :is on <component>
  6494. if (name === 'is' ||
  6495. (isVBind &&
  6496. isStaticArgOf(arg, 'is') &&
  6497. (isComponentTag(tag) ||
  6498. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))))) {
  6499. continue;
  6500. }
  6501. // skip v-on in SSR compilation
  6502. if (isVOn && ssr) {
  6503. continue;
  6504. }
  6505. if (
  6506. // #938: elements with dynamic keys should be forced into blocks
  6507. (isVBind && isStaticArgOf(arg, 'key')) ||
  6508. // inline before-update hooks need to force block so that it is invoked
  6509. // before children
  6510. (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) {
  6511. shouldUseBlock = true;
  6512. }
  6513. if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) {
  6514. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6515. }
  6516. // special case for v-bind and v-on with no argument
  6517. if (!arg && (isVBind || isVOn)) {
  6518. hasDynamicKeys = true;
  6519. if (exp) {
  6520. if (properties.length) {
  6521. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6522. properties = [];
  6523. }
  6524. if (isVBind) {
  6525. {
  6526. // 2.x v-bind object order compat
  6527. if ((true)) {
  6528. const hasOverridableKeys = mergeArgs.some(arg => {
  6529. if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) {
  6530. return arg.properties.some(({ key }) => {
  6531. if (key.type !== 4 /* SIMPLE_EXPRESSION */ ||
  6532. !key.isStatic) {
  6533. return true;
  6534. }
  6535. return (key.content !== 'class' &&
  6536. key.content !== 'style' &&
  6537. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(key.content));
  6538. });
  6539. }
  6540. else {
  6541. // dynamic expression
  6542. return true;
  6543. }
  6544. });
  6545. if (hasOverridableKeys) {
  6546. checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc);
  6547. }
  6548. }
  6549. if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) {
  6550. mergeArgs.unshift(exp);
  6551. continue;
  6552. }
  6553. }
  6554. mergeArgs.push(exp);
  6555. }
  6556. else {
  6557. // v-on="obj" -> toHandlers(obj)
  6558. mergeArgs.push({
  6559. type: 14 /* JS_CALL_EXPRESSION */,
  6560. loc,
  6561. callee: context.helper(TO_HANDLERS),
  6562. arguments: [exp]
  6563. });
  6564. }
  6565. }
  6566. else {
  6567. context.onError(createCompilerError(isVBind
  6568. ? 34 /* X_V_BIND_NO_EXPRESSION */
  6569. : 35 /* X_V_ON_NO_EXPRESSION */, loc));
  6570. }
  6571. continue;
  6572. }
  6573. const directiveTransform = context.directiveTransforms[name];
  6574. if (directiveTransform) {
  6575. // has built-in directive transform.
  6576. const { props, needRuntime } = directiveTransform(prop, node, context);
  6577. !ssr && props.forEach(analyzePatchFlag);
  6578. properties.push(...props);
  6579. if (needRuntime) {
  6580. runtimeDirectives.push(prop);
  6581. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(needRuntime)) {
  6582. directiveImportMap.set(prop, needRuntime);
  6583. }
  6584. }
  6585. }
  6586. else if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isBuiltInDirective)(name)) {
  6587. // no built-in transform, this is a user custom directive.
  6588. runtimeDirectives.push(prop);
  6589. // custom dirs may use beforeUpdate so they need to force blocks
  6590. // to ensure before-update gets called before children update
  6591. if (hasChildren) {
  6592. shouldUseBlock = true;
  6593. }
  6594. }
  6595. }
  6596. }
  6597. let propsExpression = undefined;
  6598. // has v-bind="object" or v-on="object", wrap with mergeProps
  6599. if (mergeArgs.length) {
  6600. if (properties.length) {
  6601. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6602. }
  6603. if (mergeArgs.length > 1) {
  6604. propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);
  6605. }
  6606. else {
  6607. // single v-bind with nothing else - no need for a mergeProps call
  6608. propsExpression = mergeArgs[0];
  6609. }
  6610. }
  6611. else if (properties.length) {
  6612. propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);
  6613. }
  6614. // patchFlag analysis
  6615. if (hasDynamicKeys) {
  6616. patchFlag |= 16 /* FULL_PROPS */;
  6617. }
  6618. else {
  6619. if (hasClassBinding && !isComponent) {
  6620. patchFlag |= 2 /* CLASS */;
  6621. }
  6622. if (hasStyleBinding && !isComponent) {
  6623. patchFlag |= 4 /* STYLE */;
  6624. }
  6625. if (dynamicPropNames.length) {
  6626. patchFlag |= 8 /* PROPS */;
  6627. }
  6628. if (hasHydrationEventBinding) {
  6629. patchFlag |= 32 /* HYDRATE_EVENTS */;
  6630. }
  6631. }
  6632. if (!shouldUseBlock &&
  6633. (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) &&
  6634. (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) {
  6635. patchFlag |= 512 /* NEED_PATCH */;
  6636. }
  6637. // pre-normalize props, SSR is skipped for now
  6638. if (!context.inSSR && propsExpression) {
  6639. switch (propsExpression.type) {
  6640. case 15 /* JS_OBJECT_EXPRESSION */:
  6641. // means that there is no v-bind,
  6642. // but still need to deal with dynamic key binding
  6643. let classKeyIndex = -1;
  6644. let styleKeyIndex = -1;
  6645. let hasDynamicKey = false;
  6646. for (let i = 0; i < propsExpression.properties.length; i++) {
  6647. const key = propsExpression.properties[i].key;
  6648. if (isStaticExp(key)) {
  6649. if (key.content === 'class') {
  6650. classKeyIndex = i;
  6651. }
  6652. else if (key.content === 'style') {
  6653. styleKeyIndex = i;
  6654. }
  6655. }
  6656. else if (!key.isHandlerKey) {
  6657. hasDynamicKey = true;
  6658. }
  6659. }
  6660. const classProp = propsExpression.properties[classKeyIndex];
  6661. const styleProp = propsExpression.properties[styleKeyIndex];
  6662. // no dynamic key
  6663. if (!hasDynamicKey) {
  6664. if (classProp && !isStaticExp(classProp.value)) {
  6665. classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);
  6666. }
  6667. if (styleProp &&
  6668. !isStaticExp(styleProp.value) &&
  6669. // the static style is compiled into an object,
  6670. // so use `hasStyleBinding` to ensure that it is a dynamic style binding
  6671. (hasStyleBinding ||
  6672. // v-bind:style and style both exist,
  6673. // v-bind:style with static literal object
  6674. styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) {
  6675. styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);
  6676. }
  6677. }
  6678. else {
  6679. // dynamic key binding, wrap with `normalizeProps`
  6680. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
  6681. }
  6682. break;
  6683. case 14 /* JS_CALL_EXPRESSION */:
  6684. // mergeProps call, do nothing
  6685. break;
  6686. default:
  6687. // single v-bind
  6688. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [
  6689. createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [
  6690. propsExpression
  6691. ])
  6692. ]);
  6693. break;
  6694. }
  6695. }
  6696. return {
  6697. props: propsExpression,
  6698. directives: runtimeDirectives,
  6699. patchFlag,
  6700. dynamicPropNames,
  6701. shouldUseBlock
  6702. };
  6703. }
  6704. // Dedupe props in an object literal.
  6705. // Literal duplicated attributes would have been warned during the parse phase,
  6706. // however, it's possible to encounter duplicated `onXXX` handlers with different
  6707. // modifiers. We also need to merge static and dynamic class / style attributes.
  6708. // - onXXX handlers / style: merge into array
  6709. // - class: merge into single expression with concatenation
  6710. function dedupeProperties(properties) {
  6711. const knownProps = new Map();
  6712. const deduped = [];
  6713. for (let i = 0; i < properties.length; i++) {
  6714. const prop = properties[i];
  6715. // dynamic keys are always allowed
  6716. if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) {
  6717. deduped.push(prop);
  6718. continue;
  6719. }
  6720. const name = prop.key.content;
  6721. const existing = knownProps.get(name);
  6722. if (existing) {
  6723. if (name === 'style' || name === 'class' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name)) {
  6724. mergeAsArray(existing, prop);
  6725. }
  6726. // unexpected duplicate, should have emitted error during parse
  6727. }
  6728. else {
  6729. knownProps.set(name, prop);
  6730. deduped.push(prop);
  6731. }
  6732. }
  6733. return deduped;
  6734. }
  6735. function mergeAsArray(existing, incoming) {
  6736. if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) {
  6737. existing.value.elements.push(incoming.value);
  6738. }
  6739. else {
  6740. existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);
  6741. }
  6742. }
  6743. function buildDirectiveArgs(dir, context) {
  6744. const dirArgs = [];
  6745. const runtime = directiveImportMap.get(dir);
  6746. if (runtime) {
  6747. // built-in directive with runtime
  6748. dirArgs.push(context.helperString(runtime));
  6749. }
  6750. else {
  6751. {
  6752. // inject statement for resolving directive
  6753. context.helper(RESOLVE_DIRECTIVE);
  6754. context.directives.add(dir.name);
  6755. dirArgs.push(toValidAssetId(dir.name, `directive`));
  6756. }
  6757. }
  6758. const { loc } = dir;
  6759. if (dir.exp)
  6760. dirArgs.push(dir.exp);
  6761. if (dir.arg) {
  6762. if (!dir.exp) {
  6763. dirArgs.push(`void 0`);
  6764. }
  6765. dirArgs.push(dir.arg);
  6766. }
  6767. if (Object.keys(dir.modifiers).length) {
  6768. if (!dir.arg) {
  6769. if (!dir.exp) {
  6770. dirArgs.push(`void 0`);
  6771. }
  6772. dirArgs.push(`void 0`);
  6773. }
  6774. const trueExpression = createSimpleExpression(`true`, false, loc);
  6775. dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));
  6776. }
  6777. return createArrayExpression(dirArgs, dir.loc);
  6778. }
  6779. function stringifyDynamicPropNames(props) {
  6780. let propsNamesString = `[`;
  6781. for (let i = 0, l = props.length; i < l; i++) {
  6782. propsNamesString += JSON.stringify(props[i]);
  6783. if (i < l - 1)
  6784. propsNamesString += ', ';
  6785. }
  6786. return propsNamesString + `]`;
  6787. }
  6788. function isComponentTag(tag) {
  6789. return tag === 'component' || tag === 'Component';
  6790. }
  6791. ( true)
  6792. ? Object.freeze({})
  6793. : 0;
  6794. ( true) ? Object.freeze([]) : 0;
  6795. const cacheStringFunction = (fn) => {
  6796. const cache = Object.create(null);
  6797. return ((str) => {
  6798. const hit = cache[str];
  6799. return hit || (cache[str] = fn(str));
  6800. });
  6801. };
  6802. const camelizeRE = /-(\w)/g;
  6803. /**
  6804. * @private
  6805. */
  6806. const camelize = cacheStringFunction((str) => {
  6807. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  6808. });
  6809. const transformSlotOutlet = (node, context) => {
  6810. if (isSlotOutlet(node)) {
  6811. const { children, loc } = node;
  6812. const { slotName, slotProps } = processSlotOutlet(node, context);
  6813. const slotArgs = [
  6814. context.prefixIdentifiers ? `_ctx.$slots` : `$slots`,
  6815. slotName,
  6816. '{}',
  6817. 'undefined',
  6818. 'true'
  6819. ];
  6820. let expectedLen = 2;
  6821. if (slotProps) {
  6822. slotArgs[2] = slotProps;
  6823. expectedLen = 3;
  6824. }
  6825. if (children.length) {
  6826. slotArgs[3] = createFunctionExpression([], children, false, false, loc);
  6827. expectedLen = 4;
  6828. }
  6829. if (context.scopeId && !context.slotted) {
  6830. expectedLen = 5;
  6831. }
  6832. slotArgs.splice(expectedLen); // remove unused arguments
  6833. node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
  6834. }
  6835. };
  6836. function processSlotOutlet(node, context) {
  6837. let slotName = `"default"`;
  6838. let slotProps = undefined;
  6839. const nonNameProps = [];
  6840. for (let i = 0; i < node.props.length; i++) {
  6841. const p = node.props[i];
  6842. if (p.type === 6 /* ATTRIBUTE */) {
  6843. if (p.value) {
  6844. if (p.name === 'name') {
  6845. slotName = JSON.stringify(p.value.content);
  6846. }
  6847. else {
  6848. p.name = camelize(p.name);
  6849. nonNameProps.push(p);
  6850. }
  6851. }
  6852. }
  6853. else {
  6854. if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) {
  6855. if (p.exp)
  6856. slotName = p.exp;
  6857. }
  6858. else {
  6859. if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {
  6860. p.arg.content = camelize(p.arg.content);
  6861. }
  6862. nonNameProps.push(p);
  6863. }
  6864. }
  6865. }
  6866. if (nonNameProps.length > 0) {
  6867. const { props, directives } = buildProps(node, context, nonNameProps);
  6868. slotProps = props;
  6869. if (directives.length) {
  6870. context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));
  6871. }
  6872. }
  6873. return {
  6874. slotName,
  6875. slotProps
  6876. };
  6877. }
  6878. const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
  6879. const transformOn = (dir, node, context, augmentor) => {
  6880. const { loc, modifiers, arg } = dir;
  6881. if (!dir.exp && !modifiers.length) {
  6882. context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));
  6883. }
  6884. let eventName;
  6885. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6886. if (arg.isStatic) {
  6887. let rawName = arg.content;
  6888. // TODO deprecate @vnodeXXX usage
  6889. if (rawName.startsWith('vue:')) {
  6890. rawName = `vnode-${rawName.slice(4)}`;
  6891. }
  6892. // for all event listeners, auto convert it to camelCase. See issue #2249
  6893. eventName = createSimpleExpression((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(rawName)), true, arg.loc);
  6894. }
  6895. else {
  6896. // #2388
  6897. eventName = createCompoundExpression([
  6898. `${context.helperString(TO_HANDLER_KEY)}(`,
  6899. arg,
  6900. `)`
  6901. ]);
  6902. }
  6903. }
  6904. else {
  6905. // already a compound expression.
  6906. eventName = arg;
  6907. eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);
  6908. eventName.children.push(`)`);
  6909. }
  6910. // handler processing
  6911. let exp = dir.exp;
  6912. if (exp && !exp.content.trim()) {
  6913. exp = undefined;
  6914. }
  6915. let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
  6916. if (exp) {
  6917. const isMemberExp = isMemberExpression(exp.content);
  6918. const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
  6919. const hasMultipleStatements = exp.content.includes(`;`);
  6920. if (true) {
  6921. validateBrowserExpression(exp, context, false, hasMultipleStatements);
  6922. }
  6923. if (isInlineStatement || (shouldCache && isMemberExp)) {
  6924. // wrap inline statement in a function expression
  6925. exp = createCompoundExpression([
  6926. `${isInlineStatement
  6927. ? `$event`
  6928. : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`,
  6929. exp,
  6930. hasMultipleStatements ? `}` : `)`
  6931. ]);
  6932. }
  6933. }
  6934. let ret = {
  6935. props: [
  6936. createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))
  6937. ]
  6938. };
  6939. // apply extended compiler augmentor
  6940. if (augmentor) {
  6941. ret = augmentor(ret);
  6942. }
  6943. if (shouldCache) {
  6944. // cache handlers so that it's always the same handler being passed down.
  6945. // this avoids unnecessary re-renders when users use inline handlers on
  6946. // components.
  6947. ret.props[0].value = context.cache(ret.props[0].value);
  6948. }
  6949. // mark the key as handler for props normalization check
  6950. ret.props.forEach(p => (p.key.isHandlerKey = true));
  6951. return ret;
  6952. };
  6953. // v-bind without arg is handled directly in ./transformElements.ts due to it affecting
  6954. // codegen for the entire props object. This transform here is only for v-bind
  6955. // *with* args.
  6956. const transformBind = (dir, _node, context) => {
  6957. const { exp, modifiers, loc } = dir;
  6958. const arg = dir.arg;
  6959. if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {
  6960. arg.children.unshift(`(`);
  6961. arg.children.push(`) || ""`);
  6962. }
  6963. else if (!arg.isStatic) {
  6964. arg.content = `${arg.content} || ""`;
  6965. }
  6966. // .sync is replaced by v-model:arg
  6967. if (modifiers.includes('camel')) {
  6968. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6969. if (arg.isStatic) {
  6970. arg.content = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(arg.content);
  6971. }
  6972. else {
  6973. arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
  6974. }
  6975. }
  6976. else {
  6977. arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
  6978. arg.children.push(`)`);
  6979. }
  6980. }
  6981. if (!context.inSSR) {
  6982. if (modifiers.includes('prop')) {
  6983. injectPrefix(arg, '.');
  6984. }
  6985. if (modifiers.includes('attr')) {
  6986. injectPrefix(arg, '^');
  6987. }
  6988. }
  6989. if (!exp ||
  6990. (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {
  6991. context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));
  6992. return {
  6993. props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]
  6994. };
  6995. }
  6996. return {
  6997. props: [createObjectProperty(arg, exp)]
  6998. };
  6999. };
  7000. const injectPrefix = (arg, prefix) => {
  7001. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  7002. if (arg.isStatic) {
  7003. arg.content = prefix + arg.content;
  7004. }
  7005. else {
  7006. arg.content = `\`${prefix}\${${arg.content}}\``;
  7007. }
  7008. }
  7009. else {
  7010. arg.children.unshift(`'${prefix}' + (`);
  7011. arg.children.push(`)`);
  7012. }
  7013. };
  7014. // Merge adjacent text nodes and expressions into a single expression
  7015. // e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child.
  7016. const transformText = (node, context) => {
  7017. if (node.type === 0 /* ROOT */ ||
  7018. node.type === 1 /* ELEMENT */ ||
  7019. node.type === 11 /* FOR */ ||
  7020. node.type === 10 /* IF_BRANCH */) {
  7021. // perform the transform on node exit so that all expressions have already
  7022. // been processed.
  7023. return () => {
  7024. const children = node.children;
  7025. let currentContainer = undefined;
  7026. let hasText = false;
  7027. for (let i = 0; i < children.length; i++) {
  7028. const child = children[i];
  7029. if (isText(child)) {
  7030. hasText = true;
  7031. for (let j = i + 1; j < children.length; j++) {
  7032. const next = children[j];
  7033. if (isText(next)) {
  7034. if (!currentContainer) {
  7035. currentContainer = children[i] = {
  7036. type: 8 /* COMPOUND_EXPRESSION */,
  7037. loc: child.loc,
  7038. children: [child]
  7039. };
  7040. }
  7041. // merge adjacent text node into current
  7042. currentContainer.children.push(` + `, next);
  7043. children.splice(j, 1);
  7044. j--;
  7045. }
  7046. else {
  7047. currentContainer = undefined;
  7048. break;
  7049. }
  7050. }
  7051. }
  7052. }
  7053. if (!hasText ||
  7054. // if this is a plain element with a single text child, leave it
  7055. // as-is since the runtime has dedicated fast path for this by directly
  7056. // setting textContent of the element.
  7057. // for component root it's always normalized anyway.
  7058. (children.length === 1 &&
  7059. (node.type === 0 /* ROOT */ ||
  7060. (node.type === 1 /* ELEMENT */ &&
  7061. node.tagType === 0 /* ELEMENT */ &&
  7062. // #3756
  7063. // custom directives can potentially add DOM elements arbitrarily,
  7064. // we need to avoid setting textContent of the element at runtime
  7065. // to avoid accidentally overwriting the DOM elements added
  7066. // by the user through custom directives.
  7067. !node.props.find(p => p.type === 7 /* DIRECTIVE */ &&
  7068. !context.directiveTransforms[p.name]) &&
  7069. // in compat mode, <template> tags with no special directives
  7070. // will be rendered as a fragment so its children must be
  7071. // converted into vnodes.
  7072. !(node.tag === 'template'))))) {
  7073. return;
  7074. }
  7075. // pre-convert text nodes into createTextVNode(text) calls to avoid
  7076. // runtime normalization.
  7077. for (let i = 0; i < children.length; i++) {
  7078. const child = children[i];
  7079. if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) {
  7080. const callArgs = [];
  7081. // createTextVNode defaults to single whitespace, so if it is a
  7082. // single space the code could be an empty call to save bytes.
  7083. if (child.type !== 2 /* TEXT */ || child.content !== ' ') {
  7084. callArgs.push(child);
  7085. }
  7086. // mark dynamic text with flag so it gets patched inside a block
  7087. if (!context.ssr &&
  7088. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  7089. callArgs.push(1 /* TEXT */ +
  7090. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[1]} */` : 0));
  7091. }
  7092. children[i] = {
  7093. type: 12 /* TEXT_CALL */,
  7094. content: child,
  7095. loc: child.loc,
  7096. codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)
  7097. };
  7098. }
  7099. }
  7100. };
  7101. }
  7102. };
  7103. const seen = new WeakSet();
  7104. const transformOnce = (node, context) => {
  7105. if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) {
  7106. if (seen.has(node) || context.inVOnce) {
  7107. return;
  7108. }
  7109. seen.add(node);
  7110. context.inVOnce = true;
  7111. context.helper(SET_BLOCK_TRACKING);
  7112. return () => {
  7113. context.inVOnce = false;
  7114. const cur = context.currentNode;
  7115. if (cur.codegenNode) {
  7116. cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */);
  7117. }
  7118. };
  7119. }
  7120. };
  7121. const transformModel = (dir, node, context) => {
  7122. const { exp, arg } = dir;
  7123. if (!exp) {
  7124. context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));
  7125. return createTransformProps();
  7126. }
  7127. const rawExp = exp.loc.source;
  7128. const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp;
  7129. // im SFC <script setup> inline mode, the exp may have been transformed into
  7130. // _unref(exp)
  7131. context.bindingMetadata[rawExp];
  7132. const maybeRef = !true /* SETUP_CONST */;
  7133. if (!expString.trim() ||
  7134. (!isMemberExpression(expString) && !maybeRef)) {
  7135. context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));
  7136. return createTransformProps();
  7137. }
  7138. const propName = arg ? arg : createSimpleExpression('modelValue', true);
  7139. const eventName = arg
  7140. ? isStaticExp(arg)
  7141. ? `onUpdate:${arg.content}`
  7142. : createCompoundExpression(['"onUpdate:" + ', arg])
  7143. : `onUpdate:modelValue`;
  7144. let assignmentExp;
  7145. const eventArg = context.isTS ? `($event: any)` : `$event`;
  7146. {
  7147. assignmentExp = createCompoundExpression([
  7148. `${eventArg} => ((`,
  7149. exp,
  7150. `) = $event)`
  7151. ]);
  7152. }
  7153. const props = [
  7154. // modelValue: foo
  7155. createObjectProperty(propName, dir.exp),
  7156. // "onUpdate:modelValue": $event => (foo = $event)
  7157. createObjectProperty(eventName, assignmentExp)
  7158. ];
  7159. // modelModifiers: { foo: true, "bar-baz": true }
  7160. if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) {
  7161. const modifiers = dir.modifiers
  7162. .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`)
  7163. .join(`, `);
  7164. const modifiersKey = arg
  7165. ? isStaticExp(arg)
  7166. ? `${arg.content}Modifiers`
  7167. : createCompoundExpression([arg, ' + "Modifiers"'])
  7168. : `modelModifiers`;
  7169. props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */)));
  7170. }
  7171. return createTransformProps(props);
  7172. };
  7173. function createTransformProps(props = []) {
  7174. return { props };
  7175. }
  7176. const validDivisionCharRE = /[\w).+\-_$\]]/;
  7177. const transformFilter = (node, context) => {
  7178. if (!isCompatEnabled("COMPILER_FILTER" /* COMPILER_FILTERS */, context)) {
  7179. return;
  7180. }
  7181. if (node.type === 5 /* INTERPOLATION */) {
  7182. // filter rewrite is applied before expression transform so only
  7183. // simple expressions are possible at this stage
  7184. rewriteFilter(node.content, context);
  7185. }
  7186. if (node.type === 1 /* ELEMENT */) {
  7187. node.props.forEach((prop) => {
  7188. if (prop.type === 7 /* DIRECTIVE */ &&
  7189. prop.name !== 'for' &&
  7190. prop.exp) {
  7191. rewriteFilter(prop.exp, context);
  7192. }
  7193. });
  7194. }
  7195. };
  7196. function rewriteFilter(node, context) {
  7197. if (node.type === 4 /* SIMPLE_EXPRESSION */) {
  7198. parseFilter(node, context);
  7199. }
  7200. else {
  7201. for (let i = 0; i < node.children.length; i++) {
  7202. const child = node.children[i];
  7203. if (typeof child !== 'object')
  7204. continue;
  7205. if (child.type === 4 /* SIMPLE_EXPRESSION */) {
  7206. parseFilter(child, context);
  7207. }
  7208. else if (child.type === 8 /* COMPOUND_EXPRESSION */) {
  7209. rewriteFilter(node, context);
  7210. }
  7211. else if (child.type === 5 /* INTERPOLATION */) {
  7212. rewriteFilter(child.content, context);
  7213. }
  7214. }
  7215. }
  7216. }
  7217. function parseFilter(node, context) {
  7218. const exp = node.content;
  7219. let inSingle = false;
  7220. let inDouble = false;
  7221. let inTemplateString = false;
  7222. let inRegex = false;
  7223. let curly = 0;
  7224. let square = 0;
  7225. let paren = 0;
  7226. let lastFilterIndex = 0;
  7227. let c, prev, i, expression, filters = [];
  7228. for (i = 0; i < exp.length; i++) {
  7229. prev = c;
  7230. c = exp.charCodeAt(i);
  7231. if (inSingle) {
  7232. if (c === 0x27 && prev !== 0x5c)
  7233. inSingle = false;
  7234. }
  7235. else if (inDouble) {
  7236. if (c === 0x22 && prev !== 0x5c)
  7237. inDouble = false;
  7238. }
  7239. else if (inTemplateString) {
  7240. if (c === 0x60 && prev !== 0x5c)
  7241. inTemplateString = false;
  7242. }
  7243. else if (inRegex) {
  7244. if (c === 0x2f && prev !== 0x5c)
  7245. inRegex = false;
  7246. }
  7247. else if (c === 0x7c && // pipe
  7248. exp.charCodeAt(i + 1) !== 0x7c &&
  7249. exp.charCodeAt(i - 1) !== 0x7c &&
  7250. !curly &&
  7251. !square &&
  7252. !paren) {
  7253. if (expression === undefined) {
  7254. // first filter, end of expression
  7255. lastFilterIndex = i + 1;
  7256. expression = exp.slice(0, i).trim();
  7257. }
  7258. else {
  7259. pushFilter();
  7260. }
  7261. }
  7262. else {
  7263. switch (c) {
  7264. case 0x22:
  7265. inDouble = true;
  7266. break; // "
  7267. case 0x27:
  7268. inSingle = true;
  7269. break; // '
  7270. case 0x60:
  7271. inTemplateString = true;
  7272. break; // `
  7273. case 0x28:
  7274. paren++;
  7275. break; // (
  7276. case 0x29:
  7277. paren--;
  7278. break; // )
  7279. case 0x5b:
  7280. square++;
  7281. break; // [
  7282. case 0x5d:
  7283. square--;
  7284. break; // ]
  7285. case 0x7b:
  7286. curly++;
  7287. break; // {
  7288. case 0x7d:
  7289. curly--;
  7290. break; // }
  7291. }
  7292. if (c === 0x2f) {
  7293. // /
  7294. let j = i - 1;
  7295. let p;
  7296. // find first non-whitespace prev char
  7297. for (; j >= 0; j--) {
  7298. p = exp.charAt(j);
  7299. if (p !== ' ')
  7300. break;
  7301. }
  7302. if (!p || !validDivisionCharRE.test(p)) {
  7303. inRegex = true;
  7304. }
  7305. }
  7306. }
  7307. }
  7308. if (expression === undefined) {
  7309. expression = exp.slice(0, i).trim();
  7310. }
  7311. else if (lastFilterIndex !== 0) {
  7312. pushFilter();
  7313. }
  7314. function pushFilter() {
  7315. filters.push(exp.slice(lastFilterIndex, i).trim());
  7316. lastFilterIndex = i + 1;
  7317. }
  7318. if (filters.length) {
  7319. ( true) &&
  7320. warnDeprecation("COMPILER_FILTER" /* COMPILER_FILTERS */, context, node.loc);
  7321. for (i = 0; i < filters.length; i++) {
  7322. expression = wrapFilter(expression, filters[i], context);
  7323. }
  7324. node.content = expression;
  7325. }
  7326. }
  7327. function wrapFilter(exp, filter, context) {
  7328. context.helper(RESOLVE_FILTER);
  7329. const i = filter.indexOf('(');
  7330. if (i < 0) {
  7331. context.filters.add(filter);
  7332. return `${toValidAssetId(filter, 'filter')}(${exp})`;
  7333. }
  7334. else {
  7335. const name = filter.slice(0, i);
  7336. const args = filter.slice(i + 1);
  7337. context.filters.add(name);
  7338. return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`;
  7339. }
  7340. }
  7341. const seen$1 = new WeakSet();
  7342. const transformMemo = (node, context) => {
  7343. if (node.type === 1 /* ELEMENT */) {
  7344. const dir = findDir(node, 'memo');
  7345. if (!dir || seen$1.has(node)) {
  7346. return;
  7347. }
  7348. seen$1.add(node);
  7349. return () => {
  7350. const codegenNode = node.codegenNode ||
  7351. context.currentNode.codegenNode;
  7352. if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) {
  7353. // non-component sub tree should be turned into a block
  7354. if (node.tagType !== 1 /* COMPONENT */) {
  7355. makeBlock(codegenNode, context);
  7356. }
  7357. node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
  7358. dir.exp,
  7359. createFunctionExpression(undefined, codegenNode),
  7360. `_cache`,
  7361. String(context.cached++)
  7362. ]);
  7363. }
  7364. };
  7365. }
  7366. };
  7367. function getBaseTransformPreset(prefixIdentifiers) {
  7368. return [
  7369. [
  7370. transformOnce,
  7371. transformIf,
  7372. transformMemo,
  7373. transformFor,
  7374. ...([transformFilter] ),
  7375. ...(( true)
  7376. ? [transformExpression]
  7377. : 0),
  7378. transformSlotOutlet,
  7379. transformElement,
  7380. trackSlotScopes,
  7381. transformText
  7382. ],
  7383. {
  7384. on: transformOn,
  7385. bind: transformBind,
  7386. model: transformModel
  7387. }
  7388. ];
  7389. }
  7390. // we name it `baseCompile` so that higher order compilers like
  7391. // @vue/compiler-dom can export `compile` while re-exporting everything else.
  7392. function baseCompile(template, options = {}) {
  7393. const onError = options.onError || defaultOnError;
  7394. const isModuleMode = options.mode === 'module';
  7395. /* istanbul ignore if */
  7396. {
  7397. if (options.prefixIdentifiers === true) {
  7398. onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));
  7399. }
  7400. else if (isModuleMode) {
  7401. onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));
  7402. }
  7403. }
  7404. const prefixIdentifiers = !true ;
  7405. if (options.cacheHandlers) {
  7406. onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));
  7407. }
  7408. if (options.scopeId && !isModuleMode) {
  7409. onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));
  7410. }
  7411. const ast = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(template) ? baseParse(template, options) : template;
  7412. const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
  7413. transform(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7414. prefixIdentifiers,
  7415. nodeTransforms: [
  7416. ...nodeTransforms,
  7417. ...(options.nodeTransforms || []) // user transforms
  7418. ],
  7419. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, directiveTransforms, options.directiveTransforms || {} // user transforms
  7420. )
  7421. }));
  7422. return generate(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7423. prefixIdentifiers
  7424. }));
  7425. }
  7426. const noopDirectiveTransform = () => ({ props: [] });
  7427. /***/ }),
  7428. /***/ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js":
  7429. /*!*************************************************************************!*\
  7430. !*** ./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js ***!
  7431. \*************************************************************************/
  7432. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7433. "use strict";
  7434. __webpack_require__.r(__webpack_exports__);
  7435. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  7436. /* harmony export */ "BASE_TRANSITION": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.BASE_TRANSITION),
  7437. /* harmony export */ "CAMELIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAMELIZE),
  7438. /* harmony export */ "CAPITALIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAPITALIZE),
  7439. /* harmony export */ "CREATE_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_BLOCK),
  7440. /* harmony export */ "CREATE_COMMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_COMMENT),
  7441. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_BLOCK),
  7442. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_VNODE),
  7443. /* harmony export */ "CREATE_SLOTS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_SLOTS),
  7444. /* harmony export */ "CREATE_STATIC": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_STATIC),
  7445. /* harmony export */ "CREATE_TEXT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_TEXT),
  7446. /* harmony export */ "CREATE_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_VNODE),
  7447. /* harmony export */ "DOMDirectiveTransforms": () => (/* binding */ DOMDirectiveTransforms),
  7448. /* harmony export */ "DOMNodeTransforms": () => (/* binding */ DOMNodeTransforms),
  7449. /* harmony export */ "FRAGMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.FRAGMENT),
  7450. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.GUARD_REACTIVE_PROPS),
  7451. /* harmony export */ "IS_MEMO_SAME": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_MEMO_SAME),
  7452. /* harmony export */ "IS_REF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_REF),
  7453. /* harmony export */ "KEEP_ALIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.KEEP_ALIVE),
  7454. /* harmony export */ "MERGE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.MERGE_PROPS),
  7455. /* harmony export */ "NORMALIZE_CLASS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_CLASS),
  7456. /* harmony export */ "NORMALIZE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_PROPS),
  7457. /* harmony export */ "NORMALIZE_STYLE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_STYLE),
  7458. /* harmony export */ "OPEN_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.OPEN_BLOCK),
  7459. /* harmony export */ "POP_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.POP_SCOPE_ID),
  7460. /* harmony export */ "PUSH_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.PUSH_SCOPE_ID),
  7461. /* harmony export */ "RENDER_LIST": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_LIST),
  7462. /* harmony export */ "RENDER_SLOT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_SLOT),
  7463. /* harmony export */ "RESOLVE_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_COMPONENT),
  7464. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DIRECTIVE),
  7465. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DYNAMIC_COMPONENT),
  7466. /* harmony export */ "RESOLVE_FILTER": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_FILTER),
  7467. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SET_BLOCK_TRACKING),
  7468. /* harmony export */ "SUSPENSE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SUSPENSE),
  7469. /* harmony export */ "TELEPORT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TELEPORT),
  7470. /* harmony export */ "TO_DISPLAY_STRING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING),
  7471. /* harmony export */ "TO_HANDLERS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLERS),
  7472. /* harmony export */ "TO_HANDLER_KEY": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLER_KEY),
  7473. /* harmony export */ "TRANSITION": () => (/* binding */ TRANSITION),
  7474. /* harmony export */ "TRANSITION_GROUP": () => (/* binding */ TRANSITION_GROUP),
  7475. /* harmony export */ "UNREF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.UNREF),
  7476. /* harmony export */ "V_MODEL_CHECKBOX": () => (/* binding */ V_MODEL_CHECKBOX),
  7477. /* harmony export */ "V_MODEL_DYNAMIC": () => (/* binding */ V_MODEL_DYNAMIC),
  7478. /* harmony export */ "V_MODEL_RADIO": () => (/* binding */ V_MODEL_RADIO),
  7479. /* harmony export */ "V_MODEL_SELECT": () => (/* binding */ V_MODEL_SELECT),
  7480. /* harmony export */ "V_MODEL_TEXT": () => (/* binding */ V_MODEL_TEXT),
  7481. /* harmony export */ "V_ON_WITH_KEYS": () => (/* binding */ V_ON_WITH_KEYS),
  7482. /* harmony export */ "V_ON_WITH_MODIFIERS": () => (/* binding */ V_ON_WITH_MODIFIERS),
  7483. /* harmony export */ "V_SHOW": () => (/* binding */ V_SHOW),
  7484. /* harmony export */ "WITH_CTX": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_CTX),
  7485. /* harmony export */ "WITH_DIRECTIVES": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_DIRECTIVES),
  7486. /* harmony export */ "WITH_MEMO": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_MEMO),
  7487. /* harmony export */ "advancePositionWithClone": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithClone),
  7488. /* harmony export */ "advancePositionWithMutation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithMutation),
  7489. /* harmony export */ "assert": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.assert),
  7490. /* harmony export */ "baseCompile": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile),
  7491. /* harmony export */ "baseParse": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse),
  7492. /* harmony export */ "buildDirectiveArgs": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildDirectiveArgs),
  7493. /* harmony export */ "buildProps": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildProps),
  7494. /* harmony export */ "buildSlots": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildSlots),
  7495. /* harmony export */ "checkCompatEnabled": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled),
  7496. /* harmony export */ "compile": () => (/* binding */ compile),
  7497. /* harmony export */ "createArrayExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createArrayExpression),
  7498. /* harmony export */ "createAssignmentExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createAssignmentExpression),
  7499. /* harmony export */ "createBlockStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createBlockStatement),
  7500. /* harmony export */ "createCacheExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCacheExpression),
  7501. /* harmony export */ "createCallExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression),
  7502. /* harmony export */ "createCompilerError": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError),
  7503. /* harmony export */ "createCompoundExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression),
  7504. /* harmony export */ "createConditionalExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createConditionalExpression),
  7505. /* harmony export */ "createDOMCompilerError": () => (/* binding */ createDOMCompilerError),
  7506. /* harmony export */ "createForLoopParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createForLoopParams),
  7507. /* harmony export */ "createFunctionExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createFunctionExpression),
  7508. /* harmony export */ "createIfStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createIfStatement),
  7509. /* harmony export */ "createInterpolation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createInterpolation),
  7510. /* harmony export */ "createObjectExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectExpression),
  7511. /* harmony export */ "createObjectProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty),
  7512. /* harmony export */ "createReturnStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createReturnStatement),
  7513. /* harmony export */ "createRoot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createRoot),
  7514. /* harmony export */ "createSequenceExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSequenceExpression),
  7515. /* harmony export */ "createSimpleExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression),
  7516. /* harmony export */ "createStructuralDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createStructuralDirectiveTransform),
  7517. /* harmony export */ "createTemplateLiteral": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTemplateLiteral),
  7518. /* harmony export */ "createTransformContext": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTransformContext),
  7519. /* harmony export */ "createVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createVNodeCall),
  7520. /* harmony export */ "extractIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.extractIdentifiers),
  7521. /* harmony export */ "findDir": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findDir),
  7522. /* harmony export */ "findProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp),
  7523. /* harmony export */ "generate": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generate),
  7524. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  7525. /* harmony export */ "getBaseTransformPreset": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getBaseTransformPreset),
  7526. /* harmony export */ "getInnerRange": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getInnerRange),
  7527. /* harmony export */ "getMemoedVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getMemoedVNodeCall),
  7528. /* harmony export */ "getVNodeBlockHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeBlockHelper),
  7529. /* harmony export */ "getVNodeHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeHelper),
  7530. /* harmony export */ "hasDynamicKeyVBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind),
  7531. /* harmony export */ "hasScopeRef": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasScopeRef),
  7532. /* harmony export */ "helperNameMap": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.helperNameMap),
  7533. /* harmony export */ "injectProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.injectProp),
  7534. /* harmony export */ "isBuiltInType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType),
  7535. /* harmony export */ "isCoreComponent": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isCoreComponent),
  7536. /* harmony export */ "isFunctionType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isFunctionType),
  7537. /* harmony export */ "isInDestructureAssignment": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isInDestructureAssignment),
  7538. /* harmony export */ "isMemberExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpression),
  7539. /* harmony export */ "isMemberExpressionBrowser": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionBrowser),
  7540. /* harmony export */ "isMemberExpressionNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionNode),
  7541. /* harmony export */ "isReferencedIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isReferencedIdentifier),
  7542. /* harmony export */ "isSimpleIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSimpleIdentifier),
  7543. /* harmony export */ "isSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSlotOutlet),
  7544. /* harmony export */ "isStaticArgOf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticArgOf),
  7545. /* harmony export */ "isStaticExp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp),
  7546. /* harmony export */ "isStaticProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticProperty),
  7547. /* harmony export */ "isStaticPropertyKey": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticPropertyKey),
  7548. /* harmony export */ "isTemplateNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isTemplateNode),
  7549. /* harmony export */ "isText": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isText),
  7550. /* harmony export */ "isVSlot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isVSlot),
  7551. /* harmony export */ "locStub": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.locStub),
  7552. /* harmony export */ "makeBlock": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.makeBlock),
  7553. /* harmony export */ "noopDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform),
  7554. /* harmony export */ "parse": () => (/* binding */ parse),
  7555. /* harmony export */ "parserOptions": () => (/* binding */ parserOptions),
  7556. /* harmony export */ "processExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processExpression),
  7557. /* harmony export */ "processFor": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processFor),
  7558. /* harmony export */ "processIf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processIf),
  7559. /* harmony export */ "processSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processSlotOutlet),
  7560. /* harmony export */ "registerRuntimeHelpers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers),
  7561. /* harmony export */ "resolveComponentType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponentType),
  7562. /* harmony export */ "toValidAssetId": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.toValidAssetId),
  7563. /* harmony export */ "trackSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackSlotScopes),
  7564. /* harmony export */ "trackVForSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackVForSlotScopes),
  7565. /* harmony export */ "transform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transform),
  7566. /* harmony export */ "transformBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformBind),
  7567. /* harmony export */ "transformElement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformElement),
  7568. /* harmony export */ "transformExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformExpression),
  7569. /* harmony export */ "transformModel": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel),
  7570. /* harmony export */ "transformOn": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn),
  7571. /* harmony export */ "transformStyle": () => (/* binding */ transformStyle),
  7572. /* harmony export */ "traverseNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.traverseNode),
  7573. /* harmony export */ "walkBlockDeclarations": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkBlockDeclarations),
  7574. /* harmony export */ "walkFunctionParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkFunctionParams),
  7575. /* harmony export */ "walkIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkIdentifiers),
  7576. /* harmony export */ "warnDeprecation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.warnDeprecation)
  7577. /* harmony export */ });
  7578. /* harmony import */ var _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/compiler-core */ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js");
  7579. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  7580. const V_MODEL_RADIO = Symbol(( true) ? `vModelRadio` : 0);
  7581. const V_MODEL_CHECKBOX = Symbol(( true) ? `vModelCheckbox` : 0);
  7582. const V_MODEL_TEXT = Symbol(( true) ? `vModelText` : 0);
  7583. const V_MODEL_SELECT = Symbol(( true) ? `vModelSelect` : 0);
  7584. const V_MODEL_DYNAMIC = Symbol(( true) ? `vModelDynamic` : 0);
  7585. const V_ON_WITH_MODIFIERS = Symbol(( true) ? `vOnModifiersGuard` : 0);
  7586. const V_ON_WITH_KEYS = Symbol(( true) ? `vOnKeysGuard` : 0);
  7587. const V_SHOW = Symbol(( true) ? `vShow` : 0);
  7588. const TRANSITION = Symbol(( true) ? `Transition` : 0);
  7589. const TRANSITION_GROUP = Symbol(( true) ? `TransitionGroup` : 0);
  7590. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers)({
  7591. [V_MODEL_RADIO]: `vModelRadio`,
  7592. [V_MODEL_CHECKBOX]: `vModelCheckbox`,
  7593. [V_MODEL_TEXT]: `vModelText`,
  7594. [V_MODEL_SELECT]: `vModelSelect`,
  7595. [V_MODEL_DYNAMIC]: `vModelDynamic`,
  7596. [V_ON_WITH_MODIFIERS]: `withModifiers`,
  7597. [V_ON_WITH_KEYS]: `withKeys`,
  7598. [V_SHOW]: `vShow`,
  7599. [TRANSITION]: `Transition`,
  7600. [TRANSITION_GROUP]: `TransitionGroup`
  7601. });
  7602. /* eslint-disable no-restricted-globals */
  7603. let decoder;
  7604. function decodeHtmlBrowser(raw, asAttr = false) {
  7605. if (!decoder) {
  7606. decoder = document.createElement('div');
  7607. }
  7608. if (asAttr) {
  7609. decoder.innerHTML = `<div foo="${raw.replace(/"/g, '&quot;')}">`;
  7610. return decoder.children[0].getAttribute('foo');
  7611. }
  7612. else {
  7613. decoder.innerHTML = raw;
  7614. return decoder.textContent;
  7615. }
  7616. }
  7617. const isRawTextContainer = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('style,iframe,script,noscript', true);
  7618. const parserOptions = {
  7619. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isVoidTag,
  7620. isNativeTag: tag => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  7621. isPreTag: tag => tag === 'pre',
  7622. decodeEntities: decodeHtmlBrowser ,
  7623. isBuiltInComponent: (tag) => {
  7624. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `Transition`)) {
  7625. return TRANSITION;
  7626. }
  7627. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `TransitionGroup`)) {
  7628. return TRANSITION_GROUP;
  7629. }
  7630. },
  7631. // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
  7632. getNamespace(tag, parent) {
  7633. let ns = parent ? parent.ns : 0 /* HTML */;
  7634. if (parent && ns === 2 /* MATH_ML */) {
  7635. if (parent.tag === 'annotation-xml') {
  7636. if (tag === 'svg') {
  7637. return 1 /* SVG */;
  7638. }
  7639. if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ &&
  7640. a.name === 'encoding' &&
  7641. a.value != null &&
  7642. (a.value.content === 'text/html' ||
  7643. a.value.content === 'application/xhtml+xml'))) {
  7644. ns = 0 /* HTML */;
  7645. }
  7646. }
  7647. else if (/^m(?:[ions]|text)$/.test(parent.tag) &&
  7648. tag !== 'mglyph' &&
  7649. tag !== 'malignmark') {
  7650. ns = 0 /* HTML */;
  7651. }
  7652. }
  7653. else if (parent && ns === 1 /* SVG */) {
  7654. if (parent.tag === 'foreignObject' ||
  7655. parent.tag === 'desc' ||
  7656. parent.tag === 'title') {
  7657. ns = 0 /* HTML */;
  7658. }
  7659. }
  7660. if (ns === 0 /* HTML */) {
  7661. if (tag === 'svg') {
  7662. return 1 /* SVG */;
  7663. }
  7664. if (tag === 'math') {
  7665. return 2 /* MATH_ML */;
  7666. }
  7667. }
  7668. return ns;
  7669. },
  7670. // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
  7671. getTextMode({ tag, ns }) {
  7672. if (ns === 0 /* HTML */) {
  7673. if (tag === 'textarea' || tag === 'title') {
  7674. return 1 /* RCDATA */;
  7675. }
  7676. if (isRawTextContainer(tag)) {
  7677. return 2 /* RAWTEXT */;
  7678. }
  7679. }
  7680. return 0 /* DATA */;
  7681. }
  7682. };
  7683. // Parse inline CSS strings for static style attributes into an object.
  7684. // This is a NodeTransform since it works on the static `style` attribute and
  7685. // converts it into a dynamic equivalent:
  7686. // style="color: red" -> :style='{ "color": "red" }'
  7687. // It is then processed by `transformElement` and included in the generated
  7688. // props.
  7689. const transformStyle = node => {
  7690. if (node.type === 1 /* ELEMENT */) {
  7691. node.props.forEach((p, i) => {
  7692. if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) {
  7693. // replace p with an expression node
  7694. node.props[i] = {
  7695. type: 7 /* DIRECTIVE */,
  7696. name: `bind`,
  7697. arg: (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`style`, true, p.loc),
  7698. exp: parseInlineCSS(p.value.content, p.loc),
  7699. modifiers: [],
  7700. loc: p.loc
  7701. };
  7702. }
  7703. });
  7704. }
  7705. };
  7706. const parseInlineCSS = (cssText, loc) => {
  7707. const normalized = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.parseStringStyle)(cssText);
  7708. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */);
  7709. };
  7710. function createDOMCompilerError(code, loc) {
  7711. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError)(code, loc, true ? DOMErrorMessages : 0);
  7712. }
  7713. const DOMErrorMessages = {
  7714. [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`,
  7715. [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`,
  7716. [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`,
  7717. [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`,
  7718. [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
  7719. [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`,
  7720. [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
  7721. [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
  7722. [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`,
  7723. [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`,
  7724. [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
  7725. };
  7726. const transformVHtml = (dir, node, context) => {
  7727. const { exp, loc } = dir;
  7728. if (!exp) {
  7729. context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc));
  7730. }
  7731. if (node.children.length) {
  7732. context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc));
  7733. node.children.length = 0;
  7734. }
  7735. return {
  7736. props: [
  7737. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`innerHTML`, true, loc), exp || (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7738. ]
  7739. };
  7740. };
  7741. const transformVText = (dir, node, context) => {
  7742. const { exp, loc } = dir;
  7743. if (!exp) {
  7744. context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc));
  7745. }
  7746. if (node.children.length) {
  7747. context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc));
  7748. node.children.length = 0;
  7749. }
  7750. return {
  7751. props: [
  7752. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`textContent`, true), exp
  7753. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helperString(_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING), [exp], loc)
  7754. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7755. ]
  7756. };
  7757. };
  7758. const transformModel = (dir, node, context) => {
  7759. const baseResult = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel)(dir, node, context);
  7760. // base transform has errors OR component v-model (only need props)
  7761. if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {
  7762. return baseResult;
  7763. }
  7764. if (dir.arg) {
  7765. context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc));
  7766. }
  7767. function checkDuplicatedValue() {
  7768. const value = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, 'value');
  7769. if (value) {
  7770. context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc));
  7771. }
  7772. }
  7773. const { tag } = node;
  7774. const isCustomElement = context.isCustomElement(tag);
  7775. if (tag === 'input' ||
  7776. tag === 'textarea' ||
  7777. tag === 'select' ||
  7778. isCustomElement) {
  7779. let directiveToUse = V_MODEL_TEXT;
  7780. let isInvalidType = false;
  7781. if (tag === 'input' || isCustomElement) {
  7782. const type = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, `type`);
  7783. if (type) {
  7784. if (type.type === 7 /* DIRECTIVE */) {
  7785. // :type="foo"
  7786. directiveToUse = V_MODEL_DYNAMIC;
  7787. }
  7788. else if (type.value) {
  7789. switch (type.value.content) {
  7790. case 'radio':
  7791. directiveToUse = V_MODEL_RADIO;
  7792. break;
  7793. case 'checkbox':
  7794. directiveToUse = V_MODEL_CHECKBOX;
  7795. break;
  7796. case 'file':
  7797. isInvalidType = true;
  7798. context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc));
  7799. break;
  7800. default:
  7801. // text type
  7802. ( true) && checkDuplicatedValue();
  7803. break;
  7804. }
  7805. }
  7806. }
  7807. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind)(node)) {
  7808. // element has bindings with dynamic keys, which can possibly contain
  7809. // "type".
  7810. directiveToUse = V_MODEL_DYNAMIC;
  7811. }
  7812. else {
  7813. // text type
  7814. ( true) && checkDuplicatedValue();
  7815. }
  7816. }
  7817. else if (tag === 'select') {
  7818. directiveToUse = V_MODEL_SELECT;
  7819. }
  7820. else {
  7821. // textarea
  7822. ( true) && checkDuplicatedValue();
  7823. }
  7824. // inject runtime directive
  7825. // by returning the helper symbol via needRuntime
  7826. // the import will replaced a resolveDirective call.
  7827. if (!isInvalidType) {
  7828. baseResult.needRuntime = context.helper(directiveToUse);
  7829. }
  7830. }
  7831. else {
  7832. context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc));
  7833. }
  7834. // native vmodel doesn't need the `modelValue` props since they are also
  7835. // passed to the runtime as `binding.value`. removing it reduces code size.
  7836. baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  7837. p.key.content === 'modelValue'));
  7838. return baseResult;
  7839. };
  7840. const isEventOptionModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`passive,once,capture`);
  7841. const isNonKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(
  7842. // event propagation management
  7843. `stop,prevent,self,` +
  7844. // system modifiers + exact
  7845. `ctrl,shift,alt,meta,exact,` +
  7846. // mouse
  7847. `middle`);
  7848. // left & right could be mouse or key modifiers based on event type
  7849. const maybeKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('left,right');
  7850. const isKeyboardEvent = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`onkeyup,onkeydown,onkeypress`, true);
  7851. const resolveModifiers = (key, modifiers, context, loc) => {
  7852. const keyModifiers = [];
  7853. const nonKeyModifiers = [];
  7854. const eventOptionModifiers = [];
  7855. for (let i = 0; i < modifiers.length; i++) {
  7856. const modifier = modifiers[i];
  7857. if (modifier === 'native' &&
  7858. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled)("COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */, context, loc)) {
  7859. eventOptionModifiers.push(modifier);
  7860. }
  7861. else if (isEventOptionModifier(modifier)) {
  7862. // eventOptionModifiers: modifiers for addEventListener() options,
  7863. // e.g. .passive & .capture
  7864. eventOptionModifiers.push(modifier);
  7865. }
  7866. else {
  7867. // runtimeModifiers: modifiers that needs runtime guards
  7868. if (maybeKeyModifier(modifier)) {
  7869. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)) {
  7870. if (isKeyboardEvent(key.content)) {
  7871. keyModifiers.push(modifier);
  7872. }
  7873. else {
  7874. nonKeyModifiers.push(modifier);
  7875. }
  7876. }
  7877. else {
  7878. keyModifiers.push(modifier);
  7879. nonKeyModifiers.push(modifier);
  7880. }
  7881. }
  7882. else {
  7883. if (isNonKeyModifier(modifier)) {
  7884. nonKeyModifiers.push(modifier);
  7885. }
  7886. else {
  7887. keyModifiers.push(modifier);
  7888. }
  7889. }
  7890. }
  7891. }
  7892. return {
  7893. keyModifiers,
  7894. nonKeyModifiers,
  7895. eventOptionModifiers
  7896. };
  7897. };
  7898. const transformClick = (key, event) => {
  7899. const isStaticClick = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) && key.content.toLowerCase() === 'onclick';
  7900. return isStaticClick
  7901. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(event, true)
  7902. : key.type !== 4 /* SIMPLE_EXPRESSION */
  7903. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([
  7904. `(`,
  7905. key,
  7906. `) === "onClick" ? "${event}" : (`,
  7907. key,
  7908. `)`
  7909. ])
  7910. : key;
  7911. };
  7912. const transformOn = (dir, node, context) => {
  7913. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn)(dir, node, context, baseResult => {
  7914. const { modifiers } = dir;
  7915. if (!modifiers.length)
  7916. return baseResult;
  7917. let { key, value: handlerExp } = baseResult.props[0];
  7918. const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc);
  7919. // normalize click.right and click.middle since they don't actually fire
  7920. if (nonKeyModifiers.includes('right')) {
  7921. key = transformClick(key, `onContextmenu`);
  7922. }
  7923. if (nonKeyModifiers.includes('middle')) {
  7924. key = transformClick(key, `onMouseup`);
  7925. }
  7926. if (nonKeyModifiers.length) {
  7927. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_MODIFIERS), [
  7928. handlerExp,
  7929. JSON.stringify(nonKeyModifiers)
  7930. ]);
  7931. }
  7932. if (keyModifiers.length &&
  7933. // if event name is dynamic, always wrap with keys guard
  7934. (!(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) || isKeyboardEvent(key.content))) {
  7935. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_KEYS), [
  7936. handlerExp,
  7937. JSON.stringify(keyModifiers)
  7938. ]);
  7939. }
  7940. if (eventOptionModifiers.length) {
  7941. const modifierPostfix = eventOptionModifiers.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join('');
  7942. key = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)
  7943. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`${key.content}${modifierPostfix}`, true)
  7944. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([`(`, key, `) + "${modifierPostfix}"`]);
  7945. }
  7946. return {
  7947. props: [(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)(key, handlerExp)]
  7948. };
  7949. });
  7950. };
  7951. const transformShow = (dir, node, context) => {
  7952. const { exp, loc } = dir;
  7953. if (!exp) {
  7954. context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc));
  7955. }
  7956. return {
  7957. props: [],
  7958. needRuntime: context.helper(V_SHOW)
  7959. };
  7960. };
  7961. const warnTransitionChildren = (node, context) => {
  7962. if (node.type === 1 /* ELEMENT */ &&
  7963. node.tagType === 1 /* COMPONENT */) {
  7964. const component = context.isBuiltInComponent(node.tag);
  7965. if (component === TRANSITION) {
  7966. return () => {
  7967. if (node.children.length && hasMultipleChildren(node)) {
  7968. context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, {
  7969. start: node.children[0].loc.start,
  7970. end: node.children[node.children.length - 1].loc.end,
  7971. source: ''
  7972. }));
  7973. }
  7974. };
  7975. }
  7976. }
  7977. };
  7978. function hasMultipleChildren(node) {
  7979. // #1352 filter out potential comment nodes.
  7980. const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ &&
  7981. !(c.type === 2 /* TEXT */ && !c.content.trim())));
  7982. const child = children[0];
  7983. return (children.length !== 1 ||
  7984. child.type === 11 /* FOR */ ||
  7985. (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren)));
  7986. }
  7987. const ignoreSideEffectTags = (node, context) => {
  7988. if (node.type === 1 /* ELEMENT */ &&
  7989. node.tagType === 0 /* ELEMENT */ &&
  7990. (node.tag === 'script' || node.tag === 'style')) {
  7991. context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc));
  7992. context.removeNode();
  7993. }
  7994. };
  7995. const DOMNodeTransforms = [
  7996. transformStyle,
  7997. ...(( true) ? [warnTransitionChildren] : 0)
  7998. ];
  7999. const DOMDirectiveTransforms = {
  8000. cloak: _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform,
  8001. html: transformVHtml,
  8002. text: transformVText,
  8003. model: transformModel,
  8004. on: transformOn,
  8005. show: transformShow
  8006. };
  8007. function compile(template, options = {}) {
  8008. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options, {
  8009. nodeTransforms: [
  8010. // ignore <script> and <tag>
  8011. // this is not put inside DOMNodeTransforms because that list is used
  8012. // by compiler-ssr to generate vnode fallback branches
  8013. ignoreSideEffectTags,
  8014. ...DOMNodeTransforms,
  8015. ...(options.nodeTransforms || [])
  8016. ],
  8017. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, DOMDirectiveTransforms, options.directiveTransforms || {}),
  8018. transformHoist: null
  8019. }));
  8020. }
  8021. function parse(template, options = {}) {
  8022. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options));
  8023. }
  8024. /***/ }),
  8025. /***/ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":
  8026. /*!*********************************************************************!*\
  8027. !*** ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js ***!
  8028. \*********************************************************************/
  8029. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  8030. "use strict";
  8031. __webpack_require__.r(__webpack_exports__);
  8032. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8033. /* harmony export */ "EffectScope": () => (/* binding */ EffectScope),
  8034. /* harmony export */ "ITERATE_KEY": () => (/* binding */ ITERATE_KEY),
  8035. /* harmony export */ "ReactiveEffect": () => (/* binding */ ReactiveEffect),
  8036. /* harmony export */ "computed": () => (/* binding */ computed),
  8037. /* harmony export */ "customRef": () => (/* binding */ customRef),
  8038. /* harmony export */ "deferredComputed": () => (/* binding */ deferredComputed),
  8039. /* harmony export */ "effect": () => (/* binding */ effect),
  8040. /* harmony export */ "effectScope": () => (/* binding */ effectScope),
  8041. /* harmony export */ "enableTracking": () => (/* binding */ enableTracking),
  8042. /* harmony export */ "getCurrentScope": () => (/* binding */ getCurrentScope),
  8043. /* harmony export */ "isProxy": () => (/* binding */ isProxy),
  8044. /* harmony export */ "isReactive": () => (/* binding */ isReactive),
  8045. /* harmony export */ "isReadonly": () => (/* binding */ isReadonly),
  8046. /* harmony export */ "isRef": () => (/* binding */ isRef),
  8047. /* harmony export */ "isShallow": () => (/* binding */ isShallow),
  8048. /* harmony export */ "markRaw": () => (/* binding */ markRaw),
  8049. /* harmony export */ "onScopeDispose": () => (/* binding */ onScopeDispose),
  8050. /* harmony export */ "pauseTracking": () => (/* binding */ pauseTracking),
  8051. /* harmony export */ "proxyRefs": () => (/* binding */ proxyRefs),
  8052. /* harmony export */ "reactive": () => (/* binding */ reactive),
  8053. /* harmony export */ "readonly": () => (/* binding */ readonly),
  8054. /* harmony export */ "ref": () => (/* binding */ ref),
  8055. /* harmony export */ "resetTracking": () => (/* binding */ resetTracking),
  8056. /* harmony export */ "shallowReactive": () => (/* binding */ shallowReactive),
  8057. /* harmony export */ "shallowReadonly": () => (/* binding */ shallowReadonly),
  8058. /* harmony export */ "shallowRef": () => (/* binding */ shallowRef),
  8059. /* harmony export */ "stop": () => (/* binding */ stop),
  8060. /* harmony export */ "toRaw": () => (/* binding */ toRaw),
  8061. /* harmony export */ "toRef": () => (/* binding */ toRef),
  8062. /* harmony export */ "toRefs": () => (/* binding */ toRefs),
  8063. /* harmony export */ "track": () => (/* binding */ track),
  8064. /* harmony export */ "trigger": () => (/* binding */ trigger),
  8065. /* harmony export */ "triggerRef": () => (/* binding */ triggerRef),
  8066. /* harmony export */ "unref": () => (/* binding */ unref)
  8067. /* harmony export */ });
  8068. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  8069. function warn(msg, ...args) {
  8070. console.warn(`[Vue warn] ${msg}`, ...args);
  8071. }
  8072. let activeEffectScope;
  8073. class EffectScope {
  8074. constructor(detached = false) {
  8075. this.active = true;
  8076. this.effects = [];
  8077. this.cleanups = [];
  8078. if (!detached && activeEffectScope) {
  8079. this.parent = activeEffectScope;
  8080. this.index =
  8081. (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
  8082. }
  8083. }
  8084. run(fn) {
  8085. if (this.active) {
  8086. try {
  8087. activeEffectScope = this;
  8088. return fn();
  8089. }
  8090. finally {
  8091. activeEffectScope = this.parent;
  8092. }
  8093. }
  8094. else if ((true)) {
  8095. warn(`cannot run an inactive effect scope.`);
  8096. }
  8097. }
  8098. on() {
  8099. activeEffectScope = this;
  8100. }
  8101. off() {
  8102. activeEffectScope = this.parent;
  8103. }
  8104. stop(fromParent) {
  8105. if (this.active) {
  8106. let i, l;
  8107. for (i = 0, l = this.effects.length; i < l; i++) {
  8108. this.effects[i].stop();
  8109. }
  8110. for (i = 0, l = this.cleanups.length; i < l; i++) {
  8111. this.cleanups[i]();
  8112. }
  8113. if (this.scopes) {
  8114. for (i = 0, l = this.scopes.length; i < l; i++) {
  8115. this.scopes[i].stop(true);
  8116. }
  8117. }
  8118. // nested scope, dereference from parent to avoid memory leaks
  8119. if (this.parent && !fromParent) {
  8120. // optimized O(1) removal
  8121. const last = this.parent.scopes.pop();
  8122. if (last && last !== this) {
  8123. this.parent.scopes[this.index] = last;
  8124. last.index = this.index;
  8125. }
  8126. }
  8127. this.active = false;
  8128. }
  8129. }
  8130. }
  8131. function effectScope(detached) {
  8132. return new EffectScope(detached);
  8133. }
  8134. function recordEffectScope(effect, scope = activeEffectScope) {
  8135. if (scope && scope.active) {
  8136. scope.effects.push(effect);
  8137. }
  8138. }
  8139. function getCurrentScope() {
  8140. return activeEffectScope;
  8141. }
  8142. function onScopeDispose(fn) {
  8143. if (activeEffectScope) {
  8144. activeEffectScope.cleanups.push(fn);
  8145. }
  8146. else if ((true)) {
  8147. warn(`onScopeDispose() is called when there is no active effect scope` +
  8148. ` to be associated with.`);
  8149. }
  8150. }
  8151. const createDep = (effects) => {
  8152. const dep = new Set(effects);
  8153. dep.w = 0;
  8154. dep.n = 0;
  8155. return dep;
  8156. };
  8157. const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
  8158. const newTracked = (dep) => (dep.n & trackOpBit) > 0;
  8159. const initDepMarkers = ({ deps }) => {
  8160. if (deps.length) {
  8161. for (let i = 0; i < deps.length; i++) {
  8162. deps[i].w |= trackOpBit; // set was tracked
  8163. }
  8164. }
  8165. };
  8166. const finalizeDepMarkers = (effect) => {
  8167. const { deps } = effect;
  8168. if (deps.length) {
  8169. let ptr = 0;
  8170. for (let i = 0; i < deps.length; i++) {
  8171. const dep = deps[i];
  8172. if (wasTracked(dep) && !newTracked(dep)) {
  8173. dep.delete(effect);
  8174. }
  8175. else {
  8176. deps[ptr++] = dep;
  8177. }
  8178. // clear bits
  8179. dep.w &= ~trackOpBit;
  8180. dep.n &= ~trackOpBit;
  8181. }
  8182. deps.length = ptr;
  8183. }
  8184. };
  8185. const targetMap = new WeakMap();
  8186. // The number of effects currently being tracked recursively.
  8187. let effectTrackDepth = 0;
  8188. let trackOpBit = 1;
  8189. /**
  8190. * The bitwise track markers support at most 30 levels of recursion.
  8191. * This value is chosen to enable modern JS engines to use a SMI on all platforms.
  8192. * When recursion depth is greater, fall back to using a full cleanup.
  8193. */
  8194. const maxMarkerBits = 30;
  8195. let activeEffect;
  8196. const ITERATE_KEY = Symbol(( true) ? 'iterate' : 0);
  8197. const MAP_KEY_ITERATE_KEY = Symbol(( true) ? 'Map key iterate' : 0);
  8198. class ReactiveEffect {
  8199. constructor(fn, scheduler = null, scope) {
  8200. this.fn = fn;
  8201. this.scheduler = scheduler;
  8202. this.active = true;
  8203. this.deps = [];
  8204. this.parent = undefined;
  8205. recordEffectScope(this, scope);
  8206. }
  8207. run() {
  8208. if (!this.active) {
  8209. return this.fn();
  8210. }
  8211. let parent = activeEffect;
  8212. let lastShouldTrack = shouldTrack;
  8213. while (parent) {
  8214. if (parent === this) {
  8215. return;
  8216. }
  8217. parent = parent.parent;
  8218. }
  8219. try {
  8220. this.parent = activeEffect;
  8221. activeEffect = this;
  8222. shouldTrack = true;
  8223. trackOpBit = 1 << ++effectTrackDepth;
  8224. if (effectTrackDepth <= maxMarkerBits) {
  8225. initDepMarkers(this);
  8226. }
  8227. else {
  8228. cleanupEffect(this);
  8229. }
  8230. return this.fn();
  8231. }
  8232. finally {
  8233. if (effectTrackDepth <= maxMarkerBits) {
  8234. finalizeDepMarkers(this);
  8235. }
  8236. trackOpBit = 1 << --effectTrackDepth;
  8237. activeEffect = this.parent;
  8238. shouldTrack = lastShouldTrack;
  8239. this.parent = undefined;
  8240. }
  8241. }
  8242. stop() {
  8243. if (this.active) {
  8244. cleanupEffect(this);
  8245. if (this.onStop) {
  8246. this.onStop();
  8247. }
  8248. this.active = false;
  8249. }
  8250. }
  8251. }
  8252. function cleanupEffect(effect) {
  8253. const { deps } = effect;
  8254. if (deps.length) {
  8255. for (let i = 0; i < deps.length; i++) {
  8256. deps[i].delete(effect);
  8257. }
  8258. deps.length = 0;
  8259. }
  8260. }
  8261. function effect(fn, options) {
  8262. if (fn.effect) {
  8263. fn = fn.effect.fn;
  8264. }
  8265. const _effect = new ReactiveEffect(fn);
  8266. if (options) {
  8267. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(_effect, options);
  8268. if (options.scope)
  8269. recordEffectScope(_effect, options.scope);
  8270. }
  8271. if (!options || !options.lazy) {
  8272. _effect.run();
  8273. }
  8274. const runner = _effect.run.bind(_effect);
  8275. runner.effect = _effect;
  8276. return runner;
  8277. }
  8278. function stop(runner) {
  8279. runner.effect.stop();
  8280. }
  8281. let shouldTrack = true;
  8282. const trackStack = [];
  8283. function pauseTracking() {
  8284. trackStack.push(shouldTrack);
  8285. shouldTrack = false;
  8286. }
  8287. function enableTracking() {
  8288. trackStack.push(shouldTrack);
  8289. shouldTrack = true;
  8290. }
  8291. function resetTracking() {
  8292. const last = trackStack.pop();
  8293. shouldTrack = last === undefined ? true : last;
  8294. }
  8295. function track(target, type, key) {
  8296. if (shouldTrack && activeEffect) {
  8297. let depsMap = targetMap.get(target);
  8298. if (!depsMap) {
  8299. targetMap.set(target, (depsMap = new Map()));
  8300. }
  8301. let dep = depsMap.get(key);
  8302. if (!dep) {
  8303. depsMap.set(key, (dep = createDep()));
  8304. }
  8305. const eventInfo = ( true)
  8306. ? { effect: activeEffect, target, type, key }
  8307. : 0;
  8308. trackEffects(dep, eventInfo);
  8309. }
  8310. }
  8311. function trackEffects(dep, debuggerEventExtraInfo) {
  8312. let shouldTrack = false;
  8313. if (effectTrackDepth <= maxMarkerBits) {
  8314. if (!newTracked(dep)) {
  8315. dep.n |= trackOpBit; // set newly tracked
  8316. shouldTrack = !wasTracked(dep);
  8317. }
  8318. }
  8319. else {
  8320. // Full cleanup mode.
  8321. shouldTrack = !dep.has(activeEffect);
  8322. }
  8323. if (shouldTrack) {
  8324. dep.add(activeEffect);
  8325. activeEffect.deps.push(dep);
  8326. if (( true) && activeEffect.onTrack) {
  8327. activeEffect.onTrack(Object.assign({
  8328. effect: activeEffect
  8329. }, debuggerEventExtraInfo));
  8330. }
  8331. }
  8332. }
  8333. function trigger(target, type, key, newValue, oldValue, oldTarget) {
  8334. const depsMap = targetMap.get(target);
  8335. if (!depsMap) {
  8336. // never been tracked
  8337. return;
  8338. }
  8339. let deps = [];
  8340. if (type === "clear" /* CLEAR */) {
  8341. // collection being cleared
  8342. // trigger all effects for target
  8343. deps = [...depsMap.values()];
  8344. }
  8345. else if (key === 'length' && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8346. depsMap.forEach((dep, key) => {
  8347. if (key === 'length' || key >= newValue) {
  8348. deps.push(dep);
  8349. }
  8350. });
  8351. }
  8352. else {
  8353. // schedule runs for SET | ADD | DELETE
  8354. if (key !== void 0) {
  8355. deps.push(depsMap.get(key));
  8356. }
  8357. // also run for iteration key on ADD | DELETE | Map.SET
  8358. switch (type) {
  8359. case "add" /* ADD */:
  8360. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8361. deps.push(depsMap.get(ITERATE_KEY));
  8362. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8363. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8364. }
  8365. }
  8366. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)) {
  8367. // new index added to array -> length changes
  8368. deps.push(depsMap.get('length'));
  8369. }
  8370. break;
  8371. case "delete" /* DELETE */:
  8372. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8373. deps.push(depsMap.get(ITERATE_KEY));
  8374. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8375. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8376. }
  8377. }
  8378. break;
  8379. case "set" /* SET */:
  8380. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8381. deps.push(depsMap.get(ITERATE_KEY));
  8382. }
  8383. break;
  8384. }
  8385. }
  8386. const eventInfo = ( true)
  8387. ? { target, type, key, newValue, oldValue, oldTarget }
  8388. : 0;
  8389. if (deps.length === 1) {
  8390. if (deps[0]) {
  8391. if ((true)) {
  8392. triggerEffects(deps[0], eventInfo);
  8393. }
  8394. else {}
  8395. }
  8396. }
  8397. else {
  8398. const effects = [];
  8399. for (const dep of deps) {
  8400. if (dep) {
  8401. effects.push(...dep);
  8402. }
  8403. }
  8404. if ((true)) {
  8405. triggerEffects(createDep(effects), eventInfo);
  8406. }
  8407. else {}
  8408. }
  8409. }
  8410. function triggerEffects(dep, debuggerEventExtraInfo) {
  8411. // spread into array for stabilization
  8412. for (const effect of (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(dep) ? dep : [...dep]) {
  8413. if (effect !== activeEffect || effect.allowRecurse) {
  8414. if (( true) && effect.onTrigger) {
  8415. effect.onTrigger((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({ effect }, debuggerEventExtraInfo));
  8416. }
  8417. if (effect.scheduler) {
  8418. effect.scheduler();
  8419. }
  8420. else {
  8421. effect.run();
  8422. }
  8423. }
  8424. }
  8425. }
  8426. const isNonTrackableKeys = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`__proto__,__v_isRef,__isVue`);
  8427. const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol)
  8428. .map(key => Symbol[key])
  8429. .filter(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol));
  8430. const get = /*#__PURE__*/ createGetter();
  8431. const shallowGet = /*#__PURE__*/ createGetter(false, true);
  8432. const readonlyGet = /*#__PURE__*/ createGetter(true);
  8433. const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
  8434. const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
  8435. function createArrayInstrumentations() {
  8436. const instrumentations = {};
  8437. ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
  8438. instrumentations[key] = function (...args) {
  8439. const arr = toRaw(this);
  8440. for (let i = 0, l = this.length; i < l; i++) {
  8441. track(arr, "get" /* GET */, i + '');
  8442. }
  8443. // we run the method using the original args first (which may be reactive)
  8444. const res = arr[key](...args);
  8445. if (res === -1 || res === false) {
  8446. // if that didn't work, run it again using raw values.
  8447. return arr[key](...args.map(toRaw));
  8448. }
  8449. else {
  8450. return res;
  8451. }
  8452. };
  8453. });
  8454. ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
  8455. instrumentations[key] = function (...args) {
  8456. pauseTracking();
  8457. const res = toRaw(this)[key].apply(this, args);
  8458. resetTracking();
  8459. return res;
  8460. };
  8461. });
  8462. return instrumentations;
  8463. }
  8464. function createGetter(isReadonly = false, shallow = false) {
  8465. return function get(target, key, receiver) {
  8466. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8467. return !isReadonly;
  8468. }
  8469. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8470. return isReadonly;
  8471. }
  8472. else if (key === "__v_isShallow" /* IS_SHALLOW */) {
  8473. return shallow;
  8474. }
  8475. else if (key === "__v_raw" /* RAW */ &&
  8476. receiver ===
  8477. (isReadonly
  8478. ? shallow
  8479. ? shallowReadonlyMap
  8480. : readonlyMap
  8481. : shallow
  8482. ? shallowReactiveMap
  8483. : reactiveMap).get(target)) {
  8484. return target;
  8485. }
  8486. const targetIsArray = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target);
  8487. if (!isReadonly && targetIsArray && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(arrayInstrumentations, key)) {
  8488. return Reflect.get(arrayInstrumentations, key, receiver);
  8489. }
  8490. const res = Reflect.get(target, key, receiver);
  8491. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
  8492. return res;
  8493. }
  8494. if (!isReadonly) {
  8495. track(target, "get" /* GET */, key);
  8496. }
  8497. if (shallow) {
  8498. return res;
  8499. }
  8500. if (isRef(res)) {
  8501. // ref unwrapping - does not apply for Array + integer key.
  8502. const shouldUnwrap = !targetIsArray || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key);
  8503. return shouldUnwrap ? res.value : res;
  8504. }
  8505. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(res)) {
  8506. // Convert returned value into a proxy as well. we do the isObject check
  8507. // here to avoid invalid value warning. Also need to lazy access readonly
  8508. // and reactive here to avoid circular dependency.
  8509. return isReadonly ? readonly(res) : reactive(res);
  8510. }
  8511. return res;
  8512. };
  8513. }
  8514. const set = /*#__PURE__*/ createSetter();
  8515. const shallowSet = /*#__PURE__*/ createSetter(true);
  8516. function createSetter(shallow = false) {
  8517. return function set(target, key, value, receiver) {
  8518. let oldValue = target[key];
  8519. if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
  8520. return false;
  8521. }
  8522. if (!shallow && !isReadonly(value)) {
  8523. if (!isShallow(value)) {
  8524. value = toRaw(value);
  8525. oldValue = toRaw(oldValue);
  8526. }
  8527. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && isRef(oldValue) && !isRef(value)) {
  8528. oldValue.value = value;
  8529. return true;
  8530. }
  8531. }
  8532. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)
  8533. ? Number(key) < target.length
  8534. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8535. const result = Reflect.set(target, key, value, receiver);
  8536. // don't trigger if target is something up in the prototype chain of original
  8537. if (target === toRaw(receiver)) {
  8538. if (!hadKey) {
  8539. trigger(target, "add" /* ADD */, key, value);
  8540. }
  8541. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8542. trigger(target, "set" /* SET */, key, value, oldValue);
  8543. }
  8544. }
  8545. return result;
  8546. };
  8547. }
  8548. function deleteProperty(target, key) {
  8549. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8550. const oldValue = target[key];
  8551. const result = Reflect.deleteProperty(target, key);
  8552. if (result && hadKey) {
  8553. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8554. }
  8555. return result;
  8556. }
  8557. function has(target, key) {
  8558. const result = Reflect.has(target, key);
  8559. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) || !builtInSymbols.has(key)) {
  8560. track(target, "has" /* HAS */, key);
  8561. }
  8562. return result;
  8563. }
  8564. function ownKeys(target) {
  8565. track(target, "iterate" /* ITERATE */, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? 'length' : ITERATE_KEY);
  8566. return Reflect.ownKeys(target);
  8567. }
  8568. const mutableHandlers = {
  8569. get,
  8570. set,
  8571. deleteProperty,
  8572. has,
  8573. ownKeys
  8574. };
  8575. const readonlyHandlers = {
  8576. get: readonlyGet,
  8577. set(target, key) {
  8578. if ((true)) {
  8579. console.warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
  8580. }
  8581. return true;
  8582. },
  8583. deleteProperty(target, key) {
  8584. if ((true)) {
  8585. console.warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
  8586. }
  8587. return true;
  8588. }
  8589. };
  8590. const shallowReactiveHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, mutableHandlers, {
  8591. get: shallowGet,
  8592. set: shallowSet
  8593. });
  8594. // Props handlers are special in the sense that it should not unwrap top-level
  8595. // refs (in order to allow refs to be explicitly passed down), but should
  8596. // retain the reactivity of the normal readonly object.
  8597. const shallowReadonlyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, readonlyHandlers, {
  8598. get: shallowReadonlyGet
  8599. });
  8600. const toShallow = (value) => value;
  8601. const getProto = (v) => Reflect.getPrototypeOf(v);
  8602. function get$1(target, key, isReadonly = false, isShallow = false) {
  8603. // #1772: readonly(reactive(Map)) should return readonly + reactive version
  8604. // of the value
  8605. target = target["__v_raw" /* RAW */];
  8606. const rawTarget = toRaw(target);
  8607. const rawKey = toRaw(key);
  8608. if (key !== rawKey) {
  8609. !isReadonly && track(rawTarget, "get" /* GET */, key);
  8610. }
  8611. !isReadonly && track(rawTarget, "get" /* GET */, rawKey);
  8612. const { has } = getProto(rawTarget);
  8613. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8614. if (has.call(rawTarget, key)) {
  8615. return wrap(target.get(key));
  8616. }
  8617. else if (has.call(rawTarget, rawKey)) {
  8618. return wrap(target.get(rawKey));
  8619. }
  8620. else if (target !== rawTarget) {
  8621. // #3602 readonly(reactive(Map))
  8622. // ensure that the nested reactive `Map` can do tracking for itself
  8623. target.get(key);
  8624. }
  8625. }
  8626. function has$1(key, isReadonly = false) {
  8627. const target = this["__v_raw" /* RAW */];
  8628. const rawTarget = toRaw(target);
  8629. const rawKey = toRaw(key);
  8630. if (key !== rawKey) {
  8631. !isReadonly && track(rawTarget, "has" /* HAS */, key);
  8632. }
  8633. !isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
  8634. return key === rawKey
  8635. ? target.has(key)
  8636. : target.has(key) || target.has(rawKey);
  8637. }
  8638. function size(target, isReadonly = false) {
  8639. target = target["__v_raw" /* RAW */];
  8640. !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
  8641. return Reflect.get(target, 'size', target);
  8642. }
  8643. function add(value) {
  8644. value = toRaw(value);
  8645. const target = toRaw(this);
  8646. const proto = getProto(target);
  8647. const hadKey = proto.has.call(target, value);
  8648. if (!hadKey) {
  8649. target.add(value);
  8650. trigger(target, "add" /* ADD */, value, value);
  8651. }
  8652. return this;
  8653. }
  8654. function set$1(key, value) {
  8655. value = toRaw(value);
  8656. const target = toRaw(this);
  8657. const { has, get } = getProto(target);
  8658. let hadKey = has.call(target, key);
  8659. if (!hadKey) {
  8660. key = toRaw(key);
  8661. hadKey = has.call(target, key);
  8662. }
  8663. else if ((true)) {
  8664. checkIdentityKeys(target, has, key);
  8665. }
  8666. const oldValue = get.call(target, key);
  8667. target.set(key, value);
  8668. if (!hadKey) {
  8669. trigger(target, "add" /* ADD */, key, value);
  8670. }
  8671. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8672. trigger(target, "set" /* SET */, key, value, oldValue);
  8673. }
  8674. return this;
  8675. }
  8676. function deleteEntry(key) {
  8677. const target = toRaw(this);
  8678. const { has, get } = getProto(target);
  8679. let hadKey = has.call(target, key);
  8680. if (!hadKey) {
  8681. key = toRaw(key);
  8682. hadKey = has.call(target, key);
  8683. }
  8684. else if ((true)) {
  8685. checkIdentityKeys(target, has, key);
  8686. }
  8687. const oldValue = get ? get.call(target, key) : undefined;
  8688. // forward the operation before queueing reactions
  8689. const result = target.delete(key);
  8690. if (hadKey) {
  8691. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8692. }
  8693. return result;
  8694. }
  8695. function clear() {
  8696. const target = toRaw(this);
  8697. const hadItems = target.size !== 0;
  8698. const oldTarget = ( true)
  8699. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)
  8700. ? new Map(target)
  8701. : new Set(target)
  8702. : 0;
  8703. // forward the operation before queueing reactions
  8704. const result = target.clear();
  8705. if (hadItems) {
  8706. trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
  8707. }
  8708. return result;
  8709. }
  8710. function createForEach(isReadonly, isShallow) {
  8711. return function forEach(callback, thisArg) {
  8712. const observed = this;
  8713. const target = observed["__v_raw" /* RAW */];
  8714. const rawTarget = toRaw(target);
  8715. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8716. !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
  8717. return target.forEach((value, key) => {
  8718. // important: make sure the callback is
  8719. // 1. invoked with the reactive map as `this` and 3rd arg
  8720. // 2. the value received should be a corresponding reactive/readonly.
  8721. return callback.call(thisArg, wrap(value), wrap(key), observed);
  8722. });
  8723. };
  8724. }
  8725. function createIterableMethod(method, isReadonly, isShallow) {
  8726. return function (...args) {
  8727. const target = this["__v_raw" /* RAW */];
  8728. const rawTarget = toRaw(target);
  8729. const targetIsMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(rawTarget);
  8730. const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
  8731. const isKeyOnly = method === 'keys' && targetIsMap;
  8732. const innerIterator = target[method](...args);
  8733. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8734. !isReadonly &&
  8735. track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
  8736. // return a wrapped iterator which returns observed versions of the
  8737. // values emitted from the real iterator
  8738. return {
  8739. // iterator protocol
  8740. next() {
  8741. const { value, done } = innerIterator.next();
  8742. return done
  8743. ? { value, done }
  8744. : {
  8745. value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
  8746. done
  8747. };
  8748. },
  8749. // iterable protocol
  8750. [Symbol.iterator]() {
  8751. return this;
  8752. }
  8753. };
  8754. };
  8755. }
  8756. function createReadonlyMethod(type) {
  8757. return function (...args) {
  8758. if ((true)) {
  8759. const key = args[0] ? `on key "${args[0]}" ` : ``;
  8760. console.warn(`${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)(type)} operation ${key}failed: target is readonly.`, toRaw(this));
  8761. }
  8762. return type === "delete" /* DELETE */ ? false : this;
  8763. };
  8764. }
  8765. function createInstrumentations() {
  8766. const mutableInstrumentations = {
  8767. get(key) {
  8768. return get$1(this, key);
  8769. },
  8770. get size() {
  8771. return size(this);
  8772. },
  8773. has: has$1,
  8774. add,
  8775. set: set$1,
  8776. delete: deleteEntry,
  8777. clear,
  8778. forEach: createForEach(false, false)
  8779. };
  8780. const shallowInstrumentations = {
  8781. get(key) {
  8782. return get$1(this, key, false, true);
  8783. },
  8784. get size() {
  8785. return size(this);
  8786. },
  8787. has: has$1,
  8788. add,
  8789. set: set$1,
  8790. delete: deleteEntry,
  8791. clear,
  8792. forEach: createForEach(false, true)
  8793. };
  8794. const readonlyInstrumentations = {
  8795. get(key) {
  8796. return get$1(this, key, true);
  8797. },
  8798. get size() {
  8799. return size(this, true);
  8800. },
  8801. has(key) {
  8802. return has$1.call(this, key, true);
  8803. },
  8804. add: createReadonlyMethod("add" /* ADD */),
  8805. set: createReadonlyMethod("set" /* SET */),
  8806. delete: createReadonlyMethod("delete" /* DELETE */),
  8807. clear: createReadonlyMethod("clear" /* CLEAR */),
  8808. forEach: createForEach(true, false)
  8809. };
  8810. const shallowReadonlyInstrumentations = {
  8811. get(key) {
  8812. return get$1(this, key, true, true);
  8813. },
  8814. get size() {
  8815. return size(this, true);
  8816. },
  8817. has(key) {
  8818. return has$1.call(this, key, true);
  8819. },
  8820. add: createReadonlyMethod("add" /* ADD */),
  8821. set: createReadonlyMethod("set" /* SET */),
  8822. delete: createReadonlyMethod("delete" /* DELETE */),
  8823. clear: createReadonlyMethod("clear" /* CLEAR */),
  8824. forEach: createForEach(true, true)
  8825. };
  8826. const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
  8827. iteratorMethods.forEach(method => {
  8828. mutableInstrumentations[method] = createIterableMethod(method, false, false);
  8829. readonlyInstrumentations[method] = createIterableMethod(method, true, false);
  8830. shallowInstrumentations[method] = createIterableMethod(method, false, true);
  8831. shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
  8832. });
  8833. return [
  8834. mutableInstrumentations,
  8835. readonlyInstrumentations,
  8836. shallowInstrumentations,
  8837. shallowReadonlyInstrumentations
  8838. ];
  8839. }
  8840. const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
  8841. function createInstrumentationGetter(isReadonly, shallow) {
  8842. const instrumentations = shallow
  8843. ? isReadonly
  8844. ? shallowReadonlyInstrumentations
  8845. : shallowInstrumentations
  8846. : isReadonly
  8847. ? readonlyInstrumentations
  8848. : mutableInstrumentations;
  8849. return (target, key, receiver) => {
  8850. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8851. return !isReadonly;
  8852. }
  8853. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8854. return isReadonly;
  8855. }
  8856. else if (key === "__v_raw" /* RAW */) {
  8857. return target;
  8858. }
  8859. return Reflect.get((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(instrumentations, key) && key in target
  8860. ? instrumentations
  8861. : target, key, receiver);
  8862. };
  8863. }
  8864. const mutableCollectionHandlers = {
  8865. get: /*#__PURE__*/ createInstrumentationGetter(false, false)
  8866. };
  8867. const shallowCollectionHandlers = {
  8868. get: /*#__PURE__*/ createInstrumentationGetter(false, true)
  8869. };
  8870. const readonlyCollectionHandlers = {
  8871. get: /*#__PURE__*/ createInstrumentationGetter(true, false)
  8872. };
  8873. const shallowReadonlyCollectionHandlers = {
  8874. get: /*#__PURE__*/ createInstrumentationGetter(true, true)
  8875. };
  8876. function checkIdentityKeys(target, has, key) {
  8877. const rawKey = toRaw(key);
  8878. if (rawKey !== key && has.call(target, rawKey)) {
  8879. const type = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(target);
  8880. console.warn(`Reactive ${type} contains both the raw and reactive ` +
  8881. `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
  8882. `which can lead to inconsistencies. ` +
  8883. `Avoid differentiating between the raw and reactive versions ` +
  8884. `of an object and only use the reactive version if possible.`);
  8885. }
  8886. }
  8887. const reactiveMap = new WeakMap();
  8888. const shallowReactiveMap = new WeakMap();
  8889. const readonlyMap = new WeakMap();
  8890. const shallowReadonlyMap = new WeakMap();
  8891. function targetTypeMap(rawType) {
  8892. switch (rawType) {
  8893. case 'Object':
  8894. case 'Array':
  8895. return 1 /* COMMON */;
  8896. case 'Map':
  8897. case 'Set':
  8898. case 'WeakMap':
  8899. case 'WeakSet':
  8900. return 2 /* COLLECTION */;
  8901. default:
  8902. return 0 /* INVALID */;
  8903. }
  8904. }
  8905. function getTargetType(value) {
  8906. return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
  8907. ? 0 /* INVALID */
  8908. : targetTypeMap((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(value));
  8909. }
  8910. function reactive(target) {
  8911. // if trying to observe a readonly proxy, return the readonly version.
  8912. if (isReadonly(target)) {
  8913. return target;
  8914. }
  8915. return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
  8916. }
  8917. /**
  8918. * Return a shallowly-reactive copy of the original object, where only the root
  8919. * level properties are reactive. It also does not auto-unwrap refs (even at the
  8920. * root level).
  8921. */
  8922. function shallowReactive(target) {
  8923. return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
  8924. }
  8925. /**
  8926. * Creates a readonly copy of the original object. Note the returned copy is not
  8927. * made reactive, but `readonly` can be called on an already reactive object.
  8928. */
  8929. function readonly(target) {
  8930. return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
  8931. }
  8932. /**
  8933. * Returns a reactive-copy of the original object, where only the root level
  8934. * properties are readonly, and does NOT unwrap refs nor recursively convert
  8935. * returned properties.
  8936. * This is used for creating the props proxy object for stateful components.
  8937. */
  8938. function shallowReadonly(target) {
  8939. return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
  8940. }
  8941. function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
  8942. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(target)) {
  8943. if ((true)) {
  8944. console.warn(`value cannot be made reactive: ${String(target)}`);
  8945. }
  8946. return target;
  8947. }
  8948. // target is already a Proxy, return it.
  8949. // exception: calling readonly() on a reactive object
  8950. if (target["__v_raw" /* RAW */] &&
  8951. !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
  8952. return target;
  8953. }
  8954. // target already has corresponding Proxy
  8955. const existingProxy = proxyMap.get(target);
  8956. if (existingProxy) {
  8957. return existingProxy;
  8958. }
  8959. // only a whitelist of value types can be observed.
  8960. const targetType = getTargetType(target);
  8961. if (targetType === 0 /* INVALID */) {
  8962. return target;
  8963. }
  8964. const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
  8965. proxyMap.set(target, proxy);
  8966. return proxy;
  8967. }
  8968. function isReactive(value) {
  8969. if (isReadonly(value)) {
  8970. return isReactive(value["__v_raw" /* RAW */]);
  8971. }
  8972. return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
  8973. }
  8974. function isReadonly(value) {
  8975. return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
  8976. }
  8977. function isShallow(value) {
  8978. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  8979. }
  8980. function isProxy(value) {
  8981. return isReactive(value) || isReadonly(value);
  8982. }
  8983. function toRaw(observed) {
  8984. const raw = observed && observed["__v_raw" /* RAW */];
  8985. return raw ? toRaw(raw) : observed;
  8986. }
  8987. function markRaw(value) {
  8988. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.def)(value, "__v_skip" /* SKIP */, true);
  8989. return value;
  8990. }
  8991. const toReactive = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? reactive(value) : value;
  8992. const toReadonly = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? readonly(value) : value;
  8993. function trackRefValue(ref) {
  8994. if (shouldTrack && activeEffect) {
  8995. ref = toRaw(ref);
  8996. if ((true)) {
  8997. trackEffects(ref.dep || (ref.dep = createDep()), {
  8998. target: ref,
  8999. type: "get" /* GET */,
  9000. key: 'value'
  9001. });
  9002. }
  9003. else {}
  9004. }
  9005. }
  9006. function triggerRefValue(ref, newVal) {
  9007. ref = toRaw(ref);
  9008. if (ref.dep) {
  9009. if ((true)) {
  9010. triggerEffects(ref.dep, {
  9011. target: ref,
  9012. type: "set" /* SET */,
  9013. key: 'value',
  9014. newValue: newVal
  9015. });
  9016. }
  9017. else {}
  9018. }
  9019. }
  9020. function isRef(r) {
  9021. return !!(r && r.__v_isRef === true);
  9022. }
  9023. function ref(value) {
  9024. return createRef(value, false);
  9025. }
  9026. function shallowRef(value) {
  9027. return createRef(value, true);
  9028. }
  9029. function createRef(rawValue, shallow) {
  9030. if (isRef(rawValue)) {
  9031. return rawValue;
  9032. }
  9033. return new RefImpl(rawValue, shallow);
  9034. }
  9035. class RefImpl {
  9036. constructor(value, __v_isShallow) {
  9037. this.__v_isShallow = __v_isShallow;
  9038. this.dep = undefined;
  9039. this.__v_isRef = true;
  9040. this._rawValue = __v_isShallow ? value : toRaw(value);
  9041. this._value = __v_isShallow ? value : toReactive(value);
  9042. }
  9043. get value() {
  9044. trackRefValue(this);
  9045. return this._value;
  9046. }
  9047. set value(newVal) {
  9048. newVal = this.__v_isShallow ? newVal : toRaw(newVal);
  9049. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(newVal, this._rawValue)) {
  9050. this._rawValue = newVal;
  9051. this._value = this.__v_isShallow ? newVal : toReactive(newVal);
  9052. triggerRefValue(this, newVal);
  9053. }
  9054. }
  9055. }
  9056. function triggerRef(ref) {
  9057. triggerRefValue(ref, ( true) ? ref.value : 0);
  9058. }
  9059. function unref(ref) {
  9060. return isRef(ref) ? ref.value : ref;
  9061. }
  9062. const shallowUnwrapHandlers = {
  9063. get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
  9064. set: (target, key, value, receiver) => {
  9065. const oldValue = target[key];
  9066. if (isRef(oldValue) && !isRef(value)) {
  9067. oldValue.value = value;
  9068. return true;
  9069. }
  9070. else {
  9071. return Reflect.set(target, key, value, receiver);
  9072. }
  9073. }
  9074. };
  9075. function proxyRefs(objectWithRefs) {
  9076. return isReactive(objectWithRefs)
  9077. ? objectWithRefs
  9078. : new Proxy(objectWithRefs, shallowUnwrapHandlers);
  9079. }
  9080. class CustomRefImpl {
  9081. constructor(factory) {
  9082. this.dep = undefined;
  9083. this.__v_isRef = true;
  9084. const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
  9085. this._get = get;
  9086. this._set = set;
  9087. }
  9088. get value() {
  9089. return this._get();
  9090. }
  9091. set value(newVal) {
  9092. this._set(newVal);
  9093. }
  9094. }
  9095. function customRef(factory) {
  9096. return new CustomRefImpl(factory);
  9097. }
  9098. function toRefs(object) {
  9099. if (( true) && !isProxy(object)) {
  9100. console.warn(`toRefs() expects a reactive object but received a plain one.`);
  9101. }
  9102. const ret = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(object) ? new Array(object.length) : {};
  9103. for (const key in object) {
  9104. ret[key] = toRef(object, key);
  9105. }
  9106. return ret;
  9107. }
  9108. class ObjectRefImpl {
  9109. constructor(_object, _key, _defaultValue) {
  9110. this._object = _object;
  9111. this._key = _key;
  9112. this._defaultValue = _defaultValue;
  9113. this.__v_isRef = true;
  9114. }
  9115. get value() {
  9116. const val = this._object[this._key];
  9117. return val === undefined ? this._defaultValue : val;
  9118. }
  9119. set value(newVal) {
  9120. this._object[this._key] = newVal;
  9121. }
  9122. }
  9123. function toRef(object, key, defaultValue) {
  9124. const val = object[key];
  9125. return isRef(val)
  9126. ? val
  9127. : new ObjectRefImpl(object, key, defaultValue);
  9128. }
  9129. class ComputedRefImpl {
  9130. constructor(getter, _setter, isReadonly, isSSR) {
  9131. this._setter = _setter;
  9132. this.dep = undefined;
  9133. this.__v_isRef = true;
  9134. this._dirty = true;
  9135. this.effect = new ReactiveEffect(getter, () => {
  9136. if (!this._dirty) {
  9137. this._dirty = true;
  9138. triggerRefValue(this);
  9139. }
  9140. });
  9141. this.effect.computed = this;
  9142. this.effect.active = this._cacheable = !isSSR;
  9143. this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
  9144. }
  9145. get value() {
  9146. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9147. const self = toRaw(this);
  9148. trackRefValue(self);
  9149. if (self._dirty || !self._cacheable) {
  9150. self._dirty = false;
  9151. self._value = self.effect.run();
  9152. }
  9153. return self._value;
  9154. }
  9155. set value(newValue) {
  9156. this._setter(newValue);
  9157. }
  9158. }
  9159. function computed(getterOrOptions, debugOptions, isSSR = false) {
  9160. let getter;
  9161. let setter;
  9162. const onlyGetter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isFunction)(getterOrOptions);
  9163. if (onlyGetter) {
  9164. getter = getterOrOptions;
  9165. setter = ( true)
  9166. ? () => {
  9167. console.warn('Write operation failed: computed value is readonly');
  9168. }
  9169. : 0;
  9170. }
  9171. else {
  9172. getter = getterOrOptions.get;
  9173. setter = getterOrOptions.set;
  9174. }
  9175. const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
  9176. if (( true) && debugOptions && !isSSR) {
  9177. cRef.effect.onTrack = debugOptions.onTrack;
  9178. cRef.effect.onTrigger = debugOptions.onTrigger;
  9179. }
  9180. return cRef;
  9181. }
  9182. var _a;
  9183. const tick = Promise.resolve();
  9184. const queue = [];
  9185. let queued = false;
  9186. const scheduler = (fn) => {
  9187. queue.push(fn);
  9188. if (!queued) {
  9189. queued = true;
  9190. tick.then(flush);
  9191. }
  9192. };
  9193. const flush = () => {
  9194. for (let i = 0; i < queue.length; i++) {
  9195. queue[i]();
  9196. }
  9197. queue.length = 0;
  9198. queued = false;
  9199. };
  9200. class DeferredComputedRefImpl {
  9201. constructor(getter) {
  9202. this.dep = undefined;
  9203. this._dirty = true;
  9204. this.__v_isRef = true;
  9205. this[_a] = true;
  9206. let compareTarget;
  9207. let hasCompareTarget = false;
  9208. let scheduled = false;
  9209. this.effect = new ReactiveEffect(getter, (computedTrigger) => {
  9210. if (this.dep) {
  9211. if (computedTrigger) {
  9212. compareTarget = this._value;
  9213. hasCompareTarget = true;
  9214. }
  9215. else if (!scheduled) {
  9216. const valueToCompare = hasCompareTarget ? compareTarget : this._value;
  9217. scheduled = true;
  9218. hasCompareTarget = false;
  9219. scheduler(() => {
  9220. if (this.effect.active && this._get() !== valueToCompare) {
  9221. triggerRefValue(this);
  9222. }
  9223. scheduled = false;
  9224. });
  9225. }
  9226. // chained upstream computeds are notified synchronously to ensure
  9227. // value invalidation in case of sync access; normal effects are
  9228. // deferred to be triggered in scheduler.
  9229. for (const e of this.dep) {
  9230. if (e.computed instanceof DeferredComputedRefImpl) {
  9231. e.scheduler(true /* computedTrigger */);
  9232. }
  9233. }
  9234. }
  9235. this._dirty = true;
  9236. });
  9237. this.effect.computed = this;
  9238. }
  9239. _get() {
  9240. if (this._dirty) {
  9241. this._dirty = false;
  9242. return (this._value = this.effect.run());
  9243. }
  9244. return this._value;
  9245. }
  9246. get value() {
  9247. trackRefValue(this);
  9248. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9249. return toRaw(this)._get();
  9250. }
  9251. }
  9252. _a = "__v_isReadonly" /* IS_READONLY */;
  9253. function deferredComputed(getter) {
  9254. return new DeferredComputedRefImpl(getter);
  9255. }
  9256. /***/ }),
  9257. /***/ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":
  9258. /*!*************************************************************************!*\
  9259. !*** ./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js ***!
  9260. \*************************************************************************/
  9261. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  9262. "use strict";
  9263. __webpack_require__.r(__webpack_exports__);
  9264. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9265. /* harmony export */ "BaseTransition": () => (/* binding */ BaseTransition),
  9266. /* harmony export */ "Comment": () => (/* binding */ Comment),
  9267. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  9268. /* harmony export */ "Fragment": () => (/* binding */ Fragment),
  9269. /* harmony export */ "KeepAlive": () => (/* binding */ KeepAlive),
  9270. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  9271. /* harmony export */ "Static": () => (/* binding */ Static),
  9272. /* harmony export */ "Suspense": () => (/* binding */ Suspense),
  9273. /* harmony export */ "Teleport": () => (/* binding */ Teleport),
  9274. /* harmony export */ "Text": () => (/* binding */ Text),
  9275. /* harmony export */ "callWithAsyncErrorHandling": () => (/* binding */ callWithAsyncErrorHandling),
  9276. /* harmony export */ "callWithErrorHandling": () => (/* binding */ callWithErrorHandling),
  9277. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize),
  9278. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize),
  9279. /* harmony export */ "cloneVNode": () => (/* binding */ cloneVNode),
  9280. /* harmony export */ "compatUtils": () => (/* binding */ compatUtils),
  9281. /* harmony export */ "computed": () => (/* binding */ computed),
  9282. /* harmony export */ "createBlock": () => (/* binding */ createBlock),
  9283. /* harmony export */ "createCommentVNode": () => (/* binding */ createCommentVNode),
  9284. /* harmony export */ "createElementBlock": () => (/* binding */ createElementBlock),
  9285. /* harmony export */ "createElementVNode": () => (/* binding */ createBaseVNode),
  9286. /* harmony export */ "createHydrationRenderer": () => (/* binding */ createHydrationRenderer),
  9287. /* harmony export */ "createPropsRestProxy": () => (/* binding */ createPropsRestProxy),
  9288. /* harmony export */ "createRenderer": () => (/* binding */ createRenderer),
  9289. /* harmony export */ "createSlots": () => (/* binding */ createSlots),
  9290. /* harmony export */ "createStaticVNode": () => (/* binding */ createStaticVNode),
  9291. /* harmony export */ "createTextVNode": () => (/* binding */ createTextVNode),
  9292. /* harmony export */ "createVNode": () => (/* binding */ createVNode),
  9293. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.customRef),
  9294. /* harmony export */ "defineAsyncComponent": () => (/* binding */ defineAsyncComponent),
  9295. /* harmony export */ "defineComponent": () => (/* binding */ defineComponent),
  9296. /* harmony export */ "defineEmits": () => (/* binding */ defineEmits),
  9297. /* harmony export */ "defineExpose": () => (/* binding */ defineExpose),
  9298. /* harmony export */ "defineProps": () => (/* binding */ defineProps),
  9299. /* harmony export */ "devtools": () => (/* binding */ devtools),
  9300. /* harmony export */ "effect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effect),
  9301. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  9302. /* harmony export */ "getCurrentInstance": () => (/* binding */ getCurrentInstance),
  9303. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  9304. /* harmony export */ "getTransitionRawChildren": () => (/* binding */ getTransitionRawChildren),
  9305. /* harmony export */ "guardReactiveProps": () => (/* binding */ guardReactiveProps),
  9306. /* harmony export */ "h": () => (/* binding */ h),
  9307. /* harmony export */ "handleError": () => (/* binding */ handleError),
  9308. /* harmony export */ "initCustomFormatter": () => (/* binding */ initCustomFormatter),
  9309. /* harmony export */ "inject": () => (/* binding */ inject),
  9310. /* harmony export */ "isMemoSame": () => (/* binding */ isMemoSame),
  9311. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  9312. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  9313. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  9314. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef),
  9315. /* harmony export */ "isRuntimeOnly": () => (/* binding */ isRuntimeOnly),
  9316. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  9317. /* harmony export */ "isVNode": () => (/* binding */ isVNode),
  9318. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  9319. /* harmony export */ "mergeDefaults": () => (/* binding */ mergeDefaults),
  9320. /* harmony export */ "mergeProps": () => (/* binding */ mergeProps),
  9321. /* harmony export */ "nextTick": () => (/* binding */ nextTick),
  9322. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass),
  9323. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeProps),
  9324. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle),
  9325. /* harmony export */ "onActivated": () => (/* binding */ onActivated),
  9326. /* harmony export */ "onBeforeMount": () => (/* binding */ onBeforeMount),
  9327. /* harmony export */ "onBeforeUnmount": () => (/* binding */ onBeforeUnmount),
  9328. /* harmony export */ "onBeforeUpdate": () => (/* binding */ onBeforeUpdate),
  9329. /* harmony export */ "onDeactivated": () => (/* binding */ onDeactivated),
  9330. /* harmony export */ "onErrorCaptured": () => (/* binding */ onErrorCaptured),
  9331. /* harmony export */ "onMounted": () => (/* binding */ onMounted),
  9332. /* harmony export */ "onRenderTracked": () => (/* binding */ onRenderTracked),
  9333. /* harmony export */ "onRenderTriggered": () => (/* binding */ onRenderTriggered),
  9334. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  9335. /* harmony export */ "onServerPrefetch": () => (/* binding */ onServerPrefetch),
  9336. /* harmony export */ "onUnmounted": () => (/* binding */ onUnmounted),
  9337. /* harmony export */ "onUpdated": () => (/* binding */ onUpdated),
  9338. /* harmony export */ "openBlock": () => (/* binding */ openBlock),
  9339. /* harmony export */ "popScopeId": () => (/* binding */ popScopeId),
  9340. /* harmony export */ "provide": () => (/* binding */ provide),
  9341. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  9342. /* harmony export */ "pushScopeId": () => (/* binding */ pushScopeId),
  9343. /* harmony export */ "queuePostFlushCb": () => (/* binding */ queuePostFlushCb),
  9344. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive),
  9345. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.readonly),
  9346. /* harmony export */ "ref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref),
  9347. /* harmony export */ "registerRuntimeCompiler": () => (/* binding */ registerRuntimeCompiler),
  9348. /* harmony export */ "renderList": () => (/* binding */ renderList),
  9349. /* harmony export */ "renderSlot": () => (/* binding */ renderSlot),
  9350. /* harmony export */ "resolveComponent": () => (/* binding */ resolveComponent),
  9351. /* harmony export */ "resolveDirective": () => (/* binding */ resolveDirective),
  9352. /* harmony export */ "resolveDynamicComponent": () => (/* binding */ resolveDynamicComponent),
  9353. /* harmony export */ "resolveFilter": () => (/* binding */ resolveFilter),
  9354. /* harmony export */ "resolveTransitionHooks": () => (/* binding */ resolveTransitionHooks),
  9355. /* harmony export */ "setBlockTracking": () => (/* binding */ setBlockTracking),
  9356. /* harmony export */ "setDevtoolsHook": () => (/* binding */ setDevtoolsHook),
  9357. /* harmony export */ "setTransitionHooks": () => (/* binding */ setTransitionHooks),
  9358. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  9359. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  9360. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  9361. /* harmony export */ "ssrContextKey": () => (/* binding */ ssrContextKey),
  9362. /* harmony export */ "ssrUtils": () => (/* binding */ ssrUtils),
  9363. /* harmony export */ "stop": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.stop),
  9364. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toDisplayString),
  9365. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey),
  9366. /* harmony export */ "toHandlers": () => (/* binding */ toHandlers),
  9367. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  9368. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRef),
  9369. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  9370. /* harmony export */ "transformVNodeArgs": () => (/* binding */ transformVNodeArgs),
  9371. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  9372. /* harmony export */ "unref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.unref),
  9373. /* harmony export */ "useAttrs": () => (/* binding */ useAttrs),
  9374. /* harmony export */ "useSSRContext": () => (/* binding */ useSSRContext),
  9375. /* harmony export */ "useSlots": () => (/* binding */ useSlots),
  9376. /* harmony export */ "useTransitionState": () => (/* binding */ useTransitionState),
  9377. /* harmony export */ "version": () => (/* binding */ version),
  9378. /* harmony export */ "warn": () => (/* binding */ warn),
  9379. /* harmony export */ "watch": () => (/* binding */ watch),
  9380. /* harmony export */ "watchEffect": () => (/* binding */ watchEffect),
  9381. /* harmony export */ "watchPostEffect": () => (/* binding */ watchPostEffect),
  9382. /* harmony export */ "watchSyncEffect": () => (/* binding */ watchSyncEffect),
  9383. /* harmony export */ "withAsyncContext": () => (/* binding */ withAsyncContext),
  9384. /* harmony export */ "withCtx": () => (/* binding */ withCtx),
  9385. /* harmony export */ "withDefaults": () => (/* binding */ withDefaults),
  9386. /* harmony export */ "withDirectives": () => (/* binding */ withDirectives),
  9387. /* harmony export */ "withMemo": () => (/* binding */ withMemo),
  9388. /* harmony export */ "withScopeId": () => (/* binding */ withScopeId)
  9389. /* harmony export */ });
  9390. /* harmony import */ var _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/reactivity */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  9391. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  9392. const stack = [];
  9393. function pushWarningContext(vnode) {
  9394. stack.push(vnode);
  9395. }
  9396. function popWarningContext() {
  9397. stack.pop();
  9398. }
  9399. function warn(msg, ...args) {
  9400. // avoid props formatting or warn handler tracking deps that might be mutated
  9401. // during patch, leading to infinite recursion.
  9402. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  9403. const instance = stack.length ? stack[stack.length - 1].component : null;
  9404. const appWarnHandler = instance && instance.appContext.config.warnHandler;
  9405. const trace = getComponentTrace();
  9406. if (appWarnHandler) {
  9407. callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [
  9408. msg + args.join(''),
  9409. instance && instance.proxy,
  9410. trace
  9411. .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)
  9412. .join('\n'),
  9413. trace
  9414. ]);
  9415. }
  9416. else {
  9417. const warnArgs = [`[Vue warn]: ${msg}`, ...args];
  9418. /* istanbul ignore if */
  9419. if (trace.length &&
  9420. // avoid spamming console during tests
  9421. !false) {
  9422. warnArgs.push(`\n`, ...formatTrace(trace));
  9423. }
  9424. console.warn(...warnArgs);
  9425. }
  9426. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  9427. }
  9428. function getComponentTrace() {
  9429. let currentVNode = stack[stack.length - 1];
  9430. if (!currentVNode) {
  9431. return [];
  9432. }
  9433. // we can't just use the stack because it will be incomplete during updates
  9434. // that did not start from the root. Re-construct the parent chain using
  9435. // instance parent pointers.
  9436. const normalizedStack = [];
  9437. while (currentVNode) {
  9438. const last = normalizedStack[0];
  9439. if (last && last.vnode === currentVNode) {
  9440. last.recurseCount++;
  9441. }
  9442. else {
  9443. normalizedStack.push({
  9444. vnode: currentVNode,
  9445. recurseCount: 0
  9446. });
  9447. }
  9448. const parentInstance = currentVNode.component && currentVNode.component.parent;
  9449. currentVNode = parentInstance && parentInstance.vnode;
  9450. }
  9451. return normalizedStack;
  9452. }
  9453. /* istanbul ignore next */
  9454. function formatTrace(trace) {
  9455. const logs = [];
  9456. trace.forEach((entry, i) => {
  9457. logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry));
  9458. });
  9459. return logs;
  9460. }
  9461. function formatTraceEntry({ vnode, recurseCount }) {
  9462. const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
  9463. const isRoot = vnode.component ? vnode.component.parent == null : false;
  9464. const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;
  9465. const close = `>` + postfix;
  9466. return vnode.props
  9467. ? [open, ...formatProps(vnode.props), close]
  9468. : [open + close];
  9469. }
  9470. /* istanbul ignore next */
  9471. function formatProps(props) {
  9472. const res = [];
  9473. const keys = Object.keys(props);
  9474. keys.slice(0, 3).forEach(key => {
  9475. res.push(...formatProp(key, props[key]));
  9476. });
  9477. if (keys.length > 3) {
  9478. res.push(` ...`);
  9479. }
  9480. return res;
  9481. }
  9482. /* istanbul ignore next */
  9483. function formatProp(key, value, raw) {
  9484. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  9485. value = JSON.stringify(value);
  9486. return raw ? value : [`${key}=${value}`];
  9487. }
  9488. else if (typeof value === 'number' ||
  9489. typeof value === 'boolean' ||
  9490. value == null) {
  9491. return raw ? value : [`${key}=${value}`];
  9492. }
  9493. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  9494. value = formatProp(key, (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value.value), true);
  9495. return raw ? value : [`${key}=Ref<`, value, `>`];
  9496. }
  9497. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  9498. return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
  9499. }
  9500. else {
  9501. value = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value);
  9502. return raw ? value : [`${key}=`, value];
  9503. }
  9504. }
  9505. const ErrorTypeStrings = {
  9506. ["sp" /* SERVER_PREFETCH */]: 'serverPrefetch hook',
  9507. ["bc" /* BEFORE_CREATE */]: 'beforeCreate hook',
  9508. ["c" /* CREATED */]: 'created hook',
  9509. ["bm" /* BEFORE_MOUNT */]: 'beforeMount hook',
  9510. ["m" /* MOUNTED */]: 'mounted hook',
  9511. ["bu" /* BEFORE_UPDATE */]: 'beforeUpdate hook',
  9512. ["u" /* UPDATED */]: 'updated',
  9513. ["bum" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',
  9514. ["um" /* UNMOUNTED */]: 'unmounted hook',
  9515. ["a" /* ACTIVATED */]: 'activated hook',
  9516. ["da" /* DEACTIVATED */]: 'deactivated hook',
  9517. ["ec" /* ERROR_CAPTURED */]: 'errorCaptured hook',
  9518. ["rtc" /* RENDER_TRACKED */]: 'renderTracked hook',
  9519. ["rtg" /* RENDER_TRIGGERED */]: 'renderTriggered hook',
  9520. [0 /* SETUP_FUNCTION */]: 'setup function',
  9521. [1 /* RENDER_FUNCTION */]: 'render function',
  9522. [2 /* WATCH_GETTER */]: 'watcher getter',
  9523. [3 /* WATCH_CALLBACK */]: 'watcher callback',
  9524. [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',
  9525. [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',
  9526. [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',
  9527. [7 /* VNODE_HOOK */]: 'vnode hook',
  9528. [8 /* DIRECTIVE_HOOK */]: 'directive hook',
  9529. [9 /* TRANSITION_HOOK */]: 'transition hook',
  9530. [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',
  9531. [11 /* APP_WARN_HANDLER */]: 'app warnHandler',
  9532. [12 /* FUNCTION_REF */]: 'ref function',
  9533. [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
  9534. [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
  9535. 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
  9536. };
  9537. function callWithErrorHandling(fn, instance, type, args) {
  9538. let res;
  9539. try {
  9540. res = args ? fn(...args) : fn();
  9541. }
  9542. catch (err) {
  9543. handleError(err, instance, type);
  9544. }
  9545. return res;
  9546. }
  9547. function callWithAsyncErrorHandling(fn, instance, type, args) {
  9548. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(fn)) {
  9549. const res = callWithErrorHandling(fn, instance, type, args);
  9550. if (res && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(res)) {
  9551. res.catch(err => {
  9552. handleError(err, instance, type);
  9553. });
  9554. }
  9555. return res;
  9556. }
  9557. const values = [];
  9558. for (let i = 0; i < fn.length; i++) {
  9559. values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
  9560. }
  9561. return values;
  9562. }
  9563. function handleError(err, instance, type, throwInDev = true) {
  9564. const contextVNode = instance ? instance.vnode : null;
  9565. if (instance) {
  9566. let cur = instance.parent;
  9567. // the exposed instance is the render proxy to keep it consistent with 2.x
  9568. const exposedInstance = instance.proxy;
  9569. // in production the hook receives only the error code
  9570. const errorInfo = ( true) ? ErrorTypeStrings[type] : 0;
  9571. while (cur) {
  9572. const errorCapturedHooks = cur.ec;
  9573. if (errorCapturedHooks) {
  9574. for (let i = 0; i < errorCapturedHooks.length; i++) {
  9575. if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
  9576. return;
  9577. }
  9578. }
  9579. }
  9580. cur = cur.parent;
  9581. }
  9582. // app-level handling
  9583. const appErrorHandler = instance.appContext.config.errorHandler;
  9584. if (appErrorHandler) {
  9585. callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);
  9586. return;
  9587. }
  9588. }
  9589. logError(err, type, contextVNode, throwInDev);
  9590. }
  9591. function logError(err, type, contextVNode, throwInDev = true) {
  9592. if ((true)) {
  9593. const info = ErrorTypeStrings[type];
  9594. if (contextVNode) {
  9595. pushWarningContext(contextVNode);
  9596. }
  9597. warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
  9598. if (contextVNode) {
  9599. popWarningContext();
  9600. }
  9601. // crash in dev by default so it's more noticeable
  9602. if (throwInDev) {
  9603. throw err;
  9604. }
  9605. else {
  9606. console.error(err);
  9607. }
  9608. }
  9609. else {}
  9610. }
  9611. let isFlushing = false;
  9612. let isFlushPending = false;
  9613. const queue = [];
  9614. let flushIndex = 0;
  9615. const pendingPreFlushCbs = [];
  9616. let activePreFlushCbs = null;
  9617. let preFlushIndex = 0;
  9618. const pendingPostFlushCbs = [];
  9619. let activePostFlushCbs = null;
  9620. let postFlushIndex = 0;
  9621. const resolvedPromise = Promise.resolve();
  9622. let currentFlushPromise = null;
  9623. let currentPreFlushParentJob = null;
  9624. const RECURSION_LIMIT = 100;
  9625. function nextTick(fn) {
  9626. const p = currentFlushPromise || resolvedPromise;
  9627. return fn ? p.then(this ? fn.bind(this) : fn) : p;
  9628. }
  9629. // #2768
  9630. // Use binary-search to find a suitable position in the queue,
  9631. // so that the queue maintains the increasing order of job's id,
  9632. // which can prevent the job from being skipped and also can avoid repeated patching.
  9633. function findInsertionIndex(id) {
  9634. // the start index should be `flushIndex + 1`
  9635. let start = flushIndex + 1;
  9636. let end = queue.length;
  9637. while (start < end) {
  9638. const middle = (start + end) >>> 1;
  9639. const middleJobId = getId(queue[middle]);
  9640. middleJobId < id ? (start = middle + 1) : (end = middle);
  9641. }
  9642. return start;
  9643. }
  9644. function queueJob(job) {
  9645. // the dedupe search uses the startIndex argument of Array.includes()
  9646. // by default the search index includes the current job that is being run
  9647. // so it cannot recursively trigger itself again.
  9648. // if the job is a watch() callback, the search will start with a +1 index to
  9649. // allow it recursively trigger itself - it is the user's responsibility to
  9650. // ensure it doesn't end up in an infinite loop.
  9651. if ((!queue.length ||
  9652. !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&
  9653. job !== currentPreFlushParentJob) {
  9654. if (job.id == null) {
  9655. queue.push(job);
  9656. }
  9657. else {
  9658. queue.splice(findInsertionIndex(job.id), 0, job);
  9659. }
  9660. queueFlush();
  9661. }
  9662. }
  9663. function queueFlush() {
  9664. if (!isFlushing && !isFlushPending) {
  9665. isFlushPending = true;
  9666. currentFlushPromise = resolvedPromise.then(flushJobs);
  9667. }
  9668. }
  9669. function invalidateJob(job) {
  9670. const i = queue.indexOf(job);
  9671. if (i > flushIndex) {
  9672. queue.splice(i, 1);
  9673. }
  9674. }
  9675. function queueCb(cb, activeQueue, pendingQueue, index) {
  9676. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(cb)) {
  9677. if (!activeQueue ||
  9678. !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {
  9679. pendingQueue.push(cb);
  9680. }
  9681. }
  9682. else {
  9683. // if cb is an array, it is a component lifecycle hook which can only be
  9684. // triggered by a job, which is already deduped in the main queue, so
  9685. // we can skip duplicate check here to improve perf
  9686. pendingQueue.push(...cb);
  9687. }
  9688. queueFlush();
  9689. }
  9690. function queuePreFlushCb(cb) {
  9691. queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
  9692. }
  9693. function queuePostFlushCb(cb) {
  9694. queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
  9695. }
  9696. function flushPreFlushCbs(seen, parentJob = null) {
  9697. if (pendingPreFlushCbs.length) {
  9698. currentPreFlushParentJob = parentJob;
  9699. activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
  9700. pendingPreFlushCbs.length = 0;
  9701. if ((true)) {
  9702. seen = seen || new Map();
  9703. }
  9704. for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
  9705. if (( true) &&
  9706. checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
  9707. continue;
  9708. }
  9709. activePreFlushCbs[preFlushIndex]();
  9710. }
  9711. activePreFlushCbs = null;
  9712. preFlushIndex = 0;
  9713. currentPreFlushParentJob = null;
  9714. // recursively flush until it drains
  9715. flushPreFlushCbs(seen, parentJob);
  9716. }
  9717. }
  9718. function flushPostFlushCbs(seen) {
  9719. if (pendingPostFlushCbs.length) {
  9720. const deduped = [...new Set(pendingPostFlushCbs)];
  9721. pendingPostFlushCbs.length = 0;
  9722. // #1947 already has active queue, nested flushPostFlushCbs call
  9723. if (activePostFlushCbs) {
  9724. activePostFlushCbs.push(...deduped);
  9725. return;
  9726. }
  9727. activePostFlushCbs = deduped;
  9728. if ((true)) {
  9729. seen = seen || new Map();
  9730. }
  9731. activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
  9732. for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
  9733. if (( true) &&
  9734. checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
  9735. continue;
  9736. }
  9737. activePostFlushCbs[postFlushIndex]();
  9738. }
  9739. activePostFlushCbs = null;
  9740. postFlushIndex = 0;
  9741. }
  9742. }
  9743. const getId = (job) => job.id == null ? Infinity : job.id;
  9744. function flushJobs(seen) {
  9745. isFlushPending = false;
  9746. isFlushing = true;
  9747. if ((true)) {
  9748. seen = seen || new Map();
  9749. }
  9750. flushPreFlushCbs(seen);
  9751. // Sort queue before flush.
  9752. // This ensures that:
  9753. // 1. Components are updated from parent to child. (because parent is always
  9754. // created before the child so its render effect will have smaller
  9755. // priority number)
  9756. // 2. If a component is unmounted during a parent component's update,
  9757. // its update can be skipped.
  9758. queue.sort((a, b) => getId(a) - getId(b));
  9759. // conditional usage of checkRecursiveUpdate must be determined out of
  9760. // try ... catch block since Rollup by default de-optimizes treeshaking
  9761. // inside try-catch. This can leave all warning code unshaked. Although
  9762. // they would get eventually shaken by a minifier like terser, some minifiers
  9763. // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)
  9764. const check = ( true)
  9765. ? (job) => checkRecursiveUpdates(seen, job)
  9766. : 0;
  9767. try {
  9768. for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
  9769. const job = queue[flushIndex];
  9770. if (job && job.active !== false) {
  9771. if (( true) && check(job)) {
  9772. continue;
  9773. }
  9774. // console.log(`running:`, job.id)
  9775. callWithErrorHandling(job, null, 14 /* SCHEDULER */);
  9776. }
  9777. }
  9778. }
  9779. finally {
  9780. flushIndex = 0;
  9781. queue.length = 0;
  9782. flushPostFlushCbs(seen);
  9783. isFlushing = false;
  9784. currentFlushPromise = null;
  9785. // some postFlushCb queued jobs!
  9786. // keep flushing until it drains.
  9787. if (queue.length ||
  9788. pendingPreFlushCbs.length ||
  9789. pendingPostFlushCbs.length) {
  9790. flushJobs(seen);
  9791. }
  9792. }
  9793. }
  9794. function checkRecursiveUpdates(seen, fn) {
  9795. if (!seen.has(fn)) {
  9796. seen.set(fn, 1);
  9797. }
  9798. else {
  9799. const count = seen.get(fn);
  9800. if (count > RECURSION_LIMIT) {
  9801. const instance = fn.ownerInstance;
  9802. const componentName = instance && getComponentName(instance.type);
  9803. warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
  9804. `This means you have a reactive effect that is mutating its own ` +
  9805. `dependencies and thus recursively triggering itself. Possible sources ` +
  9806. `include component template, render function, updated hook or ` +
  9807. `watcher source function.`);
  9808. return true;
  9809. }
  9810. else {
  9811. seen.set(fn, count + 1);
  9812. }
  9813. }
  9814. }
  9815. /* eslint-disable no-restricted-globals */
  9816. let isHmrUpdating = false;
  9817. const hmrDirtyComponents = new Set();
  9818. // Expose the HMR runtime on the global object
  9819. // This makes it entirely tree-shakable without polluting the exports and makes
  9820. // it easier to be used in toolings like vue-loader
  9821. // Note: for a component to be eligible for HMR it also needs the __hmrId option
  9822. // to be set so that its instances can be registered / removed.
  9823. if ((true)) {
  9824. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)().__VUE_HMR_RUNTIME__ = {
  9825. createRecord: tryWrap(createRecord),
  9826. rerender: tryWrap(rerender),
  9827. reload: tryWrap(reload)
  9828. };
  9829. }
  9830. const map = new Map();
  9831. function registerHMR(instance) {
  9832. const id = instance.type.__hmrId;
  9833. let record = map.get(id);
  9834. if (!record) {
  9835. createRecord(id, instance.type);
  9836. record = map.get(id);
  9837. }
  9838. record.instances.add(instance);
  9839. }
  9840. function unregisterHMR(instance) {
  9841. map.get(instance.type.__hmrId).instances.delete(instance);
  9842. }
  9843. function createRecord(id, initialDef) {
  9844. if (map.has(id)) {
  9845. return false;
  9846. }
  9847. map.set(id, {
  9848. initialDef: normalizeClassComponent(initialDef),
  9849. instances: new Set()
  9850. });
  9851. return true;
  9852. }
  9853. function normalizeClassComponent(component) {
  9854. return isClassComponent(component) ? component.__vccOpts : component;
  9855. }
  9856. function rerender(id, newRender) {
  9857. const record = map.get(id);
  9858. if (!record) {
  9859. return;
  9860. }
  9861. // update initial record (for not-yet-rendered component)
  9862. record.initialDef.render = newRender;
  9863. [...record.instances].forEach(instance => {
  9864. if (newRender) {
  9865. instance.render = newRender;
  9866. normalizeClassComponent(instance.type).render = newRender;
  9867. }
  9868. instance.renderCache = [];
  9869. // this flag forces child components with slot content to update
  9870. isHmrUpdating = true;
  9871. instance.update();
  9872. isHmrUpdating = false;
  9873. });
  9874. }
  9875. function reload(id, newComp) {
  9876. const record = map.get(id);
  9877. if (!record)
  9878. return;
  9879. newComp = normalizeClassComponent(newComp);
  9880. // update initial def (for not-yet-rendered components)
  9881. updateComponentDef(record.initialDef, newComp);
  9882. // create a snapshot which avoids the set being mutated during updates
  9883. const instances = [...record.instances];
  9884. for (const instance of instances) {
  9885. const oldComp = normalizeClassComponent(instance.type);
  9886. if (!hmrDirtyComponents.has(oldComp)) {
  9887. // 1. Update existing comp definition to match new one
  9888. if (oldComp !== record.initialDef) {
  9889. updateComponentDef(oldComp, newComp);
  9890. }
  9891. // 2. mark definition dirty. This forces the renderer to replace the
  9892. // component on patch.
  9893. hmrDirtyComponents.add(oldComp);
  9894. }
  9895. // 3. invalidate options resolution cache
  9896. instance.appContext.optionsCache.delete(instance.type);
  9897. // 4. actually update
  9898. if (instance.ceReload) {
  9899. // custom element
  9900. hmrDirtyComponents.add(oldComp);
  9901. instance.ceReload(newComp.styles);
  9902. hmrDirtyComponents.delete(oldComp);
  9903. }
  9904. else if (instance.parent) {
  9905. // 4. Force the parent instance to re-render. This will cause all updated
  9906. // components to be unmounted and re-mounted. Queue the update so that we
  9907. // don't end up forcing the same parent to re-render multiple times.
  9908. queueJob(instance.parent.update);
  9909. // instance is the inner component of an async custom element
  9910. // invoke to reset styles
  9911. if (instance.parent.type.__asyncLoader &&
  9912. instance.parent.ceReload) {
  9913. instance.parent.ceReload(newComp.styles);
  9914. }
  9915. }
  9916. else if (instance.appContext.reload) {
  9917. // root instance mounted via createApp() has a reload method
  9918. instance.appContext.reload();
  9919. }
  9920. else if (typeof window !== 'undefined') {
  9921. // root instance inside tree created via raw render(). Force reload.
  9922. window.location.reload();
  9923. }
  9924. else {
  9925. console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');
  9926. }
  9927. }
  9928. // 5. make sure to cleanup dirty hmr components after update
  9929. queuePostFlushCb(() => {
  9930. for (const instance of instances) {
  9931. hmrDirtyComponents.delete(normalizeClassComponent(instance.type));
  9932. }
  9933. });
  9934. }
  9935. function updateComponentDef(oldComp, newComp) {
  9936. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp);
  9937. for (const key in oldComp) {
  9938. if (key !== '__file' && !(key in newComp)) {
  9939. delete oldComp[key];
  9940. }
  9941. }
  9942. }
  9943. function tryWrap(fn) {
  9944. return (id, arg) => {
  9945. try {
  9946. return fn(id, arg);
  9947. }
  9948. catch (e) {
  9949. console.error(e);
  9950. console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +
  9951. `Full reload required.`);
  9952. }
  9953. };
  9954. }
  9955. let devtools;
  9956. let buffer = [];
  9957. let devtoolsNotInstalled = false;
  9958. function emit(event, ...args) {
  9959. if (devtools) {
  9960. devtools.emit(event, ...args);
  9961. }
  9962. else if (!devtoolsNotInstalled) {
  9963. buffer.push({ event, args });
  9964. }
  9965. }
  9966. function setDevtoolsHook(hook, target) {
  9967. var _a, _b;
  9968. devtools = hook;
  9969. if (devtools) {
  9970. devtools.enabled = true;
  9971. buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
  9972. buffer = [];
  9973. }
  9974. else if (
  9975. // handle late devtools injection - only do this if we are in an actual
  9976. // browser environment to avoid the timer handle stalling test runner exit
  9977. // (#4815)
  9978. // eslint-disable-next-line no-restricted-globals
  9979. typeof window !== 'undefined' &&
  9980. // some envs mock window but not fully
  9981. window.HTMLElement &&
  9982. // also exclude jsdom
  9983. !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
  9984. const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
  9985. target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
  9986. replay.push((newHook) => {
  9987. setDevtoolsHook(newHook, target);
  9988. });
  9989. // clear buffer after 3s - the user probably doesn't have devtools installed
  9990. // at all, and keeping the buffer will cause memory leaks (#4738)
  9991. setTimeout(() => {
  9992. if (!devtools) {
  9993. target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
  9994. devtoolsNotInstalled = true;
  9995. buffer = [];
  9996. }
  9997. }, 3000);
  9998. }
  9999. else {
  10000. // non-browser env, assume not installed
  10001. devtoolsNotInstalled = true;
  10002. buffer = [];
  10003. }
  10004. }
  10005. function devtoolsInitApp(app, version) {
  10006. emit("app:init" /* APP_INIT */, app, version, {
  10007. Fragment,
  10008. Text,
  10009. Comment,
  10010. Static
  10011. });
  10012. }
  10013. function devtoolsUnmountApp(app) {
  10014. emit("app:unmount" /* APP_UNMOUNT */, app);
  10015. }
  10016. const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
  10017. const devtoolsComponentUpdated =
  10018. /*#__PURE__*/ createDevtoolsComponentHook("component:updated" /* COMPONENT_UPDATED */);
  10019. const devtoolsComponentRemoved =
  10020. /*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
  10021. function createDevtoolsComponentHook(hook) {
  10022. return (component) => {
  10023. emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
  10024. };
  10025. }
  10026. const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
  10027. const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
  10028. function createDevtoolsPerformanceHook(hook) {
  10029. return (component, type, time) => {
  10030. emit(hook, component.appContext.app, component.uid, component, type, time);
  10031. };
  10032. }
  10033. function devtoolsComponentEmit(component, event, params) {
  10034. emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
  10035. }
  10036. function emit$1(instance, event, ...rawArgs) {
  10037. const props = instance.vnode.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10038. if ((true)) {
  10039. const { emitsOptions, propsOptions: [propsOptions] } = instance;
  10040. if (emitsOptions) {
  10041. if (!(event in emitsOptions) &&
  10042. !(false )) {
  10043. if (!propsOptions || !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event) in propsOptions)) {
  10044. warn(`Component emitted event "${event}" but it is neither declared in ` +
  10045. `the emits option nor as an "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event)}" prop.`);
  10046. }
  10047. }
  10048. else {
  10049. const validator = emitsOptions[event];
  10050. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(validator)) {
  10051. const isValid = validator(...rawArgs);
  10052. if (!isValid) {
  10053. warn(`Invalid event arguments: event validation failed for event "${event}".`);
  10054. }
  10055. }
  10056. }
  10057. }
  10058. }
  10059. let args = rawArgs;
  10060. const isModelListener = event.startsWith('update:');
  10061. // for v-model update:xxx events, apply modifiers on args
  10062. const modelArg = isModelListener && event.slice(7);
  10063. if (modelArg && modelArg in props) {
  10064. const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;
  10065. const { number, trim } = props[modifiersKey] || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10066. if (trim) {
  10067. args = rawArgs.map(a => a.trim());
  10068. }
  10069. else if (number) {
  10070. args = rawArgs.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber);
  10071. }
  10072. }
  10073. if (true) {
  10074. devtoolsComponentEmit(instance, event, args);
  10075. }
  10076. if ((true)) {
  10077. const lowerCaseEvent = event.toLowerCase();
  10078. if (lowerCaseEvent !== event && props[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(lowerCaseEvent)]) {
  10079. warn(`Event "${lowerCaseEvent}" is emitted in component ` +
  10080. `${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` +
  10081. `Note that HTML attributes are case-insensitive and you cannot use ` +
  10082. `v-on to listen to camelCase events when using in-DOM templates. ` +
  10083. `You should probably use "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)}" instead of "${event}".`);
  10084. }
  10085. }
  10086. let handlerName;
  10087. let handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event))] ||
  10088. // also try camelCase event handler (#2249)
  10089. props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(event)))];
  10090. // for v-model update:xxx events, also trigger kebab-case equivalent
  10091. // for props passed via kebab-case
  10092. if (!handler && isModelListener) {
  10093. handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)))];
  10094. }
  10095. if (handler) {
  10096. callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10097. }
  10098. const onceHandler = props[handlerName + `Once`];
  10099. if (onceHandler) {
  10100. if (!instance.emitted) {
  10101. instance.emitted = {};
  10102. }
  10103. else if (instance.emitted[handlerName]) {
  10104. return;
  10105. }
  10106. instance.emitted[handlerName] = true;
  10107. callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10108. }
  10109. }
  10110. function normalizeEmitsOptions(comp, appContext, asMixin = false) {
  10111. const cache = appContext.emitsCache;
  10112. const cached = cache.get(comp);
  10113. if (cached !== undefined) {
  10114. return cached;
  10115. }
  10116. const raw = comp.emits;
  10117. let normalized = {};
  10118. // apply mixin/extends props
  10119. let hasExtends = false;
  10120. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  10121. const extendEmits = (raw) => {
  10122. const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);
  10123. if (normalizedFromExtend) {
  10124. hasExtends = true;
  10125. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, normalizedFromExtend);
  10126. }
  10127. };
  10128. if (!asMixin && appContext.mixins.length) {
  10129. appContext.mixins.forEach(extendEmits);
  10130. }
  10131. if (comp.extends) {
  10132. extendEmits(comp.extends);
  10133. }
  10134. if (comp.mixins) {
  10135. comp.mixins.forEach(extendEmits);
  10136. }
  10137. }
  10138. if (!raw && !hasExtends) {
  10139. cache.set(comp, null);
  10140. return null;
  10141. }
  10142. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  10143. raw.forEach(key => (normalized[key] = null));
  10144. }
  10145. else {
  10146. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, raw);
  10147. }
  10148. cache.set(comp, normalized);
  10149. return normalized;
  10150. }
  10151. // Check if an incoming prop key is a declared emit event listener.
  10152. // e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are
  10153. // both considered matched listeners.
  10154. function isEmitListener(options, key) {
  10155. if (!options || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10156. return false;
  10157. }
  10158. key = key.slice(2).replace(/Once$/, '');
  10159. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key[0].toLowerCase() + key.slice(1)) ||
  10160. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) ||
  10161. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key));
  10162. }
  10163. /**
  10164. * mark the current rendering instance for asset resolution (e.g.
  10165. * resolveComponent, resolveDirective) during render
  10166. */
  10167. let currentRenderingInstance = null;
  10168. let currentScopeId = null;
  10169. /**
  10170. * Note: rendering calls maybe nested. The function returns the parent rendering
  10171. * instance if present, which should be restored after the render is done:
  10172. *
  10173. * ```js
  10174. * const prev = setCurrentRenderingInstance(i)
  10175. * // ...render
  10176. * setCurrentRenderingInstance(prev)
  10177. * ```
  10178. */
  10179. function setCurrentRenderingInstance(instance) {
  10180. const prev = currentRenderingInstance;
  10181. currentRenderingInstance = instance;
  10182. currentScopeId = (instance && instance.type.__scopeId) || null;
  10183. return prev;
  10184. }
  10185. /**
  10186. * Set scope id when creating hoisted vnodes.
  10187. * @private compiler helper
  10188. */
  10189. function pushScopeId(id) {
  10190. currentScopeId = id;
  10191. }
  10192. /**
  10193. * Technically we no longer need this after 3.0.8 but we need to keep the same
  10194. * API for backwards compat w/ code generated by compilers.
  10195. * @private
  10196. */
  10197. function popScopeId() {
  10198. currentScopeId = null;
  10199. }
  10200. /**
  10201. * Only for backwards compat
  10202. * @private
  10203. */
  10204. const withScopeId = (_id) => withCtx;
  10205. /**
  10206. * Wrap a slot function to memoize current rendering instance
  10207. * @private compiler helper
  10208. */
  10209. function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only
  10210. ) {
  10211. if (!ctx)
  10212. return fn;
  10213. // already normalized
  10214. if (fn._n) {
  10215. return fn;
  10216. }
  10217. const renderFnWithContext = (...args) => {
  10218. // If a user calls a compiled slot inside a template expression (#1745), it
  10219. // can mess up block tracking, so by default we disable block tracking and
  10220. // force bail out when invoking a compiled slot (indicated by the ._d flag).
  10221. // This isn't necessary if rendering a compiled `<slot>`, so we flip the
  10222. // ._d flag off when invoking the wrapped fn inside `renderSlot`.
  10223. if (renderFnWithContext._d) {
  10224. setBlockTracking(-1);
  10225. }
  10226. const prevInstance = setCurrentRenderingInstance(ctx);
  10227. const res = fn(...args);
  10228. setCurrentRenderingInstance(prevInstance);
  10229. if (renderFnWithContext._d) {
  10230. setBlockTracking(1);
  10231. }
  10232. if (true) {
  10233. devtoolsComponentUpdated(ctx);
  10234. }
  10235. return res;
  10236. };
  10237. // mark normalized to avoid duplicated wrapping
  10238. renderFnWithContext._n = true;
  10239. // mark this as compiled by default
  10240. // this is used in vnode.ts -> normalizeChildren() to set the slot
  10241. // rendering flag.
  10242. renderFnWithContext._c = true;
  10243. // disable block tracking by default
  10244. renderFnWithContext._d = true;
  10245. return renderFnWithContext;
  10246. }
  10247. /**
  10248. * dev only flag to track whether $attrs was used during render.
  10249. * If $attrs was used during render then the warning for failed attrs
  10250. * fallthrough can be suppressed.
  10251. */
  10252. let accessedAttrs = false;
  10253. function markAttrsAccessed() {
  10254. accessedAttrs = true;
  10255. }
  10256. function renderComponentRoot(instance) {
  10257. const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;
  10258. let result;
  10259. let fallthroughAttrs;
  10260. const prev = setCurrentRenderingInstance(instance);
  10261. if ((true)) {
  10262. accessedAttrs = false;
  10263. }
  10264. try {
  10265. if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {
  10266. // withProxy is a proxy with a different `has` trap only for
  10267. // runtime-compiled render functions using `with` block.
  10268. const proxyToUse = withProxy || proxy;
  10269. result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));
  10270. fallthroughAttrs = attrs;
  10271. }
  10272. else {
  10273. // functional
  10274. const render = Component;
  10275. // in dev, mark attrs accessed if optional props (attrs === props)
  10276. if (( true) && attrs === props) {
  10277. markAttrsAccessed();
  10278. }
  10279. result = normalizeVNode(render.length > 1
  10280. ? render(props, ( true)
  10281. ? {
  10282. get attrs() {
  10283. markAttrsAccessed();
  10284. return attrs;
  10285. },
  10286. slots,
  10287. emit
  10288. }
  10289. : 0)
  10290. : render(props, null /* we know it doesn't need it */));
  10291. fallthroughAttrs = Component.props
  10292. ? attrs
  10293. : getFunctionalFallthrough(attrs);
  10294. }
  10295. }
  10296. catch (err) {
  10297. blockStack.length = 0;
  10298. handleError(err, instance, 1 /* RENDER_FUNCTION */);
  10299. result = createVNode(Comment);
  10300. }
  10301. // attr merging
  10302. // in dev mode, comments are preserved, and it's possible for a template
  10303. // to have comments along side the root element which makes it a fragment
  10304. let root = result;
  10305. let setRoot = undefined;
  10306. if (( true) &&
  10307. result.patchFlag > 0 &&
  10308. result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  10309. [root, setRoot] = getChildRoot(result);
  10310. }
  10311. if (fallthroughAttrs && inheritAttrs !== false) {
  10312. const keys = Object.keys(fallthroughAttrs);
  10313. const { shapeFlag } = root;
  10314. if (keys.length) {
  10315. if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {
  10316. if (propsOptions && keys.some(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)) {
  10317. // If a v-model listener (onUpdate:xxx) has a corresponding declared
  10318. // prop, it indicates this component expects to handle v-model and
  10319. // it should not fallthrough.
  10320. // related: #1543, #1643, #1989
  10321. fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);
  10322. }
  10323. root = cloneVNode(root, fallthroughAttrs);
  10324. }
  10325. else if (( true) && !accessedAttrs && root.type !== Comment) {
  10326. const allAttrs = Object.keys(attrs);
  10327. const eventAttrs = [];
  10328. const extraAttrs = [];
  10329. for (let i = 0, l = allAttrs.length; i < l; i++) {
  10330. const key = allAttrs[i];
  10331. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10332. // ignore v-model handlers when they fail to fallthrough
  10333. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  10334. // remove `on`, lowercase first letter to reflect event casing
  10335. // accurately
  10336. eventAttrs.push(key[2].toLowerCase() + key.slice(3));
  10337. }
  10338. }
  10339. else {
  10340. extraAttrs.push(key);
  10341. }
  10342. }
  10343. if (extraAttrs.length) {
  10344. warn(`Extraneous non-props attributes (` +
  10345. `${extraAttrs.join(', ')}) ` +
  10346. `were passed to component but could not be automatically inherited ` +
  10347. `because component renders fragment or text root nodes.`);
  10348. }
  10349. if (eventAttrs.length) {
  10350. warn(`Extraneous non-emits event listeners (` +
  10351. `${eventAttrs.join(', ')}) ` +
  10352. `were passed to component but could not be automatically inherited ` +
  10353. `because component renders fragment or text root nodes. ` +
  10354. `If the listener is intended to be a component custom event listener only, ` +
  10355. `declare it using the "emits" option.`);
  10356. }
  10357. }
  10358. }
  10359. }
  10360. // inherit directives
  10361. if (vnode.dirs) {
  10362. if (( true) && !isElementRoot(root)) {
  10363. warn(`Runtime directive used on component with non-element root node. ` +
  10364. `The directives will not function as intended.`);
  10365. }
  10366. root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
  10367. }
  10368. // inherit transition data
  10369. if (vnode.transition) {
  10370. if (( true) && !isElementRoot(root)) {
  10371. warn(`Component inside <Transition> renders non-element root node ` +
  10372. `that cannot be animated.`);
  10373. }
  10374. root.transition = vnode.transition;
  10375. }
  10376. if (( true) && setRoot) {
  10377. setRoot(root);
  10378. }
  10379. else {
  10380. result = root;
  10381. }
  10382. setCurrentRenderingInstance(prev);
  10383. return result;
  10384. }
  10385. /**
  10386. * dev only
  10387. * In dev mode, template root level comments are rendered, which turns the
  10388. * template into a fragment root, but we need to locate the single element
  10389. * root for attrs and scope id processing.
  10390. */
  10391. const getChildRoot = (vnode) => {
  10392. const rawChildren = vnode.children;
  10393. const dynamicChildren = vnode.dynamicChildren;
  10394. const childRoot = filterSingleRoot(rawChildren);
  10395. if (!childRoot) {
  10396. return [vnode, undefined];
  10397. }
  10398. const index = rawChildren.indexOf(childRoot);
  10399. const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
  10400. const setRoot = (updatedRoot) => {
  10401. rawChildren[index] = updatedRoot;
  10402. if (dynamicChildren) {
  10403. if (dynamicIndex > -1) {
  10404. dynamicChildren[dynamicIndex] = updatedRoot;
  10405. }
  10406. else if (updatedRoot.patchFlag > 0) {
  10407. vnode.dynamicChildren = [...dynamicChildren, updatedRoot];
  10408. }
  10409. }
  10410. };
  10411. return [normalizeVNode(childRoot), setRoot];
  10412. };
  10413. function filterSingleRoot(children) {
  10414. let singleRoot;
  10415. for (let i = 0; i < children.length; i++) {
  10416. const child = children[i];
  10417. if (isVNode(child)) {
  10418. // ignore user comment
  10419. if (child.type !== Comment || child.children === 'v-if') {
  10420. if (singleRoot) {
  10421. // has more than 1 non-comment child, return now
  10422. return;
  10423. }
  10424. else {
  10425. singleRoot = child;
  10426. }
  10427. }
  10428. }
  10429. else {
  10430. return;
  10431. }
  10432. }
  10433. return singleRoot;
  10434. }
  10435. const getFunctionalFallthrough = (attrs) => {
  10436. let res;
  10437. for (const key in attrs) {
  10438. if (key === 'class' || key === 'style' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10439. (res || (res = {}))[key] = attrs[key];
  10440. }
  10441. }
  10442. return res;
  10443. };
  10444. const filterModelListeners = (attrs, props) => {
  10445. const res = {};
  10446. for (const key in attrs) {
  10447. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key) || !(key.slice(9) in props)) {
  10448. res[key] = attrs[key];
  10449. }
  10450. }
  10451. return res;
  10452. };
  10453. const isElementRoot = (vnode) => {
  10454. return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||
  10455. vnode.type === Comment // potential v-if branch switch
  10456. );
  10457. };
  10458. function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
  10459. const { props: prevProps, children: prevChildren, component } = prevVNode;
  10460. const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
  10461. const emits = component.emitsOptions;
  10462. // Parent component's render function was hot-updated. Since this may have
  10463. // caused the child component's slots content to have changed, we need to
  10464. // force the child to update as well.
  10465. if (( true) && (prevChildren || nextChildren) && isHmrUpdating) {
  10466. return true;
  10467. }
  10468. // force child update for runtime directive or transition on component vnode.
  10469. if (nextVNode.dirs || nextVNode.transition) {
  10470. return true;
  10471. }
  10472. if (optimized && patchFlag >= 0) {
  10473. if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {
  10474. // slot content that references values that might have changed,
  10475. // e.g. in a v-for
  10476. return true;
  10477. }
  10478. if (patchFlag & 16 /* FULL_PROPS */) {
  10479. if (!prevProps) {
  10480. return !!nextProps;
  10481. }
  10482. // presence of this flag indicates props are always non-null
  10483. return hasPropsChanged(prevProps, nextProps, emits);
  10484. }
  10485. else if (patchFlag & 8 /* PROPS */) {
  10486. const dynamicProps = nextVNode.dynamicProps;
  10487. for (let i = 0; i < dynamicProps.length; i++) {
  10488. const key = dynamicProps[i];
  10489. if (nextProps[key] !== prevProps[key] &&
  10490. !isEmitListener(emits, key)) {
  10491. return true;
  10492. }
  10493. }
  10494. }
  10495. }
  10496. else {
  10497. // this path is only taken by manually written render functions
  10498. // so presence of any children leads to a forced update
  10499. if (prevChildren || nextChildren) {
  10500. if (!nextChildren || !nextChildren.$stable) {
  10501. return true;
  10502. }
  10503. }
  10504. if (prevProps === nextProps) {
  10505. return false;
  10506. }
  10507. if (!prevProps) {
  10508. return !!nextProps;
  10509. }
  10510. if (!nextProps) {
  10511. return true;
  10512. }
  10513. return hasPropsChanged(prevProps, nextProps, emits);
  10514. }
  10515. return false;
  10516. }
  10517. function hasPropsChanged(prevProps, nextProps, emitsOptions) {
  10518. const nextKeys = Object.keys(nextProps);
  10519. if (nextKeys.length !== Object.keys(prevProps).length) {
  10520. return true;
  10521. }
  10522. for (let i = 0; i < nextKeys.length; i++) {
  10523. const key = nextKeys[i];
  10524. if (nextProps[key] !== prevProps[key] &&
  10525. !isEmitListener(emitsOptions, key)) {
  10526. return true;
  10527. }
  10528. }
  10529. return false;
  10530. }
  10531. function updateHOCHostEl({ vnode, parent }, el // HostNode
  10532. ) {
  10533. while (parent && parent.subTree === vnode) {
  10534. (vnode = parent.vnode).el = el;
  10535. parent = parent.parent;
  10536. }
  10537. }
  10538. const isSuspense = (type) => type.__isSuspense;
  10539. // Suspense exposes a component-like API, and is treated like a component
  10540. // in the compiler, but internally it's a special built-in type that hooks
  10541. // directly into the renderer.
  10542. const SuspenseImpl = {
  10543. name: 'Suspense',
  10544. // In order to make Suspense tree-shakable, we need to avoid importing it
  10545. // directly in the renderer. The renderer checks for the __isSuspense flag
  10546. // on a vnode's type and calls the `process` method, passing in renderer
  10547. // internals.
  10548. __isSuspense: true,
  10549. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized,
  10550. // platform-specific impl passed from renderer
  10551. rendererInternals) {
  10552. if (n1 == null) {
  10553. mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);
  10554. }
  10555. else {
  10556. patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);
  10557. }
  10558. },
  10559. hydrate: hydrateSuspense,
  10560. create: createSuspenseBoundary,
  10561. normalize: normalizeSuspenseChildren
  10562. };
  10563. // Force-casted public typing for h and TSX props inference
  10564. const Suspense = (SuspenseImpl );
  10565. function triggerEvent(vnode, name) {
  10566. const eventListener = vnode.props && vnode.props[name];
  10567. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(eventListener)) {
  10568. eventListener();
  10569. }
  10570. }
  10571. function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {
  10572. const { p: patch, o: { createElement } } = rendererInternals;
  10573. const hiddenContainer = createElement('div');
  10574. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));
  10575. // start mounting the content subtree in an off-dom container
  10576. patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);
  10577. // now check if we have encountered any async deps
  10578. if (suspense.deps > 0) {
  10579. // has async
  10580. // invoke @fallback event
  10581. triggerEvent(vnode, 'onPending');
  10582. triggerEvent(vnode, 'onFallback');
  10583. // mount the fallback tree
  10584. patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10585. isSVG, slotScopeIds);
  10586. setActiveBranch(suspense, vnode.ssFallback);
  10587. }
  10588. else {
  10589. // Suspense has no async deps. Just resolve.
  10590. suspense.resolve();
  10591. }
  10592. }
  10593. function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {
  10594. const suspense = (n2.suspense = n1.suspense);
  10595. suspense.vnode = n2;
  10596. n2.el = n1.el;
  10597. const newBranch = n2.ssContent;
  10598. const newFallback = n2.ssFallback;
  10599. const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
  10600. if (pendingBranch) {
  10601. suspense.pendingBranch = newBranch;
  10602. if (isSameVNodeType(newBranch, pendingBranch)) {
  10603. // same root type but content may have changed.
  10604. patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10605. if (suspense.deps <= 0) {
  10606. suspense.resolve();
  10607. }
  10608. else if (isInFallback) {
  10609. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10610. isSVG, slotScopeIds, optimized);
  10611. setActiveBranch(suspense, newFallback);
  10612. }
  10613. }
  10614. else {
  10615. // toggled before pending tree is resolved
  10616. suspense.pendingId++;
  10617. if (isHydrating) {
  10618. // if toggled before hydration is finished, the current DOM tree is
  10619. // no longer valid. set it as the active branch so it will be unmounted
  10620. // when resolved
  10621. suspense.isHydrating = false;
  10622. suspense.activeBranch = pendingBranch;
  10623. }
  10624. else {
  10625. unmount(pendingBranch, parentComponent, suspense);
  10626. }
  10627. // increment pending ID. this is used to invalidate async callbacks
  10628. // reset suspense state
  10629. suspense.deps = 0;
  10630. // discard effects from pending branch
  10631. suspense.effects.length = 0;
  10632. // discard previous container
  10633. suspense.hiddenContainer = createElement('div');
  10634. if (isInFallback) {
  10635. // already in fallback state
  10636. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10637. if (suspense.deps <= 0) {
  10638. suspense.resolve();
  10639. }
  10640. else {
  10641. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10642. isSVG, slotScopeIds, optimized);
  10643. setActiveBranch(suspense, newFallback);
  10644. }
  10645. }
  10646. else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10647. // toggled "back" to current active branch
  10648. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10649. // force resolve
  10650. suspense.resolve(true);
  10651. }
  10652. else {
  10653. // switched to a 3rd branch
  10654. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10655. if (suspense.deps <= 0) {
  10656. suspense.resolve();
  10657. }
  10658. }
  10659. }
  10660. }
  10661. else {
  10662. if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10663. // root did not change, just normal patch
  10664. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10665. setActiveBranch(suspense, newBranch);
  10666. }
  10667. else {
  10668. // root node toggled
  10669. // invoke @pending event
  10670. triggerEvent(n2, 'onPending');
  10671. // mount pending branch in off-dom container
  10672. suspense.pendingBranch = newBranch;
  10673. suspense.pendingId++;
  10674. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10675. if (suspense.deps <= 0) {
  10676. // incoming branch has no async deps, resolve now.
  10677. suspense.resolve();
  10678. }
  10679. else {
  10680. const { timeout, pendingId } = suspense;
  10681. if (timeout > 0) {
  10682. setTimeout(() => {
  10683. if (suspense.pendingId === pendingId) {
  10684. suspense.fallback(newFallback);
  10685. }
  10686. }, timeout);
  10687. }
  10688. else if (timeout === 0) {
  10689. suspense.fallback(newFallback);
  10690. }
  10691. }
  10692. }
  10693. }
  10694. }
  10695. let hasWarned = false;
  10696. function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
  10697. /* istanbul ignore if */
  10698. if ( true && !hasWarned) {
  10699. hasWarned = true;
  10700. // @ts-ignore `console.info` cannot be null error
  10701. console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);
  10702. }
  10703. const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
  10704. const timeout = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(vnode.props && vnode.props.timeout);
  10705. const suspense = {
  10706. vnode,
  10707. parent,
  10708. parentComponent,
  10709. isSVG,
  10710. container,
  10711. hiddenContainer,
  10712. anchor,
  10713. deps: 0,
  10714. pendingId: 0,
  10715. timeout: typeof timeout === 'number' ? timeout : -1,
  10716. activeBranch: null,
  10717. pendingBranch: null,
  10718. isInFallback: true,
  10719. isHydrating,
  10720. isUnmounted: false,
  10721. effects: [],
  10722. resolve(resume = false) {
  10723. if ((true)) {
  10724. if (!resume && !suspense.pendingBranch) {
  10725. throw new Error(`suspense.resolve() is called without a pending branch.`);
  10726. }
  10727. if (suspense.isUnmounted) {
  10728. throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);
  10729. }
  10730. }
  10731. const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;
  10732. if (suspense.isHydrating) {
  10733. suspense.isHydrating = false;
  10734. }
  10735. else if (!resume) {
  10736. const delayEnter = activeBranch &&
  10737. pendingBranch.transition &&
  10738. pendingBranch.transition.mode === 'out-in';
  10739. if (delayEnter) {
  10740. activeBranch.transition.afterLeave = () => {
  10741. if (pendingId === suspense.pendingId) {
  10742. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10743. }
  10744. };
  10745. }
  10746. // this is initial anchor on mount
  10747. let { anchor } = suspense;
  10748. // unmount current active tree
  10749. if (activeBranch) {
  10750. // if the fallback tree was mounted, it may have been moved
  10751. // as part of a parent suspense. get the latest anchor for insertion
  10752. anchor = next(activeBranch);
  10753. unmount(activeBranch, parentComponent, suspense, true);
  10754. }
  10755. if (!delayEnter) {
  10756. // move content from off-dom container to actual container
  10757. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10758. }
  10759. }
  10760. setActiveBranch(suspense, pendingBranch);
  10761. suspense.pendingBranch = null;
  10762. suspense.isInFallback = false;
  10763. // flush buffered effects
  10764. // check if there is a pending parent suspense
  10765. let parent = suspense.parent;
  10766. let hasUnresolvedAncestor = false;
  10767. while (parent) {
  10768. if (parent.pendingBranch) {
  10769. // found a pending parent suspense, merge buffered post jobs
  10770. // into that parent
  10771. parent.effects.push(...effects);
  10772. hasUnresolvedAncestor = true;
  10773. break;
  10774. }
  10775. parent = parent.parent;
  10776. }
  10777. // no pending parent suspense, flush all jobs
  10778. if (!hasUnresolvedAncestor) {
  10779. queuePostFlushCb(effects);
  10780. }
  10781. suspense.effects = [];
  10782. // invoke @resolve event
  10783. triggerEvent(vnode, 'onResolve');
  10784. },
  10785. fallback(fallbackVNode) {
  10786. if (!suspense.pendingBranch) {
  10787. return;
  10788. }
  10789. const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;
  10790. // invoke @fallback event
  10791. triggerEvent(vnode, 'onFallback');
  10792. const anchor = next(activeBranch);
  10793. const mountFallback = () => {
  10794. if (!suspense.isInFallback) {
  10795. return;
  10796. }
  10797. // mount the fallback tree
  10798. patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10799. isSVG, slotScopeIds, optimized);
  10800. setActiveBranch(suspense, fallbackVNode);
  10801. };
  10802. const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';
  10803. if (delayEnter) {
  10804. activeBranch.transition.afterLeave = mountFallback;
  10805. }
  10806. suspense.isInFallback = true;
  10807. // unmount current active branch
  10808. unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now
  10809. true // shouldRemove
  10810. );
  10811. if (!delayEnter) {
  10812. mountFallback();
  10813. }
  10814. },
  10815. move(container, anchor, type) {
  10816. suspense.activeBranch &&
  10817. move(suspense.activeBranch, container, anchor, type);
  10818. suspense.container = container;
  10819. },
  10820. next() {
  10821. return suspense.activeBranch && next(suspense.activeBranch);
  10822. },
  10823. registerDep(instance, setupRenderEffect) {
  10824. const isInPendingSuspense = !!suspense.pendingBranch;
  10825. if (isInPendingSuspense) {
  10826. suspense.deps++;
  10827. }
  10828. const hydratedEl = instance.vnode.el;
  10829. instance
  10830. .asyncDep.catch(err => {
  10831. handleError(err, instance, 0 /* SETUP_FUNCTION */);
  10832. })
  10833. .then(asyncSetupResult => {
  10834. // retry when the setup() promise resolves.
  10835. // component may have been unmounted before resolve.
  10836. if (instance.isUnmounted ||
  10837. suspense.isUnmounted ||
  10838. suspense.pendingId !== instance.suspenseId) {
  10839. return;
  10840. }
  10841. // retry from this component
  10842. instance.asyncResolved = true;
  10843. const { vnode } = instance;
  10844. if ((true)) {
  10845. pushWarningContext(vnode);
  10846. }
  10847. handleSetupResult(instance, asyncSetupResult, false);
  10848. if (hydratedEl) {
  10849. // vnode may have been replaced if an update happened before the
  10850. // async dep is resolved.
  10851. vnode.el = hydratedEl;
  10852. }
  10853. const placeholder = !hydratedEl && instance.subTree.el;
  10854. setupRenderEffect(instance, vnode,
  10855. // component may have been moved before resolve.
  10856. // if this is not a hydration, instance.subTree will be the comment
  10857. // placeholder.
  10858. parentNode(hydratedEl || instance.subTree.el),
  10859. // anchor will not be used if this is hydration, so only need to
  10860. // consider the comment placeholder case.
  10861. hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);
  10862. if (placeholder) {
  10863. remove(placeholder);
  10864. }
  10865. updateHOCHostEl(instance, vnode.el);
  10866. if ((true)) {
  10867. popWarningContext();
  10868. }
  10869. // only decrease deps count if suspense is not already resolved
  10870. if (isInPendingSuspense && --suspense.deps === 0) {
  10871. suspense.resolve();
  10872. }
  10873. });
  10874. },
  10875. unmount(parentSuspense, doRemove) {
  10876. suspense.isUnmounted = true;
  10877. if (suspense.activeBranch) {
  10878. unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);
  10879. }
  10880. if (suspense.pendingBranch) {
  10881. unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);
  10882. }
  10883. }
  10884. };
  10885. return suspense;
  10886. }
  10887. function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {
  10888. /* eslint-disable no-restricted-globals */
  10889. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));
  10890. // there are two possible scenarios for server-rendered suspense:
  10891. // - success: ssr content should be fully resolved
  10892. // - failure: ssr content should be the fallback branch.
  10893. // however, on the client we don't really know if it has failed or not
  10894. // attempt to hydrate the DOM assuming it has succeeded, but we still
  10895. // need to construct a suspense boundary first
  10896. const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);
  10897. if (suspense.deps === 0) {
  10898. suspense.resolve();
  10899. }
  10900. return result;
  10901. /* eslint-enable no-restricted-globals */
  10902. }
  10903. function normalizeSuspenseChildren(vnode) {
  10904. const { shapeFlag, children } = vnode;
  10905. const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;
  10906. vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);
  10907. vnode.ssFallback = isSlotChildren
  10908. ? normalizeSuspenseSlot(children.fallback)
  10909. : createVNode(Comment);
  10910. }
  10911. function normalizeSuspenseSlot(s) {
  10912. let block;
  10913. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  10914. const trackBlock = isBlockTreeEnabled && s._c;
  10915. if (trackBlock) {
  10916. // disableTracking: false
  10917. // allow block tracking for compiled slots
  10918. // (see ./componentRenderContext.ts)
  10919. s._d = false;
  10920. openBlock();
  10921. }
  10922. s = s();
  10923. if (trackBlock) {
  10924. s._d = true;
  10925. block = currentBlock;
  10926. closeBlock();
  10927. }
  10928. }
  10929. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(s)) {
  10930. const singleChild = filterSingleRoot(s);
  10931. if (( true) && !singleChild) {
  10932. warn(`<Suspense> slots expect a single root node.`);
  10933. }
  10934. s = singleChild;
  10935. }
  10936. s = normalizeVNode(s);
  10937. if (block && !s.dynamicChildren) {
  10938. s.dynamicChildren = block.filter(c => c !== s);
  10939. }
  10940. return s;
  10941. }
  10942. function queueEffectWithSuspense(fn, suspense) {
  10943. if (suspense && suspense.pendingBranch) {
  10944. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn)) {
  10945. suspense.effects.push(...fn);
  10946. }
  10947. else {
  10948. suspense.effects.push(fn);
  10949. }
  10950. }
  10951. else {
  10952. queuePostFlushCb(fn);
  10953. }
  10954. }
  10955. function setActiveBranch(suspense, branch) {
  10956. suspense.activeBranch = branch;
  10957. const { vnode, parentComponent } = suspense;
  10958. const el = (vnode.el = branch.el);
  10959. // in case suspense is the root node of a component,
  10960. // recursively update the HOC el
  10961. if (parentComponent && parentComponent.subTree === vnode) {
  10962. parentComponent.vnode.el = el;
  10963. updateHOCHostEl(parentComponent, el);
  10964. }
  10965. }
  10966. function provide(key, value) {
  10967. if (!currentInstance) {
  10968. if ((true)) {
  10969. warn(`provide() can only be used inside setup().`);
  10970. }
  10971. }
  10972. else {
  10973. let provides = currentInstance.provides;
  10974. // by default an instance inherits its parent's provides object
  10975. // but when it needs to provide values of its own, it creates its
  10976. // own provides object using parent provides object as prototype.
  10977. // this way in `inject` we can simply look up injections from direct
  10978. // parent and let the prototype chain do the work.
  10979. const parentProvides = currentInstance.parent && currentInstance.parent.provides;
  10980. if (parentProvides === provides) {
  10981. provides = currentInstance.provides = Object.create(parentProvides);
  10982. }
  10983. // TS doesn't allow symbol as index type
  10984. provides[key] = value;
  10985. }
  10986. }
  10987. function inject(key, defaultValue, treatDefaultAsFactory = false) {
  10988. // fallback to `currentRenderingInstance` so that this can be called in
  10989. // a functional component
  10990. const instance = currentInstance || currentRenderingInstance;
  10991. if (instance) {
  10992. // #2400
  10993. // to support `app.use` plugins,
  10994. // fallback to appContext's `provides` if the instance is at root
  10995. const provides = instance.parent == null
  10996. ? instance.vnode.appContext && instance.vnode.appContext.provides
  10997. : instance.parent.provides;
  10998. if (provides && key in provides) {
  10999. // TS doesn't allow symbol as index type
  11000. return provides[key];
  11001. }
  11002. else if (arguments.length > 1) {
  11003. return treatDefaultAsFactory && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)
  11004. ? defaultValue.call(instance.proxy)
  11005. : defaultValue;
  11006. }
  11007. else if ((true)) {
  11008. warn(`injection "${String(key)}" not found.`);
  11009. }
  11010. }
  11011. else if ((true)) {
  11012. warn(`inject() can only be used inside setup() or functional components.`);
  11013. }
  11014. }
  11015. // Simple effect.
  11016. function watchEffect(effect, options) {
  11017. return doWatch(effect, null, options);
  11018. }
  11019. function watchPostEffect(effect, options) {
  11020. return doWatch(effect, null, (( true)
  11021. ? Object.assign(options || {}, { flush: 'post' })
  11022. : 0));
  11023. }
  11024. function watchSyncEffect(effect, options) {
  11025. return doWatch(effect, null, (( true)
  11026. ? Object.assign(options || {}, { flush: 'sync' })
  11027. : 0));
  11028. }
  11029. // initial value for watchers to trigger on undefined initial values
  11030. const INITIAL_WATCHER_VALUE = {};
  11031. // implementation
  11032. function watch(source, cb, options) {
  11033. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(cb)) {
  11034. warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
  11035. `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` +
  11036. `supports \`watch(source, cb, options?) signature.`);
  11037. }
  11038. return doWatch(source, cb, options);
  11039. }
  11040. function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  11041. if (( true) && !cb) {
  11042. if (immediate !== undefined) {
  11043. warn(`watch() "immediate" option is only respected when using the ` +
  11044. `watch(source, callback, options?) signature.`);
  11045. }
  11046. if (deep !== undefined) {
  11047. warn(`watch() "deep" option is only respected when using the ` +
  11048. `watch(source, callback, options?) signature.`);
  11049. }
  11050. }
  11051. const warnInvalidSource = (s) => {
  11052. warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
  11053. `a reactive object, or an array of these types.`);
  11054. };
  11055. const instance = currentInstance;
  11056. let getter;
  11057. let forceTrigger = false;
  11058. let isMultiSource = false;
  11059. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(source)) {
  11060. getter = () => source.value;
  11061. forceTrigger = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow)(source);
  11062. }
  11063. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(source)) {
  11064. getter = () => source;
  11065. deep = true;
  11066. }
  11067. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source)) {
  11068. isMultiSource = true;
  11069. forceTrigger = source.some(_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive);
  11070. getter = () => source.map(s => {
  11071. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(s)) {
  11072. return s.value;
  11073. }
  11074. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(s)) {
  11075. return traverse(s);
  11076. }
  11077. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  11078. return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);
  11079. }
  11080. else {
  11081. ( true) && warnInvalidSource(s);
  11082. }
  11083. });
  11084. }
  11085. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11086. if (cb) {
  11087. // getter with cb
  11088. getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);
  11089. }
  11090. else {
  11091. // no cb -> simple effect
  11092. getter = () => {
  11093. if (instance && instance.isUnmounted) {
  11094. return;
  11095. }
  11096. if (cleanup) {
  11097. cleanup();
  11098. }
  11099. return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onCleanup]);
  11100. };
  11101. }
  11102. }
  11103. else {
  11104. getter = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11105. ( true) && warnInvalidSource(source);
  11106. }
  11107. if (cb && deep) {
  11108. const baseGetter = getter;
  11109. getter = () => traverse(baseGetter());
  11110. }
  11111. let cleanup;
  11112. let onCleanup = (fn) => {
  11113. cleanup = effect.onStop = () => {
  11114. callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);
  11115. };
  11116. };
  11117. // in SSR there is no need to setup an actual effect, and it should be noop
  11118. // unless it's eager
  11119. if (isInSSRComponentSetup) {
  11120. // we will also not call the invalidate callback (+ runner is not set up)
  11121. onCleanup = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11122. if (!cb) {
  11123. getter();
  11124. }
  11125. else if (immediate) {
  11126. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11127. getter(),
  11128. isMultiSource ? [] : undefined,
  11129. onCleanup
  11130. ]);
  11131. }
  11132. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11133. }
  11134. let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
  11135. const job = () => {
  11136. if (!effect.active) {
  11137. return;
  11138. }
  11139. if (cb) {
  11140. // watch(source, cb)
  11141. const newValue = effect.run();
  11142. if (deep ||
  11143. forceTrigger ||
  11144. (isMultiSource
  11145. ? newValue.some((v, i) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(v, oldValue[i]))
  11146. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(newValue, oldValue)) ||
  11147. (false )) {
  11148. // cleanup before running cb again
  11149. if (cleanup) {
  11150. cleanup();
  11151. }
  11152. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11153. newValue,
  11154. // pass undefined as the old value when it's changed for the first time
  11155. oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,
  11156. onCleanup
  11157. ]);
  11158. oldValue = newValue;
  11159. }
  11160. }
  11161. else {
  11162. // watchEffect
  11163. effect.run();
  11164. }
  11165. };
  11166. // important: mark the job as a watcher callback so that scheduler knows
  11167. // it is allowed to self-trigger (#1727)
  11168. job.allowRecurse = !!cb;
  11169. let scheduler;
  11170. if (flush === 'sync') {
  11171. scheduler = job; // the scheduler function gets called directly
  11172. }
  11173. else if (flush === 'post') {
  11174. scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
  11175. }
  11176. else {
  11177. // default: 'pre'
  11178. scheduler = () => {
  11179. if (!instance || instance.isMounted) {
  11180. queuePreFlushCb(job);
  11181. }
  11182. else {
  11183. // with 'pre' option, the first call must happen before
  11184. // the component is mounted so it is called synchronously.
  11185. job();
  11186. }
  11187. };
  11188. }
  11189. const effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(getter, scheduler);
  11190. if ((true)) {
  11191. effect.onTrack = onTrack;
  11192. effect.onTrigger = onTrigger;
  11193. }
  11194. // initial run
  11195. if (cb) {
  11196. if (immediate) {
  11197. job();
  11198. }
  11199. else {
  11200. oldValue = effect.run();
  11201. }
  11202. }
  11203. else if (flush === 'post') {
  11204. queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);
  11205. }
  11206. else {
  11207. effect.run();
  11208. }
  11209. return () => {
  11210. effect.stop();
  11211. if (instance && instance.scope) {
  11212. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(instance.scope.effects, effect);
  11213. }
  11214. };
  11215. }
  11216. // this.$watch
  11217. function instanceWatch(source, value, options) {
  11218. const publicThis = this.proxy;
  11219. const getter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)
  11220. ? source.includes('.')
  11221. ? createPathGetter(publicThis, source)
  11222. : () => publicThis[source]
  11223. : source.bind(publicThis, publicThis);
  11224. let cb;
  11225. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  11226. cb = value;
  11227. }
  11228. else {
  11229. cb = value.handler;
  11230. options = value;
  11231. }
  11232. const cur = currentInstance;
  11233. setCurrentInstance(this);
  11234. const res = doWatch(getter, cb.bind(publicThis), options);
  11235. if (cur) {
  11236. setCurrentInstance(cur);
  11237. }
  11238. else {
  11239. unsetCurrentInstance();
  11240. }
  11241. return res;
  11242. }
  11243. function createPathGetter(ctx, path) {
  11244. const segments = path.split('.');
  11245. return () => {
  11246. let cur = ctx;
  11247. for (let i = 0; i < segments.length && cur; i++) {
  11248. cur = cur[segments[i]];
  11249. }
  11250. return cur;
  11251. };
  11252. }
  11253. function traverse(value, seen) {
  11254. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value) || value["__v_skip" /* SKIP */]) {
  11255. return value;
  11256. }
  11257. seen = seen || new Set();
  11258. if (seen.has(value)) {
  11259. return value;
  11260. }
  11261. seen.add(value);
  11262. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  11263. traverse(value.value, seen);
  11264. }
  11265. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  11266. for (let i = 0; i < value.length; i++) {
  11267. traverse(value[i], seen);
  11268. }
  11269. }
  11270. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isMap)(value)) {
  11271. value.forEach((v) => {
  11272. traverse(v, seen);
  11273. });
  11274. }
  11275. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) {
  11276. for (const key in value) {
  11277. traverse(value[key], seen);
  11278. }
  11279. }
  11280. return value;
  11281. }
  11282. function useTransitionState() {
  11283. const state = {
  11284. isMounted: false,
  11285. isLeaving: false,
  11286. isUnmounting: false,
  11287. leavingVNodes: new Map()
  11288. };
  11289. onMounted(() => {
  11290. state.isMounted = true;
  11291. });
  11292. onBeforeUnmount(() => {
  11293. state.isUnmounting = true;
  11294. });
  11295. return state;
  11296. }
  11297. const TransitionHookValidator = [Function, Array];
  11298. const BaseTransitionImpl = {
  11299. name: `BaseTransition`,
  11300. props: {
  11301. mode: String,
  11302. appear: Boolean,
  11303. persisted: Boolean,
  11304. // enter
  11305. onBeforeEnter: TransitionHookValidator,
  11306. onEnter: TransitionHookValidator,
  11307. onAfterEnter: TransitionHookValidator,
  11308. onEnterCancelled: TransitionHookValidator,
  11309. // leave
  11310. onBeforeLeave: TransitionHookValidator,
  11311. onLeave: TransitionHookValidator,
  11312. onAfterLeave: TransitionHookValidator,
  11313. onLeaveCancelled: TransitionHookValidator,
  11314. // appear
  11315. onBeforeAppear: TransitionHookValidator,
  11316. onAppear: TransitionHookValidator,
  11317. onAfterAppear: TransitionHookValidator,
  11318. onAppearCancelled: TransitionHookValidator
  11319. },
  11320. setup(props, { slots }) {
  11321. const instance = getCurrentInstance();
  11322. const state = useTransitionState();
  11323. let prevTransitionKey;
  11324. return () => {
  11325. const children = slots.default && getTransitionRawChildren(slots.default(), true);
  11326. if (!children || !children.length) {
  11327. return;
  11328. }
  11329. // warn multiple elements
  11330. if (( true) && children.length > 1) {
  11331. warn('<transition> can only be used on a single element or component. Use ' +
  11332. '<transition-group> for lists.');
  11333. }
  11334. // there's no need to track reactivity for these props so use the raw
  11335. // props for a bit better perf
  11336. const rawProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  11337. const { mode } = rawProps;
  11338. // check mode
  11339. if (( true) &&
  11340. mode &&
  11341. mode !== 'in-out' && mode !== 'out-in' && mode !== 'default') {
  11342. warn(`invalid <transition> mode: ${mode}`);
  11343. }
  11344. // at this point children has a guaranteed length of 1.
  11345. const child = children[0];
  11346. if (state.isLeaving) {
  11347. return emptyPlaceholder(child);
  11348. }
  11349. // in the case of <transition><keep-alive/></transition>, we need to
  11350. // compare the type of the kept-alive children.
  11351. const innerChild = getKeepAliveChild(child);
  11352. if (!innerChild) {
  11353. return emptyPlaceholder(child);
  11354. }
  11355. const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);
  11356. setTransitionHooks(innerChild, enterHooks);
  11357. const oldChild = instance.subTree;
  11358. const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
  11359. let transitionKeyChanged = false;
  11360. const { getTransitionKey } = innerChild.type;
  11361. if (getTransitionKey) {
  11362. const key = getTransitionKey();
  11363. if (prevTransitionKey === undefined) {
  11364. prevTransitionKey = key;
  11365. }
  11366. else if (key !== prevTransitionKey) {
  11367. prevTransitionKey = key;
  11368. transitionKeyChanged = true;
  11369. }
  11370. }
  11371. // handle mode
  11372. if (oldInnerChild &&
  11373. oldInnerChild.type !== Comment &&
  11374. (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {
  11375. const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);
  11376. // update old tree's hooks in case of dynamic transition
  11377. setTransitionHooks(oldInnerChild, leavingHooks);
  11378. // switching between different views
  11379. if (mode === 'out-in') {
  11380. state.isLeaving = true;
  11381. // return placeholder node and queue update when leave finishes
  11382. leavingHooks.afterLeave = () => {
  11383. state.isLeaving = false;
  11384. instance.update();
  11385. };
  11386. return emptyPlaceholder(child);
  11387. }
  11388. else if (mode === 'in-out' && innerChild.type !== Comment) {
  11389. leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
  11390. const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);
  11391. leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
  11392. // early removal callback
  11393. el._leaveCb = () => {
  11394. earlyRemove();
  11395. el._leaveCb = undefined;
  11396. delete enterHooks.delayedLeave;
  11397. };
  11398. enterHooks.delayedLeave = delayedLeave;
  11399. };
  11400. }
  11401. }
  11402. return child;
  11403. };
  11404. }
  11405. };
  11406. // export the public type for h/tsx inference
  11407. // also to avoid inline import() in generated d.ts files
  11408. const BaseTransition = BaseTransitionImpl;
  11409. function getLeavingNodesForType(state, vnode) {
  11410. const { leavingVNodes } = state;
  11411. let leavingVNodesCache = leavingVNodes.get(vnode.type);
  11412. if (!leavingVNodesCache) {
  11413. leavingVNodesCache = Object.create(null);
  11414. leavingVNodes.set(vnode.type, leavingVNodesCache);
  11415. }
  11416. return leavingVNodesCache;
  11417. }
  11418. // The transition hooks are attached to the vnode as vnode.transition
  11419. // and will be called at appropriate timing in the renderer.
  11420. function resolveTransitionHooks(vnode, props, state, instance) {
  11421. const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
  11422. const key = String(vnode.key);
  11423. const leavingVNodesCache = getLeavingNodesForType(state, vnode);
  11424. const callHook = (hook, args) => {
  11425. hook &&
  11426. callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);
  11427. };
  11428. const hooks = {
  11429. mode,
  11430. persisted,
  11431. beforeEnter(el) {
  11432. let hook = onBeforeEnter;
  11433. if (!state.isMounted) {
  11434. if (appear) {
  11435. hook = onBeforeAppear || onBeforeEnter;
  11436. }
  11437. else {
  11438. return;
  11439. }
  11440. }
  11441. // for same element (v-show)
  11442. if (el._leaveCb) {
  11443. el._leaveCb(true /* cancelled */);
  11444. }
  11445. // for toggled element with same key (v-if)
  11446. const leavingVNode = leavingVNodesCache[key];
  11447. if (leavingVNode &&
  11448. isSameVNodeType(vnode, leavingVNode) &&
  11449. leavingVNode.el._leaveCb) {
  11450. // force early removal (not cancelled)
  11451. leavingVNode.el._leaveCb();
  11452. }
  11453. callHook(hook, [el]);
  11454. },
  11455. enter(el) {
  11456. let hook = onEnter;
  11457. let afterHook = onAfterEnter;
  11458. let cancelHook = onEnterCancelled;
  11459. if (!state.isMounted) {
  11460. if (appear) {
  11461. hook = onAppear || onEnter;
  11462. afterHook = onAfterAppear || onAfterEnter;
  11463. cancelHook = onAppearCancelled || onEnterCancelled;
  11464. }
  11465. else {
  11466. return;
  11467. }
  11468. }
  11469. let called = false;
  11470. const done = (el._enterCb = (cancelled) => {
  11471. if (called)
  11472. return;
  11473. called = true;
  11474. if (cancelled) {
  11475. callHook(cancelHook, [el]);
  11476. }
  11477. else {
  11478. callHook(afterHook, [el]);
  11479. }
  11480. if (hooks.delayedLeave) {
  11481. hooks.delayedLeave();
  11482. }
  11483. el._enterCb = undefined;
  11484. });
  11485. if (hook) {
  11486. hook(el, done);
  11487. if (hook.length <= 1) {
  11488. done();
  11489. }
  11490. }
  11491. else {
  11492. done();
  11493. }
  11494. },
  11495. leave(el, remove) {
  11496. const key = String(vnode.key);
  11497. if (el._enterCb) {
  11498. el._enterCb(true /* cancelled */);
  11499. }
  11500. if (state.isUnmounting) {
  11501. return remove();
  11502. }
  11503. callHook(onBeforeLeave, [el]);
  11504. let called = false;
  11505. const done = (el._leaveCb = (cancelled) => {
  11506. if (called)
  11507. return;
  11508. called = true;
  11509. remove();
  11510. if (cancelled) {
  11511. callHook(onLeaveCancelled, [el]);
  11512. }
  11513. else {
  11514. callHook(onAfterLeave, [el]);
  11515. }
  11516. el._leaveCb = undefined;
  11517. if (leavingVNodesCache[key] === vnode) {
  11518. delete leavingVNodesCache[key];
  11519. }
  11520. });
  11521. leavingVNodesCache[key] = vnode;
  11522. if (onLeave) {
  11523. onLeave(el, done);
  11524. if (onLeave.length <= 1) {
  11525. done();
  11526. }
  11527. }
  11528. else {
  11529. done();
  11530. }
  11531. },
  11532. clone(vnode) {
  11533. return resolveTransitionHooks(vnode, props, state, instance);
  11534. }
  11535. };
  11536. return hooks;
  11537. }
  11538. // the placeholder really only handles one special case: KeepAlive
  11539. // in the case of a KeepAlive in a leave phase we need to return a KeepAlive
  11540. // placeholder with empty content to avoid the KeepAlive instance from being
  11541. // unmounted.
  11542. function emptyPlaceholder(vnode) {
  11543. if (isKeepAlive(vnode)) {
  11544. vnode = cloneVNode(vnode);
  11545. vnode.children = null;
  11546. return vnode;
  11547. }
  11548. }
  11549. function getKeepAliveChild(vnode) {
  11550. return isKeepAlive(vnode)
  11551. ? vnode.children
  11552. ? vnode.children[0]
  11553. : undefined
  11554. : vnode;
  11555. }
  11556. function setTransitionHooks(vnode, hooks) {
  11557. if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {
  11558. setTransitionHooks(vnode.component.subTree, hooks);
  11559. }
  11560. else if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  11561. vnode.ssContent.transition = hooks.clone(vnode.ssContent);
  11562. vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
  11563. }
  11564. else {
  11565. vnode.transition = hooks;
  11566. }
  11567. }
  11568. function getTransitionRawChildren(children, keepComment = false) {
  11569. let ret = [];
  11570. let keyedFragmentCount = 0;
  11571. for (let i = 0; i < children.length; i++) {
  11572. const child = children[i];
  11573. // handle fragment children case, e.g. v-for
  11574. if (child.type === Fragment) {
  11575. if (child.patchFlag & 128 /* KEYED_FRAGMENT */)
  11576. keyedFragmentCount++;
  11577. ret = ret.concat(getTransitionRawChildren(child.children, keepComment));
  11578. }
  11579. // comment placeholders should be skipped, e.g. v-if
  11580. else if (keepComment || child.type !== Comment) {
  11581. ret.push(child);
  11582. }
  11583. }
  11584. // #1126 if a transition children list contains multiple sub fragments, these
  11585. // fragments will be merged into a flat children array. Since each v-for
  11586. // fragment may contain different static bindings inside, we need to de-op
  11587. // these children to force full diffs to ensure correct behavior.
  11588. if (keyedFragmentCount > 1) {
  11589. for (let i = 0; i < ret.length; i++) {
  11590. ret[i].patchFlag = -2 /* BAIL */;
  11591. }
  11592. }
  11593. return ret;
  11594. }
  11595. // implementation, close to no-op
  11596. function defineComponent(options) {
  11597. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(options) ? { setup: options, name: options.name } : options;
  11598. }
  11599. const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
  11600. function defineAsyncComponent(source) {
  11601. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11602. source = { loader: source };
  11603. }
  11604. const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out
  11605. suspensible = true, onError: userOnError } = source;
  11606. let pendingRequest = null;
  11607. let resolvedComp;
  11608. let retries = 0;
  11609. const retry = () => {
  11610. retries++;
  11611. pendingRequest = null;
  11612. return load();
  11613. };
  11614. const load = () => {
  11615. let thisRequest;
  11616. return (pendingRequest ||
  11617. (thisRequest = pendingRequest =
  11618. loader()
  11619. .catch(err => {
  11620. err = err instanceof Error ? err : new Error(String(err));
  11621. if (userOnError) {
  11622. return new Promise((resolve, reject) => {
  11623. const userRetry = () => resolve(retry());
  11624. const userFail = () => reject(err);
  11625. userOnError(err, userRetry, userFail, retries + 1);
  11626. });
  11627. }
  11628. else {
  11629. throw err;
  11630. }
  11631. })
  11632. .then((comp) => {
  11633. if (thisRequest !== pendingRequest && pendingRequest) {
  11634. return pendingRequest;
  11635. }
  11636. if (( true) && !comp) {
  11637. warn(`Async component loader resolved to undefined. ` +
  11638. `If you are using retry(), make sure to return its return value.`);
  11639. }
  11640. // interop module default
  11641. if (comp &&
  11642. (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {
  11643. comp = comp.default;
  11644. }
  11645. if (( true) && comp && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(comp) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  11646. throw new Error(`Invalid async component load result: ${comp}`);
  11647. }
  11648. resolvedComp = comp;
  11649. return comp;
  11650. })));
  11651. };
  11652. return defineComponent({
  11653. name: 'AsyncComponentWrapper',
  11654. __asyncLoader: load,
  11655. get __asyncResolved() {
  11656. return resolvedComp;
  11657. },
  11658. setup() {
  11659. const instance = currentInstance;
  11660. // already resolved
  11661. if (resolvedComp) {
  11662. return () => createInnerComp(resolvedComp, instance);
  11663. }
  11664. const onError = (err) => {
  11665. pendingRequest = null;
  11666. handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */);
  11667. };
  11668. // suspense-controlled or SSR.
  11669. if ((suspensible && instance.suspense) ||
  11670. (isInSSRComponentSetup)) {
  11671. return load()
  11672. .then(comp => {
  11673. return () => createInnerComp(comp, instance);
  11674. })
  11675. .catch(err => {
  11676. onError(err);
  11677. return () => errorComponent
  11678. ? createVNode(errorComponent, {
  11679. error: err
  11680. })
  11681. : null;
  11682. });
  11683. }
  11684. const loaded = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(false);
  11685. const error = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)();
  11686. const delayed = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(!!delay);
  11687. if (delay) {
  11688. setTimeout(() => {
  11689. delayed.value = false;
  11690. }, delay);
  11691. }
  11692. if (timeout != null) {
  11693. setTimeout(() => {
  11694. if (!loaded.value && !error.value) {
  11695. const err = new Error(`Async component timed out after ${timeout}ms.`);
  11696. onError(err);
  11697. error.value = err;
  11698. }
  11699. }, timeout);
  11700. }
  11701. load()
  11702. .then(() => {
  11703. loaded.value = true;
  11704. if (instance.parent && isKeepAlive(instance.parent.vnode)) {
  11705. // parent is keep-alive, force update so the loaded component's
  11706. // name is taken into account
  11707. queueJob(instance.parent.update);
  11708. }
  11709. })
  11710. .catch(err => {
  11711. onError(err);
  11712. error.value = err;
  11713. });
  11714. return () => {
  11715. if (loaded.value && resolvedComp) {
  11716. return createInnerComp(resolvedComp, instance);
  11717. }
  11718. else if (error.value && errorComponent) {
  11719. return createVNode(errorComponent, {
  11720. error: error.value
  11721. });
  11722. }
  11723. else if (loadingComponent && !delayed.value) {
  11724. return createVNode(loadingComponent);
  11725. }
  11726. };
  11727. }
  11728. });
  11729. }
  11730. function createInnerComp(comp, { vnode: { ref, props, children } }) {
  11731. const vnode = createVNode(comp, props, children);
  11732. // ensure inner component inherits the async wrapper's ref owner
  11733. vnode.ref = ref;
  11734. return vnode;
  11735. }
  11736. const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
  11737. const KeepAliveImpl = {
  11738. name: `KeepAlive`,
  11739. // Marker for special handling inside the renderer. We are not using a ===
  11740. // check directly on KeepAlive in the renderer, because importing it directly
  11741. // would prevent it from being tree-shaken.
  11742. __isKeepAlive: true,
  11743. props: {
  11744. include: [String, RegExp, Array],
  11745. exclude: [String, RegExp, Array],
  11746. max: [String, Number]
  11747. },
  11748. setup(props, { slots }) {
  11749. const instance = getCurrentInstance();
  11750. // KeepAlive communicates with the instantiated renderer via the
  11751. // ctx where the renderer passes in its internals,
  11752. // and the KeepAlive instance exposes activate/deactivate implementations.
  11753. // The whole point of this is to avoid importing KeepAlive directly in the
  11754. // renderer to facilitate tree-shaking.
  11755. const sharedContext = instance.ctx;
  11756. // if the internal renderer is not registered, it indicates that this is server-side rendering,
  11757. // for KeepAlive, we just need to render its children
  11758. if (!sharedContext.renderer) {
  11759. return slots.default;
  11760. }
  11761. const cache = new Map();
  11762. const keys = new Set();
  11763. let current = null;
  11764. if (true) {
  11765. instance.__v_cache = cache;
  11766. }
  11767. const parentSuspense = instance.suspense;
  11768. const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;
  11769. const storageContainer = createElement('div');
  11770. sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
  11771. const instance = vnode.component;
  11772. move(vnode, container, anchor, 0 /* ENTER */, parentSuspense);
  11773. // in case props have changed
  11774. patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized);
  11775. queuePostRenderEffect(() => {
  11776. instance.isDeactivated = false;
  11777. if (instance.a) {
  11778. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.a);
  11779. }
  11780. const vnodeHook = vnode.props && vnode.props.onVnodeMounted;
  11781. if (vnodeHook) {
  11782. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11783. }
  11784. }, parentSuspense);
  11785. if (true) {
  11786. // Update components tree
  11787. devtoolsComponentAdded(instance);
  11788. }
  11789. };
  11790. sharedContext.deactivate = (vnode) => {
  11791. const instance = vnode.component;
  11792. move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense);
  11793. queuePostRenderEffect(() => {
  11794. if (instance.da) {
  11795. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.da);
  11796. }
  11797. const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;
  11798. if (vnodeHook) {
  11799. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11800. }
  11801. instance.isDeactivated = true;
  11802. }, parentSuspense);
  11803. if (true) {
  11804. // Update components tree
  11805. devtoolsComponentAdded(instance);
  11806. }
  11807. };
  11808. function unmount(vnode) {
  11809. // reset the shapeFlag so it can be properly unmounted
  11810. resetShapeFlag(vnode);
  11811. _unmount(vnode, instance, parentSuspense, true);
  11812. }
  11813. function pruneCache(filter) {
  11814. cache.forEach((vnode, key) => {
  11815. const name = getComponentName(vnode.type);
  11816. if (name && (!filter || !filter(name))) {
  11817. pruneCacheEntry(key);
  11818. }
  11819. });
  11820. }
  11821. function pruneCacheEntry(key) {
  11822. const cached = cache.get(key);
  11823. if (!current || cached.type !== current.type) {
  11824. unmount(cached);
  11825. }
  11826. else if (current) {
  11827. // current active instance should no longer be kept-alive.
  11828. // we can't unmount it now but it might be later, so reset its flag now.
  11829. resetShapeFlag(current);
  11830. }
  11831. cache.delete(key);
  11832. keys.delete(key);
  11833. }
  11834. // prune cache on include/exclude prop change
  11835. watch(() => [props.include, props.exclude], ([include, exclude]) => {
  11836. include && pruneCache(name => matches(include, name));
  11837. exclude && pruneCache(name => !matches(exclude, name));
  11838. },
  11839. // prune post-render after `current` has been updated
  11840. { flush: 'post', deep: true });
  11841. // cache sub tree after render
  11842. let pendingCacheKey = null;
  11843. const cacheSubtree = () => {
  11844. // fix #1621, the pendingCacheKey could be 0
  11845. if (pendingCacheKey != null) {
  11846. cache.set(pendingCacheKey, getInnerChild(instance.subTree));
  11847. }
  11848. };
  11849. onMounted(cacheSubtree);
  11850. onUpdated(cacheSubtree);
  11851. onBeforeUnmount(() => {
  11852. cache.forEach(cached => {
  11853. const { subTree, suspense } = instance;
  11854. const vnode = getInnerChild(subTree);
  11855. if (cached.type === vnode.type) {
  11856. // current instance will be unmounted as part of keep-alive's unmount
  11857. resetShapeFlag(vnode);
  11858. // but invoke its deactivated hook here
  11859. const da = vnode.component.da;
  11860. da && queuePostRenderEffect(da, suspense);
  11861. return;
  11862. }
  11863. unmount(cached);
  11864. });
  11865. });
  11866. return () => {
  11867. pendingCacheKey = null;
  11868. if (!slots.default) {
  11869. return null;
  11870. }
  11871. const children = slots.default();
  11872. const rawVNode = children[0];
  11873. if (children.length > 1) {
  11874. if ((true)) {
  11875. warn(`KeepAlive should contain exactly one component child.`);
  11876. }
  11877. current = null;
  11878. return children;
  11879. }
  11880. else if (!isVNode(rawVNode) ||
  11881. (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) &&
  11882. !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) {
  11883. current = null;
  11884. return rawVNode;
  11885. }
  11886. let vnode = getInnerChild(rawVNode);
  11887. const comp = vnode.type;
  11888. // for async components, name check should be based in its loaded
  11889. // inner component if available
  11890. const name = getComponentName(isAsyncWrapper(vnode)
  11891. ? vnode.type.__asyncResolved || {}
  11892. : comp);
  11893. const { include, exclude, max } = props;
  11894. if ((include && (!name || !matches(include, name))) ||
  11895. (exclude && name && matches(exclude, name))) {
  11896. current = vnode;
  11897. return rawVNode;
  11898. }
  11899. const key = vnode.key == null ? comp : vnode.key;
  11900. const cachedVNode = cache.get(key);
  11901. // clone vnode if it's reused because we are going to mutate it
  11902. if (vnode.el) {
  11903. vnode = cloneVNode(vnode);
  11904. if (rawVNode.shapeFlag & 128 /* SUSPENSE */) {
  11905. rawVNode.ssContent = vnode;
  11906. }
  11907. }
  11908. // #1513 it's possible for the returned vnode to be cloned due to attr
  11909. // fallthrough or scopeId, so the vnode here may not be the final vnode
  11910. // that is mounted. Instead of caching it directly, we store the pending
  11911. // key and cache `instance.subTree` (the normalized vnode) in
  11912. // beforeMount/beforeUpdate hooks.
  11913. pendingCacheKey = key;
  11914. if (cachedVNode) {
  11915. // copy over mounted state
  11916. vnode.el = cachedVNode.el;
  11917. vnode.component = cachedVNode.component;
  11918. if (vnode.transition) {
  11919. // recursively update transition hooks on subTree
  11920. setTransitionHooks(vnode, vnode.transition);
  11921. }
  11922. // avoid vnode being mounted as fresh
  11923. vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */;
  11924. // make this key the freshest
  11925. keys.delete(key);
  11926. keys.add(key);
  11927. }
  11928. else {
  11929. keys.add(key);
  11930. // prune oldest entry
  11931. if (max && keys.size > parseInt(max, 10)) {
  11932. pruneCacheEntry(keys.values().next().value);
  11933. }
  11934. }
  11935. // avoid vnode being unmounted
  11936. vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  11937. current = vnode;
  11938. return rawVNode;
  11939. };
  11940. }
  11941. };
  11942. // export the public type for h/tsx inference
  11943. // also to avoid inline import() in generated d.ts files
  11944. const KeepAlive = KeepAliveImpl;
  11945. function matches(pattern, name) {
  11946. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(pattern)) {
  11947. return pattern.some((p) => matches(p, name));
  11948. }
  11949. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(pattern)) {
  11950. return pattern.split(',').includes(name);
  11951. }
  11952. else if (pattern.test) {
  11953. return pattern.test(name);
  11954. }
  11955. /* istanbul ignore next */
  11956. return false;
  11957. }
  11958. function onActivated(hook, target) {
  11959. registerKeepAliveHook(hook, "a" /* ACTIVATED */, target);
  11960. }
  11961. function onDeactivated(hook, target) {
  11962. registerKeepAliveHook(hook, "da" /* DEACTIVATED */, target);
  11963. }
  11964. function registerKeepAliveHook(hook, type, target = currentInstance) {
  11965. // cache the deactivate branch check wrapper for injected hooks so the same
  11966. // hook can be properly deduped by the scheduler. "__wdc" stands for "with
  11967. // deactivation check".
  11968. const wrappedHook = hook.__wdc ||
  11969. (hook.__wdc = () => {
  11970. // only fire the hook if the target instance is NOT in a deactivated branch.
  11971. let current = target;
  11972. while (current) {
  11973. if (current.isDeactivated) {
  11974. return;
  11975. }
  11976. current = current.parent;
  11977. }
  11978. return hook();
  11979. });
  11980. injectHook(type, wrappedHook, target);
  11981. // In addition to registering it on the target instance, we walk up the parent
  11982. // chain and register it on all ancestor instances that are keep-alive roots.
  11983. // This avoids the need to walk the entire component tree when invoking these
  11984. // hooks, and more importantly, avoids the need to track child components in
  11985. // arrays.
  11986. if (target) {
  11987. let current = target.parent;
  11988. while (current && current.parent) {
  11989. if (isKeepAlive(current.parent.vnode)) {
  11990. injectToKeepAliveRoot(wrappedHook, type, target, current);
  11991. }
  11992. current = current.parent;
  11993. }
  11994. }
  11995. }
  11996. function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
  11997. // injectHook wraps the original for error handling, so make sure to remove
  11998. // the wrapped version.
  11999. const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */);
  12000. onUnmounted(() => {
  12001. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(keepAliveRoot[type], injected);
  12002. }, target);
  12003. }
  12004. function resetShapeFlag(vnode) {
  12005. let shapeFlag = vnode.shapeFlag;
  12006. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  12007. shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  12008. }
  12009. if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  12010. shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */;
  12011. }
  12012. vnode.shapeFlag = shapeFlag;
  12013. }
  12014. function getInnerChild(vnode) {
  12015. return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode;
  12016. }
  12017. function injectHook(type, hook, target = currentInstance, prepend = false) {
  12018. if (target) {
  12019. const hooks = target[type] || (target[type] = []);
  12020. // cache the error handling wrapper for injected hooks so the same hook
  12021. // can be properly deduped by the scheduler. "__weh" stands for "with error
  12022. // handling".
  12023. const wrappedHook = hook.__weh ||
  12024. (hook.__weh = (...args) => {
  12025. if (target.isUnmounted) {
  12026. return;
  12027. }
  12028. // disable tracking inside all lifecycle hooks
  12029. // since they can potentially be called inside effects.
  12030. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  12031. // Set currentInstance during hook invocation.
  12032. // This assumes the hook does not synchronously trigger other hooks, which
  12033. // can only be false when the user does something really funky.
  12034. setCurrentInstance(target);
  12035. const res = callWithAsyncErrorHandling(hook, target, type, args);
  12036. unsetCurrentInstance();
  12037. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  12038. return res;
  12039. });
  12040. if (prepend) {
  12041. hooks.unshift(wrappedHook);
  12042. }
  12043. else {
  12044. hooks.push(wrappedHook);
  12045. }
  12046. return wrappedHook;
  12047. }
  12048. else if ((true)) {
  12049. const apiName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(ErrorTypeStrings[type].replace(/ hook$/, ''));
  12050. warn(`${apiName} is called when there is no active component instance to be ` +
  12051. `associated with. ` +
  12052. `Lifecycle injection APIs can only be used during execution of setup().` +
  12053. (` If you are using async setup(), make sure to register lifecycle ` +
  12054. `hooks before the first await statement.`
  12055. ));
  12056. }
  12057. }
  12058. const createHook = (lifecycle) => (hook, target = currentInstance) =>
  12059. // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  12060. (!isInSSRComponentSetup || lifecycle === "sp" /* SERVER_PREFETCH */) &&
  12061. injectHook(lifecycle, hook, target);
  12062. const onBeforeMount = createHook("bm" /* BEFORE_MOUNT */);
  12063. const onMounted = createHook("m" /* MOUNTED */);
  12064. const onBeforeUpdate = createHook("bu" /* BEFORE_UPDATE */);
  12065. const onUpdated = createHook("u" /* UPDATED */);
  12066. const onBeforeUnmount = createHook("bum" /* BEFORE_UNMOUNT */);
  12067. const onUnmounted = createHook("um" /* UNMOUNTED */);
  12068. const onServerPrefetch = createHook("sp" /* SERVER_PREFETCH */);
  12069. const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */);
  12070. const onRenderTracked = createHook("rtc" /* RENDER_TRACKED */);
  12071. function onErrorCaptured(hook, target = currentInstance) {
  12072. injectHook("ec" /* ERROR_CAPTURED */, hook, target);
  12073. }
  12074. function createDuplicateChecker() {
  12075. const cache = Object.create(null);
  12076. return (type, key) => {
  12077. if (cache[key]) {
  12078. warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
  12079. }
  12080. else {
  12081. cache[key] = type;
  12082. }
  12083. };
  12084. }
  12085. let shouldCacheAccess = true;
  12086. function applyOptions(instance) {
  12087. const options = resolveMergedOptions(instance);
  12088. const publicThis = instance.proxy;
  12089. const ctx = instance.ctx;
  12090. // do not cache property access on public proxy during state initialization
  12091. shouldCacheAccess = false;
  12092. // call beforeCreate first before accessing other options since
  12093. // the hook may mutate resolved options (#2791)
  12094. if (options.beforeCreate) {
  12095. callHook(options.beforeCreate, instance, "bc" /* BEFORE_CREATE */);
  12096. }
  12097. const {
  12098. // state
  12099. data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions,
  12100. // lifecycle
  12101. created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch,
  12102. // public API
  12103. expose, inheritAttrs,
  12104. // assets
  12105. components, directives, filters } = options;
  12106. const checkDuplicateProperties = ( true) ? createDuplicateChecker() : 0;
  12107. if ((true)) {
  12108. const [propsOptions] = instance.propsOptions;
  12109. if (propsOptions) {
  12110. for (const key in propsOptions) {
  12111. checkDuplicateProperties("Props" /* PROPS */, key);
  12112. }
  12113. }
  12114. }
  12115. // options initialization order (to be consistent with Vue 2):
  12116. // - props (already done outside of this function)
  12117. // - inject
  12118. // - methods
  12119. // - data (deferred since it relies on `this` access)
  12120. // - computed
  12121. // - watch (deferred since it relies on `this` access)
  12122. if (injectOptions) {
  12123. resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef);
  12124. }
  12125. if (methods) {
  12126. for (const key in methods) {
  12127. const methodHandler = methods[key];
  12128. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(methodHandler)) {
  12129. // In dev mode, we use the `createRenderContext` function to define
  12130. // methods to the proxy target, and those are read-only but
  12131. // reconfigurable, so it needs to be redefined here
  12132. if ((true)) {
  12133. Object.defineProperty(ctx, key, {
  12134. value: methodHandler.bind(publicThis),
  12135. configurable: true,
  12136. enumerable: true,
  12137. writable: true
  12138. });
  12139. }
  12140. else {}
  12141. if ((true)) {
  12142. checkDuplicateProperties("Methods" /* METHODS */, key);
  12143. }
  12144. }
  12145. else if ((true)) {
  12146. warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
  12147. `Did you reference the function correctly?`);
  12148. }
  12149. }
  12150. }
  12151. if (dataOptions) {
  12152. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dataOptions)) {
  12153. warn(`The data option must be a function. ` +
  12154. `Plain object usage is no longer supported.`);
  12155. }
  12156. const data = dataOptions.call(publicThis, publicThis);
  12157. if (( true) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(data)) {
  12158. warn(`data() returned a Promise - note data() cannot be async; If you ` +
  12159. `intend to perform data fetching before component renders, use ` +
  12160. `async setup() + <Suspense>.`);
  12161. }
  12162. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(data)) {
  12163. ( true) && warn(`data() should return an object.`);
  12164. }
  12165. else {
  12166. instance.data = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive)(data);
  12167. if ((true)) {
  12168. for (const key in data) {
  12169. checkDuplicateProperties("Data" /* DATA */, key);
  12170. // expose data on ctx during dev
  12171. if (key[0] !== '$' && key[0] !== '_') {
  12172. Object.defineProperty(ctx, key, {
  12173. configurable: true,
  12174. enumerable: true,
  12175. get: () => data[key],
  12176. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  12177. });
  12178. }
  12179. }
  12180. }
  12181. }
  12182. }
  12183. // state initialization complete at this point - start caching access
  12184. shouldCacheAccess = true;
  12185. if (computedOptions) {
  12186. for (const key in computedOptions) {
  12187. const opt = computedOptions[key];
  12188. const get = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)
  12189. ? opt.bind(publicThis, publicThis)
  12190. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.get)
  12191. ? opt.get.bind(publicThis, publicThis)
  12192. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  12193. if (( true) && get === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12194. warn(`Computed property "${key}" has no getter.`);
  12195. }
  12196. const set = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.set)
  12197. ? opt.set.bind(publicThis)
  12198. : ( true)
  12199. ? () => {
  12200. warn(`Write operation failed: computed property "${key}" is readonly.`);
  12201. }
  12202. : 0;
  12203. const c = computed({
  12204. get,
  12205. set
  12206. });
  12207. Object.defineProperty(ctx, key, {
  12208. enumerable: true,
  12209. configurable: true,
  12210. get: () => c.value,
  12211. set: v => (c.value = v)
  12212. });
  12213. if ((true)) {
  12214. checkDuplicateProperties("Computed" /* COMPUTED */, key);
  12215. }
  12216. }
  12217. }
  12218. if (watchOptions) {
  12219. for (const key in watchOptions) {
  12220. createWatcher(watchOptions[key], ctx, publicThis, key);
  12221. }
  12222. }
  12223. if (provideOptions) {
  12224. const provides = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(provideOptions)
  12225. ? provideOptions.call(publicThis)
  12226. : provideOptions;
  12227. Reflect.ownKeys(provides).forEach(key => {
  12228. provide(key, provides[key]);
  12229. });
  12230. }
  12231. if (created) {
  12232. callHook(created, instance, "c" /* CREATED */);
  12233. }
  12234. function registerLifecycleHook(register, hook) {
  12235. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  12236. hook.forEach(_hook => register(_hook.bind(publicThis)));
  12237. }
  12238. else if (hook) {
  12239. register(hook.bind(publicThis));
  12240. }
  12241. }
  12242. registerLifecycleHook(onBeforeMount, beforeMount);
  12243. registerLifecycleHook(onMounted, mounted);
  12244. registerLifecycleHook(onBeforeUpdate, beforeUpdate);
  12245. registerLifecycleHook(onUpdated, updated);
  12246. registerLifecycleHook(onActivated, activated);
  12247. registerLifecycleHook(onDeactivated, deactivated);
  12248. registerLifecycleHook(onErrorCaptured, errorCaptured);
  12249. registerLifecycleHook(onRenderTracked, renderTracked);
  12250. registerLifecycleHook(onRenderTriggered, renderTriggered);
  12251. registerLifecycleHook(onBeforeUnmount, beforeUnmount);
  12252. registerLifecycleHook(onUnmounted, unmounted);
  12253. registerLifecycleHook(onServerPrefetch, serverPrefetch);
  12254. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expose)) {
  12255. if (expose.length) {
  12256. const exposed = instance.exposed || (instance.exposed = {});
  12257. expose.forEach(key => {
  12258. Object.defineProperty(exposed, key, {
  12259. get: () => publicThis[key],
  12260. set: val => (publicThis[key] = val)
  12261. });
  12262. });
  12263. }
  12264. else if (!instance.exposed) {
  12265. instance.exposed = {};
  12266. }
  12267. }
  12268. // options that are handled when creating the instance but also need to be
  12269. // applied from mixins
  12270. if (render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12271. instance.render = render;
  12272. }
  12273. if (inheritAttrs != null) {
  12274. instance.inheritAttrs = inheritAttrs;
  12275. }
  12276. // asset options.
  12277. if (components)
  12278. instance.components = components;
  12279. if (directives)
  12280. instance.directives = directives;
  12281. }
  12282. function resolveInjections(injectOptions, ctx, checkDuplicateProperties = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, unwrapRef = false) {
  12283. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(injectOptions)) {
  12284. injectOptions = normalizeInject(injectOptions);
  12285. }
  12286. for (const key in injectOptions) {
  12287. const opt = injectOptions[key];
  12288. let injected;
  12289. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opt)) {
  12290. if ('default' in opt) {
  12291. injected = inject(opt.from || key, opt.default, true /* treat default function as factory */);
  12292. }
  12293. else {
  12294. injected = inject(opt.from || key);
  12295. }
  12296. }
  12297. else {
  12298. injected = inject(opt);
  12299. }
  12300. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(injected)) {
  12301. // TODO remove the check in 3.3
  12302. if (unwrapRef) {
  12303. Object.defineProperty(ctx, key, {
  12304. enumerable: true,
  12305. configurable: true,
  12306. get: () => injected.value,
  12307. set: v => (injected.value = v)
  12308. });
  12309. }
  12310. else {
  12311. if ((true)) {
  12312. warn(`injected property "${key}" is a ref and will be auto-unwrapped ` +
  12313. `and no longer needs \`.value\` in the next minor release. ` +
  12314. `To opt-in to the new behavior now, ` +
  12315. `set \`app.config.unwrapInjectedRef = true\` (this config is ` +
  12316. `temporary and will not be needed in the future.)`);
  12317. }
  12318. ctx[key] = injected;
  12319. }
  12320. }
  12321. else {
  12322. ctx[key] = injected;
  12323. }
  12324. if ((true)) {
  12325. checkDuplicateProperties("Inject" /* INJECT */, key);
  12326. }
  12327. }
  12328. }
  12329. function callHook(hook, instance, type) {
  12330. callWithAsyncErrorHandling((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  12331. ? hook.map(h => h.bind(instance.proxy))
  12332. : hook.bind(instance.proxy), instance, type);
  12333. }
  12334. function createWatcher(raw, ctx, publicThis, key) {
  12335. const getter = key.includes('.')
  12336. ? createPathGetter(publicThis, key)
  12337. : () => publicThis[key];
  12338. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw)) {
  12339. const handler = ctx[raw];
  12340. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12341. watch(getter, handler);
  12342. }
  12343. else if ((true)) {
  12344. warn(`Invalid watch handler specified by key "${raw}"`, handler);
  12345. }
  12346. }
  12347. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw)) {
  12348. watch(getter, raw.bind(publicThis));
  12349. }
  12350. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12351. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12352. raw.forEach(r => createWatcher(r, ctx, publicThis, key));
  12353. }
  12354. else {
  12355. const handler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw.handler)
  12356. ? raw.handler.bind(publicThis)
  12357. : ctx[raw.handler];
  12358. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12359. watch(getter, handler, raw);
  12360. }
  12361. else if ((true)) {
  12362. warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
  12363. }
  12364. }
  12365. }
  12366. else if ((true)) {
  12367. warn(`Invalid watch option: "${key}"`, raw);
  12368. }
  12369. }
  12370. /**
  12371. * Resolve merged options and cache it on the component.
  12372. * This is done only once per-component since the merging does not involve
  12373. * instances.
  12374. */
  12375. function resolveMergedOptions(instance) {
  12376. const base = instance.type;
  12377. const { mixins, extends: extendsOptions } = base;
  12378. const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
  12379. const cached = cache.get(base);
  12380. let resolved;
  12381. if (cached) {
  12382. resolved = cached;
  12383. }
  12384. else if (!globalMixins.length && !mixins && !extendsOptions) {
  12385. {
  12386. resolved = base;
  12387. }
  12388. }
  12389. else {
  12390. resolved = {};
  12391. if (globalMixins.length) {
  12392. globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true));
  12393. }
  12394. mergeOptions(resolved, base, optionMergeStrategies);
  12395. }
  12396. cache.set(base, resolved);
  12397. return resolved;
  12398. }
  12399. function mergeOptions(to, from, strats, asMixin = false) {
  12400. const { mixins, extends: extendsOptions } = from;
  12401. if (extendsOptions) {
  12402. mergeOptions(to, extendsOptions, strats, true);
  12403. }
  12404. if (mixins) {
  12405. mixins.forEach((m) => mergeOptions(to, m, strats, true));
  12406. }
  12407. for (const key in from) {
  12408. if (asMixin && key === 'expose') {
  12409. ( true) &&
  12410. warn(`"expose" option is ignored when declared in mixins or extends. ` +
  12411. `It should only be declared in the base component itself.`);
  12412. }
  12413. else {
  12414. const strat = internalOptionMergeStrats[key] || (strats && strats[key]);
  12415. to[key] = strat ? strat(to[key], from[key]) : from[key];
  12416. }
  12417. }
  12418. return to;
  12419. }
  12420. const internalOptionMergeStrats = {
  12421. data: mergeDataFn,
  12422. props: mergeObjectOptions,
  12423. emits: mergeObjectOptions,
  12424. // objects
  12425. methods: mergeObjectOptions,
  12426. computed: mergeObjectOptions,
  12427. // lifecycle
  12428. beforeCreate: mergeAsArray,
  12429. created: mergeAsArray,
  12430. beforeMount: mergeAsArray,
  12431. mounted: mergeAsArray,
  12432. beforeUpdate: mergeAsArray,
  12433. updated: mergeAsArray,
  12434. beforeDestroy: mergeAsArray,
  12435. beforeUnmount: mergeAsArray,
  12436. destroyed: mergeAsArray,
  12437. unmounted: mergeAsArray,
  12438. activated: mergeAsArray,
  12439. deactivated: mergeAsArray,
  12440. errorCaptured: mergeAsArray,
  12441. serverPrefetch: mergeAsArray,
  12442. // assets
  12443. components: mergeObjectOptions,
  12444. directives: mergeObjectOptions,
  12445. // watch
  12446. watch: mergeWatchOptions,
  12447. // provide / inject
  12448. provide: mergeDataFn,
  12449. inject: mergeInject
  12450. };
  12451. function mergeDataFn(to, from) {
  12452. if (!from) {
  12453. return to;
  12454. }
  12455. if (!to) {
  12456. return from;
  12457. }
  12458. return function mergedDataFn() {
  12459. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend))((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(to) ? to.call(this, this) : to, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(from) ? from.call(this, this) : from);
  12460. };
  12461. }
  12462. function mergeInject(to, from) {
  12463. return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
  12464. }
  12465. function normalizeInject(raw) {
  12466. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12467. const res = {};
  12468. for (let i = 0; i < raw.length; i++) {
  12469. res[raw[i]] = raw[i];
  12470. }
  12471. return res;
  12472. }
  12473. return raw;
  12474. }
  12475. function mergeAsArray(to, from) {
  12476. return to ? [...new Set([].concat(to, from))] : from;
  12477. }
  12478. function mergeObjectOptions(to, from) {
  12479. return to ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to), from) : from;
  12480. }
  12481. function mergeWatchOptions(to, from) {
  12482. if (!to)
  12483. return from;
  12484. if (!from)
  12485. return to;
  12486. const merged = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to);
  12487. for (const key in from) {
  12488. merged[key] = mergeAsArray(to[key], from[key]);
  12489. }
  12490. return merged;
  12491. }
  12492. function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison
  12493. isSSR = false) {
  12494. const props = {};
  12495. const attrs = {};
  12496. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(attrs, InternalObjectKey, 1);
  12497. instance.propsDefaults = Object.create(null);
  12498. setFullProps(instance, rawProps, props, attrs);
  12499. // ensure all declared prop keys are present
  12500. for (const key in instance.propsOptions[0]) {
  12501. if (!(key in props)) {
  12502. props[key] = undefined;
  12503. }
  12504. }
  12505. // validation
  12506. if ((true)) {
  12507. validateProps(rawProps || {}, props, instance);
  12508. }
  12509. if (isStateful) {
  12510. // stateful
  12511. instance.props = isSSR ? props : (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive)(props);
  12512. }
  12513. else {
  12514. if (!instance.type.props) {
  12515. // functional w/ optional props, props === attrs
  12516. instance.props = attrs;
  12517. }
  12518. else {
  12519. // functional w/ declared props
  12520. instance.props = props;
  12521. }
  12522. }
  12523. instance.attrs = attrs;
  12524. }
  12525. function updateProps(instance, rawProps, rawPrevProps, optimized) {
  12526. const { props, attrs, vnode: { patchFlag } } = instance;
  12527. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12528. const [options] = instance.propsOptions;
  12529. let hasAttrsChanged = false;
  12530. if (
  12531. // always force full diff in dev
  12532. // - #1942 if hmr is enabled with sfc component
  12533. // - vite#872 non-sfc component used by sfc component
  12534. !(( true) &&
  12535. (instance.type.__hmrId ||
  12536. (instance.parent && instance.parent.type.__hmrId))) &&
  12537. (optimized || patchFlag > 0) &&
  12538. !(patchFlag & 16 /* FULL_PROPS */)) {
  12539. if (patchFlag & 8 /* PROPS */) {
  12540. // Compiler-generated props & no keys change, just set the updated
  12541. // the props.
  12542. const propsToUpdate = instance.vnode.dynamicProps;
  12543. for (let i = 0; i < propsToUpdate.length; i++) {
  12544. let key = propsToUpdate[i];
  12545. // PROPS flag guarantees rawProps to be non-null
  12546. const value = rawProps[key];
  12547. if (options) {
  12548. // attr / props separation was done on init and will be consistent
  12549. // in this code path, so just check if attrs have it.
  12550. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(attrs, key)) {
  12551. if (value !== attrs[key]) {
  12552. attrs[key] = value;
  12553. hasAttrsChanged = true;
  12554. }
  12555. }
  12556. else {
  12557. const camelizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12558. props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);
  12559. }
  12560. }
  12561. else {
  12562. if (value !== attrs[key]) {
  12563. attrs[key] = value;
  12564. hasAttrsChanged = true;
  12565. }
  12566. }
  12567. }
  12568. }
  12569. }
  12570. else {
  12571. // full props update.
  12572. if (setFullProps(instance, rawProps, props, attrs)) {
  12573. hasAttrsChanged = true;
  12574. }
  12575. // in case of dynamic props, check if we need to delete keys from
  12576. // the props object
  12577. let kebabKey;
  12578. for (const key in rawCurrentProps) {
  12579. if (!rawProps ||
  12580. // for camelCase
  12581. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12582. // it's possible the original props was passed in as kebab-case
  12583. // and converted to camelCase (#955)
  12584. ((kebabKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) === key || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, kebabKey)))) {
  12585. if (options) {
  12586. if (rawPrevProps &&
  12587. // for camelCase
  12588. (rawPrevProps[key] !== undefined ||
  12589. // for kebab-case
  12590. rawPrevProps[kebabKey] !== undefined)) {
  12591. props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */);
  12592. }
  12593. }
  12594. else {
  12595. delete props[key];
  12596. }
  12597. }
  12598. }
  12599. // in the case of functional component w/o props declaration, props and
  12600. // attrs point to the same object so it should already have been updated.
  12601. if (attrs !== rawCurrentProps) {
  12602. for (const key in attrs) {
  12603. if (!rawProps ||
  12604. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12605. (!false ))) {
  12606. delete attrs[key];
  12607. hasAttrsChanged = true;
  12608. }
  12609. }
  12610. }
  12611. }
  12612. // trigger updates for $attrs in case it's used in component slots
  12613. if (hasAttrsChanged) {
  12614. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.trigger)(instance, "set" /* SET */, '$attrs');
  12615. }
  12616. if ((true)) {
  12617. validateProps(rawProps || {}, props, instance);
  12618. }
  12619. }
  12620. function setFullProps(instance, rawProps, props, attrs) {
  12621. const [options, needCastKeys] = instance.propsOptions;
  12622. let hasAttrsChanged = false;
  12623. let rawCastValues;
  12624. if (rawProps) {
  12625. for (let key in rawProps) {
  12626. // key, ref are reserved and never passed down
  12627. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  12628. continue;
  12629. }
  12630. const value = rawProps[key];
  12631. // prop option names are camelized during normalization, so to support
  12632. // kebab -> camel conversion here we need to camelize the key.
  12633. let camelKey;
  12634. if (options && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (camelKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key)))) {
  12635. if (!needCastKeys || !needCastKeys.includes(camelKey)) {
  12636. props[camelKey] = value;
  12637. }
  12638. else {
  12639. (rawCastValues || (rawCastValues = {}))[camelKey] = value;
  12640. }
  12641. }
  12642. else if (!isEmitListener(instance.emitsOptions, key)) {
  12643. if (!(key in attrs) || value !== attrs[key]) {
  12644. attrs[key] = value;
  12645. hasAttrsChanged = true;
  12646. }
  12647. }
  12648. }
  12649. }
  12650. if (needCastKeys) {
  12651. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12652. const castValues = rawCastValues || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12653. for (let i = 0; i < needCastKeys.length; i++) {
  12654. const key = needCastKeys[i];
  12655. props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(castValues, key));
  12656. }
  12657. }
  12658. return hasAttrsChanged;
  12659. }
  12660. function resolvePropValue(options, props, key, value, instance, isAbsent) {
  12661. const opt = options[key];
  12662. if (opt != null) {
  12663. const hasDefault = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(opt, 'default');
  12664. // default values
  12665. if (hasDefault && value === undefined) {
  12666. const defaultValue = opt.default;
  12667. if (opt.type !== Function && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)) {
  12668. const { propsDefaults } = instance;
  12669. if (key in propsDefaults) {
  12670. value = propsDefaults[key];
  12671. }
  12672. else {
  12673. setCurrentInstance(instance);
  12674. value = propsDefaults[key] = defaultValue.call(null, props);
  12675. unsetCurrentInstance();
  12676. }
  12677. }
  12678. else {
  12679. value = defaultValue;
  12680. }
  12681. }
  12682. // boolean casting
  12683. if (opt[0 /* shouldCast */]) {
  12684. if (isAbsent && !hasDefault) {
  12685. value = false;
  12686. }
  12687. else if (opt[1 /* shouldCastTrue */] &&
  12688. (value === '' || value === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key))) {
  12689. value = true;
  12690. }
  12691. }
  12692. }
  12693. return value;
  12694. }
  12695. function normalizePropsOptions(comp, appContext, asMixin = false) {
  12696. const cache = appContext.propsCache;
  12697. const cached = cache.get(comp);
  12698. if (cached) {
  12699. return cached;
  12700. }
  12701. const raw = comp.props;
  12702. const normalized = {};
  12703. const needCastKeys = [];
  12704. // apply mixin/extends props
  12705. let hasExtends = false;
  12706. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  12707. const extendProps = (raw) => {
  12708. hasExtends = true;
  12709. const [props, keys] = normalizePropsOptions(raw, appContext, true);
  12710. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, props);
  12711. if (keys)
  12712. needCastKeys.push(...keys);
  12713. };
  12714. if (!asMixin && appContext.mixins.length) {
  12715. appContext.mixins.forEach(extendProps);
  12716. }
  12717. if (comp.extends) {
  12718. extendProps(comp.extends);
  12719. }
  12720. if (comp.mixins) {
  12721. comp.mixins.forEach(extendProps);
  12722. }
  12723. }
  12724. if (!raw && !hasExtends) {
  12725. cache.set(comp, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR);
  12726. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  12727. }
  12728. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12729. for (let i = 0; i < raw.length; i++) {
  12730. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw[i])) {
  12731. warn(`props must be strings when using array syntax.`, raw[i]);
  12732. }
  12733. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(raw[i]);
  12734. if (validatePropName(normalizedKey)) {
  12735. normalized[normalizedKey] = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12736. }
  12737. }
  12738. }
  12739. else if (raw) {
  12740. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12741. warn(`invalid props options`, raw);
  12742. }
  12743. for (const key in raw) {
  12744. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12745. if (validatePropName(normalizedKey)) {
  12746. const opt = raw[key];
  12747. const prop = (normalized[normalizedKey] =
  12748. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) ? { type: opt } : opt);
  12749. if (prop) {
  12750. const booleanIndex = getTypeIndex(Boolean, prop.type);
  12751. const stringIndex = getTypeIndex(String, prop.type);
  12752. prop[0 /* shouldCast */] = booleanIndex > -1;
  12753. prop[1 /* shouldCastTrue */] =
  12754. stringIndex < 0 || booleanIndex < stringIndex;
  12755. // if the prop needs boolean casting or default value
  12756. if (booleanIndex > -1 || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(prop, 'default')) {
  12757. needCastKeys.push(normalizedKey);
  12758. }
  12759. }
  12760. }
  12761. }
  12762. }
  12763. const res = [normalized, needCastKeys];
  12764. cache.set(comp, res);
  12765. return res;
  12766. }
  12767. function validatePropName(key) {
  12768. if (key[0] !== '$') {
  12769. return true;
  12770. }
  12771. else if ((true)) {
  12772. warn(`Invalid prop name: "${key}" is a reserved property.`);
  12773. }
  12774. return false;
  12775. }
  12776. // use function string name to check type constructors
  12777. // so that it works across vms / iframes.
  12778. function getType(ctor) {
  12779. const match = ctor && ctor.toString().match(/^\s*function (\w+)/);
  12780. return match ? match[1] : ctor === null ? 'null' : '';
  12781. }
  12782. function isSameType(a, b) {
  12783. return getType(a) === getType(b);
  12784. }
  12785. function getTypeIndex(type, expectedTypes) {
  12786. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expectedTypes)) {
  12787. return expectedTypes.findIndex(t => isSameType(t, type));
  12788. }
  12789. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(expectedTypes)) {
  12790. return isSameType(expectedTypes, type) ? 0 : -1;
  12791. }
  12792. return -1;
  12793. }
  12794. /**
  12795. * dev only
  12796. */
  12797. function validateProps(rawProps, props, instance) {
  12798. const resolvedValues = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12799. const options = instance.propsOptions[0];
  12800. for (const key in options) {
  12801. let opt = options[key];
  12802. if (opt == null)
  12803. continue;
  12804. validateProp(key, resolvedValues[key], opt, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)));
  12805. }
  12806. }
  12807. /**
  12808. * dev only
  12809. */
  12810. function validateProp(name, value, prop, isAbsent) {
  12811. const { type, required, validator } = prop;
  12812. // required!
  12813. if (required && isAbsent) {
  12814. warn('Missing required prop: "' + name + '"');
  12815. return;
  12816. }
  12817. // missing but optional
  12818. if (value == null && !prop.required) {
  12819. return;
  12820. }
  12821. // type check
  12822. if (type != null && type !== true) {
  12823. let isValid = false;
  12824. const types = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(type) ? type : [type];
  12825. const expectedTypes = [];
  12826. // value is valid as long as one of the specified types match
  12827. for (let i = 0; i < types.length && !isValid; i++) {
  12828. const { valid, expectedType } = assertType(value, types[i]);
  12829. expectedTypes.push(expectedType || '');
  12830. isValid = valid;
  12831. }
  12832. if (!isValid) {
  12833. warn(getInvalidTypeMessage(name, value, expectedTypes));
  12834. return;
  12835. }
  12836. }
  12837. // custom validator
  12838. if (validator && !validator(value)) {
  12839. warn('Invalid prop: custom validator check failed for prop "' + name + '".');
  12840. }
  12841. }
  12842. const isSimpleType = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('String,Number,Boolean,Function,Symbol,BigInt');
  12843. /**
  12844. * dev only
  12845. */
  12846. function assertType(value, type) {
  12847. let valid;
  12848. const expectedType = getType(type);
  12849. if (isSimpleType(expectedType)) {
  12850. const t = typeof value;
  12851. valid = t === expectedType.toLowerCase();
  12852. // for primitive wrapper objects
  12853. if (!valid && t === 'object') {
  12854. valid = value instanceof type;
  12855. }
  12856. }
  12857. else if (expectedType === 'Object') {
  12858. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value);
  12859. }
  12860. else if (expectedType === 'Array') {
  12861. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value);
  12862. }
  12863. else if (expectedType === 'null') {
  12864. valid = value === null;
  12865. }
  12866. else {
  12867. valid = value instanceof type;
  12868. }
  12869. return {
  12870. valid,
  12871. expectedType
  12872. };
  12873. }
  12874. /**
  12875. * dev only
  12876. */
  12877. function getInvalidTypeMessage(name, value, expectedTypes) {
  12878. let message = `Invalid prop: type check failed for prop "${name}".` +
  12879. ` Expected ${expectedTypes.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join(' | ')}`;
  12880. const expectedType = expectedTypes[0];
  12881. const receivedType = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toRawType)(value);
  12882. const expectedValue = styleValue(value, expectedType);
  12883. const receivedValue = styleValue(value, receivedType);
  12884. // check if we need to specify expected value
  12885. if (expectedTypes.length === 1 &&
  12886. isExplicable(expectedType) &&
  12887. !isBoolean(expectedType, receivedType)) {
  12888. message += ` with value ${expectedValue}`;
  12889. }
  12890. message += `, got ${receivedType} `;
  12891. // check if we need to specify received value
  12892. if (isExplicable(receivedType)) {
  12893. message += `with value ${receivedValue}.`;
  12894. }
  12895. return message;
  12896. }
  12897. /**
  12898. * dev only
  12899. */
  12900. function styleValue(value, type) {
  12901. if (type === 'String') {
  12902. return `"${value}"`;
  12903. }
  12904. else if (type === 'Number') {
  12905. return `${Number(value)}`;
  12906. }
  12907. else {
  12908. return `${value}`;
  12909. }
  12910. }
  12911. /**
  12912. * dev only
  12913. */
  12914. function isExplicable(type) {
  12915. const explicitTypes = ['string', 'number', 'boolean'];
  12916. return explicitTypes.some(elem => type.toLowerCase() === elem);
  12917. }
  12918. /**
  12919. * dev only
  12920. */
  12921. function isBoolean(...args) {
  12922. return args.some(elem => elem.toLowerCase() === 'boolean');
  12923. }
  12924. const isInternalKey = (key) => key[0] === '_' || key === '$stable';
  12925. const normalizeSlotValue = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)
  12926. ? value.map(normalizeVNode)
  12927. : [normalizeVNode(value)];
  12928. const normalizeSlot = (key, rawSlot, ctx) => {
  12929. const normalized = withCtx((...args) => {
  12930. if (( true) && currentInstance) {
  12931. warn(`Slot "${key}" invoked outside of the render function: ` +
  12932. `this will not track dependencies used in the slot. ` +
  12933. `Invoke the slot function inside the render function instead.`);
  12934. }
  12935. return normalizeSlotValue(rawSlot(...args));
  12936. }, ctx);
  12937. normalized._c = false;
  12938. return normalized;
  12939. };
  12940. const normalizeObjectSlots = (rawSlots, slots, instance) => {
  12941. const ctx = rawSlots._ctx;
  12942. for (const key in rawSlots) {
  12943. if (isInternalKey(key))
  12944. continue;
  12945. const value = rawSlots[key];
  12946. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  12947. slots[key] = normalizeSlot(key, value, ctx);
  12948. }
  12949. else if (value != null) {
  12950. if (true) {
  12951. warn(`Non-function value encountered for slot "${key}". ` +
  12952. `Prefer function slots for better performance.`);
  12953. }
  12954. const normalized = normalizeSlotValue(value);
  12955. slots[key] = () => normalized;
  12956. }
  12957. }
  12958. };
  12959. const normalizeVNodeSlots = (instance, children) => {
  12960. if (( true) &&
  12961. !isKeepAlive(instance.vnode) &&
  12962. !(false )) {
  12963. warn(`Non-function value encountered for default slot. ` +
  12964. `Prefer function slots for better performance.`);
  12965. }
  12966. const normalized = normalizeSlotValue(children);
  12967. instance.slots.default = () => normalized;
  12968. };
  12969. const initSlots = (instance, children) => {
  12970. if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  12971. const type = children._;
  12972. if (type) {
  12973. // users can get the shallow readonly version of the slots object through `this.$slots`,
  12974. // we should avoid the proxy object polluting the slots of the internal instance
  12975. instance.slots = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(children);
  12976. // make compiler marker non-enumerable
  12977. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(children, '_', type);
  12978. }
  12979. else {
  12980. normalizeObjectSlots(children, (instance.slots = {}));
  12981. }
  12982. }
  12983. else {
  12984. instance.slots = {};
  12985. if (children) {
  12986. normalizeVNodeSlots(instance, children);
  12987. }
  12988. }
  12989. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(instance.slots, InternalObjectKey, 1);
  12990. };
  12991. const updateSlots = (instance, children, optimized) => {
  12992. const { vnode, slots } = instance;
  12993. let needDeletionCheck = true;
  12994. let deletionComparisonTarget = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12995. if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  12996. const type = children._;
  12997. if (type) {
  12998. // compiled slots.
  12999. if (( true) && isHmrUpdating) {
  13000. // Parent was HMR updated so slot content may have changed.
  13001. // force update slots and mark instance for hmr as well
  13002. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13003. }
  13004. else if (optimized && type === 1 /* STABLE */) {
  13005. // compiled AND stable.
  13006. // no need to update, and skip stale slots removal.
  13007. needDeletionCheck = false;
  13008. }
  13009. else {
  13010. // compiled but dynamic (v-if/v-for on slots) - update slots, but skip
  13011. // normalization.
  13012. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13013. // #2893
  13014. // when rendering the optimized slots by manually written render function,
  13015. // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,
  13016. // i.e. let the `renderSlot` create the bailed Fragment
  13017. if (!optimized && type === 1 /* STABLE */) {
  13018. delete slots._;
  13019. }
  13020. }
  13021. }
  13022. else {
  13023. needDeletionCheck = !children.$stable;
  13024. normalizeObjectSlots(children, slots);
  13025. }
  13026. deletionComparisonTarget = children;
  13027. }
  13028. else if (children) {
  13029. // non slot object children (direct value) passed to a component
  13030. normalizeVNodeSlots(instance, children);
  13031. deletionComparisonTarget = { default: 1 };
  13032. }
  13033. // delete stale slots
  13034. if (needDeletionCheck) {
  13035. for (const key in slots) {
  13036. if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
  13037. delete slots[key];
  13038. }
  13039. }
  13040. }
  13041. };
  13042. /**
  13043. Runtime helper for applying directives to a vnode. Example usage:
  13044. const comp = resolveComponent('comp')
  13045. const foo = resolveDirective('foo')
  13046. const bar = resolveDirective('bar')
  13047. return withDirectives(h(comp), [
  13048. [foo, this.x],
  13049. [bar, this.y]
  13050. ])
  13051. */
  13052. function validateDirectiveName(name) {
  13053. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isBuiltInDirective)(name)) {
  13054. warn('Do not use built-in directive ids as custom directive id: ' + name);
  13055. }
  13056. }
  13057. /**
  13058. * Adds directives to a VNode.
  13059. */
  13060. function withDirectives(vnode, directives) {
  13061. const internalInstance = currentRenderingInstance;
  13062. if (internalInstance === null) {
  13063. ( true) && warn(`withDirectives can only be used inside render functions.`);
  13064. return vnode;
  13065. }
  13066. const instance = internalInstance.proxy;
  13067. const bindings = vnode.dirs || (vnode.dirs = []);
  13068. for (let i = 0; i < directives.length; i++) {
  13069. let [dir, value, arg, modifiers = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ] = directives[i];
  13070. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dir)) {
  13071. dir = {
  13072. mounted: dir,
  13073. updated: dir
  13074. };
  13075. }
  13076. if (dir.deep) {
  13077. traverse(value);
  13078. }
  13079. bindings.push({
  13080. dir,
  13081. instance,
  13082. value,
  13083. oldValue: void 0,
  13084. arg,
  13085. modifiers
  13086. });
  13087. }
  13088. return vnode;
  13089. }
  13090. function invokeDirectiveHook(vnode, prevVNode, instance, name) {
  13091. const bindings = vnode.dirs;
  13092. const oldBindings = prevVNode && prevVNode.dirs;
  13093. for (let i = 0; i < bindings.length; i++) {
  13094. const binding = bindings[i];
  13095. if (oldBindings) {
  13096. binding.oldValue = oldBindings[i].value;
  13097. }
  13098. let hook = binding.dir[name];
  13099. if (hook) {
  13100. // disable tracking inside all lifecycle hooks
  13101. // since they can potentially be called inside effects.
  13102. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  13103. callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [
  13104. vnode.el,
  13105. binding,
  13106. vnode,
  13107. prevVNode
  13108. ]);
  13109. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  13110. }
  13111. }
  13112. }
  13113. function createAppContext() {
  13114. return {
  13115. app: null,
  13116. config: {
  13117. isNativeTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO,
  13118. performance: false,
  13119. globalProperties: {},
  13120. optionMergeStrategies: {},
  13121. errorHandler: undefined,
  13122. warnHandler: undefined,
  13123. compilerOptions: {}
  13124. },
  13125. mixins: [],
  13126. components: {},
  13127. directives: {},
  13128. provides: Object.create(null),
  13129. optionsCache: new WeakMap(),
  13130. propsCache: new WeakMap(),
  13131. emitsCache: new WeakMap()
  13132. };
  13133. }
  13134. let uid = 0;
  13135. function createAppAPI(render, hydrate) {
  13136. return function createApp(rootComponent, rootProps = null) {
  13137. if (rootProps != null && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(rootProps)) {
  13138. ( true) && warn(`root props passed to app.mount() must be an object.`);
  13139. rootProps = null;
  13140. }
  13141. const context = createAppContext();
  13142. const installedPlugins = new Set();
  13143. let isMounted = false;
  13144. const app = (context.app = {
  13145. _uid: uid++,
  13146. _component: rootComponent,
  13147. _props: rootProps,
  13148. _container: null,
  13149. _context: context,
  13150. _instance: null,
  13151. version,
  13152. get config() {
  13153. return context.config;
  13154. },
  13155. set config(v) {
  13156. if ((true)) {
  13157. warn(`app.config cannot be replaced. Modify individual options instead.`);
  13158. }
  13159. },
  13160. use(plugin, ...options) {
  13161. if (installedPlugins.has(plugin)) {
  13162. ( true) && warn(`Plugin has already been applied to target app.`);
  13163. }
  13164. else if (plugin && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin.install)) {
  13165. installedPlugins.add(plugin);
  13166. plugin.install(app, ...options);
  13167. }
  13168. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin)) {
  13169. installedPlugins.add(plugin);
  13170. plugin(app, ...options);
  13171. }
  13172. else if ((true)) {
  13173. warn(`A plugin must either be a function or an object with an "install" ` +
  13174. `function.`);
  13175. }
  13176. return app;
  13177. },
  13178. mixin(mixin) {
  13179. if (true) {
  13180. if (!context.mixins.includes(mixin)) {
  13181. context.mixins.push(mixin);
  13182. }
  13183. else if ((true)) {
  13184. warn('Mixin has already been applied to target app' +
  13185. (mixin.name ? `: ${mixin.name}` : ''));
  13186. }
  13187. }
  13188. else {}
  13189. return app;
  13190. },
  13191. component(name, component) {
  13192. if ((true)) {
  13193. validateComponentName(name, context.config);
  13194. }
  13195. if (!component) {
  13196. return context.components[name];
  13197. }
  13198. if (( true) && context.components[name]) {
  13199. warn(`Component "${name}" has already been registered in target app.`);
  13200. }
  13201. context.components[name] = component;
  13202. return app;
  13203. },
  13204. directive(name, directive) {
  13205. if ((true)) {
  13206. validateDirectiveName(name);
  13207. }
  13208. if (!directive) {
  13209. return context.directives[name];
  13210. }
  13211. if (( true) && context.directives[name]) {
  13212. warn(`Directive "${name}" has already been registered in target app.`);
  13213. }
  13214. context.directives[name] = directive;
  13215. return app;
  13216. },
  13217. mount(rootContainer, isHydrate, isSVG) {
  13218. if (!isMounted) {
  13219. const vnode = createVNode(rootComponent, rootProps);
  13220. // store app context on the root VNode.
  13221. // this will be set on the root instance on initial mount.
  13222. vnode.appContext = context;
  13223. // HMR root reload
  13224. if ((true)) {
  13225. context.reload = () => {
  13226. render(cloneVNode(vnode), rootContainer, isSVG);
  13227. };
  13228. }
  13229. if (isHydrate && hydrate) {
  13230. hydrate(vnode, rootContainer);
  13231. }
  13232. else {
  13233. render(vnode, rootContainer, isSVG);
  13234. }
  13235. isMounted = true;
  13236. app._container = rootContainer;
  13237. rootContainer.__vue_app__ = app;
  13238. if (true) {
  13239. app._instance = vnode.component;
  13240. devtoolsInitApp(app, version);
  13241. }
  13242. return getExposeProxy(vnode.component) || vnode.component.proxy;
  13243. }
  13244. else if ((true)) {
  13245. warn(`App has already been mounted.\n` +
  13246. `If you want to remount the same app, move your app creation logic ` +
  13247. `into a factory function and create fresh app instances for each ` +
  13248. `mount - e.g. \`const createMyApp = () => createApp(App)\``);
  13249. }
  13250. },
  13251. unmount() {
  13252. if (isMounted) {
  13253. render(null, app._container);
  13254. if (true) {
  13255. app._instance = null;
  13256. devtoolsUnmountApp(app);
  13257. }
  13258. delete app._container.__vue_app__;
  13259. }
  13260. else if ((true)) {
  13261. warn(`Cannot unmount an app that is not mounted.`);
  13262. }
  13263. },
  13264. provide(key, value) {
  13265. if (( true) && key in context.provides) {
  13266. warn(`App already provides property with key "${String(key)}". ` +
  13267. `It will be overwritten with the new value.`);
  13268. }
  13269. // TypeScript doesn't allow symbols as index type
  13270. // https://github.com/Microsoft/TypeScript/issues/24587
  13271. context.provides[key] = value;
  13272. return app;
  13273. }
  13274. });
  13275. return app;
  13276. };
  13277. }
  13278. /**
  13279. * Function for handling a template ref
  13280. */
  13281. function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
  13282. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(rawRef)) {
  13283. rawRef.forEach((r, i) => setRef(r, oldRawRef && ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));
  13284. return;
  13285. }
  13286. if (isAsyncWrapper(vnode) && !isUnmount) {
  13287. // when mounting async components, nothing needs to be done,
  13288. // because the template ref is forwarded to inner component
  13289. return;
  13290. }
  13291. const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */
  13292. ? getExposeProxy(vnode.component) || vnode.component.proxy
  13293. : vnode.el;
  13294. const value = isUnmount ? null : refValue;
  13295. const { i: owner, r: ref } = rawRef;
  13296. if (( true) && !owner) {
  13297. warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
  13298. `A vnode with ref must be created inside the render function.`);
  13299. return;
  13300. }
  13301. const oldRef = oldRawRef && oldRawRef.r;
  13302. const refs = owner.refs === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ ? (owner.refs = {}) : owner.refs;
  13303. const setupState = owner.setupState;
  13304. // dynamic ref changed. unset old ref
  13305. if (oldRef != null && oldRef !== ref) {
  13306. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(oldRef)) {
  13307. refs[oldRef] = null;
  13308. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, oldRef)) {
  13309. setupState[oldRef] = null;
  13310. }
  13311. }
  13312. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(oldRef)) {
  13313. oldRef.value = null;
  13314. }
  13315. }
  13316. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)) {
  13317. callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]);
  13318. }
  13319. else {
  13320. const _isString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref);
  13321. const _isRef = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref);
  13322. if (_isString || _isRef) {
  13323. const doSet = () => {
  13324. if (rawRef.f) {
  13325. const existing = _isString ? refs[ref] : ref.value;
  13326. if (isUnmount) {
  13327. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(existing, refValue);
  13328. }
  13329. else {
  13330. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing)) {
  13331. if (_isString) {
  13332. refs[ref] = [refValue];
  13333. }
  13334. else {
  13335. ref.value = [refValue];
  13336. if (rawRef.k)
  13337. refs[rawRef.k] = ref.value;
  13338. }
  13339. }
  13340. else if (!existing.includes(refValue)) {
  13341. existing.push(refValue);
  13342. }
  13343. }
  13344. }
  13345. else if (_isString) {
  13346. refs[ref] = value;
  13347. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) {
  13348. setupState[ref] = value;
  13349. }
  13350. }
  13351. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref)) {
  13352. ref.value = value;
  13353. if (rawRef.k)
  13354. refs[rawRef.k] = value;
  13355. }
  13356. else if ((true)) {
  13357. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13358. }
  13359. };
  13360. if (value) {
  13361. doSet.id = -1;
  13362. queuePostRenderEffect(doSet, parentSuspense);
  13363. }
  13364. else {
  13365. doSet();
  13366. }
  13367. }
  13368. else if ((true)) {
  13369. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13370. }
  13371. }
  13372. }
  13373. let hasMismatch = false;
  13374. const isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject';
  13375. const isComment = (node) => node.nodeType === 8 /* COMMENT */;
  13376. // Note: hydration is DOM-specific
  13377. // But we have to place it in core due to tight coupling with core - splitting
  13378. // it out creates a ton of unnecessary complexity.
  13379. // Hydration also depends on some renderer internal logic which needs to be
  13380. // passed in via arguments.
  13381. function createHydrationFunctions(rendererInternals) {
  13382. const { mt: mountComponent, p: patch, o: { patchProp, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
  13383. const hydrate = (vnode, container) => {
  13384. if (!container.hasChildNodes()) {
  13385. ( true) &&
  13386. warn(`Attempting to hydrate existing markup but container is empty. ` +
  13387. `Performing full mount instead.`);
  13388. patch(null, vnode, container);
  13389. flushPostFlushCbs();
  13390. return;
  13391. }
  13392. hasMismatch = false;
  13393. hydrateNode(container.firstChild, vnode, null, null, null);
  13394. flushPostFlushCbs();
  13395. if (hasMismatch && !false) {
  13396. // this error should show up in production
  13397. console.error(`Hydration completed but contains mismatches.`);
  13398. }
  13399. };
  13400. const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
  13401. const isFragmentStart = isComment(node) && node.data === '[';
  13402. const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
  13403. const { type, ref, shapeFlag } = vnode;
  13404. const domType = node.nodeType;
  13405. vnode.el = node;
  13406. let nextNode = null;
  13407. switch (type) {
  13408. case Text:
  13409. if (domType !== 3 /* TEXT */) {
  13410. nextNode = onMismatch();
  13411. }
  13412. else {
  13413. if (node.data !== vnode.children) {
  13414. hasMismatch = true;
  13415. ( true) &&
  13416. warn(`Hydration text mismatch:` +
  13417. `\n- Client: ${JSON.stringify(node.data)}` +
  13418. `\n- Server: ${JSON.stringify(vnode.children)}`);
  13419. node.data = vnode.children;
  13420. }
  13421. nextNode = nextSibling(node);
  13422. }
  13423. break;
  13424. case Comment:
  13425. if (domType !== 8 /* COMMENT */ || isFragmentStart) {
  13426. nextNode = onMismatch();
  13427. }
  13428. else {
  13429. nextNode = nextSibling(node);
  13430. }
  13431. break;
  13432. case Static:
  13433. if (domType !== 1 /* ELEMENT */) {
  13434. nextNode = onMismatch();
  13435. }
  13436. else {
  13437. // determine anchor, adopt content
  13438. nextNode = node;
  13439. // if the static vnode has its content stripped during build,
  13440. // adopt it from the server-rendered HTML.
  13441. const needToAdoptContent = !vnode.children.length;
  13442. for (let i = 0; i < vnode.staticCount; i++) {
  13443. if (needToAdoptContent)
  13444. vnode.children += nextNode.outerHTML;
  13445. if (i === vnode.staticCount - 1) {
  13446. vnode.anchor = nextNode;
  13447. }
  13448. nextNode = nextSibling(nextNode);
  13449. }
  13450. return nextNode;
  13451. }
  13452. break;
  13453. case Fragment:
  13454. if (!isFragmentStart) {
  13455. nextNode = onMismatch();
  13456. }
  13457. else {
  13458. nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13459. }
  13460. break;
  13461. default:
  13462. if (shapeFlag & 1 /* ELEMENT */) {
  13463. if (domType !== 1 /* ELEMENT */ ||
  13464. vnode.type.toLowerCase() !==
  13465. node.tagName.toLowerCase()) {
  13466. nextNode = onMismatch();
  13467. }
  13468. else {
  13469. nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13470. }
  13471. }
  13472. else if (shapeFlag & 6 /* COMPONENT */) {
  13473. // when setting up the render effect, if the initial vnode already
  13474. // has .el set, the component will perform hydration instead of mount
  13475. // on its sub-tree.
  13476. vnode.slotScopeIds = slotScopeIds;
  13477. const container = parentNode(node);
  13478. mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized);
  13479. // component may be async, so in the case of fragments we cannot rely
  13480. // on component's rendered output to determine the end of the fragment
  13481. // instead, we do a lookahead to find the end anchor node.
  13482. nextNode = isFragmentStart
  13483. ? locateClosingAsyncAnchor(node)
  13484. : nextSibling(node);
  13485. // #3787
  13486. // if component is async, it may get moved / unmounted before its
  13487. // inner component is loaded, so we need to give it a placeholder
  13488. // vnode that matches its adopted DOM.
  13489. if (isAsyncWrapper(vnode)) {
  13490. let subTree;
  13491. if (isFragmentStart) {
  13492. subTree = createVNode(Fragment);
  13493. subTree.anchor = nextNode
  13494. ? nextNode.previousSibling
  13495. : container.lastChild;
  13496. }
  13497. else {
  13498. subTree =
  13499. node.nodeType === 3 ? createTextVNode('') : createVNode('div');
  13500. }
  13501. subTree.el = node;
  13502. vnode.component.subTree = subTree;
  13503. }
  13504. }
  13505. else if (shapeFlag & 64 /* TELEPORT */) {
  13506. if (domType !== 8 /* COMMENT */) {
  13507. nextNode = onMismatch();
  13508. }
  13509. else {
  13510. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
  13511. }
  13512. }
  13513. else if (shapeFlag & 128 /* SUSPENSE */) {
  13514. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
  13515. }
  13516. else if ((true)) {
  13517. warn('Invalid HostVNode type:', type, `(${typeof type})`);
  13518. }
  13519. }
  13520. if (ref != null) {
  13521. setRef(ref, null, parentSuspense, vnode);
  13522. }
  13523. return nextNode;
  13524. };
  13525. const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13526. optimized = optimized || !!vnode.dynamicChildren;
  13527. const { type, props, patchFlag, shapeFlag, dirs } = vnode;
  13528. // #4006 for form elements with non-string v-model value bindings
  13529. // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
  13530. const forcePatchValue = (type === 'input' && dirs) || type === 'option';
  13531. // skip props & children if this is hoisted static nodes
  13532. // #5405 in dev, always hydrate children for HMR
  13533. if (true /* HOISTED */) {
  13534. if (dirs) {
  13535. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13536. }
  13537. // props
  13538. if (props) {
  13539. if (forcePatchValue ||
  13540. !optimized ||
  13541. patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) {
  13542. for (const key in props) {
  13543. if ((forcePatchValue && key.endsWith('value')) ||
  13544. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))) {
  13545. patchProp(el, key, null, props[key], false, undefined, parentComponent);
  13546. }
  13547. }
  13548. }
  13549. else if (props.onClick) {
  13550. // Fast path for click listeners (which is most often) to avoid
  13551. // iterating through props.
  13552. patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);
  13553. }
  13554. }
  13555. // vnode / directive hooks
  13556. let vnodeHooks;
  13557. if ((vnodeHooks = props && props.onVnodeBeforeMount)) {
  13558. invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13559. }
  13560. if (dirs) {
  13561. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  13562. }
  13563. if ((vnodeHooks = props && props.onVnodeMounted) || dirs) {
  13564. queueEffectWithSuspense(() => {
  13565. vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13566. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  13567. }, parentSuspense);
  13568. }
  13569. // children
  13570. if (shapeFlag & 16 /* ARRAY_CHILDREN */ &&
  13571. // skip if element has innerHTML / textContent
  13572. !(props && (props.innerHTML || props.textContent))) {
  13573. let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
  13574. let hasWarned = false;
  13575. while (next) {
  13576. hasMismatch = true;
  13577. if (( true) && !hasWarned) {
  13578. warn(`Hydration children mismatch in <${vnode.type}>: ` +
  13579. `server rendered element contains more child nodes than client vdom.`);
  13580. hasWarned = true;
  13581. }
  13582. // The SSRed DOM contains more nodes than it should. Remove them.
  13583. const cur = next;
  13584. next = next.nextSibling;
  13585. remove(cur);
  13586. }
  13587. }
  13588. else if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13589. if (el.textContent !== vnode.children) {
  13590. hasMismatch = true;
  13591. ( true) &&
  13592. warn(`Hydration text content mismatch in <${vnode.type}>:\n` +
  13593. `- Client: ${el.textContent}\n` +
  13594. `- Server: ${vnode.children}`);
  13595. el.textContent = vnode.children;
  13596. }
  13597. }
  13598. }
  13599. return el.nextSibling;
  13600. };
  13601. const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13602. optimized = optimized || !!parentVNode.dynamicChildren;
  13603. const children = parentVNode.children;
  13604. const l = children.length;
  13605. let hasWarned = false;
  13606. for (let i = 0; i < l; i++) {
  13607. const vnode = optimized
  13608. ? children[i]
  13609. : (children[i] = normalizeVNode(children[i]));
  13610. if (node) {
  13611. node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13612. }
  13613. else if (vnode.type === Text && !vnode.children) {
  13614. continue;
  13615. }
  13616. else {
  13617. hasMismatch = true;
  13618. if (( true) && !hasWarned) {
  13619. warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
  13620. `server rendered element contains fewer child nodes than client vdom.`);
  13621. hasWarned = true;
  13622. }
  13623. // the SSRed DOM didn't contain enough nodes. Mount the missing ones.
  13624. patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13625. }
  13626. }
  13627. return node;
  13628. };
  13629. const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13630. const { slotScopeIds: fragmentSlotScopeIds } = vnode;
  13631. if (fragmentSlotScopeIds) {
  13632. slotScopeIds = slotScopeIds
  13633. ? slotScopeIds.concat(fragmentSlotScopeIds)
  13634. : fragmentSlotScopeIds;
  13635. }
  13636. const container = parentNode(node);
  13637. const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);
  13638. if (next && isComment(next) && next.data === ']') {
  13639. return nextSibling((vnode.anchor = next));
  13640. }
  13641. else {
  13642. // fragment didn't hydrate successfully, since we didn't get a end anchor
  13643. // back. This should have led to node/children mismatch warnings.
  13644. hasMismatch = true;
  13645. // since the anchor is missing, we need to create one and insert it
  13646. insert((vnode.anchor = createComment(`]`)), container, next);
  13647. return next;
  13648. }
  13649. };
  13650. const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
  13651. hasMismatch = true;
  13652. ( true) &&
  13653. warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */
  13654. ? `(text)`
  13655. : isComment(node) && node.data === '['
  13656. ? `(start of fragment)`
  13657. : ``);
  13658. vnode.el = null;
  13659. if (isFragment) {
  13660. // remove excessive fragment nodes
  13661. const end = locateClosingAsyncAnchor(node);
  13662. while (true) {
  13663. const next = nextSibling(node);
  13664. if (next && next !== end) {
  13665. remove(next);
  13666. }
  13667. else {
  13668. break;
  13669. }
  13670. }
  13671. }
  13672. const next = nextSibling(node);
  13673. const container = parentNode(node);
  13674. remove(node);
  13675. patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13676. return next;
  13677. };
  13678. const locateClosingAsyncAnchor = (node) => {
  13679. let match = 0;
  13680. while (node) {
  13681. node = nextSibling(node);
  13682. if (node && isComment(node)) {
  13683. if (node.data === '[')
  13684. match++;
  13685. if (node.data === ']') {
  13686. if (match === 0) {
  13687. return nextSibling(node);
  13688. }
  13689. else {
  13690. match--;
  13691. }
  13692. }
  13693. }
  13694. }
  13695. return node;
  13696. };
  13697. return [hydrate, hydrateNode];
  13698. }
  13699. /* eslint-disable no-restricted-globals */
  13700. let supported;
  13701. let perf;
  13702. function startMeasure(instance, type) {
  13703. if (instance.appContext.config.performance && isSupported()) {
  13704. perf.mark(`vue-${type}-${instance.uid}`);
  13705. }
  13706. if (true) {
  13707. devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now());
  13708. }
  13709. }
  13710. function endMeasure(instance, type) {
  13711. if (instance.appContext.config.performance && isSupported()) {
  13712. const startTag = `vue-${type}-${instance.uid}`;
  13713. const endTag = startTag + `:end`;
  13714. perf.mark(endTag);
  13715. perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag);
  13716. perf.clearMarks(startTag);
  13717. perf.clearMarks(endTag);
  13718. }
  13719. if (true) {
  13720. devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now());
  13721. }
  13722. }
  13723. function isSupported() {
  13724. if (supported !== undefined) {
  13725. return supported;
  13726. }
  13727. if (typeof window !== 'undefined' && window.performance) {
  13728. supported = true;
  13729. perf = window.performance;
  13730. }
  13731. else {
  13732. supported = false;
  13733. }
  13734. return supported;
  13735. }
  13736. /**
  13737. * This is only called in esm-bundler builds.
  13738. * It is called when a renderer is created, in `baseCreateRenderer` so that
  13739. * importing runtime-core is side-effects free.
  13740. *
  13741. * istanbul-ignore-next
  13742. */
  13743. function initFeatureFlags() {
  13744. const needWarn = [];
  13745. if (false) {}
  13746. if (false) {}
  13747. if (( true) && needWarn.length) {
  13748. const multi = needWarn.length > 1;
  13749. console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +
  13750. `which expects these compile-time feature flags to be globally injected ` +
  13751. `via the bundler config in order to get better tree-shaking in the ` +
  13752. `production bundle.\n\n` +
  13753. `For more details, see https://link.vuejs.org/feature-flags.`);
  13754. }
  13755. }
  13756. const queuePostRenderEffect = queueEffectWithSuspense
  13757. ;
  13758. /**
  13759. * The createRenderer function accepts two generic arguments:
  13760. * HostNode and HostElement, corresponding to Node and Element types in the
  13761. * host environment. For example, for runtime-dom, HostNode would be the DOM
  13762. * `Node` interface and HostElement would be the DOM `Element` interface.
  13763. *
  13764. * Custom renderers can pass in the platform specific types like this:
  13765. *
  13766. * ``` js
  13767. * const { render, createApp } = createRenderer<Node, Element>({
  13768. * patchProp,
  13769. * ...nodeOps
  13770. * })
  13771. * ```
  13772. */
  13773. function createRenderer(options) {
  13774. return baseCreateRenderer(options);
  13775. }
  13776. // Separate API for creating hydration-enabled renderer.
  13777. // Hydration logic is only used when calling this function, making it
  13778. // tree-shakable.
  13779. function createHydrationRenderer(options) {
  13780. return baseCreateRenderer(options, createHydrationFunctions);
  13781. }
  13782. // implementation
  13783. function baseCreateRenderer(options, createHydrationFns) {
  13784. // compile-time feature flags check
  13785. {
  13786. initFeatureFlags();
  13787. }
  13788. const target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)();
  13789. target.__VUE__ = true;
  13790. if (true) {
  13791. setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
  13792. }
  13793. const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
  13794. // Note: functions inside this closure should use `const xxx = () => {}`
  13795. // style in order to prevent being inlined by minifiers.
  13796. const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = ( true) && isHmrUpdating ? false : !!n2.dynamicChildren) => {
  13797. if (n1 === n2) {
  13798. return;
  13799. }
  13800. // patching & not same type, unmount old tree
  13801. if (n1 && !isSameVNodeType(n1, n2)) {
  13802. anchor = getNextHostNode(n1);
  13803. unmount(n1, parentComponent, parentSuspense, true);
  13804. n1 = null;
  13805. }
  13806. if (n2.patchFlag === -2 /* BAIL */) {
  13807. optimized = false;
  13808. n2.dynamicChildren = null;
  13809. }
  13810. const { type, ref, shapeFlag } = n2;
  13811. switch (type) {
  13812. case Text:
  13813. processText(n1, n2, container, anchor);
  13814. break;
  13815. case Comment:
  13816. processCommentNode(n1, n2, container, anchor);
  13817. break;
  13818. case Static:
  13819. if (n1 == null) {
  13820. mountStaticNode(n2, container, anchor, isSVG);
  13821. }
  13822. else if ((true)) {
  13823. patchStaticNode(n1, n2, container, isSVG);
  13824. }
  13825. break;
  13826. case Fragment:
  13827. processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13828. break;
  13829. default:
  13830. if (shapeFlag & 1 /* ELEMENT */) {
  13831. processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13832. }
  13833. else if (shapeFlag & 6 /* COMPONENT */) {
  13834. processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13835. }
  13836. else if (shapeFlag & 64 /* TELEPORT */) {
  13837. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13838. }
  13839. else if (shapeFlag & 128 /* SUSPENSE */) {
  13840. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13841. }
  13842. else if ((true)) {
  13843. warn('Invalid VNode type:', type, `(${typeof type})`);
  13844. }
  13845. }
  13846. // set ref
  13847. if (ref != null && parentComponent) {
  13848. setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
  13849. }
  13850. };
  13851. const processText = (n1, n2, container, anchor) => {
  13852. if (n1 == null) {
  13853. hostInsert((n2.el = hostCreateText(n2.children)), container, anchor);
  13854. }
  13855. else {
  13856. const el = (n2.el = n1.el);
  13857. if (n2.children !== n1.children) {
  13858. hostSetText(el, n2.children);
  13859. }
  13860. }
  13861. };
  13862. const processCommentNode = (n1, n2, container, anchor) => {
  13863. if (n1 == null) {
  13864. hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor);
  13865. }
  13866. else {
  13867. // there's no support for dynamic comments
  13868. n2.el = n1.el;
  13869. }
  13870. };
  13871. const mountStaticNode = (n2, container, anchor, isSVG) => {
  13872. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.el, n2.anchor);
  13873. };
  13874. /**
  13875. * Dev / HMR only
  13876. */
  13877. const patchStaticNode = (n1, n2, container, isSVG) => {
  13878. // static nodes are only patched during dev for HMR
  13879. if (n2.children !== n1.children) {
  13880. const anchor = hostNextSibling(n1.anchor);
  13881. // remove existing
  13882. removeStaticNode(n1);
  13883. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);
  13884. }
  13885. else {
  13886. n2.el = n1.el;
  13887. n2.anchor = n1.anchor;
  13888. }
  13889. };
  13890. const moveStaticNode = ({ el, anchor }, container, nextSibling) => {
  13891. let next;
  13892. while (el && el !== anchor) {
  13893. next = hostNextSibling(el);
  13894. hostInsert(el, container, nextSibling);
  13895. el = next;
  13896. }
  13897. hostInsert(anchor, container, nextSibling);
  13898. };
  13899. const removeStaticNode = ({ el, anchor }) => {
  13900. let next;
  13901. while (el && el !== anchor) {
  13902. next = hostNextSibling(el);
  13903. hostRemove(el);
  13904. el = next;
  13905. }
  13906. hostRemove(anchor);
  13907. };
  13908. const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13909. isSVG = isSVG || n2.type === 'svg';
  13910. if (n1 == null) {
  13911. mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13912. }
  13913. else {
  13914. patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13915. }
  13916. };
  13917. const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13918. let el;
  13919. let vnodeHook;
  13920. const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode;
  13921. if (false /* HOISTED */) {}
  13922. else {
  13923. el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props);
  13924. // mount children first, since some props may rely on child content
  13925. // being already rendered, e.g. `<select value>`
  13926. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13927. hostSetElementText(el, vnode.children);
  13928. }
  13929. else if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  13930. mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized);
  13931. }
  13932. if (dirs) {
  13933. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13934. }
  13935. // props
  13936. if (props) {
  13937. for (const key in props) {
  13938. if (key !== 'value' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  13939. hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  13940. }
  13941. }
  13942. /**
  13943. * Special case for setting value on DOM elements:
  13944. * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)
  13945. * - it needs to be forced (#1471)
  13946. * #2353 proposes adding another renderer option to configure this, but
  13947. * the properties affects are so finite it is worth special casing it
  13948. * here to reduce the complexity. (Special casing it also should not
  13949. * affect non-DOM renderers)
  13950. */
  13951. if ('value' in props) {
  13952. hostPatchProp(el, 'value', null, props.value);
  13953. }
  13954. if ((vnodeHook = props.onVnodeBeforeMount)) {
  13955. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  13956. }
  13957. }
  13958. // scopeId
  13959. setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
  13960. }
  13961. if (true) {
  13962. Object.defineProperty(el, '__vnode', {
  13963. value: vnode,
  13964. enumerable: false
  13965. });
  13966. Object.defineProperty(el, '__vueParentComponent', {
  13967. value: parentComponent,
  13968. enumerable: false
  13969. });
  13970. }
  13971. if (dirs) {
  13972. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  13973. }
  13974. // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved
  13975. // #1689 For inside suspense + suspense resolved case, just call it
  13976. const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&
  13977. transition &&
  13978. !transition.persisted;
  13979. if (needCallTransitionHooks) {
  13980. transition.beforeEnter(el);
  13981. }
  13982. hostInsert(el, container, anchor);
  13983. if ((vnodeHook = props && props.onVnodeMounted) ||
  13984. needCallTransitionHooks ||
  13985. dirs) {
  13986. queuePostRenderEffect(() => {
  13987. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  13988. needCallTransitionHooks && transition.enter(el);
  13989. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  13990. }, parentSuspense);
  13991. }
  13992. };
  13993. const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
  13994. if (scopeId) {
  13995. hostSetScopeId(el, scopeId);
  13996. }
  13997. if (slotScopeIds) {
  13998. for (let i = 0; i < slotScopeIds.length; i++) {
  13999. hostSetScopeId(el, slotScopeIds[i]);
  14000. }
  14001. }
  14002. if (parentComponent) {
  14003. let subTree = parentComponent.subTree;
  14004. if (( true) &&
  14005. subTree.patchFlag > 0 &&
  14006. subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  14007. subTree =
  14008. filterSingleRoot(subTree.children) || subTree;
  14009. }
  14010. if (vnode === subTree) {
  14011. const parentVNode = parentComponent.vnode;
  14012. setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);
  14013. }
  14014. }
  14015. };
  14016. const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {
  14017. for (let i = start; i < children.length; i++) {
  14018. const child = (children[i] = optimized
  14019. ? cloneIfMounted(children[i])
  14020. : normalizeVNode(children[i]));
  14021. patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14022. }
  14023. };
  14024. const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14025. const el = (n2.el = n1.el);
  14026. let { patchFlag, dynamicChildren, dirs } = n2;
  14027. // #1426 take the old vnode's patch flag into account since user may clone a
  14028. // compiler-generated vnode, which de-opts to FULL_PROPS
  14029. patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */;
  14030. const oldProps = n1.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14031. const newProps = n2.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14032. let vnodeHook;
  14033. // disable recurse in beforeUpdate hooks
  14034. parentComponent && toggleRecurse(parentComponent, false);
  14035. if ((vnodeHook = newProps.onVnodeBeforeUpdate)) {
  14036. invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14037. }
  14038. if (dirs) {
  14039. invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');
  14040. }
  14041. parentComponent && toggleRecurse(parentComponent, true);
  14042. if (( true) && isHmrUpdating) {
  14043. // HMR updated, force full diff
  14044. patchFlag = 0;
  14045. optimized = false;
  14046. dynamicChildren = null;
  14047. }
  14048. const areChildrenSVG = isSVG && n2.type !== 'foreignObject';
  14049. if (dynamicChildren) {
  14050. patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);
  14051. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14052. traverseStaticChildren(n1, n2);
  14053. }
  14054. }
  14055. else if (!optimized) {
  14056. // full diff
  14057. patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false);
  14058. }
  14059. if (patchFlag > 0) {
  14060. // the presence of a patchFlag means this element's render code was
  14061. // generated by the compiler and can take the fast path.
  14062. // in this path old node and new node are guaranteed to have the same shape
  14063. // (i.e. at the exact same position in the source template)
  14064. if (patchFlag & 16 /* FULL_PROPS */) {
  14065. // element props contain dynamic keys, full diff needed
  14066. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14067. }
  14068. else {
  14069. // class
  14070. // this flag is matched when the element has dynamic class bindings.
  14071. if (patchFlag & 2 /* CLASS */) {
  14072. if (oldProps.class !== newProps.class) {
  14073. hostPatchProp(el, 'class', null, newProps.class, isSVG);
  14074. }
  14075. }
  14076. // style
  14077. // this flag is matched when the element has dynamic style bindings
  14078. if (patchFlag & 4 /* STYLE */) {
  14079. hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG);
  14080. }
  14081. // props
  14082. // This flag is matched when the element has dynamic prop/attr bindings
  14083. // other than class and style. The keys of dynamic prop/attrs are saved for
  14084. // faster iteration.
  14085. // Note dynamic keys like :[foo]="bar" will cause this optimization to
  14086. // bail out and go through a full diff because we need to unset the old key
  14087. if (patchFlag & 8 /* PROPS */) {
  14088. // if the flag is present then dynamicProps must be non-null
  14089. const propsToUpdate = n2.dynamicProps;
  14090. for (let i = 0; i < propsToUpdate.length; i++) {
  14091. const key = propsToUpdate[i];
  14092. const prev = oldProps[key];
  14093. const next = newProps[key];
  14094. // #1471 force patch value
  14095. if (next !== prev || key === 'value') {
  14096. hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren);
  14097. }
  14098. }
  14099. }
  14100. }
  14101. // text
  14102. // This flag is matched when the element has only dynamic text children.
  14103. if (patchFlag & 1 /* TEXT */) {
  14104. if (n1.children !== n2.children) {
  14105. hostSetElementText(el, n2.children);
  14106. }
  14107. }
  14108. }
  14109. else if (!optimized && dynamicChildren == null) {
  14110. // unoptimized, full diff
  14111. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14112. }
  14113. if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {
  14114. queuePostRenderEffect(() => {
  14115. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14116. dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated');
  14117. }, parentSuspense);
  14118. }
  14119. };
  14120. // The fast path for blocks.
  14121. const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {
  14122. for (let i = 0; i < newChildren.length; i++) {
  14123. const oldVNode = oldChildren[i];
  14124. const newVNode = newChildren[i];
  14125. // Determine the container (parent element) for the patch.
  14126. const container =
  14127. // oldVNode may be an errored async setup() component inside Suspense
  14128. // which will not have a mounted element
  14129. oldVNode.el &&
  14130. // - In the case of a Fragment, we need to provide the actual parent
  14131. // of the Fragment itself so it can move its children.
  14132. (oldVNode.type === Fragment ||
  14133. // - In the case of different nodes, there is going to be a replacement
  14134. // which also requires the correct parent container
  14135. !isSameVNodeType(oldVNode, newVNode) ||
  14136. // - In the case of a component, it could contain anything.
  14137. oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */))
  14138. ? hostParentNode(oldVNode.el)
  14139. : // In other cases, the parent container is not actually used so we
  14140. // just pass the block element here to avoid a DOM parentNode call.
  14141. fallbackContainer;
  14142. patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);
  14143. }
  14144. };
  14145. const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => {
  14146. if (oldProps !== newProps) {
  14147. for (const key in newProps) {
  14148. // empty string is not valid prop
  14149. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))
  14150. continue;
  14151. const next = newProps[key];
  14152. const prev = oldProps[key];
  14153. // defer patching value
  14154. if (next !== prev && key !== 'value') {
  14155. hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14156. }
  14157. }
  14158. if (oldProps !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  14159. for (const key in oldProps) {
  14160. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key) && !(key in newProps)) {
  14161. hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14162. }
  14163. }
  14164. }
  14165. if ('value' in newProps) {
  14166. hostPatchProp(el, 'value', oldProps.value, newProps.value);
  14167. }
  14168. }
  14169. };
  14170. const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14171. const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
  14172. const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
  14173. let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
  14174. if (( true) && isHmrUpdating) {
  14175. // HMR updated, force full diff
  14176. patchFlag = 0;
  14177. optimized = false;
  14178. dynamicChildren = null;
  14179. }
  14180. // check if this is a slot fragment with :slotted scope ids
  14181. if (fragmentSlotScopeIds) {
  14182. slotScopeIds = slotScopeIds
  14183. ? slotScopeIds.concat(fragmentSlotScopeIds)
  14184. : fragmentSlotScopeIds;
  14185. }
  14186. if (n1 == null) {
  14187. hostInsert(fragmentStartAnchor, container, anchor);
  14188. hostInsert(fragmentEndAnchor, container, anchor);
  14189. // a fragment can only have array children
  14190. // since they are either generated by the compiler, or implicitly created
  14191. // from arrays.
  14192. mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14193. }
  14194. else {
  14195. if (patchFlag > 0 &&
  14196. patchFlag & 64 /* STABLE_FRAGMENT */ &&
  14197. dynamicChildren &&
  14198. // #2715 the previous fragment could've been a BAILed one as a result
  14199. // of renderSlot() with no valid children
  14200. n1.dynamicChildren) {
  14201. // a stable fragment (template root or <template v-for>) doesn't need to
  14202. // patch children order, but it may contain dynamicChildren.
  14203. patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);
  14204. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14205. traverseStaticChildren(n1, n2);
  14206. }
  14207. else if (
  14208. // #2080 if the stable fragment has a key, it's a <template v-for> that may
  14209. // get moved around. Make sure all root level vnodes inherit el.
  14210. // #2134 or if it's a component root, it may also get moved around
  14211. // as the component is being moved.
  14212. n2.key != null ||
  14213. (parentComponent && n2 === parentComponent.subTree)) {
  14214. traverseStaticChildren(n1, n2, true /* shallow */);
  14215. }
  14216. }
  14217. else {
  14218. // keyed / unkeyed, or manual fragments.
  14219. // for keyed & unkeyed, since they are compiler generated from v-for,
  14220. // each child is guaranteed to be a block so the fragment will never
  14221. // have dynamicChildren.
  14222. patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14223. }
  14224. }
  14225. };
  14226. const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14227. n2.slotScopeIds = slotScopeIds;
  14228. if (n1 == null) {
  14229. if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  14230. parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized);
  14231. }
  14232. else {
  14233. mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized);
  14234. }
  14235. }
  14236. else {
  14237. updateComponent(n1, n2, optimized);
  14238. }
  14239. };
  14240. const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {
  14241. const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));
  14242. if (( true) && instance.type.__hmrId) {
  14243. registerHMR(instance);
  14244. }
  14245. if ((true)) {
  14246. pushWarningContext(initialVNode);
  14247. startMeasure(instance, `mount`);
  14248. }
  14249. // inject renderer internals for keepAlive
  14250. if (isKeepAlive(initialVNode)) {
  14251. instance.ctx.renderer = internals;
  14252. }
  14253. // resolve props and slots for setup context
  14254. {
  14255. if ((true)) {
  14256. startMeasure(instance, `init`);
  14257. }
  14258. setupComponent(instance);
  14259. if ((true)) {
  14260. endMeasure(instance, `init`);
  14261. }
  14262. }
  14263. // setup() is async. This component relies on async logic to be resolved
  14264. // before proceeding
  14265. if (instance.asyncDep) {
  14266. parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);
  14267. // Give it a placeholder if this is not hydration
  14268. // TODO handle self-defined fallback
  14269. if (!initialVNode.el) {
  14270. const placeholder = (instance.subTree = createVNode(Comment));
  14271. processCommentNode(null, placeholder, container, anchor);
  14272. }
  14273. return;
  14274. }
  14275. setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);
  14276. if ((true)) {
  14277. popWarningContext();
  14278. endMeasure(instance, `mount`);
  14279. }
  14280. };
  14281. const updateComponent = (n1, n2, optimized) => {
  14282. const instance = (n2.component = n1.component);
  14283. if (shouldUpdateComponent(n1, n2, optimized)) {
  14284. if (instance.asyncDep &&
  14285. !instance.asyncResolved) {
  14286. // async & still pending - just update props and slots
  14287. // since the component's reactive effect for render isn't set-up yet
  14288. if ((true)) {
  14289. pushWarningContext(n2);
  14290. }
  14291. updateComponentPreRender(instance, n2, optimized);
  14292. if ((true)) {
  14293. popWarningContext();
  14294. }
  14295. return;
  14296. }
  14297. else {
  14298. // normal update
  14299. instance.next = n2;
  14300. // in case the child component is also queued, remove it to avoid
  14301. // double updating the same child component in the same flush.
  14302. invalidateJob(instance.update);
  14303. // instance.update is the reactive effect.
  14304. instance.update();
  14305. }
  14306. }
  14307. else {
  14308. // no update needed. just copy over properties
  14309. n2.component = n1.component;
  14310. n2.el = n1.el;
  14311. instance.vnode = n2;
  14312. }
  14313. };
  14314. const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {
  14315. const componentUpdateFn = () => {
  14316. if (!instance.isMounted) {
  14317. let vnodeHook;
  14318. const { el, props } = initialVNode;
  14319. const { bm, m, parent } = instance;
  14320. const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
  14321. toggleRecurse(instance, false);
  14322. // beforeMount hook
  14323. if (bm) {
  14324. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bm);
  14325. }
  14326. // onVnodeBeforeMount
  14327. if (!isAsyncWrapperVNode &&
  14328. (vnodeHook = props && props.onVnodeBeforeMount)) {
  14329. invokeVNodeHook(vnodeHook, parent, initialVNode);
  14330. }
  14331. toggleRecurse(instance, true);
  14332. if (el && hydrateNode) {
  14333. // vnode has adopted host node - perform hydration instead of mount.
  14334. const hydrateSubTree = () => {
  14335. if ((true)) {
  14336. startMeasure(instance, `render`);
  14337. }
  14338. instance.subTree = renderComponentRoot(instance);
  14339. if ((true)) {
  14340. endMeasure(instance, `render`);
  14341. }
  14342. if ((true)) {
  14343. startMeasure(instance, `hydrate`);
  14344. }
  14345. hydrateNode(el, instance.subTree, instance, parentSuspense, null);
  14346. if ((true)) {
  14347. endMeasure(instance, `hydrate`);
  14348. }
  14349. };
  14350. if (isAsyncWrapperVNode) {
  14351. initialVNode.type.__asyncLoader().then(
  14352. // note: we are moving the render call into an async callback,
  14353. // which means it won't track dependencies - but it's ok because
  14354. // a server-rendered async wrapper is already in resolved state
  14355. // and it will never need to change.
  14356. () => !instance.isUnmounted && hydrateSubTree());
  14357. }
  14358. else {
  14359. hydrateSubTree();
  14360. }
  14361. }
  14362. else {
  14363. if ((true)) {
  14364. startMeasure(instance, `render`);
  14365. }
  14366. const subTree = (instance.subTree = renderComponentRoot(instance));
  14367. if ((true)) {
  14368. endMeasure(instance, `render`);
  14369. }
  14370. if ((true)) {
  14371. startMeasure(instance, `patch`);
  14372. }
  14373. patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);
  14374. if ((true)) {
  14375. endMeasure(instance, `patch`);
  14376. }
  14377. initialVNode.el = subTree.el;
  14378. }
  14379. // mounted hook
  14380. if (m) {
  14381. queuePostRenderEffect(m, parentSuspense);
  14382. }
  14383. // onVnodeMounted
  14384. if (!isAsyncWrapperVNode &&
  14385. (vnodeHook = props && props.onVnodeMounted)) {
  14386. const scopedInitialVNode = initialVNode;
  14387. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);
  14388. }
  14389. // activated hook for keep-alive roots.
  14390. // #1742 activated hook must be accessed after first render
  14391. // since the hook may be injected by a child keep-alive
  14392. if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14393. instance.a && queuePostRenderEffect(instance.a, parentSuspense);
  14394. }
  14395. instance.isMounted = true;
  14396. if (true) {
  14397. devtoolsComponentAdded(instance);
  14398. }
  14399. // #2458: deference mount-only object parameters to prevent memleaks
  14400. initialVNode = container = anchor = null;
  14401. }
  14402. else {
  14403. // updateComponent
  14404. // This is triggered by mutation of component's own state (next: null)
  14405. // OR parent calling processComponent (next: VNode)
  14406. let { next, bu, u, parent, vnode } = instance;
  14407. let originNext = next;
  14408. let vnodeHook;
  14409. if ((true)) {
  14410. pushWarningContext(next || instance.vnode);
  14411. }
  14412. // Disallow component effect recursion during pre-lifecycle hooks.
  14413. toggleRecurse(instance, false);
  14414. if (next) {
  14415. next.el = vnode.el;
  14416. updateComponentPreRender(instance, next, optimized);
  14417. }
  14418. else {
  14419. next = vnode;
  14420. }
  14421. // beforeUpdate hook
  14422. if (bu) {
  14423. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bu);
  14424. }
  14425. // onVnodeBeforeUpdate
  14426. if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {
  14427. invokeVNodeHook(vnodeHook, parent, next, vnode);
  14428. }
  14429. toggleRecurse(instance, true);
  14430. // render
  14431. if ((true)) {
  14432. startMeasure(instance, `render`);
  14433. }
  14434. const nextTree = renderComponentRoot(instance);
  14435. if ((true)) {
  14436. endMeasure(instance, `render`);
  14437. }
  14438. const prevTree = instance.subTree;
  14439. instance.subTree = nextTree;
  14440. if ((true)) {
  14441. startMeasure(instance, `patch`);
  14442. }
  14443. patch(prevTree, nextTree,
  14444. // parent may have changed if it's in a teleport
  14445. hostParentNode(prevTree.el),
  14446. // anchor may have changed if it's in a fragment
  14447. getNextHostNode(prevTree), instance, parentSuspense, isSVG);
  14448. if ((true)) {
  14449. endMeasure(instance, `patch`);
  14450. }
  14451. next.el = nextTree.el;
  14452. if (originNext === null) {
  14453. // self-triggered update. In case of HOC, update parent component
  14454. // vnode el. HOC is indicated by parent instance's subTree pointing
  14455. // to child component's vnode
  14456. updateHOCHostEl(instance, nextTree.el);
  14457. }
  14458. // updated hook
  14459. if (u) {
  14460. queuePostRenderEffect(u, parentSuspense);
  14461. }
  14462. // onVnodeUpdated
  14463. if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {
  14464. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);
  14465. }
  14466. if (true) {
  14467. devtoolsComponentUpdated(instance);
  14468. }
  14469. if ((true)) {
  14470. popWarningContext();
  14471. }
  14472. }
  14473. };
  14474. // create reactive effect for rendering
  14475. const effect = (instance.effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope // track it in component's effect scope
  14476. ));
  14477. const update = (instance.update = effect.run.bind(effect));
  14478. update.id = instance.uid;
  14479. // allowRecurse
  14480. // #1801, #2043 component render effects should allow recursive updates
  14481. toggleRecurse(instance, true);
  14482. if ((true)) {
  14483. effect.onTrack = instance.rtc
  14484. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtc, e)
  14485. : void 0;
  14486. effect.onTrigger = instance.rtg
  14487. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtg, e)
  14488. : void 0;
  14489. // @ts-ignore (for scheduler)
  14490. update.ownerInstance = instance;
  14491. }
  14492. update();
  14493. };
  14494. const updateComponentPreRender = (instance, nextVNode, optimized) => {
  14495. nextVNode.component = instance;
  14496. const prevProps = instance.vnode.props;
  14497. instance.vnode = nextVNode;
  14498. instance.next = null;
  14499. updateProps(instance, nextVNode.props, prevProps, optimized);
  14500. updateSlots(instance, nextVNode.children, optimized);
  14501. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  14502. // props update may have triggered pre-flush watchers.
  14503. // flush them before the render update.
  14504. flushPreFlushCbs(undefined, instance.update);
  14505. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  14506. };
  14507. const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
  14508. const c1 = n1 && n1.children;
  14509. const prevShapeFlag = n1 ? n1.shapeFlag : 0;
  14510. const c2 = n2.children;
  14511. const { patchFlag, shapeFlag } = n2;
  14512. // fast path
  14513. if (patchFlag > 0) {
  14514. if (patchFlag & 128 /* KEYED_FRAGMENT */) {
  14515. // this could be either fully-keyed or mixed (some keyed some not)
  14516. // presence of patchFlag means children are guaranteed to be arrays
  14517. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14518. return;
  14519. }
  14520. else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) {
  14521. // unkeyed
  14522. patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14523. return;
  14524. }
  14525. }
  14526. // children has 3 possibilities: text, array or no children.
  14527. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  14528. // text children fast path
  14529. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14530. unmountChildren(c1, parentComponent, parentSuspense);
  14531. }
  14532. if (c2 !== c1) {
  14533. hostSetElementText(container, c2);
  14534. }
  14535. }
  14536. else {
  14537. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14538. // prev children was array
  14539. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14540. // two arrays, cannot assume anything, do full diff
  14541. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14542. }
  14543. else {
  14544. // no new children, just unmount old
  14545. unmountChildren(c1, parentComponent, parentSuspense, true);
  14546. }
  14547. }
  14548. else {
  14549. // prev children was text OR null
  14550. // new children is array OR null
  14551. if (prevShapeFlag & 8 /* TEXT_CHILDREN */) {
  14552. hostSetElementText(container, '');
  14553. }
  14554. // mount new if array
  14555. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14556. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14557. }
  14558. }
  14559. }
  14560. };
  14561. const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14562. c1 = c1 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14563. c2 = c2 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14564. const oldLength = c1.length;
  14565. const newLength = c2.length;
  14566. const commonLength = Math.min(oldLength, newLength);
  14567. let i;
  14568. for (i = 0; i < commonLength; i++) {
  14569. const nextChild = (c2[i] = optimized
  14570. ? cloneIfMounted(c2[i])
  14571. : normalizeVNode(c2[i]));
  14572. patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14573. }
  14574. if (oldLength > newLength) {
  14575. // remove old
  14576. unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);
  14577. }
  14578. else {
  14579. // mount new
  14580. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength);
  14581. }
  14582. };
  14583. // can be all-keyed or mixed
  14584. const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14585. let i = 0;
  14586. const l2 = c2.length;
  14587. let e1 = c1.length - 1; // prev ending index
  14588. let e2 = l2 - 1; // next ending index
  14589. // 1. sync from start
  14590. // (a b) c
  14591. // (a b) d e
  14592. while (i <= e1 && i <= e2) {
  14593. const n1 = c1[i];
  14594. const n2 = (c2[i] = optimized
  14595. ? cloneIfMounted(c2[i])
  14596. : normalizeVNode(c2[i]));
  14597. if (isSameVNodeType(n1, n2)) {
  14598. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14599. }
  14600. else {
  14601. break;
  14602. }
  14603. i++;
  14604. }
  14605. // 2. sync from end
  14606. // a (b c)
  14607. // d e (b c)
  14608. while (i <= e1 && i <= e2) {
  14609. const n1 = c1[e1];
  14610. const n2 = (c2[e2] = optimized
  14611. ? cloneIfMounted(c2[e2])
  14612. : normalizeVNode(c2[e2]));
  14613. if (isSameVNodeType(n1, n2)) {
  14614. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14615. }
  14616. else {
  14617. break;
  14618. }
  14619. e1--;
  14620. e2--;
  14621. }
  14622. // 3. common sequence + mount
  14623. // (a b)
  14624. // (a b) c
  14625. // i = 2, e1 = 1, e2 = 2
  14626. // (a b)
  14627. // c (a b)
  14628. // i = 0, e1 = -1, e2 = 0
  14629. if (i > e1) {
  14630. if (i <= e2) {
  14631. const nextPos = e2 + 1;
  14632. const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;
  14633. while (i <= e2) {
  14634. patch(null, (c2[i] = optimized
  14635. ? cloneIfMounted(c2[i])
  14636. : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14637. i++;
  14638. }
  14639. }
  14640. }
  14641. // 4. common sequence + unmount
  14642. // (a b) c
  14643. // (a b)
  14644. // i = 2, e1 = 2, e2 = 1
  14645. // a (b c)
  14646. // (b c)
  14647. // i = 0, e1 = 0, e2 = -1
  14648. else if (i > e2) {
  14649. while (i <= e1) {
  14650. unmount(c1[i], parentComponent, parentSuspense, true);
  14651. i++;
  14652. }
  14653. }
  14654. // 5. unknown sequence
  14655. // [i ... e1 + 1]: a b [c d e] f g
  14656. // [i ... e2 + 1]: a b [e d c h] f g
  14657. // i = 2, e1 = 4, e2 = 5
  14658. else {
  14659. const s1 = i; // prev starting index
  14660. const s2 = i; // next starting index
  14661. // 5.1 build key:index map for newChildren
  14662. const keyToNewIndexMap = new Map();
  14663. for (i = s2; i <= e2; i++) {
  14664. const nextChild = (c2[i] = optimized
  14665. ? cloneIfMounted(c2[i])
  14666. : normalizeVNode(c2[i]));
  14667. if (nextChild.key != null) {
  14668. if (( true) && keyToNewIndexMap.has(nextChild.key)) {
  14669. warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
  14670. }
  14671. keyToNewIndexMap.set(nextChild.key, i);
  14672. }
  14673. }
  14674. // 5.2 loop through old children left to be patched and try to patch
  14675. // matching nodes & remove nodes that are no longer present
  14676. let j;
  14677. let patched = 0;
  14678. const toBePatched = e2 - s2 + 1;
  14679. let moved = false;
  14680. // used to track whether any node has moved
  14681. let maxNewIndexSoFar = 0;
  14682. // works as Map<newIndex, oldIndex>
  14683. // Note that oldIndex is offset by +1
  14684. // and oldIndex = 0 is a special value indicating the new node has
  14685. // no corresponding old node.
  14686. // used for determining longest stable subsequence
  14687. const newIndexToOldIndexMap = new Array(toBePatched);
  14688. for (i = 0; i < toBePatched; i++)
  14689. newIndexToOldIndexMap[i] = 0;
  14690. for (i = s1; i <= e1; i++) {
  14691. const prevChild = c1[i];
  14692. if (patched >= toBePatched) {
  14693. // all new children have been patched so this can only be a removal
  14694. unmount(prevChild, parentComponent, parentSuspense, true);
  14695. continue;
  14696. }
  14697. let newIndex;
  14698. if (prevChild.key != null) {
  14699. newIndex = keyToNewIndexMap.get(prevChild.key);
  14700. }
  14701. else {
  14702. // key-less node, try to locate a key-less node of the same type
  14703. for (j = s2; j <= e2; j++) {
  14704. if (newIndexToOldIndexMap[j - s2] === 0 &&
  14705. isSameVNodeType(prevChild, c2[j])) {
  14706. newIndex = j;
  14707. break;
  14708. }
  14709. }
  14710. }
  14711. if (newIndex === undefined) {
  14712. unmount(prevChild, parentComponent, parentSuspense, true);
  14713. }
  14714. else {
  14715. newIndexToOldIndexMap[newIndex - s2] = i + 1;
  14716. if (newIndex >= maxNewIndexSoFar) {
  14717. maxNewIndexSoFar = newIndex;
  14718. }
  14719. else {
  14720. moved = true;
  14721. }
  14722. patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14723. patched++;
  14724. }
  14725. }
  14726. // 5.3 move and mount
  14727. // generate longest stable subsequence only when nodes have moved
  14728. const increasingNewIndexSequence = moved
  14729. ? getSequence(newIndexToOldIndexMap)
  14730. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14731. j = increasingNewIndexSequence.length - 1;
  14732. // looping backwards so that we can use last patched node as anchor
  14733. for (i = toBePatched - 1; i >= 0; i--) {
  14734. const nextIndex = s2 + i;
  14735. const nextChild = c2[nextIndex];
  14736. const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
  14737. if (newIndexToOldIndexMap[i] === 0) {
  14738. // mount new
  14739. patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14740. }
  14741. else if (moved) {
  14742. // move if:
  14743. // There is no stable subsequence (e.g. a reverse)
  14744. // OR current node is not among the stable sequence
  14745. if (j < 0 || i !== increasingNewIndexSequence[j]) {
  14746. move(nextChild, container, anchor, 2 /* REORDER */);
  14747. }
  14748. else {
  14749. j--;
  14750. }
  14751. }
  14752. }
  14753. }
  14754. };
  14755. const move = (vnode, container, anchor, moveType, parentSuspense = null) => {
  14756. const { el, type, transition, children, shapeFlag } = vnode;
  14757. if (shapeFlag & 6 /* COMPONENT */) {
  14758. move(vnode.component.subTree, container, anchor, moveType);
  14759. return;
  14760. }
  14761. if (shapeFlag & 128 /* SUSPENSE */) {
  14762. vnode.suspense.move(container, anchor, moveType);
  14763. return;
  14764. }
  14765. if (shapeFlag & 64 /* TELEPORT */) {
  14766. type.move(vnode, container, anchor, internals);
  14767. return;
  14768. }
  14769. if (type === Fragment) {
  14770. hostInsert(el, container, anchor);
  14771. for (let i = 0; i < children.length; i++) {
  14772. move(children[i], container, anchor, moveType);
  14773. }
  14774. hostInsert(vnode.anchor, container, anchor);
  14775. return;
  14776. }
  14777. if (type === Static) {
  14778. moveStaticNode(vnode, container, anchor);
  14779. return;
  14780. }
  14781. // single nodes
  14782. const needTransition = moveType !== 2 /* REORDER */ &&
  14783. shapeFlag & 1 /* ELEMENT */ &&
  14784. transition;
  14785. if (needTransition) {
  14786. if (moveType === 0 /* ENTER */) {
  14787. transition.beforeEnter(el);
  14788. hostInsert(el, container, anchor);
  14789. queuePostRenderEffect(() => transition.enter(el), parentSuspense);
  14790. }
  14791. else {
  14792. const { leave, delayLeave, afterLeave } = transition;
  14793. const remove = () => hostInsert(el, container, anchor);
  14794. const performLeave = () => {
  14795. leave(el, () => {
  14796. remove();
  14797. afterLeave && afterLeave();
  14798. });
  14799. };
  14800. if (delayLeave) {
  14801. delayLeave(el, remove, performLeave);
  14802. }
  14803. else {
  14804. performLeave();
  14805. }
  14806. }
  14807. }
  14808. else {
  14809. hostInsert(el, container, anchor);
  14810. }
  14811. };
  14812. const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
  14813. const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;
  14814. // unset ref
  14815. if (ref != null) {
  14816. setRef(ref, null, parentSuspense, vnode, true);
  14817. }
  14818. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14819. parentComponent.ctx.deactivate(vnode);
  14820. return;
  14821. }
  14822. const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs;
  14823. const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);
  14824. let vnodeHook;
  14825. if (shouldInvokeVnodeHook &&
  14826. (vnodeHook = props && props.onVnodeBeforeUnmount)) {
  14827. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14828. }
  14829. if (shapeFlag & 6 /* COMPONENT */) {
  14830. unmountComponent(vnode.component, parentSuspense, doRemove);
  14831. }
  14832. else {
  14833. if (shapeFlag & 128 /* SUSPENSE */) {
  14834. vnode.suspense.unmount(parentSuspense, doRemove);
  14835. return;
  14836. }
  14837. if (shouldInvokeDirs) {
  14838. invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount');
  14839. }
  14840. if (shapeFlag & 64 /* TELEPORT */) {
  14841. vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove);
  14842. }
  14843. else if (dynamicChildren &&
  14844. // #1153: fast path should not be taken for non-stable (v-for) fragments
  14845. (type !== Fragment ||
  14846. (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) {
  14847. // fast path for block nodes: only need to unmount dynamic children.
  14848. unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);
  14849. }
  14850. else if ((type === Fragment &&
  14851. patchFlag &
  14852. (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) ||
  14853. (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) {
  14854. unmountChildren(children, parentComponent, parentSuspense);
  14855. }
  14856. if (doRemove) {
  14857. remove(vnode);
  14858. }
  14859. }
  14860. if ((shouldInvokeVnodeHook &&
  14861. (vnodeHook = props && props.onVnodeUnmounted)) ||
  14862. shouldInvokeDirs) {
  14863. queuePostRenderEffect(() => {
  14864. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14865. shouldInvokeDirs &&
  14866. invokeDirectiveHook(vnode, null, parentComponent, 'unmounted');
  14867. }, parentSuspense);
  14868. }
  14869. };
  14870. const remove = vnode => {
  14871. const { type, el, anchor, transition } = vnode;
  14872. if (type === Fragment) {
  14873. removeFragment(el, anchor);
  14874. return;
  14875. }
  14876. if (type === Static) {
  14877. removeStaticNode(vnode);
  14878. return;
  14879. }
  14880. const performRemove = () => {
  14881. hostRemove(el);
  14882. if (transition && !transition.persisted && transition.afterLeave) {
  14883. transition.afterLeave();
  14884. }
  14885. };
  14886. if (vnode.shapeFlag & 1 /* ELEMENT */ &&
  14887. transition &&
  14888. !transition.persisted) {
  14889. const { leave, delayLeave } = transition;
  14890. const performLeave = () => leave(el, performRemove);
  14891. if (delayLeave) {
  14892. delayLeave(vnode.el, performRemove, performLeave);
  14893. }
  14894. else {
  14895. performLeave();
  14896. }
  14897. }
  14898. else {
  14899. performRemove();
  14900. }
  14901. };
  14902. const removeFragment = (cur, end) => {
  14903. // For fragments, directly remove all contained DOM nodes.
  14904. // (fragment child nodes cannot have transition)
  14905. let next;
  14906. while (cur !== end) {
  14907. next = hostNextSibling(cur);
  14908. hostRemove(cur);
  14909. cur = next;
  14910. }
  14911. hostRemove(end);
  14912. };
  14913. const unmountComponent = (instance, parentSuspense, doRemove) => {
  14914. if (( true) && instance.type.__hmrId) {
  14915. unregisterHMR(instance);
  14916. }
  14917. const { bum, scope, update, subTree, um } = instance;
  14918. // beforeUnmount hook
  14919. if (bum) {
  14920. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bum);
  14921. }
  14922. // stop effects in component scope
  14923. scope.stop();
  14924. // update may be null if a component is unmounted before its async
  14925. // setup has resolved.
  14926. if (update) {
  14927. // so that scheduler will no longer invoke it
  14928. update.active = false;
  14929. unmount(subTree, instance, parentSuspense, doRemove);
  14930. }
  14931. // unmounted hook
  14932. if (um) {
  14933. queuePostRenderEffect(um, parentSuspense);
  14934. }
  14935. queuePostRenderEffect(() => {
  14936. instance.isUnmounted = true;
  14937. }, parentSuspense);
  14938. // A component with async dep inside a pending suspense is unmounted before
  14939. // its async dep resolves. This should remove the dep from the suspense, and
  14940. // cause the suspense to resolve immediately if that was the last dep.
  14941. if (parentSuspense &&
  14942. parentSuspense.pendingBranch &&
  14943. !parentSuspense.isUnmounted &&
  14944. instance.asyncDep &&
  14945. !instance.asyncResolved &&
  14946. instance.suspenseId === parentSuspense.pendingId) {
  14947. parentSuspense.deps--;
  14948. if (parentSuspense.deps === 0) {
  14949. parentSuspense.resolve();
  14950. }
  14951. }
  14952. if (true) {
  14953. devtoolsComponentRemoved(instance);
  14954. }
  14955. };
  14956. const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
  14957. for (let i = start; i < children.length; i++) {
  14958. unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);
  14959. }
  14960. };
  14961. const getNextHostNode = vnode => {
  14962. if (vnode.shapeFlag & 6 /* COMPONENT */) {
  14963. return getNextHostNode(vnode.component.subTree);
  14964. }
  14965. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  14966. return vnode.suspense.next();
  14967. }
  14968. return hostNextSibling((vnode.anchor || vnode.el));
  14969. };
  14970. const render = (vnode, container, isSVG) => {
  14971. if (vnode == null) {
  14972. if (container._vnode) {
  14973. unmount(container._vnode, null, null, true);
  14974. }
  14975. }
  14976. else {
  14977. patch(container._vnode || null, vnode, container, null, null, null, isSVG);
  14978. }
  14979. flushPostFlushCbs();
  14980. container._vnode = vnode;
  14981. };
  14982. const internals = {
  14983. p: patch,
  14984. um: unmount,
  14985. m: move,
  14986. r: remove,
  14987. mt: mountComponent,
  14988. mc: mountChildren,
  14989. pc: patchChildren,
  14990. pbc: patchBlockChildren,
  14991. n: getNextHostNode,
  14992. o: options
  14993. };
  14994. let hydrate;
  14995. let hydrateNode;
  14996. if (createHydrationFns) {
  14997. [hydrate, hydrateNode] = createHydrationFns(internals);
  14998. }
  14999. return {
  15000. render,
  15001. hydrate,
  15002. createApp: createAppAPI(render, hydrate)
  15003. };
  15004. }
  15005. function toggleRecurse({ effect, update }, allowed) {
  15006. effect.allowRecurse = update.allowRecurse = allowed;
  15007. }
  15008. /**
  15009. * #1156
  15010. * When a component is HMR-enabled, we need to make sure that all static nodes
  15011. * inside a block also inherit the DOM element from the previous tree so that
  15012. * HMR updates (which are full updates) can retrieve the element for patching.
  15013. *
  15014. * #2080
  15015. * Inside keyed `template` fragment static children, if a fragment is moved,
  15016. * the children will always be moved. Therefore, in order to ensure correct move
  15017. * position, el should be inherited from previous nodes.
  15018. */
  15019. function traverseStaticChildren(n1, n2, shallow = false) {
  15020. const ch1 = n1.children;
  15021. const ch2 = n2.children;
  15022. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch1) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch2)) {
  15023. for (let i = 0; i < ch1.length; i++) {
  15024. // this is only called in the optimized path so array children are
  15025. // guaranteed to be vnodes
  15026. const c1 = ch1[i];
  15027. let c2 = ch2[i];
  15028. if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) {
  15029. if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) {
  15030. c2 = ch2[i] = cloneIfMounted(ch2[i]);
  15031. c2.el = c1.el;
  15032. }
  15033. if (!shallow)
  15034. traverseStaticChildren(c1, c2);
  15035. }
  15036. // also inherit for comment nodes, but not placeholders (e.g. v-if which
  15037. // would have received .el during block patch)
  15038. if (( true) && c2.type === Comment && !c2.el) {
  15039. c2.el = c1.el;
  15040. }
  15041. }
  15042. }
  15043. }
  15044. // https://en.wikipedia.org/wiki/Longest_increasing_subsequence
  15045. function getSequence(arr) {
  15046. const p = arr.slice();
  15047. const result = [0];
  15048. let i, j, u, v, c;
  15049. const len = arr.length;
  15050. for (i = 0; i < len; i++) {
  15051. const arrI = arr[i];
  15052. if (arrI !== 0) {
  15053. j = result[result.length - 1];
  15054. if (arr[j] < arrI) {
  15055. p[i] = j;
  15056. result.push(i);
  15057. continue;
  15058. }
  15059. u = 0;
  15060. v = result.length - 1;
  15061. while (u < v) {
  15062. c = (u + v) >> 1;
  15063. if (arr[result[c]] < arrI) {
  15064. u = c + 1;
  15065. }
  15066. else {
  15067. v = c;
  15068. }
  15069. }
  15070. if (arrI < arr[result[u]]) {
  15071. if (u > 0) {
  15072. p[i] = result[u - 1];
  15073. }
  15074. result[u] = i;
  15075. }
  15076. }
  15077. }
  15078. u = result.length;
  15079. v = result[u - 1];
  15080. while (u-- > 0) {
  15081. result[u] = v;
  15082. v = p[v];
  15083. }
  15084. return result;
  15085. }
  15086. const isTeleport = (type) => type.__isTeleport;
  15087. const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === '');
  15088. const isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement;
  15089. const resolveTarget = (props, select) => {
  15090. const targetSelector = props && props.to;
  15091. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(targetSelector)) {
  15092. if (!select) {
  15093. ( true) &&
  15094. warn(`Current renderer does not support string target for Teleports. ` +
  15095. `(missing querySelector renderer option)`);
  15096. return null;
  15097. }
  15098. else {
  15099. const target = select(targetSelector);
  15100. if (!target) {
  15101. ( true) &&
  15102. warn(`Failed to locate Teleport target with selector "${targetSelector}". ` +
  15103. `Note the target element must exist before the component is mounted - ` +
  15104. `i.e. the target cannot be rendered by the component itself, and ` +
  15105. `ideally should be outside of the entire Vue component tree.`);
  15106. }
  15107. return target;
  15108. }
  15109. }
  15110. else {
  15111. if (( true) && !targetSelector && !isTeleportDisabled(props)) {
  15112. warn(`Invalid Teleport target: ${targetSelector}`);
  15113. }
  15114. return targetSelector;
  15115. }
  15116. };
  15117. const TeleportImpl = {
  15118. __isTeleport: true,
  15119. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {
  15120. const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals;
  15121. const disabled = isTeleportDisabled(n2.props);
  15122. let { shapeFlag, children, dynamicChildren } = n2;
  15123. // #3302
  15124. // HMR updated, force full diff
  15125. if (( true) && isHmrUpdating) {
  15126. optimized = false;
  15127. dynamicChildren = null;
  15128. }
  15129. if (n1 == null) {
  15130. // insert anchors in the main view
  15131. const placeholder = (n2.el = ( true)
  15132. ? createComment('teleport start')
  15133. : 0);
  15134. const mainAnchor = (n2.anchor = ( true)
  15135. ? createComment('teleport end')
  15136. : 0);
  15137. insert(placeholder, container, anchor);
  15138. insert(mainAnchor, container, anchor);
  15139. const target = (n2.target = resolveTarget(n2.props, querySelector));
  15140. const targetAnchor = (n2.targetAnchor = createText(''));
  15141. if (target) {
  15142. insert(targetAnchor, target);
  15143. // #2652 we could be teleporting from a non-SVG tree into an SVG tree
  15144. isSVG = isSVG || isTargetSVG(target);
  15145. }
  15146. else if (( true) && !disabled) {
  15147. warn('Invalid Teleport target on mount:', target, `(${typeof target})`);
  15148. }
  15149. const mount = (container, anchor) => {
  15150. // Teleport *always* has Array children. This is enforced in both the
  15151. // compiler and vnode children normalization.
  15152. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15153. mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  15154. }
  15155. };
  15156. if (disabled) {
  15157. mount(container, mainAnchor);
  15158. }
  15159. else if (target) {
  15160. mount(target, targetAnchor);
  15161. }
  15162. }
  15163. else {
  15164. // update content
  15165. n2.el = n1.el;
  15166. const mainAnchor = (n2.anchor = n1.anchor);
  15167. const target = (n2.target = n1.target);
  15168. const targetAnchor = (n2.targetAnchor = n1.targetAnchor);
  15169. const wasDisabled = isTeleportDisabled(n1.props);
  15170. const currentContainer = wasDisabled ? container : target;
  15171. const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
  15172. isSVG = isSVG || isTargetSVG(target);
  15173. if (dynamicChildren) {
  15174. // fast path when the teleport happens to be a block root
  15175. patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds);
  15176. // even in block tree mode we need to make sure all root-level nodes
  15177. // in the teleport inherit previous DOM references so that they can
  15178. // be moved in future patches.
  15179. traverseStaticChildren(n1, n2, true);
  15180. }
  15181. else if (!optimized) {
  15182. patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false);
  15183. }
  15184. if (disabled) {
  15185. if (!wasDisabled) {
  15186. // enabled -> disabled
  15187. // move into main container
  15188. moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */);
  15189. }
  15190. }
  15191. else {
  15192. // target changed
  15193. if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
  15194. const nextTarget = (n2.target = resolveTarget(n2.props, querySelector));
  15195. if (nextTarget) {
  15196. moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */);
  15197. }
  15198. else if ((true)) {
  15199. warn('Invalid Teleport target on update:', target, `(${typeof target})`);
  15200. }
  15201. }
  15202. else if (wasDisabled) {
  15203. // disabled -> enabled
  15204. // move into teleport target
  15205. moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */);
  15206. }
  15207. }
  15208. }
  15209. },
  15210. remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
  15211. const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
  15212. if (target) {
  15213. hostRemove(targetAnchor);
  15214. }
  15215. // an unmounted teleport should always remove its children if not disabled
  15216. if (doRemove || !isTeleportDisabled(props)) {
  15217. hostRemove(anchor);
  15218. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15219. for (let i = 0; i < children.length; i++) {
  15220. const child = children[i];
  15221. unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren);
  15222. }
  15223. }
  15224. }
  15225. },
  15226. move: moveTeleport,
  15227. hydrate: hydrateTeleport
  15228. };
  15229. function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) {
  15230. // move target anchor if this is a target change.
  15231. if (moveType === 0 /* TARGET_CHANGE */) {
  15232. insert(vnode.targetAnchor, container, parentAnchor);
  15233. }
  15234. const { el, anchor, shapeFlag, children, props } = vnode;
  15235. const isReorder = moveType === 2 /* REORDER */;
  15236. // move main view anchor if this is a re-order.
  15237. if (isReorder) {
  15238. insert(el, container, parentAnchor);
  15239. }
  15240. // if this is a re-order and teleport is enabled (content is in target)
  15241. // do not move children. So the opposite is: only move children if this
  15242. // is not a reorder, or the teleport is disabled
  15243. if (!isReorder || isTeleportDisabled(props)) {
  15244. // Teleport has either Array children or no children.
  15245. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15246. for (let i = 0; i < children.length; i++) {
  15247. move(children[i], container, parentAnchor, 2 /* REORDER */);
  15248. }
  15249. }
  15250. }
  15251. // move main view anchor if this is a re-order.
  15252. if (isReorder) {
  15253. insert(anchor, container, parentAnchor);
  15254. }
  15255. }
  15256. function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) {
  15257. const target = (vnode.target = resolveTarget(vnode.props, querySelector));
  15258. if (target) {
  15259. // if multiple teleports rendered to the same target element, we need to
  15260. // pick up from where the last teleport finished instead of the first node
  15261. const targetNode = target._lpa || target.firstChild;
  15262. if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15263. if (isTeleportDisabled(vnode.props)) {
  15264. vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized);
  15265. vnode.targetAnchor = targetNode;
  15266. }
  15267. else {
  15268. vnode.anchor = nextSibling(node);
  15269. vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
  15270. }
  15271. target._lpa =
  15272. vnode.targetAnchor && nextSibling(vnode.targetAnchor);
  15273. }
  15274. }
  15275. return vnode.anchor && nextSibling(vnode.anchor);
  15276. }
  15277. // Force-casted public typing for h and TSX props inference
  15278. const Teleport = TeleportImpl;
  15279. const COMPONENTS = 'components';
  15280. const DIRECTIVES = 'directives';
  15281. /**
  15282. * @private
  15283. */
  15284. function resolveComponent(name, maybeSelfReference) {
  15285. return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
  15286. }
  15287. const NULL_DYNAMIC_COMPONENT = Symbol();
  15288. /**
  15289. * @private
  15290. */
  15291. function resolveDynamicComponent(component) {
  15292. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(component)) {
  15293. return resolveAsset(COMPONENTS, component, false) || component;
  15294. }
  15295. else {
  15296. // invalid types will fallthrough to createVNode and raise warning
  15297. return (component || NULL_DYNAMIC_COMPONENT);
  15298. }
  15299. }
  15300. /**
  15301. * @private
  15302. */
  15303. function resolveDirective(name) {
  15304. return resolveAsset(DIRECTIVES, name);
  15305. }
  15306. // implementation
  15307. function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
  15308. const instance = currentRenderingInstance || currentInstance;
  15309. if (instance) {
  15310. const Component = instance.type;
  15311. // explicit self name has highest priority
  15312. if (type === COMPONENTS) {
  15313. const selfName = getComponentName(Component);
  15314. if (selfName &&
  15315. (selfName === name ||
  15316. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name) ||
  15317. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)))) {
  15318. return Component;
  15319. }
  15320. }
  15321. const res =
  15322. // local registration
  15323. // check instance[type] first which is resolved for options API
  15324. resolve(instance[type] || Component[type], name) ||
  15325. // global registration
  15326. resolve(instance.appContext[type], name);
  15327. if (!res && maybeSelfReference) {
  15328. // fallback to implicit self-reference
  15329. return Component;
  15330. }
  15331. if (( true) && warnMissing && !res) {
  15332. const extra = type === COMPONENTS
  15333. ? `\nIf this is a native custom element, make sure to exclude it from ` +
  15334. `component resolution via compilerOptions.isCustomElement.`
  15335. : ``;
  15336. warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
  15337. }
  15338. return res;
  15339. }
  15340. else if ((true)) {
  15341. warn(`resolve${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(type.slice(0, -1))} ` +
  15342. `can only be used in render() or setup().`);
  15343. }
  15344. }
  15345. function resolve(registry, name) {
  15346. return (registry &&
  15347. (registry[name] ||
  15348. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)] ||
  15349. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name))]));
  15350. }
  15351. const Fragment = Symbol(( true) ? 'Fragment' : 0);
  15352. const Text = Symbol(( true) ? 'Text' : 0);
  15353. const Comment = Symbol(( true) ? 'Comment' : 0);
  15354. const Static = Symbol(( true) ? 'Static' : 0);
  15355. // Since v-if and v-for are the two possible ways node structure can dynamically
  15356. // change, once we consider v-if branches and each v-for fragment a block, we
  15357. // can divide a template into nested blocks, and within each block the node
  15358. // structure would be stable. This allows us to skip most children diffing
  15359. // and only worry about the dynamic nodes (indicated by patch flags).
  15360. const blockStack = [];
  15361. let currentBlock = null;
  15362. /**
  15363. * Open a block.
  15364. * This must be called before `createBlock`. It cannot be part of `createBlock`
  15365. * because the children of the block are evaluated before `createBlock` itself
  15366. * is called. The generated code typically looks like this:
  15367. *
  15368. * ```js
  15369. * function render() {
  15370. * return (openBlock(),createBlock('div', null, [...]))
  15371. * }
  15372. * ```
  15373. * disableTracking is true when creating a v-for fragment block, since a v-for
  15374. * fragment always diffs its children.
  15375. *
  15376. * @private
  15377. */
  15378. function openBlock(disableTracking = false) {
  15379. blockStack.push((currentBlock = disableTracking ? null : []));
  15380. }
  15381. function closeBlock() {
  15382. blockStack.pop();
  15383. currentBlock = blockStack[blockStack.length - 1] || null;
  15384. }
  15385. // Whether we should be tracking dynamic child nodes inside a block.
  15386. // Only tracks when this value is > 0
  15387. // We are not using a simple boolean because this value may need to be
  15388. // incremented/decremented by nested usage of v-once (see below)
  15389. let isBlockTreeEnabled = 1;
  15390. /**
  15391. * Block tracking sometimes needs to be disabled, for example during the
  15392. * creation of a tree that needs to be cached by v-once. The compiler generates
  15393. * code like this:
  15394. *
  15395. * ``` js
  15396. * _cache[1] || (
  15397. * setBlockTracking(-1),
  15398. * _cache[1] = createVNode(...),
  15399. * setBlockTracking(1),
  15400. * _cache[1]
  15401. * )
  15402. * ```
  15403. *
  15404. * @private
  15405. */
  15406. function setBlockTracking(value) {
  15407. isBlockTreeEnabled += value;
  15408. }
  15409. function setupBlock(vnode) {
  15410. // save current block children on the block vnode
  15411. vnode.dynamicChildren =
  15412. isBlockTreeEnabled > 0 ? currentBlock || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR : null;
  15413. // close block
  15414. closeBlock();
  15415. // a block is always going to be patched, so track it as a child of its
  15416. // parent block
  15417. if (isBlockTreeEnabled > 0 && currentBlock) {
  15418. currentBlock.push(vnode);
  15419. }
  15420. return vnode;
  15421. }
  15422. /**
  15423. * @private
  15424. */
  15425. function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
  15426. return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */));
  15427. }
  15428. /**
  15429. * Create a block root vnode. Takes the same exact arguments as `createVNode`.
  15430. * A block root keeps track of dynamic nodes within the block in the
  15431. * `dynamicChildren` array.
  15432. *
  15433. * @private
  15434. */
  15435. function createBlock(type, props, children, patchFlag, dynamicProps) {
  15436. return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */));
  15437. }
  15438. function isVNode(value) {
  15439. return value ? value.__v_isVNode === true : false;
  15440. }
  15441. function isSameVNodeType(n1, n2) {
  15442. if (( true) &&
  15443. n2.shapeFlag & 6 /* COMPONENT */ &&
  15444. hmrDirtyComponents.has(n2.type)) {
  15445. // HMR only: if the component has been hot-updated, force a reload.
  15446. return false;
  15447. }
  15448. return n1.type === n2.type && n1.key === n2.key;
  15449. }
  15450. let vnodeArgsTransformer;
  15451. /**
  15452. * Internal API for registering an arguments transform for createVNode
  15453. * used for creating stubs in the test-utils
  15454. * It is *internal* but needs to be exposed for test-utils to pick up proper
  15455. * typings
  15456. */
  15457. function transformVNodeArgs(transformer) {
  15458. vnodeArgsTransformer = transformer;
  15459. }
  15460. const createVNodeWithArgsTransform = (...args) => {
  15461. return _createVNode(...(vnodeArgsTransformer
  15462. ? vnodeArgsTransformer(args, currentRenderingInstance)
  15463. : args));
  15464. };
  15465. const InternalObjectKey = `__vInternal`;
  15466. const normalizeKey = ({ key }) => key != null ? key : null;
  15467. const normalizeRef = ({ ref, ref_key, ref_for }) => {
  15468. return (ref != null
  15469. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref) || (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)
  15470. ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for }
  15471. : ref
  15472. : null);
  15473. };
  15474. function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) {
  15475. const vnode = {
  15476. __v_isVNode: true,
  15477. __v_skip: true,
  15478. type,
  15479. props,
  15480. key: props && normalizeKey(props),
  15481. ref: props && normalizeRef(props),
  15482. scopeId: currentScopeId,
  15483. slotScopeIds: null,
  15484. children,
  15485. component: null,
  15486. suspense: null,
  15487. ssContent: null,
  15488. ssFallback: null,
  15489. dirs: null,
  15490. transition: null,
  15491. el: null,
  15492. anchor: null,
  15493. target: null,
  15494. targetAnchor: null,
  15495. staticCount: 0,
  15496. shapeFlag,
  15497. patchFlag,
  15498. dynamicProps,
  15499. dynamicChildren: null,
  15500. appContext: null
  15501. };
  15502. if (needFullChildrenNormalization) {
  15503. normalizeChildren(vnode, children);
  15504. // normalize suspense children
  15505. if (shapeFlag & 128 /* SUSPENSE */) {
  15506. type.normalize(vnode);
  15507. }
  15508. }
  15509. else if (children) {
  15510. // compiled element vnode - if children is passed, only possible types are
  15511. // string or Array.
  15512. vnode.shapeFlag |= (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(children)
  15513. ? 8 /* TEXT_CHILDREN */
  15514. : 16 /* ARRAY_CHILDREN */;
  15515. }
  15516. // validate key
  15517. if (( true) && vnode.key !== vnode.key) {
  15518. warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
  15519. }
  15520. // track vnode for block tree
  15521. if (isBlockTreeEnabled > 0 &&
  15522. // avoid a block node from tracking itself
  15523. !isBlockNode &&
  15524. // has current parent block
  15525. currentBlock &&
  15526. // presence of a patch flag indicates this node needs patching on updates.
  15527. // component nodes also should always be patched, because even if the
  15528. // component doesn't need to update, it needs to persist the instance on to
  15529. // the next vnode so that it can be properly unmounted later.
  15530. (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) &&
  15531. // the EVENTS flag is only for hydration and if it is the only flag, the
  15532. // vnode should not be considered dynamic due to handler caching.
  15533. vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) {
  15534. currentBlock.push(vnode);
  15535. }
  15536. return vnode;
  15537. }
  15538. const createVNode = (( true) ? createVNodeWithArgsTransform : 0);
  15539. function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
  15540. if (!type || type === NULL_DYNAMIC_COMPONENT) {
  15541. if (( true) && !type) {
  15542. warn(`Invalid vnode type when creating vnode: ${type}.`);
  15543. }
  15544. type = Comment;
  15545. }
  15546. if (isVNode(type)) {
  15547. // createVNode receiving an existing vnode. This happens in cases like
  15548. // <component :is="vnode"/>
  15549. // #2078 make sure to merge refs during the clone instead of overwriting it
  15550. const cloned = cloneVNode(type, props, true /* mergeRef: true */);
  15551. if (children) {
  15552. normalizeChildren(cloned, children);
  15553. }
  15554. return cloned;
  15555. }
  15556. // class component normalization.
  15557. if (isClassComponent(type)) {
  15558. type = type.__vccOpts;
  15559. }
  15560. // class & style normalization.
  15561. if (props) {
  15562. // for reactive or proxy objects, we need to clone it to enable mutation.
  15563. props = guardReactiveProps(props);
  15564. let { class: klass, style } = props;
  15565. if (klass && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(klass)) {
  15566. props.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(klass);
  15567. }
  15568. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(style)) {
  15569. // reactive state objects need to be cloned since they are likely to be
  15570. // mutated
  15571. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(style) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(style)) {
  15572. style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, style);
  15573. }
  15574. props.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(style);
  15575. }
  15576. }
  15577. // encode the vnode type information into a bitmap
  15578. const shapeFlag = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(type)
  15579. ? 1 /* ELEMENT */
  15580. : isSuspense(type)
  15581. ? 128 /* SUSPENSE */
  15582. : isTeleport(type)
  15583. ? 64 /* TELEPORT */
  15584. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(type)
  15585. ? 4 /* STATEFUL_COMPONENT */
  15586. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(type)
  15587. ? 2 /* FUNCTIONAL_COMPONENT */
  15588. : 0;
  15589. if (( true) && shapeFlag & 4 /* STATEFUL_COMPONENT */ && (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(type)) {
  15590. type = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(type);
  15591. warn(`Vue received a Component which was made a reactive object. This can ` +
  15592. `lead to unnecessary performance overhead, and should be avoided by ` +
  15593. `marking the component with \`markRaw\` or using \`shallowRef\` ` +
  15594. `instead of \`ref\`.`, `\nComponent that was made reactive: `, type);
  15595. }
  15596. return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
  15597. }
  15598. function guardReactiveProps(props) {
  15599. if (!props)
  15600. return null;
  15601. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(props) || InternalObjectKey in props
  15602. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, props)
  15603. : props;
  15604. }
  15605. function cloneVNode(vnode, extraProps, mergeRef = false) {
  15606. // This is intentionally NOT using spread or extend to avoid the runtime
  15607. // key enumeration cost.
  15608. const { props, ref, patchFlag, children } = vnode;
  15609. const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
  15610. const cloned = {
  15611. __v_isVNode: true,
  15612. __v_skip: true,
  15613. type: vnode.type,
  15614. props: mergedProps,
  15615. key: mergedProps && normalizeKey(mergedProps),
  15616. ref: extraProps && extraProps.ref
  15617. ? // #2078 in the case of <component :is="vnode" ref="extra"/>
  15618. // if the vnode itself already has a ref, cloneVNode will need to merge
  15619. // the refs so the single vnode can be set on multiple refs
  15620. mergeRef && ref
  15621. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ref)
  15622. ? ref.concat(normalizeRef(extraProps))
  15623. : [ref, normalizeRef(extraProps)]
  15624. : normalizeRef(extraProps)
  15625. : ref,
  15626. scopeId: vnode.scopeId,
  15627. slotScopeIds: vnode.slotScopeIds,
  15628. children: ( true) && patchFlag === -1 /* HOISTED */ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)
  15629. ? children.map(deepCloneVNode)
  15630. : children,
  15631. target: vnode.target,
  15632. targetAnchor: vnode.targetAnchor,
  15633. staticCount: vnode.staticCount,
  15634. shapeFlag: vnode.shapeFlag,
  15635. // if the vnode is cloned with extra props, we can no longer assume its
  15636. // existing patch flag to be reliable and need to add the FULL_PROPS flag.
  15637. // note: preserve flag for fragments since they use the flag for children
  15638. // fast paths only.
  15639. patchFlag: extraProps && vnode.type !== Fragment
  15640. ? patchFlag === -1 // hoisted node
  15641. ? 16 /* FULL_PROPS */
  15642. : patchFlag | 16 /* FULL_PROPS */
  15643. : patchFlag,
  15644. dynamicProps: vnode.dynamicProps,
  15645. dynamicChildren: vnode.dynamicChildren,
  15646. appContext: vnode.appContext,
  15647. dirs: vnode.dirs,
  15648. transition: vnode.transition,
  15649. // These should technically only be non-null on mounted VNodes. However,
  15650. // they *should* be copied for kept-alive vnodes. So we just always copy
  15651. // them since them being non-null during a mount doesn't affect the logic as
  15652. // they will simply be overwritten.
  15653. component: vnode.component,
  15654. suspense: vnode.suspense,
  15655. ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
  15656. ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
  15657. el: vnode.el,
  15658. anchor: vnode.anchor
  15659. };
  15660. return cloned;
  15661. }
  15662. /**
  15663. * Dev only, for HMR of hoisted vnodes reused in v-for
  15664. * https://github.com/vitejs/vite/issues/2022
  15665. */
  15666. function deepCloneVNode(vnode) {
  15667. const cloned = cloneVNode(vnode);
  15668. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(vnode.children)) {
  15669. cloned.children = vnode.children.map(deepCloneVNode);
  15670. }
  15671. return cloned;
  15672. }
  15673. /**
  15674. * @private
  15675. */
  15676. function createTextVNode(text = ' ', flag = 0) {
  15677. return createVNode(Text, null, text, flag);
  15678. }
  15679. /**
  15680. * @private
  15681. */
  15682. function createStaticVNode(content, numberOfNodes) {
  15683. // A static vnode can contain multiple stringified elements, and the number
  15684. // of elements is necessary for hydration.
  15685. const vnode = createVNode(Static, null, content);
  15686. vnode.staticCount = numberOfNodes;
  15687. return vnode;
  15688. }
  15689. /**
  15690. * @private
  15691. */
  15692. function createCommentVNode(text = '',
  15693. // when used as the v-else branch, the comment node must be created as a
  15694. // block to ensure correct updates.
  15695. asBlock = false) {
  15696. return asBlock
  15697. ? (openBlock(), createBlock(Comment, null, text))
  15698. : createVNode(Comment, null, text);
  15699. }
  15700. function normalizeVNode(child) {
  15701. if (child == null || typeof child === 'boolean') {
  15702. // empty placeholder
  15703. return createVNode(Comment);
  15704. }
  15705. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(child)) {
  15706. // fragment
  15707. return createVNode(Fragment, null,
  15708. // #3666, avoid reference pollution when reusing vnode
  15709. child.slice());
  15710. }
  15711. else if (typeof child === 'object') {
  15712. // already vnode, this should be the most common since compiled templates
  15713. // always produce all-vnode children arrays
  15714. return cloneIfMounted(child);
  15715. }
  15716. else {
  15717. // strings and numbers
  15718. return createVNode(Text, null, String(child));
  15719. }
  15720. }
  15721. // optimized normalization for template-compiled render fns
  15722. function cloneIfMounted(child) {
  15723. return child.el === null || child.memo ? child : cloneVNode(child);
  15724. }
  15725. function normalizeChildren(vnode, children) {
  15726. let type = 0;
  15727. const { shapeFlag } = vnode;
  15728. if (children == null) {
  15729. children = null;
  15730. }
  15731. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)) {
  15732. type = 16 /* ARRAY_CHILDREN */;
  15733. }
  15734. else if (typeof children === 'object') {
  15735. if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) {
  15736. // Normalize slot to plain children for plain element and Teleport
  15737. const slot = children.default;
  15738. if (slot) {
  15739. // _c marker is added by withCtx() indicating this is a compiled slot
  15740. slot._c && (slot._d = false);
  15741. normalizeChildren(vnode, slot());
  15742. slot._c && (slot._d = true);
  15743. }
  15744. return;
  15745. }
  15746. else {
  15747. type = 32 /* SLOTS_CHILDREN */;
  15748. const slotFlag = children._;
  15749. if (!slotFlag && !(InternalObjectKey in children)) {
  15750. children._ctx = currentRenderingInstance;
  15751. }
  15752. else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) {
  15753. // a child component receives forwarded slots from the parent.
  15754. // its slot type is determined by its parent's slot type.
  15755. if (currentRenderingInstance.slots._ === 1 /* STABLE */) {
  15756. children._ = 1 /* STABLE */;
  15757. }
  15758. else {
  15759. children._ = 2 /* DYNAMIC */;
  15760. vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  15761. }
  15762. }
  15763. }
  15764. }
  15765. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(children)) {
  15766. children = { default: children, _ctx: currentRenderingInstance };
  15767. type = 32 /* SLOTS_CHILDREN */;
  15768. }
  15769. else {
  15770. children = String(children);
  15771. // force teleport children to array so it can be moved around
  15772. if (shapeFlag & 64 /* TELEPORT */) {
  15773. type = 16 /* ARRAY_CHILDREN */;
  15774. children = [createTextVNode(children)];
  15775. }
  15776. else {
  15777. type = 8 /* TEXT_CHILDREN */;
  15778. }
  15779. }
  15780. vnode.children = children;
  15781. vnode.shapeFlag |= type;
  15782. }
  15783. function mergeProps(...args) {
  15784. const ret = {};
  15785. for (let i = 0; i < args.length; i++) {
  15786. const toMerge = args[i];
  15787. for (const key in toMerge) {
  15788. if (key === 'class') {
  15789. if (ret.class !== toMerge.class) {
  15790. ret.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)([ret.class, toMerge.class]);
  15791. }
  15792. }
  15793. else if (key === 'style') {
  15794. ret.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)([ret.style, toMerge.style]);
  15795. }
  15796. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  15797. const existing = ret[key];
  15798. const incoming = toMerge[key];
  15799. if (incoming &&
  15800. existing !== incoming &&
  15801. !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && existing.includes(incoming))) {
  15802. ret[key] = existing
  15803. ? [].concat(existing, incoming)
  15804. : incoming;
  15805. }
  15806. }
  15807. else if (key !== '') {
  15808. ret[key] = toMerge[key];
  15809. }
  15810. }
  15811. }
  15812. return ret;
  15813. }
  15814. function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
  15815. callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [
  15816. vnode,
  15817. prevVNode
  15818. ]);
  15819. }
  15820. /**
  15821. * Actual implementation
  15822. */
  15823. function renderList(source, renderItem, cache, index) {
  15824. let ret;
  15825. const cached = (cache && cache[index]);
  15826. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)) {
  15827. ret = new Array(source.length);
  15828. for (let i = 0, l = source.length; i < l; i++) {
  15829. ret[i] = renderItem(source[i], i, undefined, cached && cached[i]);
  15830. }
  15831. }
  15832. else if (typeof source === 'number') {
  15833. if (( true) && !Number.isInteger(source)) {
  15834. warn(`The v-for range expect an integer value but got ${source}.`);
  15835. return [];
  15836. }
  15837. ret = new Array(source);
  15838. for (let i = 0; i < source; i++) {
  15839. ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]);
  15840. }
  15841. }
  15842. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(source)) {
  15843. if (source[Symbol.iterator]) {
  15844. ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i]));
  15845. }
  15846. else {
  15847. const keys = Object.keys(source);
  15848. ret = new Array(keys.length);
  15849. for (let i = 0, l = keys.length; i < l; i++) {
  15850. const key = keys[i];
  15851. ret[i] = renderItem(source[key], key, i, cached && cached[i]);
  15852. }
  15853. }
  15854. }
  15855. else {
  15856. ret = [];
  15857. }
  15858. if (cache) {
  15859. cache[index] = ret;
  15860. }
  15861. return ret;
  15862. }
  15863. /**
  15864. * Compiler runtime helper for creating dynamic slots object
  15865. * @private
  15866. */
  15867. function createSlots(slots, dynamicSlots) {
  15868. for (let i = 0; i < dynamicSlots.length; i++) {
  15869. const slot = dynamicSlots[i];
  15870. // array of dynamic slot generated by <template v-for="..." #[...]>
  15871. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(slot)) {
  15872. for (let j = 0; j < slot.length; j++) {
  15873. slots[slot[j].name] = slot[j].fn;
  15874. }
  15875. }
  15876. else if (slot) {
  15877. // conditional single slot generated by <template v-if="..." #foo>
  15878. slots[slot.name] = slot.fn;
  15879. }
  15880. }
  15881. return slots;
  15882. }
  15883. /**
  15884. * Compiler runtime helper for rendering `<slot/>`
  15885. * @private
  15886. */
  15887. function renderSlot(slots, name, props = {},
  15888. // this is not a user-facing function, so the fallback is always generated by
  15889. // the compiler and guaranteed to be a function returning an array
  15890. fallback, noSlotted) {
  15891. if (currentRenderingInstance.isCE) {
  15892. return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback());
  15893. }
  15894. let slot = slots[name];
  15895. if (( true) && slot && slot.length > 1) {
  15896. warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
  15897. `function. You need to mark this component with $dynamic-slots in the ` +
  15898. `parent template.`);
  15899. slot = () => [];
  15900. }
  15901. // a compiled slot disables block tracking by default to avoid manual
  15902. // invocation interfering with template-based block tracking, but in
  15903. // `renderSlot` we can be sure that it's template-based so we can force
  15904. // enable it.
  15905. if (slot && slot._c) {
  15906. slot._d = false;
  15907. }
  15908. openBlock();
  15909. const validSlotContent = slot && ensureValidVNode(slot(props));
  15910. const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */
  15911. ? 64 /* STABLE_FRAGMENT */
  15912. : -2 /* BAIL */);
  15913. if (!noSlotted && rendered.scopeId) {
  15914. rendered.slotScopeIds = [rendered.scopeId + '-s'];
  15915. }
  15916. if (slot && slot._c) {
  15917. slot._d = true;
  15918. }
  15919. return rendered;
  15920. }
  15921. function ensureValidVNode(vnodes) {
  15922. return vnodes.some(child => {
  15923. if (!isVNode(child))
  15924. return true;
  15925. if (child.type === Comment)
  15926. return false;
  15927. if (child.type === Fragment &&
  15928. !ensureValidVNode(child.children))
  15929. return false;
  15930. return true;
  15931. })
  15932. ? vnodes
  15933. : null;
  15934. }
  15935. /**
  15936. * For prefixing keys in v-on="obj" with "on"
  15937. * @private
  15938. */
  15939. function toHandlers(obj) {
  15940. const ret = {};
  15941. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  15942. warn(`v-on with no argument expects an object value.`);
  15943. return ret;
  15944. }
  15945. for (const key in obj) {
  15946. ret[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(key)] = obj[key];
  15947. }
  15948. return ret;
  15949. }
  15950. /**
  15951. * #2437 In Vue 3, functional components do not have a public instance proxy but
  15952. * they exist in the internal parent chain. For code that relies on traversing
  15953. * public $parent chains, skip functional ones and go to the parent instead.
  15954. */
  15955. const getPublicInstance = (i) => {
  15956. if (!i)
  15957. return null;
  15958. if (isStatefulComponent(i))
  15959. return getExposeProxy(i) || i.proxy;
  15960. return getPublicInstance(i.parent);
  15961. };
  15962. const publicPropertiesMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), {
  15963. $: i => i,
  15964. $el: i => i.vnode.el,
  15965. $data: i => i.data,
  15966. $props: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.props) : 0),
  15967. $attrs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.attrs) : 0),
  15968. $slots: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.slots) : 0),
  15969. $refs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.refs) : 0),
  15970. $parent: i => getPublicInstance(i.parent),
  15971. $root: i => getPublicInstance(i.root),
  15972. $emit: i => i.emit,
  15973. $options: i => ( true ? resolveMergedOptions(i) : 0),
  15974. $forceUpdate: i => () => queueJob(i.update),
  15975. $nextTick: i => nextTick.bind(i.proxy),
  15976. $watch: i => ( true ? instanceWatch.bind(i) : 0)
  15977. });
  15978. const PublicInstanceProxyHandlers = {
  15979. get({ _: instance }, key) {
  15980. const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
  15981. // for internal formatters to know that this is a Vue instance
  15982. if (( true) && key === '__isVue') {
  15983. return true;
  15984. }
  15985. // prioritize <script setup> bindings during dev.
  15986. // this allows even properties that start with _ or $ to be used - so that
  15987. // it aligns with the production behavior where the render fn is inlined and
  15988. // indeed has access to all declared variables.
  15989. if (( true) &&
  15990. setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  15991. setupState.__isScriptSetup &&
  15992. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  15993. return setupState[key];
  15994. }
  15995. // data / props / ctx
  15996. // This getter gets called for every property access on the render context
  15997. // during render and is a major hotspot. The most expensive part of this
  15998. // is the multiple hasOwn() calls. It's much faster to do a simple property
  15999. // access on a plain object, so we use an accessCache object (with null
  16000. // prototype) to memoize what access type a key corresponds to.
  16001. let normalizedProps;
  16002. if (key[0] !== '$') {
  16003. const n = accessCache[key];
  16004. if (n !== undefined) {
  16005. switch (n) {
  16006. case 1 /* SETUP */:
  16007. return setupState[key];
  16008. case 2 /* DATA */:
  16009. return data[key];
  16010. case 4 /* CONTEXT */:
  16011. return ctx[key];
  16012. case 3 /* PROPS */:
  16013. return props[key];
  16014. // default: just fallthrough
  16015. }
  16016. }
  16017. else if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16018. accessCache[key] = 1 /* SETUP */;
  16019. return setupState[key];
  16020. }
  16021. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16022. accessCache[key] = 2 /* DATA */;
  16023. return data[key];
  16024. }
  16025. else if (
  16026. // only cache other properties when instance has declared (thus stable)
  16027. // props
  16028. (normalizedProps = instance.propsOptions[0]) &&
  16029. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) {
  16030. accessCache[key] = 3 /* PROPS */;
  16031. return props[key];
  16032. }
  16033. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16034. accessCache[key] = 4 /* CONTEXT */;
  16035. return ctx[key];
  16036. }
  16037. else if ( false || shouldCacheAccess) {
  16038. accessCache[key] = 0 /* OTHER */;
  16039. }
  16040. }
  16041. const publicGetter = publicPropertiesMap[key];
  16042. let cssModule, globalProperties;
  16043. // public $xxx properties
  16044. if (publicGetter) {
  16045. if (key === '$attrs') {
  16046. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, key);
  16047. ( true) && markAttrsAccessed();
  16048. }
  16049. return publicGetter(instance);
  16050. }
  16051. else if (
  16052. // css module (injected by vue-loader)
  16053. (cssModule = type.__cssModules) &&
  16054. (cssModule = cssModule[key])) {
  16055. return cssModule;
  16056. }
  16057. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16058. // user may set custom properties to `this` that start with `$`
  16059. accessCache[key] = 4 /* CONTEXT */;
  16060. return ctx[key];
  16061. }
  16062. else if (
  16063. // global properties
  16064. ((globalProperties = appContext.config.globalProperties),
  16065. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(globalProperties, key))) {
  16066. {
  16067. return globalProperties[key];
  16068. }
  16069. }
  16070. else if (( true) &&
  16071. currentRenderingInstance &&
  16072. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(key) ||
  16073. // #1091 avoid internal isRef/isVNode checks on component instance leading
  16074. // to infinite warning loop
  16075. key.indexOf('__v') !== 0)) {
  16076. if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  16077. (key[0] === '$' || key[0] === '_') &&
  16078. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16079. warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
  16080. `character ("$" or "_") and is not proxied on the render context.`);
  16081. }
  16082. else if (instance === currentRenderingInstance) {
  16083. warn(`Property ${JSON.stringify(key)} was accessed during render ` +
  16084. `but is not defined on instance.`);
  16085. }
  16086. }
  16087. },
  16088. set({ _: instance }, key, value) {
  16089. const { data, setupState, ctx } = instance;
  16090. if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16091. setupState[key] = value;
  16092. return true;
  16093. }
  16094. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16095. data[key] = value;
  16096. return true;
  16097. }
  16098. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(instance.props, key)) {
  16099. ( true) &&
  16100. warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
  16101. return false;
  16102. }
  16103. if (key[0] === '$' && key.slice(1) in instance) {
  16104. ( true) &&
  16105. warn(`Attempting to mutate public property "${key}". ` +
  16106. `Properties starting with $ are reserved and readonly.`, instance);
  16107. return false;
  16108. }
  16109. else {
  16110. if (( true) && key in instance.appContext.config.globalProperties) {
  16111. Object.defineProperty(ctx, key, {
  16112. enumerable: true,
  16113. configurable: true,
  16114. value
  16115. });
  16116. }
  16117. else {
  16118. ctx[key] = value;
  16119. }
  16120. }
  16121. return true;
  16122. },
  16123. has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {
  16124. let normalizedProps;
  16125. return (!!accessCache[key] ||
  16126. (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) ||
  16127. (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) ||
  16128. ((normalizedProps = propsOptions[0]) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) ||
  16129. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key) ||
  16130. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(publicPropertiesMap, key) ||
  16131. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(appContext.config.globalProperties, key));
  16132. },
  16133. defineProperty(target, key, descriptor) {
  16134. if (descriptor.get != null) {
  16135. this.set(target, key, descriptor.get(), null);
  16136. }
  16137. else if (descriptor.value != null) {
  16138. this.set(target, key, descriptor.value, null);
  16139. }
  16140. return Reflect.defineProperty(target, key, descriptor);
  16141. }
  16142. };
  16143. if (true) {
  16144. PublicInstanceProxyHandlers.ownKeys = (target) => {
  16145. warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +
  16146. `The keys will be empty in production mode to avoid performance overhead.`);
  16147. return Reflect.ownKeys(target);
  16148. };
  16149. }
  16150. const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, PublicInstanceProxyHandlers, {
  16151. get(target, key) {
  16152. // fast path for unscopables when using `with` block
  16153. if (key === Symbol.unscopables) {
  16154. return;
  16155. }
  16156. return PublicInstanceProxyHandlers.get(target, key, target);
  16157. },
  16158. has(_, key) {
  16159. const has = key[0] !== '_' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isGloballyWhitelisted)(key);
  16160. if (( true) && !has && PublicInstanceProxyHandlers.has(_, key)) {
  16161. warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
  16162. }
  16163. return has;
  16164. }
  16165. });
  16166. // dev only
  16167. // In dev mode, the proxy target exposes the same properties as seen on `this`
  16168. // for easier console inspection. In prod mode it will be an empty object so
  16169. // these properties definitions can be skipped.
  16170. function createDevRenderContext(instance) {
  16171. const target = {};
  16172. // expose internal instance for proxy handlers
  16173. Object.defineProperty(target, `_`, {
  16174. configurable: true,
  16175. enumerable: false,
  16176. get: () => instance
  16177. });
  16178. // expose public properties
  16179. Object.keys(publicPropertiesMap).forEach(key => {
  16180. Object.defineProperty(target, key, {
  16181. configurable: true,
  16182. enumerable: false,
  16183. get: () => publicPropertiesMap[key](instance),
  16184. // intercepted by the proxy so no need for implementation,
  16185. // but needed to prevent set errors
  16186. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16187. });
  16188. });
  16189. return target;
  16190. }
  16191. // dev only
  16192. function exposePropsOnRenderContext(instance) {
  16193. const { ctx, propsOptions: [propsOptions] } = instance;
  16194. if (propsOptions) {
  16195. Object.keys(propsOptions).forEach(key => {
  16196. Object.defineProperty(ctx, key, {
  16197. enumerable: true,
  16198. configurable: true,
  16199. get: () => instance.props[key],
  16200. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16201. });
  16202. });
  16203. }
  16204. }
  16205. // dev only
  16206. function exposeSetupStateOnRenderContext(instance) {
  16207. const { ctx, setupState } = instance;
  16208. Object.keys((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(setupState)).forEach(key => {
  16209. if (!setupState.__isScriptSetup) {
  16210. if (key[0] === '$' || key[0] === '_') {
  16211. warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
  16212. `which are reserved prefixes for Vue internals.`);
  16213. return;
  16214. }
  16215. Object.defineProperty(ctx, key, {
  16216. enumerable: true,
  16217. configurable: true,
  16218. get: () => setupState[key],
  16219. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16220. });
  16221. }
  16222. });
  16223. }
  16224. const emptyAppContext = createAppContext();
  16225. let uid$1 = 0;
  16226. function createComponentInstance(vnode, parent, suspense) {
  16227. const type = vnode.type;
  16228. // inherit parent app context - or - if root, adopt from root vnode
  16229. const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
  16230. const instance = {
  16231. uid: uid$1++,
  16232. vnode,
  16233. type,
  16234. parent,
  16235. appContext,
  16236. root: null,
  16237. next: null,
  16238. subTree: null,
  16239. effect: null,
  16240. update: null,
  16241. scope: new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope(true /* detached */),
  16242. render: null,
  16243. proxy: null,
  16244. exposed: null,
  16245. exposeProxy: null,
  16246. withProxy: null,
  16247. provides: parent ? parent.provides : Object.create(appContext.provides),
  16248. accessCache: null,
  16249. renderCache: [],
  16250. // local resovled assets
  16251. components: null,
  16252. directives: null,
  16253. // resolved props and emits options
  16254. propsOptions: normalizePropsOptions(type, appContext),
  16255. emitsOptions: normalizeEmitsOptions(type, appContext),
  16256. // emit
  16257. emit: null,
  16258. emitted: null,
  16259. // props default value
  16260. propsDefaults: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16261. // inheritAttrs
  16262. inheritAttrs: type.inheritAttrs,
  16263. // state
  16264. ctx: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16265. data: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16266. props: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16267. attrs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16268. slots: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16269. refs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16270. setupState: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16271. setupContext: null,
  16272. // suspense related
  16273. suspense,
  16274. suspenseId: suspense ? suspense.pendingId : 0,
  16275. asyncDep: null,
  16276. asyncResolved: false,
  16277. // lifecycle hooks
  16278. // not using enums here because it results in computed properties
  16279. isMounted: false,
  16280. isUnmounted: false,
  16281. isDeactivated: false,
  16282. bc: null,
  16283. c: null,
  16284. bm: null,
  16285. m: null,
  16286. bu: null,
  16287. u: null,
  16288. um: null,
  16289. bum: null,
  16290. da: null,
  16291. a: null,
  16292. rtg: null,
  16293. rtc: null,
  16294. ec: null,
  16295. sp: null
  16296. };
  16297. if ((true)) {
  16298. instance.ctx = createDevRenderContext(instance);
  16299. }
  16300. else {}
  16301. instance.root = parent ? parent.root : instance;
  16302. instance.emit = emit$1.bind(null, instance);
  16303. // apply custom element special handling
  16304. if (vnode.ce) {
  16305. vnode.ce(instance);
  16306. }
  16307. return instance;
  16308. }
  16309. let currentInstance = null;
  16310. const getCurrentInstance = () => currentInstance || currentRenderingInstance;
  16311. const setCurrentInstance = (instance) => {
  16312. currentInstance = instance;
  16313. instance.scope.on();
  16314. };
  16315. const unsetCurrentInstance = () => {
  16316. currentInstance && currentInstance.scope.off();
  16317. currentInstance = null;
  16318. };
  16319. const isBuiltInTag = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('slot,component');
  16320. function validateComponentName(name, config) {
  16321. const appIsNativeTag = config.isNativeTag || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO;
  16322. if (isBuiltInTag(name) || appIsNativeTag(name)) {
  16323. warn('Do not use built-in or reserved HTML elements as component id: ' + name);
  16324. }
  16325. }
  16326. function isStatefulComponent(instance) {
  16327. return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */;
  16328. }
  16329. let isInSSRComponentSetup = false;
  16330. function setupComponent(instance, isSSR = false) {
  16331. isInSSRComponentSetup = isSSR;
  16332. const { props, children } = instance.vnode;
  16333. const isStateful = isStatefulComponent(instance);
  16334. initProps(instance, props, isStateful, isSSR);
  16335. initSlots(instance, children);
  16336. const setupResult = isStateful
  16337. ? setupStatefulComponent(instance, isSSR)
  16338. : undefined;
  16339. isInSSRComponentSetup = false;
  16340. return setupResult;
  16341. }
  16342. function setupStatefulComponent(instance, isSSR) {
  16343. const Component = instance.type;
  16344. if ((true)) {
  16345. if (Component.name) {
  16346. validateComponentName(Component.name, instance.appContext.config);
  16347. }
  16348. if (Component.components) {
  16349. const names = Object.keys(Component.components);
  16350. for (let i = 0; i < names.length; i++) {
  16351. validateComponentName(names[i], instance.appContext.config);
  16352. }
  16353. }
  16354. if (Component.directives) {
  16355. const names = Object.keys(Component.directives);
  16356. for (let i = 0; i < names.length; i++) {
  16357. validateDirectiveName(names[i]);
  16358. }
  16359. }
  16360. if (Component.compilerOptions && isRuntimeOnly()) {
  16361. warn(`"compilerOptions" is only supported when using a build of Vue that ` +
  16362. `includes the runtime compiler. Since you are using a runtime-only ` +
  16363. `build, the options should be passed via your build tool config instead.`);
  16364. }
  16365. }
  16366. // 0. create render proxy property access cache
  16367. instance.accessCache = Object.create(null);
  16368. // 1. create public instance / render proxy
  16369. // also mark it raw so it's never observed
  16370. instance.proxy = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
  16371. if ((true)) {
  16372. exposePropsOnRenderContext(instance);
  16373. }
  16374. // 2. call setup()
  16375. const { setup } = Component;
  16376. if (setup) {
  16377. const setupContext = (instance.setupContext =
  16378. setup.length > 1 ? createSetupContext(instance) : null);
  16379. setCurrentInstance(instance);
  16380. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16381. const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.props) : 0, setupContext]);
  16382. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16383. unsetCurrentInstance();
  16384. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(setupResult)) {
  16385. setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
  16386. if (isSSR) {
  16387. // return the promise so server-renderer can wait on it
  16388. return setupResult
  16389. .then((resolvedResult) => {
  16390. handleSetupResult(instance, resolvedResult, isSSR);
  16391. })
  16392. .catch(e => {
  16393. handleError(e, instance, 0 /* SETUP_FUNCTION */);
  16394. });
  16395. }
  16396. else {
  16397. // async setup returned Promise.
  16398. // bail here and wait for re-entry.
  16399. instance.asyncDep = setupResult;
  16400. }
  16401. }
  16402. else {
  16403. handleSetupResult(instance, setupResult, isSSR);
  16404. }
  16405. }
  16406. else {
  16407. finishComponentSetup(instance, isSSR);
  16408. }
  16409. }
  16410. function handleSetupResult(instance, setupResult, isSSR) {
  16411. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(setupResult)) {
  16412. // setup returned an inline render function
  16413. if (instance.type.__ssrInlineRender) {
  16414. // when the function's name is `ssrRender` (compiled by SFC inline mode),
  16415. // set it as ssrRender instead.
  16416. instance.ssrRender = setupResult;
  16417. }
  16418. else {
  16419. instance.render = setupResult;
  16420. }
  16421. }
  16422. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(setupResult)) {
  16423. if (( true) && isVNode(setupResult)) {
  16424. warn(`setup() should not return VNodes directly - ` +
  16425. `return a render function instead.`);
  16426. }
  16427. // setup returned bindings.
  16428. // assuming a render function compiled from template is present.
  16429. if (true) {
  16430. instance.devtoolsRawSetupState = setupResult;
  16431. }
  16432. instance.setupState = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(setupResult);
  16433. if ((true)) {
  16434. exposeSetupStateOnRenderContext(instance);
  16435. }
  16436. }
  16437. else if (( true) && setupResult !== undefined) {
  16438. warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
  16439. }
  16440. finishComponentSetup(instance, isSSR);
  16441. }
  16442. let compile;
  16443. let installWithProxy;
  16444. /**
  16445. * For runtime-dom to register the compiler.
  16446. * Note the exported method uses any to avoid d.ts relying on the compiler types.
  16447. */
  16448. function registerRuntimeCompiler(_compile) {
  16449. compile = _compile;
  16450. installWithProxy = i => {
  16451. if (i.render._rc) {
  16452. i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);
  16453. }
  16454. };
  16455. }
  16456. // dev only
  16457. const isRuntimeOnly = () => !compile;
  16458. function finishComponentSetup(instance, isSSR, skipOptions) {
  16459. const Component = instance.type;
  16460. // template / render function normalization
  16461. // could be already set when returned from setup()
  16462. if (!instance.render) {
  16463. // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
  16464. // is done by server-renderer
  16465. if (!isSSR && compile && !Component.render) {
  16466. const template = Component.template;
  16467. if (template) {
  16468. if ((true)) {
  16469. startMeasure(instance, `compile`);
  16470. }
  16471. const { isCustomElement, compilerOptions } = instance.appContext.config;
  16472. const { delimiters, compilerOptions: componentCompilerOptions } = Component;
  16473. const finalCompilerOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({
  16474. isCustomElement,
  16475. delimiters
  16476. }, compilerOptions), componentCompilerOptions);
  16477. Component.render = compile(template, finalCompilerOptions);
  16478. if ((true)) {
  16479. endMeasure(instance, `compile`);
  16480. }
  16481. }
  16482. }
  16483. instance.render = (Component.render || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP);
  16484. // for runtime-compiled render functions using `with` blocks, the render
  16485. // proxy used needs a different `has` handler which is more performant and
  16486. // also only allows a whitelist of globals to fallthrough.
  16487. if (installWithProxy) {
  16488. installWithProxy(instance);
  16489. }
  16490. }
  16491. // support for 2.x options
  16492. if (true) {
  16493. setCurrentInstance(instance);
  16494. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16495. applyOptions(instance);
  16496. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16497. unsetCurrentInstance();
  16498. }
  16499. // warn missing template/render
  16500. // the runtime compilation of template in SSR is done by server-render
  16501. if (( true) && !Component.render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP && !isSSR) {
  16502. /* istanbul ignore if */
  16503. if (!compile && Component.template) {
  16504. warn(`Component provided template option but ` +
  16505. `runtime compilation is not supported in this build of Vue.` +
  16506. (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  16507. ) /* should not happen */);
  16508. }
  16509. else {
  16510. warn(`Component is missing template or render function.`);
  16511. }
  16512. }
  16513. }
  16514. function createAttrsProxy(instance) {
  16515. return new Proxy(instance.attrs, ( true)
  16516. ? {
  16517. get(target, key) {
  16518. markAttrsAccessed();
  16519. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, '$attrs');
  16520. return target[key];
  16521. },
  16522. set() {
  16523. warn(`setupContext.attrs is readonly.`);
  16524. return false;
  16525. },
  16526. deleteProperty() {
  16527. warn(`setupContext.attrs is readonly.`);
  16528. return false;
  16529. }
  16530. }
  16531. : 0);
  16532. }
  16533. function createSetupContext(instance) {
  16534. const expose = exposed => {
  16535. if (( true) && instance.exposed) {
  16536. warn(`expose() should be called only once per setup().`);
  16537. }
  16538. instance.exposed = exposed || {};
  16539. };
  16540. let attrs;
  16541. if ((true)) {
  16542. // We use getters in dev in case libs like test-utils overwrite instance
  16543. // properties (overwrites should not be done in prod)
  16544. return Object.freeze({
  16545. get attrs() {
  16546. return attrs || (attrs = createAttrsProxy(instance));
  16547. },
  16548. get slots() {
  16549. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.slots);
  16550. },
  16551. get emit() {
  16552. return (event, ...args) => instance.emit(event, ...args);
  16553. },
  16554. expose
  16555. });
  16556. }
  16557. else {}
  16558. }
  16559. function getExposeProxy(instance) {
  16560. if (instance.exposed) {
  16561. return (instance.exposeProxy ||
  16562. (instance.exposeProxy = new Proxy((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(instance.exposed)), {
  16563. get(target, key) {
  16564. if (key in target) {
  16565. return target[key];
  16566. }
  16567. else if (key in publicPropertiesMap) {
  16568. return publicPropertiesMap[key](instance);
  16569. }
  16570. }
  16571. })));
  16572. }
  16573. }
  16574. const classifyRE = /(?:^|[-_])(\w)/g;
  16575. const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
  16576. function getComponentName(Component) {
  16577. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Component)
  16578. ? Component.displayName || Component.name
  16579. : Component.name;
  16580. }
  16581. /* istanbul ignore next */
  16582. function formatComponentName(instance, Component, isRoot = false) {
  16583. let name = getComponentName(Component);
  16584. if (!name && Component.__file) {
  16585. const match = Component.__file.match(/([^/\\]+)\.\w+$/);
  16586. if (match) {
  16587. name = match[1];
  16588. }
  16589. }
  16590. if (!name && instance && instance.parent) {
  16591. // try to infer the name based on reverse resolution
  16592. const inferFromRegistry = (registry) => {
  16593. for (const key in registry) {
  16594. if (registry[key] === Component) {
  16595. return key;
  16596. }
  16597. }
  16598. };
  16599. name =
  16600. inferFromRegistry(instance.components ||
  16601. instance.parent.type.components) || inferFromRegistry(instance.appContext.components);
  16602. }
  16603. return name ? classify(name) : isRoot ? `App` : `Anonymous`;
  16604. }
  16605. function isClassComponent(value) {
  16606. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value) && '__vccOpts' in value;
  16607. }
  16608. const computed = ((getterOrOptions, debugOptions) => {
  16609. // @ts-ignore
  16610. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.computed)(getterOrOptions, debugOptions, isInSSRComponentSetup);
  16611. });
  16612. // dev only
  16613. const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +
  16614. `<script setup> of a single file component. Its arguments should be ` +
  16615. `compiled away and passing it at runtime has no effect.`);
  16616. // implementation
  16617. function defineProps() {
  16618. if ((true)) {
  16619. warnRuntimeUsage(`defineProps`);
  16620. }
  16621. return null;
  16622. }
  16623. // implementation
  16624. function defineEmits() {
  16625. if ((true)) {
  16626. warnRuntimeUsage(`defineEmits`);
  16627. }
  16628. return null;
  16629. }
  16630. /**
  16631. * Vue `<script setup>` compiler macro for declaring a component's exposed
  16632. * instance properties when it is accessed by a parent component via template
  16633. * refs.
  16634. *
  16635. * `<script setup>` components are closed by default - i.e. variables inside
  16636. * the `<script setup>` scope is not exposed to parent unless explicitly exposed
  16637. * via `defineExpose`.
  16638. *
  16639. * This is only usable inside `<script setup>`, is compiled away in the
  16640. * output and should **not** be actually called at runtime.
  16641. */
  16642. function defineExpose(exposed) {
  16643. if ((true)) {
  16644. warnRuntimeUsage(`defineExpose`);
  16645. }
  16646. }
  16647. /**
  16648. * Vue `<script setup>` compiler macro for providing props default values when
  16649. * using type-based `defineProps` declaration.
  16650. *
  16651. * Example usage:
  16652. * ```ts
  16653. * withDefaults(defineProps<{
  16654. * size?: number
  16655. * labels?: string[]
  16656. * }>(), {
  16657. * size: 3,
  16658. * labels: () => ['default label']
  16659. * })
  16660. * ```
  16661. *
  16662. * This is only usable inside `<script setup>`, is compiled away in the output
  16663. * and should **not** be actually called at runtime.
  16664. */
  16665. function withDefaults(props, defaults) {
  16666. if ((true)) {
  16667. warnRuntimeUsage(`withDefaults`);
  16668. }
  16669. return null;
  16670. }
  16671. function useSlots() {
  16672. return getContext().slots;
  16673. }
  16674. function useAttrs() {
  16675. return getContext().attrs;
  16676. }
  16677. function getContext() {
  16678. const i = getCurrentInstance();
  16679. if (( true) && !i) {
  16680. warn(`useContext() called without active instance.`);
  16681. }
  16682. return i.setupContext || (i.setupContext = createSetupContext(i));
  16683. }
  16684. /**
  16685. * Runtime helper for merging default declarations. Imported by compiled code
  16686. * only.
  16687. * @internal
  16688. */
  16689. function mergeDefaults(raw, defaults) {
  16690. const props = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)
  16691. ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {})
  16692. : raw;
  16693. for (const key in defaults) {
  16694. const opt = props[key];
  16695. if (opt) {
  16696. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)) {
  16697. props[key] = { type: opt, default: defaults[key] };
  16698. }
  16699. else {
  16700. opt.default = defaults[key];
  16701. }
  16702. }
  16703. else if (opt === null) {
  16704. props[key] = { default: defaults[key] };
  16705. }
  16706. else if ((true)) {
  16707. warn(`props default key "${key}" has no corresponding declaration.`);
  16708. }
  16709. }
  16710. return props;
  16711. }
  16712. /**
  16713. * Used to create a proxy for the rest element when destructuring props with
  16714. * defineProps().
  16715. * @internal
  16716. */
  16717. function createPropsRestProxy(props, excludedKeys) {
  16718. const ret = {};
  16719. for (const key in props) {
  16720. if (!excludedKeys.includes(key)) {
  16721. Object.defineProperty(ret, key, {
  16722. enumerable: true,
  16723. get: () => props[key]
  16724. });
  16725. }
  16726. }
  16727. return ret;
  16728. }
  16729. /**
  16730. * `<script setup>` helper for persisting the current instance context over
  16731. * async/await flows.
  16732. *
  16733. * `@vue/compiler-sfc` converts the following:
  16734. *
  16735. * ```ts
  16736. * const x = await foo()
  16737. * ```
  16738. *
  16739. * into:
  16740. *
  16741. * ```ts
  16742. * let __temp, __restore
  16743. * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp)
  16744. * ```
  16745. * @internal
  16746. */
  16747. function withAsyncContext(getAwaitable) {
  16748. const ctx = getCurrentInstance();
  16749. if (( true) && !ctx) {
  16750. warn(`withAsyncContext called without active current instance. ` +
  16751. `This is likely a bug.`);
  16752. }
  16753. let awaitable = getAwaitable();
  16754. unsetCurrentInstance();
  16755. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(awaitable)) {
  16756. awaitable = awaitable.catch(e => {
  16757. setCurrentInstance(ctx);
  16758. throw e;
  16759. });
  16760. }
  16761. return [awaitable, () => setCurrentInstance(ctx)];
  16762. }
  16763. // Actual implementation
  16764. function h(type, propsOrChildren, children) {
  16765. const l = arguments.length;
  16766. if (l === 2) {
  16767. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(propsOrChildren) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(propsOrChildren)) {
  16768. // single vnode without props
  16769. if (isVNode(propsOrChildren)) {
  16770. return createVNode(type, null, [propsOrChildren]);
  16771. }
  16772. // props without children
  16773. return createVNode(type, propsOrChildren);
  16774. }
  16775. else {
  16776. // omit props
  16777. return createVNode(type, null, propsOrChildren);
  16778. }
  16779. }
  16780. else {
  16781. if (l > 3) {
  16782. children = Array.prototype.slice.call(arguments, 2);
  16783. }
  16784. else if (l === 3 && isVNode(children)) {
  16785. children = [children];
  16786. }
  16787. return createVNode(type, propsOrChildren, children);
  16788. }
  16789. }
  16790. const ssrContextKey = Symbol(( true) ? `ssrContext` : 0);
  16791. const useSSRContext = () => {
  16792. {
  16793. const ctx = inject(ssrContextKey);
  16794. if (!ctx) {
  16795. warn(`Server rendering context not provided. Make sure to only call ` +
  16796. `useSSRContext() conditionally in the server build.`);
  16797. }
  16798. return ctx;
  16799. }
  16800. };
  16801. function isShallow(value) {
  16802. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  16803. }
  16804. function initCustomFormatter() {
  16805. /* eslint-disable no-restricted-globals */
  16806. if ( false || typeof window === 'undefined') {
  16807. return;
  16808. }
  16809. const vueStyle = { style: 'color:#3ba776' };
  16810. const numberStyle = { style: 'color:#0b1bc9' };
  16811. const stringStyle = { style: 'color:#b62e24' };
  16812. const keywordStyle = { style: 'color:#9d288c' };
  16813. // custom formatter for Chrome
  16814. // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html
  16815. const formatter = {
  16816. header(obj) {
  16817. // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup
  16818. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  16819. return null;
  16820. }
  16821. if (obj.__isVue) {
  16822. return ['div', vueStyle, `VueInstance`];
  16823. }
  16824. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(obj)) {
  16825. return [
  16826. 'div',
  16827. {},
  16828. ['span', vueStyle, genRefFlag(obj)],
  16829. '<',
  16830. formatValue(obj.value),
  16831. `>`
  16832. ];
  16833. }
  16834. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(obj)) {
  16835. return [
  16836. 'div',
  16837. {},
  16838. ['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'],
  16839. '<',
  16840. formatValue(obj),
  16841. `>${(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj) ? ` (readonly)` : ``}`
  16842. ];
  16843. }
  16844. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj)) {
  16845. return [
  16846. 'div',
  16847. {},
  16848. ['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'],
  16849. '<',
  16850. formatValue(obj),
  16851. '>'
  16852. ];
  16853. }
  16854. return null;
  16855. },
  16856. hasBody(obj) {
  16857. return obj && obj.__isVue;
  16858. },
  16859. body(obj) {
  16860. if (obj && obj.__isVue) {
  16861. return [
  16862. 'div',
  16863. {},
  16864. ...formatInstance(obj.$)
  16865. ];
  16866. }
  16867. }
  16868. };
  16869. function formatInstance(instance) {
  16870. const blocks = [];
  16871. if (instance.type.props && instance.props) {
  16872. blocks.push(createInstanceBlock('props', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.props)));
  16873. }
  16874. if (instance.setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16875. blocks.push(createInstanceBlock('setup', instance.setupState));
  16876. }
  16877. if (instance.data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16878. blocks.push(createInstanceBlock('data', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.data)));
  16879. }
  16880. const computed = extractKeys(instance, 'computed');
  16881. if (computed) {
  16882. blocks.push(createInstanceBlock('computed', computed));
  16883. }
  16884. const injected = extractKeys(instance, 'inject');
  16885. if (injected) {
  16886. blocks.push(createInstanceBlock('injected', injected));
  16887. }
  16888. blocks.push([
  16889. 'div',
  16890. {},
  16891. [
  16892. 'span',
  16893. {
  16894. style: keywordStyle.style + ';opacity:0.66'
  16895. },
  16896. '$ (internal): '
  16897. ],
  16898. ['object', { object: instance }]
  16899. ]);
  16900. return blocks;
  16901. }
  16902. function createInstanceBlock(type, target) {
  16903. target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, target);
  16904. if (!Object.keys(target).length) {
  16905. return ['span', {}];
  16906. }
  16907. return [
  16908. 'div',
  16909. { style: 'line-height:1.25em;margin-bottom:0.6em' },
  16910. [
  16911. 'div',
  16912. {
  16913. style: 'color:#476582'
  16914. },
  16915. type
  16916. ],
  16917. [
  16918. 'div',
  16919. {
  16920. style: 'padding-left:1.25em'
  16921. },
  16922. ...Object.keys(target).map(key => {
  16923. return [
  16924. 'div',
  16925. {},
  16926. ['span', keywordStyle, key + ': '],
  16927. formatValue(target[key], false)
  16928. ];
  16929. })
  16930. ]
  16931. ];
  16932. }
  16933. function formatValue(v, asRaw = true) {
  16934. if (typeof v === 'number') {
  16935. return ['span', numberStyle, v];
  16936. }
  16937. else if (typeof v === 'string') {
  16938. return ['span', stringStyle, JSON.stringify(v)];
  16939. }
  16940. else if (typeof v === 'boolean') {
  16941. return ['span', keywordStyle, v];
  16942. }
  16943. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(v)) {
  16944. return ['object', { object: asRaw ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(v) : v }];
  16945. }
  16946. else {
  16947. return ['span', stringStyle, String(v)];
  16948. }
  16949. }
  16950. function extractKeys(instance, type) {
  16951. const Comp = instance.type;
  16952. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Comp)) {
  16953. return;
  16954. }
  16955. const extracted = {};
  16956. for (const key in instance.ctx) {
  16957. if (isKeyOfType(Comp, key, type)) {
  16958. extracted[key] = instance.ctx[key];
  16959. }
  16960. }
  16961. return extracted;
  16962. }
  16963. function isKeyOfType(Comp, key, type) {
  16964. const opts = Comp[type];
  16965. if (((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opts) && opts.includes(key)) ||
  16966. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opts) && key in opts)) {
  16967. return true;
  16968. }
  16969. if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
  16970. return true;
  16971. }
  16972. if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) {
  16973. return true;
  16974. }
  16975. }
  16976. function genRefFlag(v) {
  16977. if (isShallow(v)) {
  16978. return `ShallowRef`;
  16979. }
  16980. if (v.effect) {
  16981. return `ComputedRef`;
  16982. }
  16983. return `Ref`;
  16984. }
  16985. if (window.devtoolsFormatters) {
  16986. window.devtoolsFormatters.push(formatter);
  16987. }
  16988. else {
  16989. window.devtoolsFormatters = [formatter];
  16990. }
  16991. }
  16992. function withMemo(memo, render, cache, index) {
  16993. const cached = cache[index];
  16994. if (cached && isMemoSame(cached, memo)) {
  16995. return cached;
  16996. }
  16997. const ret = render();
  16998. // shallow clone
  16999. ret.memo = memo.slice();
  17000. return (cache[index] = ret);
  17001. }
  17002. function isMemoSame(cached, memo) {
  17003. const prev = cached.memo;
  17004. if (prev.length != memo.length) {
  17005. return false;
  17006. }
  17007. for (let i = 0; i < prev.length; i++) {
  17008. if (prev[i] !== memo[i]) {
  17009. return false;
  17010. }
  17011. }
  17012. // make sure to let parent block track it when returning cached
  17013. if (isBlockTreeEnabled > 0 && currentBlock) {
  17014. currentBlock.push(cached);
  17015. }
  17016. return true;
  17017. }
  17018. // Core API ------------------------------------------------------------------
  17019. const version = "3.2.31";
  17020. const _ssrUtils = {
  17021. createComponentInstance,
  17022. setupComponent,
  17023. renderComponentRoot,
  17024. setCurrentRenderingInstance,
  17025. isVNode,
  17026. normalizeVNode
  17027. };
  17028. /**
  17029. * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
  17030. * @internal
  17031. */
  17032. const ssrUtils = (_ssrUtils );
  17033. /**
  17034. * @internal only exposed in compat builds
  17035. */
  17036. const resolveFilter = null;
  17037. /**
  17038. * @internal only exposed in compat builds.
  17039. */
  17040. const compatUtils = (null);
  17041. /***/ }),
  17042. /***/ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js":
  17043. /*!***********************************************************************!*\
  17044. !*** ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js ***!
  17045. \***********************************************************************/
  17046. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  17047. "use strict";
  17048. __webpack_require__.r(__webpack_exports__);
  17049. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  17050. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  17051. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Comment),
  17052. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  17053. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  17054. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  17055. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  17056. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static),
  17057. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  17058. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  17059. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Text),
  17060. /* harmony export */ "Transition": () => (/* binding */ Transition),
  17061. /* harmony export */ "TransitionGroup": () => (/* binding */ TransitionGroup),
  17062. /* harmony export */ "VueElement": () => (/* binding */ VueElement),
  17063. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  17064. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  17065. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.camelize),
  17066. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  17067. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  17068. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  17069. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.computed),
  17070. /* harmony export */ "createApp": () => (/* binding */ createApp),
  17071. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  17072. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  17073. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  17074. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  17075. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  17076. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  17077. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  17078. /* harmony export */ "createSSRApp": () => (/* binding */ createSSRApp),
  17079. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  17080. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  17081. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  17082. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  17083. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.customRef),
  17084. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  17085. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  17086. /* harmony export */ "defineCustomElement": () => (/* binding */ defineCustomElement),
  17087. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  17088. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  17089. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  17090. /* harmony export */ "defineSSRCustomElement": () => (/* binding */ defineSSRCustomElement),
  17091. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.devtools),
  17092. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effect),
  17093. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  17094. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  17095. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  17096. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  17097. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  17098. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h),
  17099. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.handleError),
  17100. /* harmony export */ "hydrate": () => (/* binding */ hydrate),
  17101. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  17102. /* harmony export */ "initDirectivesForSSR": () => (/* binding */ initDirectivesForSSR),
  17103. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.inject),
  17104. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  17105. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  17106. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  17107. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  17108. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRef),
  17109. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  17110. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  17111. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  17112. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  17113. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  17114. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  17115. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  17116. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  17117. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  17118. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  17119. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  17120. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  17121. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  17122. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  17123. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  17124. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  17125. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  17126. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  17127. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  17128. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  17129. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  17130. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  17131. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  17132. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  17133. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  17134. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.provide),
  17135. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  17136. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  17137. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  17138. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.reactive),
  17139. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.readonly),
  17140. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ref),
  17141. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  17142. /* harmony export */ "render": () => (/* binding */ render),
  17143. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderList),
  17144. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  17145. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  17146. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  17147. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  17148. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  17149. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  17150. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  17151. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  17152. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  17153. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  17154. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  17155. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  17156. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  17157. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  17158. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.stop),
  17159. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  17160. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  17161. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  17162. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  17163. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRef),
  17164. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  17165. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  17166. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  17167. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.unref),
  17168. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  17169. /* harmony export */ "useCssModule": () => (/* binding */ useCssModule),
  17170. /* harmony export */ "useCssVars": () => (/* binding */ useCssVars),
  17171. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  17172. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  17173. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  17174. /* harmony export */ "vModelCheckbox": () => (/* binding */ vModelCheckbox),
  17175. /* harmony export */ "vModelDynamic": () => (/* binding */ vModelDynamic),
  17176. /* harmony export */ "vModelRadio": () => (/* binding */ vModelRadio),
  17177. /* harmony export */ "vModelSelect": () => (/* binding */ vModelSelect),
  17178. /* harmony export */ "vModelText": () => (/* binding */ vModelText),
  17179. /* harmony export */ "vShow": () => (/* binding */ vShow),
  17180. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.version),
  17181. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn),
  17182. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watch),
  17183. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  17184. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  17185. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  17186. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  17187. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  17188. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  17189. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  17190. /* harmony export */ "withKeys": () => (/* binding */ withKeys),
  17191. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  17192. /* harmony export */ "withModifiers": () => (/* binding */ withModifiers),
  17193. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  17194. /* harmony export */ });
  17195. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  17196. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  17197. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  17198. const svgNS = 'http://www.w3.org/2000/svg';
  17199. const doc = (typeof document !== 'undefined' ? document : null);
  17200. const templateContainer = doc && doc.createElement('template');
  17201. const nodeOps = {
  17202. insert: (child, parent, anchor) => {
  17203. parent.insertBefore(child, anchor || null);
  17204. },
  17205. remove: child => {
  17206. const parent = child.parentNode;
  17207. if (parent) {
  17208. parent.removeChild(child);
  17209. }
  17210. },
  17211. createElement: (tag, isSVG, is, props) => {
  17212. const el = isSVG
  17213. ? doc.createElementNS(svgNS, tag)
  17214. : doc.createElement(tag, is ? { is } : undefined);
  17215. if (tag === 'select' && props && props.multiple != null) {
  17216. el.setAttribute('multiple', props.multiple);
  17217. }
  17218. return el;
  17219. },
  17220. createText: text => doc.createTextNode(text),
  17221. createComment: text => doc.createComment(text),
  17222. setText: (node, text) => {
  17223. node.nodeValue = text;
  17224. },
  17225. setElementText: (el, text) => {
  17226. el.textContent = text;
  17227. },
  17228. parentNode: node => node.parentNode,
  17229. nextSibling: node => node.nextSibling,
  17230. querySelector: selector => doc.querySelector(selector),
  17231. setScopeId(el, id) {
  17232. el.setAttribute(id, '');
  17233. },
  17234. cloneNode(el) {
  17235. const cloned = el.cloneNode(true);
  17236. // #3072
  17237. // - in `patchDOMProp`, we store the actual value in the `el._value` property.
  17238. // - normally, elements using `:value` bindings will not be hoisted, but if
  17239. // the bound value is a constant, e.g. `:value="true"` - they do get
  17240. // hoisted.
  17241. // - in production, hoisted nodes are cloned when subsequent inserts, but
  17242. // cloneNode() does not copy the custom property we attached.
  17243. // - This may need to account for other custom DOM properties we attach to
  17244. // elements in addition to `_value` in the future.
  17245. if (`_value` in el) {
  17246. cloned._value = el._value;
  17247. }
  17248. return cloned;
  17249. },
  17250. // __UNSAFE__
  17251. // Reason: innerHTML.
  17252. // Static content here can only come from compiled templates.
  17253. // As long as the user only uses trusted templates, this is safe.
  17254. insertStaticContent(content, parent, anchor, isSVG, start, end) {
  17255. // <parent> before | first ... last | anchor </parent>
  17256. const before = anchor ? anchor.previousSibling : parent.lastChild;
  17257. // #5308 can only take cached path if:
  17258. // - has a single root node
  17259. // - nextSibling info is still available
  17260. if (start && (start === end || start.nextSibling)) {
  17261. // cached
  17262. while (true) {
  17263. parent.insertBefore(start.cloneNode(true), anchor);
  17264. if (start === end || !(start = start.nextSibling))
  17265. break;
  17266. }
  17267. }
  17268. else {
  17269. // fresh insert
  17270. templateContainer.innerHTML = isSVG ? `<svg>${content}</svg>` : content;
  17271. const template = templateContainer.content;
  17272. if (isSVG) {
  17273. // remove outer svg wrapper
  17274. const wrapper = template.firstChild;
  17275. while (wrapper.firstChild) {
  17276. template.appendChild(wrapper.firstChild);
  17277. }
  17278. template.removeChild(wrapper);
  17279. }
  17280. parent.insertBefore(template, anchor);
  17281. }
  17282. return [
  17283. // first
  17284. before ? before.nextSibling : parent.firstChild,
  17285. // last
  17286. anchor ? anchor.previousSibling : parent.lastChild
  17287. ];
  17288. }
  17289. };
  17290. // compiler should normalize class + :class bindings on the same element
  17291. // into a single binding ['staticClass', dynamic]
  17292. function patchClass(el, value, isSVG) {
  17293. // directly setting className should be faster than setAttribute in theory
  17294. // if this is an element during a transition, take the temporary transition
  17295. // classes into account.
  17296. const transitionClasses = el._vtc;
  17297. if (transitionClasses) {
  17298. value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' ');
  17299. }
  17300. if (value == null) {
  17301. el.removeAttribute('class');
  17302. }
  17303. else if (isSVG) {
  17304. el.setAttribute('class', value);
  17305. }
  17306. else {
  17307. el.className = value;
  17308. }
  17309. }
  17310. function patchStyle(el, prev, next) {
  17311. const style = el.style;
  17312. const isCssString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(next);
  17313. if (next && !isCssString) {
  17314. for (const key in next) {
  17315. setStyle(style, key, next[key]);
  17316. }
  17317. if (prev && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(prev)) {
  17318. for (const key in prev) {
  17319. if (next[key] == null) {
  17320. setStyle(style, key, '');
  17321. }
  17322. }
  17323. }
  17324. }
  17325. else {
  17326. const currentDisplay = style.display;
  17327. if (isCssString) {
  17328. if (prev !== next) {
  17329. style.cssText = next;
  17330. }
  17331. }
  17332. else if (prev) {
  17333. el.removeAttribute('style');
  17334. }
  17335. // indicates that the `display` of the element is controlled by `v-show`,
  17336. // so we always keep the current `display` value regardless of the `style`
  17337. // value, thus handing over control to `v-show`.
  17338. if ('_vod' in el) {
  17339. style.display = currentDisplay;
  17340. }
  17341. }
  17342. }
  17343. const importantRE = /\s*!important$/;
  17344. function setStyle(style, name, val) {
  17345. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(val)) {
  17346. val.forEach(v => setStyle(style, name, v));
  17347. }
  17348. else {
  17349. if (name.startsWith('--')) {
  17350. // custom property definition
  17351. style.setProperty(name, val);
  17352. }
  17353. else {
  17354. const prefixed = autoPrefix(style, name);
  17355. if (importantRE.test(val)) {
  17356. // !important
  17357. style.setProperty((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(prefixed), val.replace(importantRE, ''), 'important');
  17358. }
  17359. else {
  17360. style[prefixed] = val;
  17361. }
  17362. }
  17363. }
  17364. }
  17365. const prefixes = ['Webkit', 'Moz', 'ms'];
  17366. const prefixCache = {};
  17367. function autoPrefix(style, rawName) {
  17368. const cached = prefixCache[rawName];
  17369. if (cached) {
  17370. return cached;
  17371. }
  17372. let name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(rawName);
  17373. if (name !== 'filter' && name in style) {
  17374. return (prefixCache[rawName] = name);
  17375. }
  17376. name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(name);
  17377. for (let i = 0; i < prefixes.length; i++) {
  17378. const prefixed = prefixes[i] + name;
  17379. if (prefixed in style) {
  17380. return (prefixCache[rawName] = prefixed);
  17381. }
  17382. }
  17383. return rawName;
  17384. }
  17385. const xlinkNS = 'http://www.w3.org/1999/xlink';
  17386. function patchAttr(el, key, value, isSVG, instance) {
  17387. if (isSVG && key.startsWith('xlink:')) {
  17388. if (value == null) {
  17389. el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
  17390. }
  17391. else {
  17392. el.setAttributeNS(xlinkNS, key, value);
  17393. }
  17394. }
  17395. else {
  17396. // note we are only checking boolean attributes that don't have a
  17397. // corresponding dom prop of the same name here.
  17398. const isBoolean = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSpecialBooleanAttr)(key);
  17399. if (value == null || (isBoolean && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value))) {
  17400. el.removeAttribute(key);
  17401. }
  17402. else {
  17403. el.setAttribute(key, isBoolean ? '' : value);
  17404. }
  17405. }
  17406. }
  17407. // __UNSAFE__
  17408. // functions. The user is responsible for using them with only trusted content.
  17409. function patchDOMProp(el, key, value,
  17410. // the following args are passed only due to potential innerHTML/textContent
  17411. // overriding existing VNodes, in which case the old tree must be properly
  17412. // unmounted.
  17413. prevChildren, parentComponent, parentSuspense, unmountChildren) {
  17414. if (key === 'innerHTML' || key === 'textContent') {
  17415. if (prevChildren) {
  17416. unmountChildren(prevChildren, parentComponent, parentSuspense);
  17417. }
  17418. el[key] = value == null ? '' : value;
  17419. return;
  17420. }
  17421. if (key === 'value' &&
  17422. el.tagName !== 'PROGRESS' &&
  17423. // custom elements may use _value internally
  17424. !el.tagName.includes('-')) {
  17425. // store value as _value as well since
  17426. // non-string values will be stringified.
  17427. el._value = value;
  17428. const newValue = value == null ? '' : value;
  17429. if (el.value !== newValue ||
  17430. // #4956: always set for OPTION elements because its value falls back to
  17431. // textContent if no value attribute is present. And setting .value for
  17432. // OPTION has no side effect
  17433. el.tagName === 'OPTION') {
  17434. el.value = newValue;
  17435. }
  17436. if (value == null) {
  17437. el.removeAttribute(key);
  17438. }
  17439. return;
  17440. }
  17441. if (value === '' || value == null) {
  17442. const type = typeof el[key];
  17443. if (type === 'boolean') {
  17444. // e.g. <select multiple> compiles to { multiple: '' }
  17445. el[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value);
  17446. return;
  17447. }
  17448. else if (value == null && type === 'string') {
  17449. // e.g. <div :id="null">
  17450. el[key] = '';
  17451. el.removeAttribute(key);
  17452. return;
  17453. }
  17454. else if (type === 'number') {
  17455. // e.g. <img :width="null">
  17456. // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error
  17457. try {
  17458. el[key] = 0;
  17459. }
  17460. catch (_a) { }
  17461. el.removeAttribute(key);
  17462. return;
  17463. }
  17464. }
  17465. // some properties perform value validation and throw
  17466. try {
  17467. el[key] = value;
  17468. }
  17469. catch (e) {
  17470. if ((true)) {
  17471. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
  17472. `value ${value} is invalid.`, e);
  17473. }
  17474. }
  17475. }
  17476. // Async edge case fix requires storing an event listener's attach timestamp.
  17477. let _getNow = Date.now;
  17478. let skipTimestampCheck = false;
  17479. if (typeof window !== 'undefined') {
  17480. // Determine what event timestamp the browser is using. Annoyingly, the
  17481. // timestamp can either be hi-res (relative to page load) or low-res
  17482. // (relative to UNIX epoch), so in order to compare time we have to use the
  17483. // same timestamp type when saving the flush timestamp.
  17484. if (_getNow() > document.createEvent('Event').timeStamp) {
  17485. // if the low-res timestamp which is bigger than the event timestamp
  17486. // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
  17487. // and we need to use the hi-res version for event listeners as well.
  17488. _getNow = () => performance.now();
  17489. }
  17490. // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
  17491. // and does not fire microtasks in between event propagation, so safe to exclude.
  17492. const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i);
  17493. skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53);
  17494. }
  17495. // To avoid the overhead of repeatedly calling performance.now(), we cache
  17496. // and use the same timestamp for all event listeners attached in the same tick.
  17497. let cachedNow = 0;
  17498. const p = Promise.resolve();
  17499. const reset = () => {
  17500. cachedNow = 0;
  17501. };
  17502. const getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow()));
  17503. function addEventListener(el, event, handler, options) {
  17504. el.addEventListener(event, handler, options);
  17505. }
  17506. function removeEventListener(el, event, handler, options) {
  17507. el.removeEventListener(event, handler, options);
  17508. }
  17509. function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
  17510. // vei = vue event invokers
  17511. const invokers = el._vei || (el._vei = {});
  17512. const existingInvoker = invokers[rawName];
  17513. if (nextValue && existingInvoker) {
  17514. // patch
  17515. existingInvoker.value = nextValue;
  17516. }
  17517. else {
  17518. const [name, options] = parseName(rawName);
  17519. if (nextValue) {
  17520. // add
  17521. const invoker = (invokers[rawName] = createInvoker(nextValue, instance));
  17522. addEventListener(el, name, invoker, options);
  17523. }
  17524. else if (existingInvoker) {
  17525. // remove
  17526. removeEventListener(el, name, existingInvoker, options);
  17527. invokers[rawName] = undefined;
  17528. }
  17529. }
  17530. }
  17531. const optionsModifierRE = /(?:Once|Passive|Capture)$/;
  17532. function parseName(name) {
  17533. let options;
  17534. if (optionsModifierRE.test(name)) {
  17535. options = {};
  17536. let m;
  17537. while ((m = name.match(optionsModifierRE))) {
  17538. name = name.slice(0, name.length - m[0].length);
  17539. options[m[0].toLowerCase()] = true;
  17540. }
  17541. }
  17542. return [(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(name.slice(2)), options];
  17543. }
  17544. function createInvoker(initialValue, instance) {
  17545. const invoker = (e) => {
  17546. // async edge case #6566: inner click event triggers patch, event handler
  17547. // attached to outer element during patch, and triggered again. This
  17548. // happens because browsers fire microtask ticks between event propagation.
  17549. // the solution is simple: we save the timestamp when a handler is attached,
  17550. // and the handler would only fire if the event passed to it was fired
  17551. // AFTER it was attached.
  17552. const timeStamp = e.timeStamp || _getNow();
  17553. if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
  17554. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
  17555. }
  17556. };
  17557. invoker.value = initialValue;
  17558. invoker.attached = getNow();
  17559. return invoker;
  17560. }
  17561. function patchStopImmediatePropagation(e, value) {
  17562. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  17563. const originalStop = e.stopImmediatePropagation;
  17564. e.stopImmediatePropagation = () => {
  17565. originalStop.call(e);
  17566. e._stopped = true;
  17567. };
  17568. return value.map(fn => (e) => !e._stopped && fn && fn(e));
  17569. }
  17570. else {
  17571. return value;
  17572. }
  17573. }
  17574. const nativeOnRE = /^on[a-z]/;
  17575. const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
  17576. if (key === 'class') {
  17577. patchClass(el, nextValue, isSVG);
  17578. }
  17579. else if (key === 'style') {
  17580. patchStyle(el, prevValue, nextValue);
  17581. }
  17582. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  17583. // ignore v-model listeners
  17584. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  17585. patchEvent(el, key, prevValue, nextValue, parentComponent);
  17586. }
  17587. }
  17588. else if (key[0] === '.'
  17589. ? ((key = key.slice(1)), true)
  17590. : key[0] === '^'
  17591. ? ((key = key.slice(1)), false)
  17592. : shouldSetAsProp(el, key, nextValue, isSVG)) {
  17593. patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren);
  17594. }
  17595. else {
  17596. // special case for <input v-model type="checkbox"> with
  17597. // :true-value & :false-value
  17598. // store value as dom properties since non-string values will be
  17599. // stringified.
  17600. if (key === 'true-value') {
  17601. el._trueValue = nextValue;
  17602. }
  17603. else if (key === 'false-value') {
  17604. el._falseValue = nextValue;
  17605. }
  17606. patchAttr(el, key, nextValue, isSVG);
  17607. }
  17608. };
  17609. function shouldSetAsProp(el, key, value, isSVG) {
  17610. if (isSVG) {
  17611. // most keys must be set as attribute on svg elements to work
  17612. // ...except innerHTML & textContent
  17613. if (key === 'innerHTML' || key === 'textContent') {
  17614. return true;
  17615. }
  17616. // or native onclick with function values
  17617. if (key in el && nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  17618. return true;
  17619. }
  17620. return false;
  17621. }
  17622. // spellcheck and draggable are numerated attrs, however their
  17623. // corresponding DOM properties are actually booleans - this leads to
  17624. // setting it with a string "false" value leading it to be coerced to
  17625. // `true`, so we need to always treat them as attributes.
  17626. // Note that `contentEditable` doesn't have this problem: its DOM
  17627. // property is also enumerated string values.
  17628. if (key === 'spellcheck' || key === 'draggable') {
  17629. return false;
  17630. }
  17631. // #1787, #2840 form property on form elements is readonly and must be set as
  17632. // attribute.
  17633. if (key === 'form') {
  17634. return false;
  17635. }
  17636. // #1526 <input list> must be set as attribute
  17637. if (key === 'list' && el.tagName === 'INPUT') {
  17638. return false;
  17639. }
  17640. // #2766 <textarea type> must be set as attribute
  17641. if (key === 'type' && el.tagName === 'TEXTAREA') {
  17642. return false;
  17643. }
  17644. // native onclick with string value, must be set as attribute
  17645. if (nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  17646. return false;
  17647. }
  17648. return key in el;
  17649. }
  17650. function defineCustomElement(options, hydate) {
  17651. const Comp = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent)(options);
  17652. class VueCustomElement extends VueElement {
  17653. constructor(initialProps) {
  17654. super(Comp, initialProps, hydate);
  17655. }
  17656. }
  17657. VueCustomElement.def = Comp;
  17658. return VueCustomElement;
  17659. }
  17660. const defineSSRCustomElement = ((options) => {
  17661. // @ts-ignore
  17662. return defineCustomElement(options, hydrate);
  17663. });
  17664. const BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class {
  17665. });
  17666. class VueElement extends BaseClass {
  17667. constructor(_def, _props = {}, hydrate) {
  17668. super();
  17669. this._def = _def;
  17670. this._props = _props;
  17671. /**
  17672. * @internal
  17673. */
  17674. this._instance = null;
  17675. this._connected = false;
  17676. this._resolved = false;
  17677. this._numberProps = null;
  17678. if (this.shadowRoot && hydrate) {
  17679. hydrate(this._createVNode(), this.shadowRoot);
  17680. }
  17681. else {
  17682. if (( true) && this.shadowRoot) {
  17683. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Custom element has pre-rendered declarative shadow root but is not ` +
  17684. `defined as hydratable. Use \`defineSSRCustomElement\`.`);
  17685. }
  17686. this.attachShadow({ mode: 'open' });
  17687. }
  17688. }
  17689. connectedCallback() {
  17690. this._connected = true;
  17691. if (!this._instance) {
  17692. this._resolveDef();
  17693. }
  17694. }
  17695. disconnectedCallback() {
  17696. this._connected = false;
  17697. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => {
  17698. if (!this._connected) {
  17699. render(null, this.shadowRoot);
  17700. this._instance = null;
  17701. }
  17702. });
  17703. }
  17704. /**
  17705. * resolve inner component definition (handle possible async component)
  17706. */
  17707. _resolveDef() {
  17708. if (this._resolved) {
  17709. return;
  17710. }
  17711. this._resolved = true;
  17712. // set initial attrs
  17713. for (let i = 0; i < this.attributes.length; i++) {
  17714. this._setAttr(this.attributes[i].name);
  17715. }
  17716. // watch future attr changes
  17717. new MutationObserver(mutations => {
  17718. for (const m of mutations) {
  17719. this._setAttr(m.attributeName);
  17720. }
  17721. }).observe(this, { attributes: true });
  17722. const resolve = (def) => {
  17723. const { props, styles } = def;
  17724. const hasOptions = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(props);
  17725. const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [];
  17726. // cast Number-type props set before resolve
  17727. let numberProps;
  17728. if (hasOptions) {
  17729. for (const key in this._props) {
  17730. const opt = props[key];
  17731. if (opt === Number || (opt && opt.type === Number)) {
  17732. this._props[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(this._props[key]);
  17733. (numberProps || (numberProps = Object.create(null)))[key] = true;
  17734. }
  17735. }
  17736. }
  17737. this._numberProps = numberProps;
  17738. // check if there are props set pre-upgrade or connect
  17739. for (const key of Object.keys(this)) {
  17740. if (key[0] !== '_') {
  17741. this._setProp(key, this[key], true, false);
  17742. }
  17743. }
  17744. // defining getter/setters on prototype
  17745. for (const key of rawKeys.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)) {
  17746. Object.defineProperty(this, key, {
  17747. get() {
  17748. return this._getProp(key);
  17749. },
  17750. set(val) {
  17751. this._setProp(key, val);
  17752. }
  17753. });
  17754. }
  17755. // apply CSS
  17756. this._applyStyles(styles);
  17757. // initial render
  17758. this._update();
  17759. };
  17760. const asyncDef = this._def.__asyncLoader;
  17761. if (asyncDef) {
  17762. asyncDef().then(resolve);
  17763. }
  17764. else {
  17765. resolve(this._def);
  17766. }
  17767. }
  17768. _setAttr(key) {
  17769. let value = this.getAttribute(key);
  17770. if (this._numberProps && this._numberProps[key]) {
  17771. value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(value);
  17772. }
  17773. this._setProp((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key), value, false);
  17774. }
  17775. /**
  17776. * @internal
  17777. */
  17778. _getProp(key) {
  17779. return this._props[key];
  17780. }
  17781. /**
  17782. * @internal
  17783. */
  17784. _setProp(key, val, shouldReflect = true, shouldUpdate = true) {
  17785. if (val !== this._props[key]) {
  17786. this._props[key] = val;
  17787. if (shouldUpdate && this._instance) {
  17788. this._update();
  17789. }
  17790. // reflect
  17791. if (shouldReflect) {
  17792. if (val === true) {
  17793. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), '');
  17794. }
  17795. else if (typeof val === 'string' || typeof val === 'number') {
  17796. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), val + '');
  17797. }
  17798. else if (!val) {
  17799. this.removeAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key));
  17800. }
  17801. }
  17802. }
  17803. }
  17804. _update() {
  17805. render(this._createVNode(), this.shadowRoot);
  17806. }
  17807. _createVNode() {
  17808. const vnode = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(this._def, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, this._props));
  17809. if (!this._instance) {
  17810. vnode.ce = instance => {
  17811. this._instance = instance;
  17812. instance.isCE = true;
  17813. // HMR
  17814. if ((true)) {
  17815. instance.ceReload = newStyles => {
  17816. // always reset styles
  17817. if (this._styles) {
  17818. this._styles.forEach(s => this.shadowRoot.removeChild(s));
  17819. this._styles.length = 0;
  17820. }
  17821. this._applyStyles(newStyles);
  17822. // if this is an async component, ceReload is called from the inner
  17823. // component so no need to reload the async wrapper
  17824. if (!this._def.__asyncLoader) {
  17825. // reload
  17826. this._instance = null;
  17827. this._update();
  17828. }
  17829. };
  17830. }
  17831. // intercept emit
  17832. instance.emit = (event, ...args) => {
  17833. this.dispatchEvent(new CustomEvent(event, {
  17834. detail: args
  17835. }));
  17836. };
  17837. // locate nearest Vue custom element parent for provide/inject
  17838. let parent = this;
  17839. while ((parent =
  17840. parent && (parent.parentNode || parent.host))) {
  17841. if (parent instanceof VueElement) {
  17842. instance.parent = parent._instance;
  17843. break;
  17844. }
  17845. }
  17846. };
  17847. }
  17848. return vnode;
  17849. }
  17850. _applyStyles(styles) {
  17851. if (styles) {
  17852. styles.forEach(css => {
  17853. const s = document.createElement('style');
  17854. s.textContent = css;
  17855. this.shadowRoot.appendChild(s);
  17856. // record for HMR
  17857. if ((true)) {
  17858. (this._styles || (this._styles = [])).push(s);
  17859. }
  17860. });
  17861. }
  17862. }
  17863. }
  17864. function useCssModule(name = '$style') {
  17865. /* istanbul ignore else */
  17866. {
  17867. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17868. if (!instance) {
  17869. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssModule must be called inside setup()`);
  17870. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17871. }
  17872. const modules = instance.type.__cssModules;
  17873. if (!modules) {
  17874. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS modules injected.`);
  17875. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17876. }
  17877. const mod = modules[name];
  17878. if (!mod) {
  17879. ( true) &&
  17880. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS module named "${name}".`);
  17881. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17882. }
  17883. return mod;
  17884. }
  17885. }
  17886. /**
  17887. * Runtime helper for SFC's CSS variable injection feature.
  17888. * @private
  17889. */
  17890. function useCssVars(getter) {
  17891. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17892. /* istanbul ignore next */
  17893. if (!instance) {
  17894. ( true) &&
  17895. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssVars is called without current active component instance.`);
  17896. return;
  17897. }
  17898. const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy));
  17899. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect)(setVars);
  17900. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => {
  17901. const ob = new MutationObserver(setVars);
  17902. ob.observe(instance.subTree.el.parentNode, { childList: true });
  17903. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => ob.disconnect());
  17904. });
  17905. }
  17906. function setVarsOnVNode(vnode, vars) {
  17907. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  17908. const suspense = vnode.suspense;
  17909. vnode = suspense.activeBranch;
  17910. if (suspense.pendingBranch && !suspense.isHydrating) {
  17911. suspense.effects.push(() => {
  17912. setVarsOnVNode(suspense.activeBranch, vars);
  17913. });
  17914. }
  17915. }
  17916. // drill down HOCs until it's a non-component vnode
  17917. while (vnode.component) {
  17918. vnode = vnode.component.subTree;
  17919. }
  17920. if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) {
  17921. setVarsOnNode(vnode.el, vars);
  17922. }
  17923. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment) {
  17924. vnode.children.forEach(c => setVarsOnVNode(c, vars));
  17925. }
  17926. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static) {
  17927. let { el, anchor } = vnode;
  17928. while (el) {
  17929. setVarsOnNode(el, vars);
  17930. if (el === anchor)
  17931. break;
  17932. el = el.nextSibling;
  17933. }
  17934. }
  17935. }
  17936. function setVarsOnNode(el, vars) {
  17937. if (el.nodeType === 1) {
  17938. const style = el.style;
  17939. for (const key in vars) {
  17940. style.setProperty(`--${key}`, vars[key]);
  17941. }
  17942. }
  17943. }
  17944. const TRANSITION = 'transition';
  17945. const ANIMATION = 'animation';
  17946. // DOM Transition is a higher-order-component based on the platform-agnostic
  17947. // base Transition component, with DOM-specific logic.
  17948. const Transition = (props, { slots }) => (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h)(_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition, resolveTransitionProps(props), slots);
  17949. Transition.displayName = 'Transition';
  17950. const DOMTransitionPropsValidators = {
  17951. name: String,
  17952. type: String,
  17953. css: {
  17954. type: Boolean,
  17955. default: true
  17956. },
  17957. duration: [String, Number, Object],
  17958. enterFromClass: String,
  17959. enterActiveClass: String,
  17960. enterToClass: String,
  17961. appearFromClass: String,
  17962. appearActiveClass: String,
  17963. appearToClass: String,
  17964. leaveFromClass: String,
  17965. leaveActiveClass: String,
  17966. leaveToClass: String
  17967. };
  17968. const TransitionPropsValidators = (Transition.props =
  17969. /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition.props, DOMTransitionPropsValidators));
  17970. /**
  17971. * #3227 Incoming hooks may be merged into arrays when wrapping Transition
  17972. * with custom HOCs.
  17973. */
  17974. const callHook = (hook, args = []) => {
  17975. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  17976. hook.forEach(h => h(...args));
  17977. }
  17978. else if (hook) {
  17979. hook(...args);
  17980. }
  17981. };
  17982. /**
  17983. * Check if a hook expects a callback (2nd arg), which means the user
  17984. * intends to explicitly control the end of the transition.
  17985. */
  17986. const hasExplicitCallback = (hook) => {
  17987. return hook
  17988. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  17989. ? hook.some(h => h.length > 1)
  17990. : hook.length > 1
  17991. : false;
  17992. };
  17993. function resolveTransitionProps(rawProps) {
  17994. const baseProps = {};
  17995. for (const key in rawProps) {
  17996. if (!(key in DOMTransitionPropsValidators)) {
  17997. baseProps[key] = rawProps[key];
  17998. }
  17999. }
  18000. if (rawProps.css === false) {
  18001. return baseProps;
  18002. }
  18003. const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
  18004. const durations = normalizeDuration(duration);
  18005. const enterDuration = durations && durations[0];
  18006. const leaveDuration = durations && durations[1];
  18007. const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
  18008. const finishEnter = (el, isAppear, done) => {
  18009. removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18010. removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
  18011. done && done();
  18012. };
  18013. const finishLeave = (el, done) => {
  18014. removeTransitionClass(el, leaveToClass);
  18015. removeTransitionClass(el, leaveActiveClass);
  18016. done && done();
  18017. };
  18018. const makeEnterHook = (isAppear) => {
  18019. return (el, done) => {
  18020. const hook = isAppear ? onAppear : onEnter;
  18021. const resolve = () => finishEnter(el, isAppear, done);
  18022. callHook(hook, [el, resolve]);
  18023. nextFrame(() => {
  18024. removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
  18025. addTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18026. if (!hasExplicitCallback(hook)) {
  18027. whenTransitionEnds(el, type, enterDuration, resolve);
  18028. }
  18029. });
  18030. };
  18031. };
  18032. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(baseProps, {
  18033. onBeforeEnter(el) {
  18034. callHook(onBeforeEnter, [el]);
  18035. addTransitionClass(el, enterFromClass);
  18036. addTransitionClass(el, enterActiveClass);
  18037. },
  18038. onBeforeAppear(el) {
  18039. callHook(onBeforeAppear, [el]);
  18040. addTransitionClass(el, appearFromClass);
  18041. addTransitionClass(el, appearActiveClass);
  18042. },
  18043. onEnter: makeEnterHook(false),
  18044. onAppear: makeEnterHook(true),
  18045. onLeave(el, done) {
  18046. const resolve = () => finishLeave(el, done);
  18047. addTransitionClass(el, leaveFromClass);
  18048. // force reflow so *-leave-from classes immediately take effect (#2593)
  18049. forceReflow();
  18050. addTransitionClass(el, leaveActiveClass);
  18051. nextFrame(() => {
  18052. removeTransitionClass(el, leaveFromClass);
  18053. addTransitionClass(el, leaveToClass);
  18054. if (!hasExplicitCallback(onLeave)) {
  18055. whenTransitionEnds(el, type, leaveDuration, resolve);
  18056. }
  18057. });
  18058. callHook(onLeave, [el, resolve]);
  18059. },
  18060. onEnterCancelled(el) {
  18061. finishEnter(el, false);
  18062. callHook(onEnterCancelled, [el]);
  18063. },
  18064. onAppearCancelled(el) {
  18065. finishEnter(el, true);
  18066. callHook(onAppearCancelled, [el]);
  18067. },
  18068. onLeaveCancelled(el) {
  18069. finishLeave(el);
  18070. callHook(onLeaveCancelled, [el]);
  18071. }
  18072. });
  18073. }
  18074. function normalizeDuration(duration) {
  18075. if (duration == null) {
  18076. return null;
  18077. }
  18078. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(duration)) {
  18079. return [NumberOf(duration.enter), NumberOf(duration.leave)];
  18080. }
  18081. else {
  18082. const n = NumberOf(duration);
  18083. return [n, n];
  18084. }
  18085. }
  18086. function NumberOf(val) {
  18087. const res = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(val);
  18088. if ((true))
  18089. validateDuration(res);
  18090. return res;
  18091. }
  18092. function validateDuration(val) {
  18093. if (typeof val !== 'number') {
  18094. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is not a valid number - ` +
  18095. `got ${JSON.stringify(val)}.`);
  18096. }
  18097. else if (isNaN(val)) {
  18098. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is NaN - ` +
  18099. 'the duration expression might be incorrect.');
  18100. }
  18101. }
  18102. function addTransitionClass(el, cls) {
  18103. cls.split(/\s+/).forEach(c => c && el.classList.add(c));
  18104. (el._vtc ||
  18105. (el._vtc = new Set())).add(cls);
  18106. }
  18107. function removeTransitionClass(el, cls) {
  18108. cls.split(/\s+/).forEach(c => c && el.classList.remove(c));
  18109. const { _vtc } = el;
  18110. if (_vtc) {
  18111. _vtc.delete(cls);
  18112. if (!_vtc.size) {
  18113. el._vtc = undefined;
  18114. }
  18115. }
  18116. }
  18117. function nextFrame(cb) {
  18118. requestAnimationFrame(() => {
  18119. requestAnimationFrame(cb);
  18120. });
  18121. }
  18122. let endId = 0;
  18123. function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
  18124. const id = (el._endId = ++endId);
  18125. const resolveIfNotStale = () => {
  18126. if (id === el._endId) {
  18127. resolve();
  18128. }
  18129. };
  18130. if (explicitTimeout) {
  18131. return setTimeout(resolveIfNotStale, explicitTimeout);
  18132. }
  18133. const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
  18134. if (!type) {
  18135. return resolve();
  18136. }
  18137. const endEvent = type + 'end';
  18138. let ended = 0;
  18139. const end = () => {
  18140. el.removeEventListener(endEvent, onEnd);
  18141. resolveIfNotStale();
  18142. };
  18143. const onEnd = (e) => {
  18144. if (e.target === el && ++ended >= propCount) {
  18145. end();
  18146. }
  18147. };
  18148. setTimeout(() => {
  18149. if (ended < propCount) {
  18150. end();
  18151. }
  18152. }, timeout + 1);
  18153. el.addEventListener(endEvent, onEnd);
  18154. }
  18155. function getTransitionInfo(el, expectedType) {
  18156. const styles = window.getComputedStyle(el);
  18157. // JSDOM may return undefined for transition properties
  18158. const getStyleProperties = (key) => (styles[key] || '').split(', ');
  18159. const transitionDelays = getStyleProperties(TRANSITION + 'Delay');
  18160. const transitionDurations = getStyleProperties(TRANSITION + 'Duration');
  18161. const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
  18162. const animationDelays = getStyleProperties(ANIMATION + 'Delay');
  18163. const animationDurations = getStyleProperties(ANIMATION + 'Duration');
  18164. const animationTimeout = getTimeout(animationDelays, animationDurations);
  18165. let type = null;
  18166. let timeout = 0;
  18167. let propCount = 0;
  18168. /* istanbul ignore if */
  18169. if (expectedType === TRANSITION) {
  18170. if (transitionTimeout > 0) {
  18171. type = TRANSITION;
  18172. timeout = transitionTimeout;
  18173. propCount = transitionDurations.length;
  18174. }
  18175. }
  18176. else if (expectedType === ANIMATION) {
  18177. if (animationTimeout > 0) {
  18178. type = ANIMATION;
  18179. timeout = animationTimeout;
  18180. propCount = animationDurations.length;
  18181. }
  18182. }
  18183. else {
  18184. timeout = Math.max(transitionTimeout, animationTimeout);
  18185. type =
  18186. timeout > 0
  18187. ? transitionTimeout > animationTimeout
  18188. ? TRANSITION
  18189. : ANIMATION
  18190. : null;
  18191. propCount = type
  18192. ? type === TRANSITION
  18193. ? transitionDurations.length
  18194. : animationDurations.length
  18195. : 0;
  18196. }
  18197. const hasTransform = type === TRANSITION &&
  18198. /\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']);
  18199. return {
  18200. type,
  18201. timeout,
  18202. propCount,
  18203. hasTransform
  18204. };
  18205. }
  18206. function getTimeout(delays, durations) {
  18207. while (delays.length < durations.length) {
  18208. delays = delays.concat(delays);
  18209. }
  18210. return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
  18211. }
  18212. // Old versions of Chromium (below 61.0.3163.100) formats floating pointer
  18213. // numbers in a locale-dependent way, using a comma instead of a dot.
  18214. // If comma is not replaced with a dot, the input will be rounded down
  18215. // (i.e. acting as a floor function) causing unexpected behaviors
  18216. function toMs(s) {
  18217. return Number(s.slice(0, -1).replace(',', '.')) * 1000;
  18218. }
  18219. // synchronously force layout to put elements into a certain state
  18220. function forceReflow() {
  18221. return document.body.offsetHeight;
  18222. }
  18223. const positionMap = new WeakMap();
  18224. const newPositionMap = new WeakMap();
  18225. const TransitionGroupImpl = {
  18226. name: 'TransitionGroup',
  18227. props: /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, TransitionPropsValidators, {
  18228. tag: String,
  18229. moveClass: String
  18230. }),
  18231. setup(props, { slots }) {
  18232. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  18233. const state = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState)();
  18234. let prevChildren;
  18235. let children;
  18236. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated)(() => {
  18237. // children is guaranteed to exist after initial render
  18238. if (!prevChildren.length) {
  18239. return;
  18240. }
  18241. const moveClass = props.moveClass || `${props.name || 'v'}-move`;
  18242. if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {
  18243. return;
  18244. }
  18245. // we divide the work into three loops to avoid mixing DOM reads and writes
  18246. // in each iteration - which helps prevent layout thrashing.
  18247. prevChildren.forEach(callPendingCbs);
  18248. prevChildren.forEach(recordPosition);
  18249. const movedChildren = prevChildren.filter(applyTranslation);
  18250. // force reflow to put everything in position
  18251. forceReflow();
  18252. movedChildren.forEach(c => {
  18253. const el = c.el;
  18254. const style = el.style;
  18255. addTransitionClass(el, moveClass);
  18256. style.transform = style.webkitTransform = style.transitionDuration = '';
  18257. const cb = (el._moveCb = (e) => {
  18258. if (e && e.target !== el) {
  18259. return;
  18260. }
  18261. if (!e || /transform$/.test(e.propertyName)) {
  18262. el.removeEventListener('transitionend', cb);
  18263. el._moveCb = null;
  18264. removeTransitionClass(el, moveClass);
  18265. }
  18266. });
  18267. el.addEventListener('transitionend', cb);
  18268. });
  18269. });
  18270. return () => {
  18271. const rawProps = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.toRaw)(props);
  18272. const cssTransitionProps = resolveTransitionProps(rawProps);
  18273. let tag = rawProps.tag || _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment;
  18274. prevChildren = children;
  18275. children = slots.default ? (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren)(slots.default()) : [];
  18276. for (let i = 0; i < children.length; i++) {
  18277. const child = children[i];
  18278. if (child.key != null) {
  18279. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18280. }
  18281. else if ((true)) {
  18282. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<TransitionGroup> children must be keyed.`);
  18283. }
  18284. }
  18285. if (prevChildren) {
  18286. for (let i = 0; i < prevChildren.length; i++) {
  18287. const child = prevChildren[i];
  18288. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18289. positionMap.set(child, child.el.getBoundingClientRect());
  18290. }
  18291. }
  18292. return (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(tag, null, children);
  18293. };
  18294. }
  18295. };
  18296. const TransitionGroup = TransitionGroupImpl;
  18297. function callPendingCbs(c) {
  18298. const el = c.el;
  18299. if (el._moveCb) {
  18300. el._moveCb();
  18301. }
  18302. if (el._enterCb) {
  18303. el._enterCb();
  18304. }
  18305. }
  18306. function recordPosition(c) {
  18307. newPositionMap.set(c, c.el.getBoundingClientRect());
  18308. }
  18309. function applyTranslation(c) {
  18310. const oldPos = positionMap.get(c);
  18311. const newPos = newPositionMap.get(c);
  18312. const dx = oldPos.left - newPos.left;
  18313. const dy = oldPos.top - newPos.top;
  18314. if (dx || dy) {
  18315. const s = c.el.style;
  18316. s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;
  18317. s.transitionDuration = '0s';
  18318. return c;
  18319. }
  18320. }
  18321. function hasCSSTransform(el, root, moveClass) {
  18322. // Detect whether an element with the move class applied has
  18323. // CSS transitions. Since the element may be inside an entering
  18324. // transition at this very moment, we make a clone of it and remove
  18325. // all other transition classes applied to ensure only the move class
  18326. // is applied.
  18327. const clone = el.cloneNode();
  18328. if (el._vtc) {
  18329. el._vtc.forEach(cls => {
  18330. cls.split(/\s+/).forEach(c => c && clone.classList.remove(c));
  18331. });
  18332. }
  18333. moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c));
  18334. clone.style.display = 'none';
  18335. const container = (root.nodeType === 1 ? root : root.parentNode);
  18336. container.appendChild(clone);
  18337. const { hasTransform } = getTransitionInfo(clone);
  18338. container.removeChild(clone);
  18339. return hasTransform;
  18340. }
  18341. const getModelAssigner = (vnode) => {
  18342. const fn = vnode.props['onUpdate:modelValue'];
  18343. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn) ? value => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(fn, value) : fn;
  18344. };
  18345. function onCompositionStart(e) {
  18346. e.target.composing = true;
  18347. }
  18348. function onCompositionEnd(e) {
  18349. const target = e.target;
  18350. if (target.composing) {
  18351. target.composing = false;
  18352. trigger(target, 'input');
  18353. }
  18354. }
  18355. function trigger(el, type) {
  18356. const e = document.createEvent('HTMLEvents');
  18357. e.initEvent(type, true, true);
  18358. el.dispatchEvent(e);
  18359. }
  18360. // We are exporting the v-model runtime directly as vnode hooks so that it can
  18361. // be tree-shaken in case v-model is never used.
  18362. const vModelText = {
  18363. created(el, { modifiers: { lazy, trim, number } }, vnode) {
  18364. el._assign = getModelAssigner(vnode);
  18365. const castToNumber = number || (vnode.props && vnode.props.type === 'number');
  18366. addEventListener(el, lazy ? 'change' : 'input', e => {
  18367. if (e.target.composing)
  18368. return;
  18369. let domValue = el.value;
  18370. if (trim) {
  18371. domValue = domValue.trim();
  18372. }
  18373. else if (castToNumber) {
  18374. domValue = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(domValue);
  18375. }
  18376. el._assign(domValue);
  18377. });
  18378. if (trim) {
  18379. addEventListener(el, 'change', () => {
  18380. el.value = el.value.trim();
  18381. });
  18382. }
  18383. if (!lazy) {
  18384. addEventListener(el, 'compositionstart', onCompositionStart);
  18385. addEventListener(el, 'compositionend', onCompositionEnd);
  18386. // Safari < 10.2 & UIWebView doesn't fire compositionend when
  18387. // switching focus before confirming composition choice
  18388. // this also fixes the issue where some browsers e.g. iOS Chrome
  18389. // fires "change" instead of "input" on autocomplete.
  18390. addEventListener(el, 'change', onCompositionEnd);
  18391. }
  18392. },
  18393. // set value on mounted so it's after min/max for type="range"
  18394. mounted(el, { value }) {
  18395. el.value = value == null ? '' : value;
  18396. },
  18397. beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {
  18398. el._assign = getModelAssigner(vnode);
  18399. // avoid clearing unresolved text. #2302
  18400. if (el.composing)
  18401. return;
  18402. if (document.activeElement === el) {
  18403. if (lazy) {
  18404. return;
  18405. }
  18406. if (trim && el.value.trim() === value) {
  18407. return;
  18408. }
  18409. if ((number || el.type === 'number') && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(el.value) === value) {
  18410. return;
  18411. }
  18412. }
  18413. const newValue = value == null ? '' : value;
  18414. if (el.value !== newValue) {
  18415. el.value = newValue;
  18416. }
  18417. }
  18418. };
  18419. const vModelCheckbox = {
  18420. // #4096 array checkboxes need to be deep traversed
  18421. deep: true,
  18422. created(el, _, vnode) {
  18423. el._assign = getModelAssigner(vnode);
  18424. addEventListener(el, 'change', () => {
  18425. const modelValue = el._modelValue;
  18426. const elementValue = getValue(el);
  18427. const checked = el.checked;
  18428. const assign = el._assign;
  18429. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(modelValue)) {
  18430. const index = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(modelValue, elementValue);
  18431. const found = index !== -1;
  18432. if (checked && !found) {
  18433. assign(modelValue.concat(elementValue));
  18434. }
  18435. else if (!checked && found) {
  18436. const filtered = [...modelValue];
  18437. filtered.splice(index, 1);
  18438. assign(filtered);
  18439. }
  18440. }
  18441. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(modelValue)) {
  18442. const cloned = new Set(modelValue);
  18443. if (checked) {
  18444. cloned.add(elementValue);
  18445. }
  18446. else {
  18447. cloned.delete(elementValue);
  18448. }
  18449. assign(cloned);
  18450. }
  18451. else {
  18452. assign(getCheckboxValue(el, checked));
  18453. }
  18454. });
  18455. },
  18456. // set initial checked on mount to wait for true-value/false-value
  18457. mounted: setChecked,
  18458. beforeUpdate(el, binding, vnode) {
  18459. el._assign = getModelAssigner(vnode);
  18460. setChecked(el, binding, vnode);
  18461. }
  18462. };
  18463. function setChecked(el, { value, oldValue }, vnode) {
  18464. el._modelValue = value;
  18465. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18466. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1;
  18467. }
  18468. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18469. el.checked = value.has(vnode.props.value);
  18470. }
  18471. else if (value !== oldValue) {
  18472. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, getCheckboxValue(el, true));
  18473. }
  18474. }
  18475. const vModelRadio = {
  18476. created(el, { value }, vnode) {
  18477. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18478. el._assign = getModelAssigner(vnode);
  18479. addEventListener(el, 'change', () => {
  18480. el._assign(getValue(el));
  18481. });
  18482. },
  18483. beforeUpdate(el, { value, oldValue }, vnode) {
  18484. el._assign = getModelAssigner(vnode);
  18485. if (value !== oldValue) {
  18486. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18487. }
  18488. }
  18489. };
  18490. const vModelSelect = {
  18491. // <select multiple> value need to be deep traversed
  18492. deep: true,
  18493. created(el, { value, modifiers: { number } }, vnode) {
  18494. const isSetModel = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value);
  18495. addEventListener(el, 'change', () => {
  18496. const selectedVal = Array.prototype.filter
  18497. .call(el.options, (o) => o.selected)
  18498. .map((o) => number ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(getValue(o)) : getValue(o));
  18499. el._assign(el.multiple
  18500. ? isSetModel
  18501. ? new Set(selectedVal)
  18502. : selectedVal
  18503. : selectedVal[0]);
  18504. });
  18505. el._assign = getModelAssigner(vnode);
  18506. },
  18507. // set value in mounted & updated because <select> relies on its children
  18508. // <option>s.
  18509. mounted(el, { value }) {
  18510. setSelected(el, value);
  18511. },
  18512. beforeUpdate(el, _binding, vnode) {
  18513. el._assign = getModelAssigner(vnode);
  18514. },
  18515. updated(el, { value }) {
  18516. setSelected(el, value);
  18517. }
  18518. };
  18519. function setSelected(el, value) {
  18520. const isMultiple = el.multiple;
  18521. if (isMultiple && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18522. ( true) &&
  18523. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<select multiple v-model> expects an Array or Set value for its binding, ` +
  18524. `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
  18525. return;
  18526. }
  18527. for (let i = 0, l = el.options.length; i < l; i++) {
  18528. const option = el.options[i];
  18529. const optionValue = getValue(option);
  18530. if (isMultiple) {
  18531. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18532. option.selected = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, optionValue) > -1;
  18533. }
  18534. else {
  18535. option.selected = value.has(optionValue);
  18536. }
  18537. }
  18538. else {
  18539. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(getValue(option), value)) {
  18540. if (el.selectedIndex !== i)
  18541. el.selectedIndex = i;
  18542. return;
  18543. }
  18544. }
  18545. }
  18546. if (!isMultiple && el.selectedIndex !== -1) {
  18547. el.selectedIndex = -1;
  18548. }
  18549. }
  18550. // retrieve raw value set via :value bindings
  18551. function getValue(el) {
  18552. return '_value' in el ? el._value : el.value;
  18553. }
  18554. // retrieve raw value for true-value and false-value set via :true-value or :false-value bindings
  18555. function getCheckboxValue(el, checked) {
  18556. const key = checked ? '_trueValue' : '_falseValue';
  18557. return key in el ? el[key] : checked;
  18558. }
  18559. const vModelDynamic = {
  18560. created(el, binding, vnode) {
  18561. callModelHook(el, binding, vnode, null, 'created');
  18562. },
  18563. mounted(el, binding, vnode) {
  18564. callModelHook(el, binding, vnode, null, 'mounted');
  18565. },
  18566. beforeUpdate(el, binding, vnode, prevVNode) {
  18567. callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate');
  18568. },
  18569. updated(el, binding, vnode, prevVNode) {
  18570. callModelHook(el, binding, vnode, prevVNode, 'updated');
  18571. }
  18572. };
  18573. function callModelHook(el, binding, vnode, prevVNode, hook) {
  18574. let modelToUse;
  18575. switch (el.tagName) {
  18576. case 'SELECT':
  18577. modelToUse = vModelSelect;
  18578. break;
  18579. case 'TEXTAREA':
  18580. modelToUse = vModelText;
  18581. break;
  18582. default:
  18583. switch (vnode.props && vnode.props.type) {
  18584. case 'checkbox':
  18585. modelToUse = vModelCheckbox;
  18586. break;
  18587. case 'radio':
  18588. modelToUse = vModelRadio;
  18589. break;
  18590. default:
  18591. modelToUse = vModelText;
  18592. }
  18593. }
  18594. const fn = modelToUse[hook];
  18595. fn && fn(el, binding, vnode, prevVNode);
  18596. }
  18597. // SSR vnode transforms, only used when user includes client-oriented render
  18598. // function in SSR
  18599. function initVModelForSSR() {
  18600. vModelText.getSSRProps = ({ value }) => ({ value });
  18601. vModelRadio.getSSRProps = ({ value }, vnode) => {
  18602. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(vnode.props.value, value)) {
  18603. return { checked: true };
  18604. }
  18605. };
  18606. vModelCheckbox.getSSRProps = ({ value }, vnode) => {
  18607. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18608. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1) {
  18609. return { checked: true };
  18610. }
  18611. }
  18612. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18613. if (vnode.props && value.has(vnode.props.value)) {
  18614. return { checked: true };
  18615. }
  18616. }
  18617. else if (value) {
  18618. return { checked: true };
  18619. }
  18620. };
  18621. }
  18622. const systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];
  18623. const modifierGuards = {
  18624. stop: e => e.stopPropagation(),
  18625. prevent: e => e.preventDefault(),
  18626. self: e => e.target !== e.currentTarget,
  18627. ctrl: e => !e.ctrlKey,
  18628. shift: e => !e.shiftKey,
  18629. alt: e => !e.altKey,
  18630. meta: e => !e.metaKey,
  18631. left: e => 'button' in e && e.button !== 0,
  18632. middle: e => 'button' in e && e.button !== 1,
  18633. right: e => 'button' in e && e.button !== 2,
  18634. exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m))
  18635. };
  18636. /**
  18637. * @private
  18638. */
  18639. const withModifiers = (fn, modifiers) => {
  18640. return (event, ...args) => {
  18641. for (let i = 0; i < modifiers.length; i++) {
  18642. const guard = modifierGuards[modifiers[i]];
  18643. if (guard && guard(event, modifiers))
  18644. return;
  18645. }
  18646. return fn(event, ...args);
  18647. };
  18648. };
  18649. // Kept for 2.x compat.
  18650. // Note: IE11 compat for `spacebar` and `del` is removed for now.
  18651. const keyNames = {
  18652. esc: 'escape',
  18653. space: ' ',
  18654. up: 'arrow-up',
  18655. left: 'arrow-left',
  18656. right: 'arrow-right',
  18657. down: 'arrow-down',
  18658. delete: 'backspace'
  18659. };
  18660. /**
  18661. * @private
  18662. */
  18663. const withKeys = (fn, modifiers) => {
  18664. return (event) => {
  18665. if (!('key' in event)) {
  18666. return;
  18667. }
  18668. const eventKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event.key);
  18669. if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) {
  18670. return fn(event);
  18671. }
  18672. };
  18673. };
  18674. const vShow = {
  18675. beforeMount(el, { value }, { transition }) {
  18676. el._vod = el.style.display === 'none' ? '' : el.style.display;
  18677. if (transition && value) {
  18678. transition.beforeEnter(el);
  18679. }
  18680. else {
  18681. setDisplay(el, value);
  18682. }
  18683. },
  18684. mounted(el, { value }, { transition }) {
  18685. if (transition && value) {
  18686. transition.enter(el);
  18687. }
  18688. },
  18689. updated(el, { value, oldValue }, { transition }) {
  18690. if (!value === !oldValue)
  18691. return;
  18692. if (transition) {
  18693. if (value) {
  18694. transition.beforeEnter(el);
  18695. setDisplay(el, true);
  18696. transition.enter(el);
  18697. }
  18698. else {
  18699. transition.leave(el, () => {
  18700. setDisplay(el, false);
  18701. });
  18702. }
  18703. }
  18704. else {
  18705. setDisplay(el, value);
  18706. }
  18707. },
  18708. beforeUnmount(el, { value }) {
  18709. setDisplay(el, value);
  18710. }
  18711. };
  18712. function setDisplay(el, value) {
  18713. el.style.display = value ? el._vod : 'none';
  18714. }
  18715. // SSR vnode transforms, only used when user includes client-oriented render
  18716. // function in SSR
  18717. function initVShowForSSR() {
  18718. vShow.getSSRProps = ({ value }) => {
  18719. if (!value) {
  18720. return { style: { display: 'none' } };
  18721. }
  18722. };
  18723. }
  18724. const rendererOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({ patchProp }, nodeOps);
  18725. // lazy create the renderer - this makes core renderer logic tree-shakable
  18726. // in case the user only imports reactivity utilities from Vue.
  18727. let renderer;
  18728. let enabledHydration = false;
  18729. function ensureRenderer() {
  18730. return (renderer ||
  18731. (renderer = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer)(rendererOptions)));
  18732. }
  18733. function ensureHydrationRenderer() {
  18734. renderer = enabledHydration
  18735. ? renderer
  18736. : (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer)(rendererOptions);
  18737. enabledHydration = true;
  18738. return renderer;
  18739. }
  18740. // use explicit type casts here to avoid import() calls in rolled-up d.ts
  18741. const render = ((...args) => {
  18742. ensureRenderer().render(...args);
  18743. });
  18744. const hydrate = ((...args) => {
  18745. ensureHydrationRenderer().hydrate(...args);
  18746. });
  18747. const createApp = ((...args) => {
  18748. const app = ensureRenderer().createApp(...args);
  18749. if ((true)) {
  18750. injectNativeTagCheck(app);
  18751. injectCompilerOptionsCheck(app);
  18752. }
  18753. const { mount } = app;
  18754. app.mount = (containerOrSelector) => {
  18755. const container = normalizeContainer(containerOrSelector);
  18756. if (!container)
  18757. return;
  18758. const component = app._component;
  18759. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(component) && !component.render && !component.template) {
  18760. // __UNSAFE__
  18761. // Reason: potential execution of JS expressions in in-DOM template.
  18762. // The user must make sure the in-DOM template is trusted. If it's
  18763. // rendered by the server, the template should not contain any user data.
  18764. component.template = container.innerHTML;
  18765. }
  18766. // clear content before mounting
  18767. container.innerHTML = '';
  18768. const proxy = mount(container, false, container instanceof SVGElement);
  18769. if (container instanceof Element) {
  18770. container.removeAttribute('v-cloak');
  18771. container.setAttribute('data-v-app', '');
  18772. }
  18773. return proxy;
  18774. };
  18775. return app;
  18776. });
  18777. const createSSRApp = ((...args) => {
  18778. const app = ensureHydrationRenderer().createApp(...args);
  18779. if ((true)) {
  18780. injectNativeTagCheck(app);
  18781. injectCompilerOptionsCheck(app);
  18782. }
  18783. const { mount } = app;
  18784. app.mount = (containerOrSelector) => {
  18785. const container = normalizeContainer(containerOrSelector);
  18786. if (container) {
  18787. return mount(container, true, container instanceof SVGElement);
  18788. }
  18789. };
  18790. return app;
  18791. });
  18792. function injectNativeTagCheck(app) {
  18793. // Inject `isNativeTag`
  18794. // this is used for component name validation (dev only)
  18795. Object.defineProperty(app.config, 'isNativeTag', {
  18796. value: (tag) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  18797. writable: false
  18798. });
  18799. }
  18800. // dev only
  18801. function injectCompilerOptionsCheck(app) {
  18802. if ((0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly)()) {
  18803. const isCustomElement = app.config.isCustomElement;
  18804. Object.defineProperty(app.config, 'isCustomElement', {
  18805. get() {
  18806. return isCustomElement;
  18807. },
  18808. set() {
  18809. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`The \`isCustomElement\` config option is deprecated. Use ` +
  18810. `\`compilerOptions.isCustomElement\` instead.`);
  18811. }
  18812. });
  18813. const compilerOptions = app.config.compilerOptions;
  18814. const msg = `The \`compilerOptions\` config option is only respected when using ` +
  18815. `a build of Vue.js that includes the runtime compiler (aka "full build"). ` +
  18816. `Since you are using the runtime-only build, \`compilerOptions\` ` +
  18817. `must be passed to \`@vue/compiler-dom\` in the build setup instead.\n` +
  18818. `- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.\n` +
  18819. `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n` +
  18820. `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;
  18821. Object.defineProperty(app.config, 'compilerOptions', {
  18822. get() {
  18823. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18824. return compilerOptions;
  18825. },
  18826. set() {
  18827. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18828. }
  18829. });
  18830. }
  18831. }
  18832. function normalizeContainer(container) {
  18833. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(container)) {
  18834. const res = document.querySelector(container);
  18835. if (( true) && !res) {
  18836. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed to mount app: mount target selector "${container}" returned null.`);
  18837. }
  18838. return res;
  18839. }
  18840. if (( true) &&
  18841. window.ShadowRoot &&
  18842. container instanceof window.ShadowRoot &&
  18843. container.mode === 'closed') {
  18844. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
  18845. }
  18846. return container;
  18847. }
  18848. let ssrDirectiveInitialized = false;
  18849. /**
  18850. * @internal
  18851. */
  18852. const initDirectivesForSSR = () => {
  18853. if (!ssrDirectiveInitialized) {
  18854. ssrDirectiveInitialized = true;
  18855. initVModelForSSR();
  18856. initVShowForSSR();
  18857. }
  18858. }
  18859. ;
  18860. /***/ }),
  18861. /***/ "./node_modules/@vue/shared/dist/shared.esm-bundler.js":
  18862. /*!*************************************************************!*\
  18863. !*** ./node_modules/@vue/shared/dist/shared.esm-bundler.js ***!
  18864. \*************************************************************/
  18865. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  18866. "use strict";
  18867. __webpack_require__.r(__webpack_exports__);
  18868. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  18869. /* harmony export */ "EMPTY_ARR": () => (/* binding */ EMPTY_ARR),
  18870. /* harmony export */ "EMPTY_OBJ": () => (/* binding */ EMPTY_OBJ),
  18871. /* harmony export */ "NO": () => (/* binding */ NO),
  18872. /* harmony export */ "NOOP": () => (/* binding */ NOOP),
  18873. /* harmony export */ "PatchFlagNames": () => (/* binding */ PatchFlagNames),
  18874. /* harmony export */ "camelize": () => (/* binding */ camelize),
  18875. /* harmony export */ "capitalize": () => (/* binding */ capitalize),
  18876. /* harmony export */ "def": () => (/* binding */ def),
  18877. /* harmony export */ "escapeHtml": () => (/* binding */ escapeHtml),
  18878. /* harmony export */ "escapeHtmlComment": () => (/* binding */ escapeHtmlComment),
  18879. /* harmony export */ "extend": () => (/* binding */ extend),
  18880. /* harmony export */ "generateCodeFrame": () => (/* binding */ generateCodeFrame),
  18881. /* harmony export */ "getGlobalThis": () => (/* binding */ getGlobalThis),
  18882. /* harmony export */ "hasChanged": () => (/* binding */ hasChanged),
  18883. /* harmony export */ "hasOwn": () => (/* binding */ hasOwn),
  18884. /* harmony export */ "hyphenate": () => (/* binding */ hyphenate),
  18885. /* harmony export */ "includeBooleanAttr": () => (/* binding */ includeBooleanAttr),
  18886. /* harmony export */ "invokeArrayFns": () => (/* binding */ invokeArrayFns),
  18887. /* harmony export */ "isArray": () => (/* binding */ isArray),
  18888. /* harmony export */ "isBooleanAttr": () => (/* binding */ isBooleanAttr),
  18889. /* harmony export */ "isBuiltInDirective": () => (/* binding */ isBuiltInDirective),
  18890. /* harmony export */ "isDate": () => (/* binding */ isDate),
  18891. /* harmony export */ "isFunction": () => (/* binding */ isFunction),
  18892. /* harmony export */ "isGloballyWhitelisted": () => (/* binding */ isGloballyWhitelisted),
  18893. /* harmony export */ "isHTMLTag": () => (/* binding */ isHTMLTag),
  18894. /* harmony export */ "isIntegerKey": () => (/* binding */ isIntegerKey),
  18895. /* harmony export */ "isKnownHtmlAttr": () => (/* binding */ isKnownHtmlAttr),
  18896. /* harmony export */ "isKnownSvgAttr": () => (/* binding */ isKnownSvgAttr),
  18897. /* harmony export */ "isMap": () => (/* binding */ isMap),
  18898. /* harmony export */ "isModelListener": () => (/* binding */ isModelListener),
  18899. /* harmony export */ "isNoUnitNumericStyleProp": () => (/* binding */ isNoUnitNumericStyleProp),
  18900. /* harmony export */ "isObject": () => (/* binding */ isObject),
  18901. /* harmony export */ "isOn": () => (/* binding */ isOn),
  18902. /* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
  18903. /* harmony export */ "isPromise": () => (/* binding */ isPromise),
  18904. /* harmony export */ "isReservedProp": () => (/* binding */ isReservedProp),
  18905. /* harmony export */ "isSSRSafeAttrName": () => (/* binding */ isSSRSafeAttrName),
  18906. /* harmony export */ "isSVGTag": () => (/* binding */ isSVGTag),
  18907. /* harmony export */ "isSet": () => (/* binding */ isSet),
  18908. /* harmony export */ "isSpecialBooleanAttr": () => (/* binding */ isSpecialBooleanAttr),
  18909. /* harmony export */ "isString": () => (/* binding */ isString),
  18910. /* harmony export */ "isSymbol": () => (/* binding */ isSymbol),
  18911. /* harmony export */ "isVoidTag": () => (/* binding */ isVoidTag),
  18912. /* harmony export */ "looseEqual": () => (/* binding */ looseEqual),
  18913. /* harmony export */ "looseIndexOf": () => (/* binding */ looseIndexOf),
  18914. /* harmony export */ "makeMap": () => (/* binding */ makeMap),
  18915. /* harmony export */ "normalizeClass": () => (/* binding */ normalizeClass),
  18916. /* harmony export */ "normalizeProps": () => (/* binding */ normalizeProps),
  18917. /* harmony export */ "normalizeStyle": () => (/* binding */ normalizeStyle),
  18918. /* harmony export */ "objectToString": () => (/* binding */ objectToString),
  18919. /* harmony export */ "parseStringStyle": () => (/* binding */ parseStringStyle),
  18920. /* harmony export */ "propsToAttrMap": () => (/* binding */ propsToAttrMap),
  18921. /* harmony export */ "remove": () => (/* binding */ remove),
  18922. /* harmony export */ "slotFlagsText": () => (/* binding */ slotFlagsText),
  18923. /* harmony export */ "stringifyStyle": () => (/* binding */ stringifyStyle),
  18924. /* harmony export */ "toDisplayString": () => (/* binding */ toDisplayString),
  18925. /* harmony export */ "toHandlerKey": () => (/* binding */ toHandlerKey),
  18926. /* harmony export */ "toNumber": () => (/* binding */ toNumber),
  18927. /* harmony export */ "toRawType": () => (/* binding */ toRawType),
  18928. /* harmony export */ "toTypeString": () => (/* binding */ toTypeString)
  18929. /* harmony export */ });
  18930. /**
  18931. * Make a map and return a function for checking if a key
  18932. * is in that map.
  18933. * IMPORTANT: all calls of this function must be prefixed with
  18934. * \/\*#\_\_PURE\_\_\*\/
  18935. * So that rollup can tree-shake them if necessary.
  18936. */
  18937. function makeMap(str, expectsLowerCase) {
  18938. const map = Object.create(null);
  18939. const list = str.split(',');
  18940. for (let i = 0; i < list.length; i++) {
  18941. map[list[i]] = true;
  18942. }
  18943. return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
  18944. }
  18945. /**
  18946. * dev only flag -> name mapping
  18947. */
  18948. const PatchFlagNames = {
  18949. [1 /* TEXT */]: `TEXT`,
  18950. [2 /* CLASS */]: `CLASS`,
  18951. [4 /* STYLE */]: `STYLE`,
  18952. [8 /* PROPS */]: `PROPS`,
  18953. [16 /* FULL_PROPS */]: `FULL_PROPS`,
  18954. [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,
  18955. [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,
  18956. [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,
  18957. [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,
  18958. [512 /* NEED_PATCH */]: `NEED_PATCH`,
  18959. [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,
  18960. [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,
  18961. [-1 /* HOISTED */]: `HOISTED`,
  18962. [-2 /* BAIL */]: `BAIL`
  18963. };
  18964. /**
  18965. * Dev only
  18966. */
  18967. const slotFlagsText = {
  18968. [1 /* STABLE */]: 'STABLE',
  18969. [2 /* DYNAMIC */]: 'DYNAMIC',
  18970. [3 /* FORWARDED */]: 'FORWARDED'
  18971. };
  18972. const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
  18973. 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  18974. 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';
  18975. const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
  18976. const range = 2;
  18977. function generateCodeFrame(source, start = 0, end = source.length) {
  18978. // Split the content into individual lines but capture the newline sequence
  18979. // that separated each line. This is important because the actual sequence is
  18980. // needed to properly take into account the full line length for offset
  18981. // comparison
  18982. let lines = source.split(/(\r?\n)/);
  18983. // Separate the lines and newline sequences into separate arrays for easier referencing
  18984. const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
  18985. lines = lines.filter((_, idx) => idx % 2 === 0);
  18986. let count = 0;
  18987. const res = [];
  18988. for (let i = 0; i < lines.length; i++) {
  18989. count +=
  18990. lines[i].length +
  18991. ((newlineSequences[i] && newlineSequences[i].length) || 0);
  18992. if (count >= start) {
  18993. for (let j = i - range; j <= i + range || end > count; j++) {
  18994. if (j < 0 || j >= lines.length)
  18995. continue;
  18996. const line = j + 1;
  18997. res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
  18998. const lineLength = lines[j].length;
  18999. const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;
  19000. if (j === i) {
  19001. // push underline
  19002. const pad = start - (count - (lineLength + newLineSeqLength));
  19003. const length = Math.max(1, end > count ? lineLength - pad : end - start);
  19004. res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));
  19005. }
  19006. else if (j > i) {
  19007. if (end > count) {
  19008. const length = Math.max(Math.min(end - count, lineLength), 1);
  19009. res.push(` | ` + '^'.repeat(length));
  19010. }
  19011. count += lineLength + newLineSeqLength;
  19012. }
  19013. }
  19014. break;
  19015. }
  19016. }
  19017. return res.join('\n');
  19018. }
  19019. /**
  19020. * On the client we only need to offer special cases for boolean attributes that
  19021. * have different names from their corresponding dom properties:
  19022. * - itemscope -> N/A
  19023. * - allowfullscreen -> allowFullscreen
  19024. * - formnovalidate -> formNoValidate
  19025. * - ismap -> isMap
  19026. * - nomodule -> noModule
  19027. * - novalidate -> noValidate
  19028. * - readonly -> readOnly
  19029. */
  19030. const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
  19031. const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);
  19032. /**
  19033. * The full list is needed during SSR to produce the correct initial markup.
  19034. */
  19035. const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +
  19036. `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +
  19037. `loop,open,required,reversed,scoped,seamless,` +
  19038. `checked,muted,multiple,selected`);
  19039. /**
  19040. * Boolean attributes should be included if the value is truthy or ''.
  19041. * e.g. `<select multiple>` compiles to `{ multiple: '' }`
  19042. */
  19043. function includeBooleanAttr(value) {
  19044. return !!value || value === '';
  19045. }
  19046. const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
  19047. const attrValidationCache = {};
  19048. function isSSRSafeAttrName(name) {
  19049. if (attrValidationCache.hasOwnProperty(name)) {
  19050. return attrValidationCache[name];
  19051. }
  19052. const isUnsafe = unsafeAttrCharRE.test(name);
  19053. if (isUnsafe) {
  19054. console.error(`unsafe attribute name: ${name}`);
  19055. }
  19056. return (attrValidationCache[name] = !isUnsafe);
  19057. }
  19058. const propsToAttrMap = {
  19059. acceptCharset: 'accept-charset',
  19060. className: 'class',
  19061. htmlFor: 'for',
  19062. httpEquiv: 'http-equiv'
  19063. };
  19064. /**
  19065. * CSS properties that accept plain numbers
  19066. */
  19067. const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +
  19068. `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +
  19069. `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +
  19070. `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +
  19071. `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +
  19072. `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +
  19073. // SVG
  19074. `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +
  19075. `stroke-miterlimit,stroke-opacity,stroke-width`);
  19076. /**
  19077. * Known attributes, this is used for stringification of runtime static nodes
  19078. * so that we don't stringify bindings that cannot be set from HTML.
  19079. * Don't also forget to allow `data-*` and `aria-*`!
  19080. * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
  19081. */
  19082. const isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +
  19083. `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +
  19084. `border,buffered,capture,challenge,charset,checked,cite,class,code,` +
  19085. `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +
  19086. `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +
  19087. `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +
  19088. `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +
  19089. `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +
  19090. `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
  19091. `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
  19092. `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
  19093. `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
  19094. `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
  19095. `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
  19096. `value,width,wrap`);
  19097. /**
  19098. * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
  19099. */
  19100. const isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +
  19101. `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +
  19102. `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +
  19103. `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +
  19104. `color-interpolation-filters,color-profile,color-rendering,` +
  19105. `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +
  19106. `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +
  19107. `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +
  19108. `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +
  19109. `font-family,font-size,font-size-adjust,font-stretch,font-style,` +
  19110. `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +
  19111. `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +
  19112. `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +
  19113. `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +
  19114. `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +
  19115. `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +
  19116. `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +
  19117. `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +
  19118. `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +
  19119. `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +
  19120. `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +
  19121. `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +
  19122. `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +
  19123. `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +
  19124. `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +
  19125. `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +
  19126. `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +
  19127. `strikethrough-position,strikethrough-thickness,string,stroke,` +
  19128. `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +
  19129. `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +
  19130. `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +
  19131. `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +
  19132. `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +
  19133. `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +
  19134. `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +
  19135. `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +
  19136. `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +
  19137. `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +
  19138. `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);
  19139. function normalizeStyle(value) {
  19140. if (isArray(value)) {
  19141. const res = {};
  19142. for (let i = 0; i < value.length; i++) {
  19143. const item = value[i];
  19144. const normalized = isString(item)
  19145. ? parseStringStyle(item)
  19146. : normalizeStyle(item);
  19147. if (normalized) {
  19148. for (const key in normalized) {
  19149. res[key] = normalized[key];
  19150. }
  19151. }
  19152. }
  19153. return res;
  19154. }
  19155. else if (isString(value)) {
  19156. return value;
  19157. }
  19158. else if (isObject(value)) {
  19159. return value;
  19160. }
  19161. }
  19162. const listDelimiterRE = /;(?![^(]*\))/g;
  19163. const propertyDelimiterRE = /:(.+)/;
  19164. function parseStringStyle(cssText) {
  19165. const ret = {};
  19166. cssText.split(listDelimiterRE).forEach(item => {
  19167. if (item) {
  19168. const tmp = item.split(propertyDelimiterRE);
  19169. tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
  19170. }
  19171. });
  19172. return ret;
  19173. }
  19174. function stringifyStyle(styles) {
  19175. let ret = '';
  19176. if (!styles || isString(styles)) {
  19177. return ret;
  19178. }
  19179. for (const key in styles) {
  19180. const value = styles[key];
  19181. const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
  19182. if (isString(value) ||
  19183. (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {
  19184. // only render valid values
  19185. ret += `${normalizedKey}:${value};`;
  19186. }
  19187. }
  19188. return ret;
  19189. }
  19190. function normalizeClass(value) {
  19191. let res = '';
  19192. if (isString(value)) {
  19193. res = value;
  19194. }
  19195. else if (isArray(value)) {
  19196. for (let i = 0; i < value.length; i++) {
  19197. const normalized = normalizeClass(value[i]);
  19198. if (normalized) {
  19199. res += normalized + ' ';
  19200. }
  19201. }
  19202. }
  19203. else if (isObject(value)) {
  19204. for (const name in value) {
  19205. if (value[name]) {
  19206. res += name + ' ';
  19207. }
  19208. }
  19209. }
  19210. return res.trim();
  19211. }
  19212. function normalizeProps(props) {
  19213. if (!props)
  19214. return null;
  19215. let { class: klass, style } = props;
  19216. if (klass && !isString(klass)) {
  19217. props.class = normalizeClass(klass);
  19218. }
  19219. if (style) {
  19220. props.style = normalizeStyle(style);
  19221. }
  19222. return props;
  19223. }
  19224. // These tag configs are shared between compiler-dom and runtime-dom, so they
  19225. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  19226. const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
  19227. 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
  19228. 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
  19229. 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +
  19230. 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
  19231. 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +
  19232. 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +
  19233. 'option,output,progress,select,textarea,details,dialog,menu,' +
  19234. 'summary,template,blockquote,iframe,tfoot';
  19235. // https://developer.mozilla.org/en-US/docs/Web/SVG/Element
  19236. const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
  19237. 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
  19238. 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
  19239. 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
  19240. 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
  19241. 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
  19242. 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
  19243. 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +
  19244. 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
  19245. 'text,textPath,title,tspan,unknown,use,view';
  19246. const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
  19247. /**
  19248. * Compiler only.
  19249. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19250. */
  19251. const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);
  19252. /**
  19253. * Compiler only.
  19254. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19255. */
  19256. const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);
  19257. /**
  19258. * Compiler only.
  19259. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19260. */
  19261. const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);
  19262. const escapeRE = /["'&<>]/;
  19263. function escapeHtml(string) {
  19264. const str = '' + string;
  19265. const match = escapeRE.exec(str);
  19266. if (!match) {
  19267. return str;
  19268. }
  19269. let html = '';
  19270. let escaped;
  19271. let index;
  19272. let lastIndex = 0;
  19273. for (index = match.index; index < str.length; index++) {
  19274. switch (str.charCodeAt(index)) {
  19275. case 34: // "
  19276. escaped = '&quot;';
  19277. break;
  19278. case 38: // &
  19279. escaped = '&amp;';
  19280. break;
  19281. case 39: // '
  19282. escaped = '&#39;';
  19283. break;
  19284. case 60: // <
  19285. escaped = '&lt;';
  19286. break;
  19287. case 62: // >
  19288. escaped = '&gt;';
  19289. break;
  19290. default:
  19291. continue;
  19292. }
  19293. if (lastIndex !== index) {
  19294. html += str.slice(lastIndex, index);
  19295. }
  19296. lastIndex = index + 1;
  19297. html += escaped;
  19298. }
  19299. return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
  19300. }
  19301. // https://www.w3.org/TR/html52/syntax.html#comments
  19302. const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
  19303. function escapeHtmlComment(src) {
  19304. return src.replace(commentStripRE, '');
  19305. }
  19306. function looseCompareArrays(a, b) {
  19307. if (a.length !== b.length)
  19308. return false;
  19309. let equal = true;
  19310. for (let i = 0; equal && i < a.length; i++) {
  19311. equal = looseEqual(a[i], b[i]);
  19312. }
  19313. return equal;
  19314. }
  19315. function looseEqual(a, b) {
  19316. if (a === b)
  19317. return true;
  19318. let aValidType = isDate(a);
  19319. let bValidType = isDate(b);
  19320. if (aValidType || bValidType) {
  19321. return aValidType && bValidType ? a.getTime() === b.getTime() : false;
  19322. }
  19323. aValidType = isArray(a);
  19324. bValidType = isArray(b);
  19325. if (aValidType || bValidType) {
  19326. return aValidType && bValidType ? looseCompareArrays(a, b) : false;
  19327. }
  19328. aValidType = isObject(a);
  19329. bValidType = isObject(b);
  19330. if (aValidType || bValidType) {
  19331. /* istanbul ignore if: this if will probably never be called */
  19332. if (!aValidType || !bValidType) {
  19333. return false;
  19334. }
  19335. const aKeysCount = Object.keys(a).length;
  19336. const bKeysCount = Object.keys(b).length;
  19337. if (aKeysCount !== bKeysCount) {
  19338. return false;
  19339. }
  19340. for (const key in a) {
  19341. const aHasKey = a.hasOwnProperty(key);
  19342. const bHasKey = b.hasOwnProperty(key);
  19343. if ((aHasKey && !bHasKey) ||
  19344. (!aHasKey && bHasKey) ||
  19345. !looseEqual(a[key], b[key])) {
  19346. return false;
  19347. }
  19348. }
  19349. }
  19350. return String(a) === String(b);
  19351. }
  19352. function looseIndexOf(arr, val) {
  19353. return arr.findIndex(item => looseEqual(item, val));
  19354. }
  19355. /**
  19356. * For converting {{ interpolation }} values to displayed strings.
  19357. * @private
  19358. */
  19359. const toDisplayString = (val) => {
  19360. return isString(val)
  19361. ? val
  19362. : val == null
  19363. ? ''
  19364. : isArray(val) ||
  19365. (isObject(val) &&
  19366. (val.toString === objectToString || !isFunction(val.toString)))
  19367. ? JSON.stringify(val, replacer, 2)
  19368. : String(val);
  19369. };
  19370. const replacer = (_key, val) => {
  19371. // can't use isRef here since @vue/shared has no deps
  19372. if (val && val.__v_isRef) {
  19373. return replacer(_key, val.value);
  19374. }
  19375. else if (isMap(val)) {
  19376. return {
  19377. [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {
  19378. entries[`${key} =>`] = val;
  19379. return entries;
  19380. }, {})
  19381. };
  19382. }
  19383. else if (isSet(val)) {
  19384. return {
  19385. [`Set(${val.size})`]: [...val.values()]
  19386. };
  19387. }
  19388. else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
  19389. return String(val);
  19390. }
  19391. return val;
  19392. };
  19393. const EMPTY_OBJ = ( true)
  19394. ? Object.freeze({})
  19395. : 0;
  19396. const EMPTY_ARR = ( true) ? Object.freeze([]) : 0;
  19397. const NOOP = () => { };
  19398. /**
  19399. * Always return false.
  19400. */
  19401. const NO = () => false;
  19402. const onRE = /^on[^a-z]/;
  19403. const isOn = (key) => onRE.test(key);
  19404. const isModelListener = (key) => key.startsWith('onUpdate:');
  19405. const extend = Object.assign;
  19406. const remove = (arr, el) => {
  19407. const i = arr.indexOf(el);
  19408. if (i > -1) {
  19409. arr.splice(i, 1);
  19410. }
  19411. };
  19412. const hasOwnProperty = Object.prototype.hasOwnProperty;
  19413. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  19414. const isArray = Array.isArray;
  19415. const isMap = (val) => toTypeString(val) === '[object Map]';
  19416. const isSet = (val) => toTypeString(val) === '[object Set]';
  19417. const isDate = (val) => val instanceof Date;
  19418. const isFunction = (val) => typeof val === 'function';
  19419. const isString = (val) => typeof val === 'string';
  19420. const isSymbol = (val) => typeof val === 'symbol';
  19421. const isObject = (val) => val !== null && typeof val === 'object';
  19422. const isPromise = (val) => {
  19423. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  19424. };
  19425. const objectToString = Object.prototype.toString;
  19426. const toTypeString = (value) => objectToString.call(value);
  19427. const toRawType = (value) => {
  19428. // extract "RawType" from strings like "[object RawType]"
  19429. return toTypeString(value).slice(8, -1);
  19430. };
  19431. const isPlainObject = (val) => toTypeString(val) === '[object Object]';
  19432. const isIntegerKey = (key) => isString(key) &&
  19433. key !== 'NaN' &&
  19434. key[0] !== '-' &&
  19435. '' + parseInt(key, 10) === key;
  19436. const isReservedProp = /*#__PURE__*/ makeMap(
  19437. // the leading comma is intentional so empty string "" is also included
  19438. ',key,ref,ref_for,ref_key,' +
  19439. 'onVnodeBeforeMount,onVnodeMounted,' +
  19440. 'onVnodeBeforeUpdate,onVnodeUpdated,' +
  19441. 'onVnodeBeforeUnmount,onVnodeUnmounted');
  19442. const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');
  19443. const cacheStringFunction = (fn) => {
  19444. const cache = Object.create(null);
  19445. return ((str) => {
  19446. const hit = cache[str];
  19447. return hit || (cache[str] = fn(str));
  19448. });
  19449. };
  19450. const camelizeRE = /-(\w)/g;
  19451. /**
  19452. * @private
  19453. */
  19454. const camelize = cacheStringFunction((str) => {
  19455. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  19456. });
  19457. const hyphenateRE = /\B([A-Z])/g;
  19458. /**
  19459. * @private
  19460. */
  19461. const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
  19462. /**
  19463. * @private
  19464. */
  19465. const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
  19466. /**
  19467. * @private
  19468. */
  19469. const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);
  19470. // compare whether a value has changed, accounting for NaN.
  19471. const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
  19472. const invokeArrayFns = (fns, arg) => {
  19473. for (let i = 0; i < fns.length; i++) {
  19474. fns[i](arg);
  19475. }
  19476. };
  19477. const def = (obj, key, value) => {
  19478. Object.defineProperty(obj, key, {
  19479. configurable: true,
  19480. enumerable: false,
  19481. value
  19482. });
  19483. };
  19484. const toNumber = (val) => {
  19485. const n = parseFloat(val);
  19486. return isNaN(n) ? val : n;
  19487. };
  19488. let _globalThis;
  19489. const getGlobalThis = () => {
  19490. return (_globalThis ||
  19491. (_globalThis =
  19492. typeof globalThis !== 'undefined'
  19493. ? globalThis
  19494. : typeof self !== 'undefined'
  19495. ? self
  19496. : typeof window !== 'undefined'
  19497. ? window
  19498. : typeof __webpack_require__.g !== 'undefined'
  19499. ? __webpack_require__.g
  19500. : {}));
  19501. };
  19502. /***/ }),
  19503. /***/ "./node_modules/base64-js/index.js":
  19504. /*!*****************************************!*\
  19505. !*** ./node_modules/base64-js/index.js ***!
  19506. \*****************************************/
  19507. /***/ ((__unused_webpack_module, exports) => {
  19508. "use strict";
  19509. exports.byteLength = byteLength
  19510. exports.toByteArray = toByteArray
  19511. exports.fromByteArray = fromByteArray
  19512. var lookup = []
  19513. var revLookup = []
  19514. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  19515. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  19516. for (var i = 0, len = code.length; i < len; ++i) {
  19517. lookup[i] = code[i]
  19518. revLookup[code.charCodeAt(i)] = i
  19519. }
  19520. // Support decoding URL-safe base64 strings, as Node.js does.
  19521. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  19522. revLookup['-'.charCodeAt(0)] = 62
  19523. revLookup['_'.charCodeAt(0)] = 63
  19524. function getLens (b64) {
  19525. var len = b64.length
  19526. if (len % 4 > 0) {
  19527. throw new Error('Invalid string. Length must be a multiple of 4')
  19528. }
  19529. // Trim off extra bytes after placeholder bytes are found
  19530. // See: https://github.com/beatgammit/base64-js/issues/42
  19531. var validLen = b64.indexOf('=')
  19532. if (validLen === -1) validLen = len
  19533. var placeHoldersLen = validLen === len
  19534. ? 0
  19535. : 4 - (validLen % 4)
  19536. return [validLen, placeHoldersLen]
  19537. }
  19538. // base64 is 4/3 + up to two characters of the original data
  19539. function byteLength (b64) {
  19540. var lens = getLens(b64)
  19541. var validLen = lens[0]
  19542. var placeHoldersLen = lens[1]
  19543. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19544. }
  19545. function _byteLength (b64, validLen, placeHoldersLen) {
  19546. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19547. }
  19548. function toByteArray (b64) {
  19549. var tmp
  19550. var lens = getLens(b64)
  19551. var validLen = lens[0]
  19552. var placeHoldersLen = lens[1]
  19553. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  19554. var curByte = 0
  19555. // if there are placeholders, only get up to the last complete 4 chars
  19556. var len = placeHoldersLen > 0
  19557. ? validLen - 4
  19558. : validLen
  19559. var i
  19560. for (i = 0; i < len; i += 4) {
  19561. tmp =
  19562. (revLookup[b64.charCodeAt(i)] << 18) |
  19563. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  19564. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  19565. revLookup[b64.charCodeAt(i + 3)]
  19566. arr[curByte++] = (tmp >> 16) & 0xFF
  19567. arr[curByte++] = (tmp >> 8) & 0xFF
  19568. arr[curByte++] = tmp & 0xFF
  19569. }
  19570. if (placeHoldersLen === 2) {
  19571. tmp =
  19572. (revLookup[b64.charCodeAt(i)] << 2) |
  19573. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  19574. arr[curByte++] = tmp & 0xFF
  19575. }
  19576. if (placeHoldersLen === 1) {
  19577. tmp =
  19578. (revLookup[b64.charCodeAt(i)] << 10) |
  19579. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  19580. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  19581. arr[curByte++] = (tmp >> 8) & 0xFF
  19582. arr[curByte++] = tmp & 0xFF
  19583. }
  19584. return arr
  19585. }
  19586. function tripletToBase64 (num) {
  19587. return lookup[num >> 18 & 0x3F] +
  19588. lookup[num >> 12 & 0x3F] +
  19589. lookup[num >> 6 & 0x3F] +
  19590. lookup[num & 0x3F]
  19591. }
  19592. function encodeChunk (uint8, start, end) {
  19593. var tmp
  19594. var output = []
  19595. for (var i = start; i < end; i += 3) {
  19596. tmp =
  19597. ((uint8[i] << 16) & 0xFF0000) +
  19598. ((uint8[i + 1] << 8) & 0xFF00) +
  19599. (uint8[i + 2] & 0xFF)
  19600. output.push(tripletToBase64(tmp))
  19601. }
  19602. return output.join('')
  19603. }
  19604. function fromByteArray (uint8) {
  19605. var tmp
  19606. var len = uint8.length
  19607. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  19608. var parts = []
  19609. var maxChunkLength = 16383 // must be multiple of 3
  19610. // go through the array every three bytes, we'll deal with trailing stuff later
  19611. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  19612. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  19613. }
  19614. // pad the end with zeros, but make sure to not forget the extra bytes
  19615. if (extraBytes === 1) {
  19616. tmp = uint8[len - 1]
  19617. parts.push(
  19618. lookup[tmp >> 2] +
  19619. lookup[(tmp << 4) & 0x3F] +
  19620. '=='
  19621. )
  19622. } else if (extraBytes === 2) {
  19623. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  19624. parts.push(
  19625. lookup[tmp >> 10] +
  19626. lookup[(tmp >> 4) & 0x3F] +
  19627. lookup[(tmp << 2) & 0x3F] +
  19628. '='
  19629. )
  19630. }
  19631. return parts.join('')
  19632. }
  19633. /***/ }),
  19634. /***/ "./node_modules/buffer/index.js":
  19635. /*!**************************************!*\
  19636. !*** ./node_modules/buffer/index.js ***!
  19637. \**************************************/
  19638. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  19639. "use strict";
  19640. /*!
  19641. * The buffer module from node.js, for the browser.
  19642. *
  19643. * @author Feross Aboukhadijeh <http://feross.org>
  19644. * @license MIT
  19645. */
  19646. /* eslint-disable no-proto */
  19647. var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js")
  19648. var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js")
  19649. var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js")
  19650. exports.Buffer = Buffer
  19651. exports.SlowBuffer = SlowBuffer
  19652. exports.INSPECT_MAX_BYTES = 50
  19653. /**
  19654. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  19655. * === true Use Uint8Array implementation (fastest)
  19656. * === false Use Object implementation (most compatible, even IE6)
  19657. *
  19658. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  19659. * Opera 11.6+, iOS 4.2+.
  19660. *
  19661. * Due to various browser bugs, sometimes the Object implementation will be used even
  19662. * when the browser supports typed arrays.
  19663. *
  19664. * Note:
  19665. *
  19666. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  19667. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  19668. *
  19669. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  19670. *
  19671. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  19672. * incorrect length in some situations.
  19673. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  19674. * get the Object implementation, which is slower but behaves correctly.
  19675. */
  19676. Buffer.TYPED_ARRAY_SUPPORT = __webpack_require__.g.TYPED_ARRAY_SUPPORT !== undefined
  19677. ? __webpack_require__.g.TYPED_ARRAY_SUPPORT
  19678. : typedArraySupport()
  19679. /*
  19680. * Export kMaxLength after typed array support is determined.
  19681. */
  19682. exports.kMaxLength = kMaxLength()
  19683. function typedArraySupport () {
  19684. try {
  19685. var arr = new Uint8Array(1)
  19686. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  19687. return arr.foo() === 42 && // typed array instances can be augmented
  19688. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  19689. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  19690. } catch (e) {
  19691. return false
  19692. }
  19693. }
  19694. function kMaxLength () {
  19695. return Buffer.TYPED_ARRAY_SUPPORT
  19696. ? 0x7fffffff
  19697. : 0x3fffffff
  19698. }
  19699. function createBuffer (that, length) {
  19700. if (kMaxLength() < length) {
  19701. throw new RangeError('Invalid typed array length')
  19702. }
  19703. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19704. // Return an augmented `Uint8Array` instance, for best performance
  19705. that = new Uint8Array(length)
  19706. that.__proto__ = Buffer.prototype
  19707. } else {
  19708. // Fallback: Return an object instance of the Buffer class
  19709. if (that === null) {
  19710. that = new Buffer(length)
  19711. }
  19712. that.length = length
  19713. }
  19714. return that
  19715. }
  19716. /**
  19717. * The Buffer constructor returns instances of `Uint8Array` that have their
  19718. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  19719. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  19720. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  19721. * returns a single octet.
  19722. *
  19723. * The `Uint8Array` prototype remains unmodified.
  19724. */
  19725. function Buffer (arg, encodingOrOffset, length) {
  19726. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  19727. return new Buffer(arg, encodingOrOffset, length)
  19728. }
  19729. // Common case.
  19730. if (typeof arg === 'number') {
  19731. if (typeof encodingOrOffset === 'string') {
  19732. throw new Error(
  19733. 'If encoding is specified then the first argument must be a string'
  19734. )
  19735. }
  19736. return allocUnsafe(this, arg)
  19737. }
  19738. return from(this, arg, encodingOrOffset, length)
  19739. }
  19740. Buffer.poolSize = 8192 // not used by this implementation
  19741. // TODO: Legacy, not needed anymore. Remove in next major version.
  19742. Buffer._augment = function (arr) {
  19743. arr.__proto__ = Buffer.prototype
  19744. return arr
  19745. }
  19746. function from (that, value, encodingOrOffset, length) {
  19747. if (typeof value === 'number') {
  19748. throw new TypeError('"value" argument must not be a number')
  19749. }
  19750. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  19751. return fromArrayBuffer(that, value, encodingOrOffset, length)
  19752. }
  19753. if (typeof value === 'string') {
  19754. return fromString(that, value, encodingOrOffset)
  19755. }
  19756. return fromObject(that, value)
  19757. }
  19758. /**
  19759. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  19760. * if value is a number.
  19761. * Buffer.from(str[, encoding])
  19762. * Buffer.from(array)
  19763. * Buffer.from(buffer)
  19764. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  19765. **/
  19766. Buffer.from = function (value, encodingOrOffset, length) {
  19767. return from(null, value, encodingOrOffset, length)
  19768. }
  19769. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19770. Buffer.prototype.__proto__ = Uint8Array.prototype
  19771. Buffer.__proto__ = Uint8Array
  19772. if (typeof Symbol !== 'undefined' && Symbol.species &&
  19773. Buffer[Symbol.species] === Buffer) {
  19774. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  19775. Object.defineProperty(Buffer, Symbol.species, {
  19776. value: null,
  19777. configurable: true
  19778. })
  19779. }
  19780. }
  19781. function assertSize (size) {
  19782. if (typeof size !== 'number') {
  19783. throw new TypeError('"size" argument must be a number')
  19784. } else if (size < 0) {
  19785. throw new RangeError('"size" argument must not be negative')
  19786. }
  19787. }
  19788. function alloc (that, size, fill, encoding) {
  19789. assertSize(size)
  19790. if (size <= 0) {
  19791. return createBuffer(that, size)
  19792. }
  19793. if (fill !== undefined) {
  19794. // Only pay attention to encoding if it's a string. This
  19795. // prevents accidentally sending in a number that would
  19796. // be interpretted as a start offset.
  19797. return typeof encoding === 'string'
  19798. ? createBuffer(that, size).fill(fill, encoding)
  19799. : createBuffer(that, size).fill(fill)
  19800. }
  19801. return createBuffer(that, size)
  19802. }
  19803. /**
  19804. * Creates a new filled Buffer instance.
  19805. * alloc(size[, fill[, encoding]])
  19806. **/
  19807. Buffer.alloc = function (size, fill, encoding) {
  19808. return alloc(null, size, fill, encoding)
  19809. }
  19810. function allocUnsafe (that, size) {
  19811. assertSize(size)
  19812. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  19813. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  19814. for (var i = 0; i < size; ++i) {
  19815. that[i] = 0
  19816. }
  19817. }
  19818. return that
  19819. }
  19820. /**
  19821. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  19822. * */
  19823. Buffer.allocUnsafe = function (size) {
  19824. return allocUnsafe(null, size)
  19825. }
  19826. /**
  19827. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  19828. */
  19829. Buffer.allocUnsafeSlow = function (size) {
  19830. return allocUnsafe(null, size)
  19831. }
  19832. function fromString (that, string, encoding) {
  19833. if (typeof encoding !== 'string' || encoding === '') {
  19834. encoding = 'utf8'
  19835. }
  19836. if (!Buffer.isEncoding(encoding)) {
  19837. throw new TypeError('"encoding" must be a valid string encoding')
  19838. }
  19839. var length = byteLength(string, encoding) | 0
  19840. that = createBuffer(that, length)
  19841. var actual = that.write(string, encoding)
  19842. if (actual !== length) {
  19843. // Writing a hex string, for example, that contains invalid characters will
  19844. // cause everything after the first invalid character to be ignored. (e.g.
  19845. // 'abxxcd' will be treated as 'ab')
  19846. that = that.slice(0, actual)
  19847. }
  19848. return that
  19849. }
  19850. function fromArrayLike (that, array) {
  19851. var length = array.length < 0 ? 0 : checked(array.length) | 0
  19852. that = createBuffer(that, length)
  19853. for (var i = 0; i < length; i += 1) {
  19854. that[i] = array[i] & 255
  19855. }
  19856. return that
  19857. }
  19858. function fromArrayBuffer (that, array, byteOffset, length) {
  19859. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  19860. if (byteOffset < 0 || array.byteLength < byteOffset) {
  19861. throw new RangeError('\'offset\' is out of bounds')
  19862. }
  19863. if (array.byteLength < byteOffset + (length || 0)) {
  19864. throw new RangeError('\'length\' is out of bounds')
  19865. }
  19866. if (byteOffset === undefined && length === undefined) {
  19867. array = new Uint8Array(array)
  19868. } else if (length === undefined) {
  19869. array = new Uint8Array(array, byteOffset)
  19870. } else {
  19871. array = new Uint8Array(array, byteOffset, length)
  19872. }
  19873. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19874. // Return an augmented `Uint8Array` instance, for best performance
  19875. that = array
  19876. that.__proto__ = Buffer.prototype
  19877. } else {
  19878. // Fallback: Return an object instance of the Buffer class
  19879. that = fromArrayLike(that, array)
  19880. }
  19881. return that
  19882. }
  19883. function fromObject (that, obj) {
  19884. if (Buffer.isBuffer(obj)) {
  19885. var len = checked(obj.length) | 0
  19886. that = createBuffer(that, len)
  19887. if (that.length === 0) {
  19888. return that
  19889. }
  19890. obj.copy(that, 0, 0, len)
  19891. return that
  19892. }
  19893. if (obj) {
  19894. if ((typeof ArrayBuffer !== 'undefined' &&
  19895. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  19896. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  19897. return createBuffer(that, 0)
  19898. }
  19899. return fromArrayLike(that, obj)
  19900. }
  19901. if (obj.type === 'Buffer' && isArray(obj.data)) {
  19902. return fromArrayLike(that, obj.data)
  19903. }
  19904. }
  19905. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  19906. }
  19907. function checked (length) {
  19908. // Note: cannot use `length < kMaxLength()` here because that fails when
  19909. // length is NaN (which is otherwise coerced to zero.)
  19910. if (length >= kMaxLength()) {
  19911. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  19912. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  19913. }
  19914. return length | 0
  19915. }
  19916. function SlowBuffer (length) {
  19917. if (+length != length) { // eslint-disable-line eqeqeq
  19918. length = 0
  19919. }
  19920. return Buffer.alloc(+length)
  19921. }
  19922. Buffer.isBuffer = function isBuffer (b) {
  19923. return !!(b != null && b._isBuffer)
  19924. }
  19925. Buffer.compare = function compare (a, b) {
  19926. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  19927. throw new TypeError('Arguments must be Buffers')
  19928. }
  19929. if (a === b) return 0
  19930. var x = a.length
  19931. var y = b.length
  19932. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  19933. if (a[i] !== b[i]) {
  19934. x = a[i]
  19935. y = b[i]
  19936. break
  19937. }
  19938. }
  19939. if (x < y) return -1
  19940. if (y < x) return 1
  19941. return 0
  19942. }
  19943. Buffer.isEncoding = function isEncoding (encoding) {
  19944. switch (String(encoding).toLowerCase()) {
  19945. case 'hex':
  19946. case 'utf8':
  19947. case 'utf-8':
  19948. case 'ascii':
  19949. case 'latin1':
  19950. case 'binary':
  19951. case 'base64':
  19952. case 'ucs2':
  19953. case 'ucs-2':
  19954. case 'utf16le':
  19955. case 'utf-16le':
  19956. return true
  19957. default:
  19958. return false
  19959. }
  19960. }
  19961. Buffer.concat = function concat (list, length) {
  19962. if (!isArray(list)) {
  19963. throw new TypeError('"list" argument must be an Array of Buffers')
  19964. }
  19965. if (list.length === 0) {
  19966. return Buffer.alloc(0)
  19967. }
  19968. var i
  19969. if (length === undefined) {
  19970. length = 0
  19971. for (i = 0; i < list.length; ++i) {
  19972. length += list[i].length
  19973. }
  19974. }
  19975. var buffer = Buffer.allocUnsafe(length)
  19976. var pos = 0
  19977. for (i = 0; i < list.length; ++i) {
  19978. var buf = list[i]
  19979. if (!Buffer.isBuffer(buf)) {
  19980. throw new TypeError('"list" argument must be an Array of Buffers')
  19981. }
  19982. buf.copy(buffer, pos)
  19983. pos += buf.length
  19984. }
  19985. return buffer
  19986. }
  19987. function byteLength (string, encoding) {
  19988. if (Buffer.isBuffer(string)) {
  19989. return string.length
  19990. }
  19991. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  19992. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  19993. return string.byteLength
  19994. }
  19995. if (typeof string !== 'string') {
  19996. string = '' + string
  19997. }
  19998. var len = string.length
  19999. if (len === 0) return 0
  20000. // Use a for loop to avoid recursion
  20001. var loweredCase = false
  20002. for (;;) {
  20003. switch (encoding) {
  20004. case 'ascii':
  20005. case 'latin1':
  20006. case 'binary':
  20007. return len
  20008. case 'utf8':
  20009. case 'utf-8':
  20010. case undefined:
  20011. return utf8ToBytes(string).length
  20012. case 'ucs2':
  20013. case 'ucs-2':
  20014. case 'utf16le':
  20015. case 'utf-16le':
  20016. return len * 2
  20017. case 'hex':
  20018. return len >>> 1
  20019. case 'base64':
  20020. return base64ToBytes(string).length
  20021. default:
  20022. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  20023. encoding = ('' + encoding).toLowerCase()
  20024. loweredCase = true
  20025. }
  20026. }
  20027. }
  20028. Buffer.byteLength = byteLength
  20029. function slowToString (encoding, start, end) {
  20030. var loweredCase = false
  20031. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  20032. // property of a typed array.
  20033. // This behaves neither like String nor Uint8Array in that we set start/end
  20034. // to their upper/lower bounds if the value passed is out of range.
  20035. // undefined is handled specially as per ECMA-262 6th Edition,
  20036. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  20037. if (start === undefined || start < 0) {
  20038. start = 0
  20039. }
  20040. // Return early if start > this.length. Done here to prevent potential uint32
  20041. // coercion fail below.
  20042. if (start > this.length) {
  20043. return ''
  20044. }
  20045. if (end === undefined || end > this.length) {
  20046. end = this.length
  20047. }
  20048. if (end <= 0) {
  20049. return ''
  20050. }
  20051. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  20052. end >>>= 0
  20053. start >>>= 0
  20054. if (end <= start) {
  20055. return ''
  20056. }
  20057. if (!encoding) encoding = 'utf8'
  20058. while (true) {
  20059. switch (encoding) {
  20060. case 'hex':
  20061. return hexSlice(this, start, end)
  20062. case 'utf8':
  20063. case 'utf-8':
  20064. return utf8Slice(this, start, end)
  20065. case 'ascii':
  20066. return asciiSlice(this, start, end)
  20067. case 'latin1':
  20068. case 'binary':
  20069. return latin1Slice(this, start, end)
  20070. case 'base64':
  20071. return base64Slice(this, start, end)
  20072. case 'ucs2':
  20073. case 'ucs-2':
  20074. case 'utf16le':
  20075. case 'utf-16le':
  20076. return utf16leSlice(this, start, end)
  20077. default:
  20078. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20079. encoding = (encoding + '').toLowerCase()
  20080. loweredCase = true
  20081. }
  20082. }
  20083. }
  20084. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  20085. // Buffer instances.
  20086. Buffer.prototype._isBuffer = true
  20087. function swap (b, n, m) {
  20088. var i = b[n]
  20089. b[n] = b[m]
  20090. b[m] = i
  20091. }
  20092. Buffer.prototype.swap16 = function swap16 () {
  20093. var len = this.length
  20094. if (len % 2 !== 0) {
  20095. throw new RangeError('Buffer size must be a multiple of 16-bits')
  20096. }
  20097. for (var i = 0; i < len; i += 2) {
  20098. swap(this, i, i + 1)
  20099. }
  20100. return this
  20101. }
  20102. Buffer.prototype.swap32 = function swap32 () {
  20103. var len = this.length
  20104. if (len % 4 !== 0) {
  20105. throw new RangeError('Buffer size must be a multiple of 32-bits')
  20106. }
  20107. for (var i = 0; i < len; i += 4) {
  20108. swap(this, i, i + 3)
  20109. swap(this, i + 1, i + 2)
  20110. }
  20111. return this
  20112. }
  20113. Buffer.prototype.swap64 = function swap64 () {
  20114. var len = this.length
  20115. if (len % 8 !== 0) {
  20116. throw new RangeError('Buffer size must be a multiple of 64-bits')
  20117. }
  20118. for (var i = 0; i < len; i += 8) {
  20119. swap(this, i, i + 7)
  20120. swap(this, i + 1, i + 6)
  20121. swap(this, i + 2, i + 5)
  20122. swap(this, i + 3, i + 4)
  20123. }
  20124. return this
  20125. }
  20126. Buffer.prototype.toString = function toString () {
  20127. var length = this.length | 0
  20128. if (length === 0) return ''
  20129. if (arguments.length === 0) return utf8Slice(this, 0, length)
  20130. return slowToString.apply(this, arguments)
  20131. }
  20132. Buffer.prototype.equals = function equals (b) {
  20133. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  20134. if (this === b) return true
  20135. return Buffer.compare(this, b) === 0
  20136. }
  20137. Buffer.prototype.inspect = function inspect () {
  20138. var str = ''
  20139. var max = exports.INSPECT_MAX_BYTES
  20140. if (this.length > 0) {
  20141. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  20142. if (this.length > max) str += ' ... '
  20143. }
  20144. return '<Buffer ' + str + '>'
  20145. }
  20146. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  20147. if (!Buffer.isBuffer(target)) {
  20148. throw new TypeError('Argument must be a Buffer')
  20149. }
  20150. if (start === undefined) {
  20151. start = 0
  20152. }
  20153. if (end === undefined) {
  20154. end = target ? target.length : 0
  20155. }
  20156. if (thisStart === undefined) {
  20157. thisStart = 0
  20158. }
  20159. if (thisEnd === undefined) {
  20160. thisEnd = this.length
  20161. }
  20162. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  20163. throw new RangeError('out of range index')
  20164. }
  20165. if (thisStart >= thisEnd && start >= end) {
  20166. return 0
  20167. }
  20168. if (thisStart >= thisEnd) {
  20169. return -1
  20170. }
  20171. if (start >= end) {
  20172. return 1
  20173. }
  20174. start >>>= 0
  20175. end >>>= 0
  20176. thisStart >>>= 0
  20177. thisEnd >>>= 0
  20178. if (this === target) return 0
  20179. var x = thisEnd - thisStart
  20180. var y = end - start
  20181. var len = Math.min(x, y)
  20182. var thisCopy = this.slice(thisStart, thisEnd)
  20183. var targetCopy = target.slice(start, end)
  20184. for (var i = 0; i < len; ++i) {
  20185. if (thisCopy[i] !== targetCopy[i]) {
  20186. x = thisCopy[i]
  20187. y = targetCopy[i]
  20188. break
  20189. }
  20190. }
  20191. if (x < y) return -1
  20192. if (y < x) return 1
  20193. return 0
  20194. }
  20195. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  20196. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  20197. //
  20198. // Arguments:
  20199. // - buffer - a Buffer to search
  20200. // - val - a string, Buffer, or number
  20201. // - byteOffset - an index into `buffer`; will be clamped to an int32
  20202. // - encoding - an optional encoding, relevant is val is a string
  20203. // - dir - true for indexOf, false for lastIndexOf
  20204. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  20205. // Empty buffer means no match
  20206. if (buffer.length === 0) return -1
  20207. // Normalize byteOffset
  20208. if (typeof byteOffset === 'string') {
  20209. encoding = byteOffset
  20210. byteOffset = 0
  20211. } else if (byteOffset > 0x7fffffff) {
  20212. byteOffset = 0x7fffffff
  20213. } else if (byteOffset < -0x80000000) {
  20214. byteOffset = -0x80000000
  20215. }
  20216. byteOffset = +byteOffset // Coerce to Number.
  20217. if (isNaN(byteOffset)) {
  20218. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  20219. byteOffset = dir ? 0 : (buffer.length - 1)
  20220. }
  20221. // Normalize byteOffset: negative offsets start from the end of the buffer
  20222. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  20223. if (byteOffset >= buffer.length) {
  20224. if (dir) return -1
  20225. else byteOffset = buffer.length - 1
  20226. } else if (byteOffset < 0) {
  20227. if (dir) byteOffset = 0
  20228. else return -1
  20229. }
  20230. // Normalize val
  20231. if (typeof val === 'string') {
  20232. val = Buffer.from(val, encoding)
  20233. }
  20234. // Finally, search either indexOf (if dir is true) or lastIndexOf
  20235. if (Buffer.isBuffer(val)) {
  20236. // Special case: looking for empty string/buffer always fails
  20237. if (val.length === 0) {
  20238. return -1
  20239. }
  20240. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  20241. } else if (typeof val === 'number') {
  20242. val = val & 0xFF // Search for a byte value [0-255]
  20243. if (Buffer.TYPED_ARRAY_SUPPORT &&
  20244. typeof Uint8Array.prototype.indexOf === 'function') {
  20245. if (dir) {
  20246. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  20247. } else {
  20248. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  20249. }
  20250. }
  20251. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  20252. }
  20253. throw new TypeError('val must be string, number or Buffer')
  20254. }
  20255. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  20256. var indexSize = 1
  20257. var arrLength = arr.length
  20258. var valLength = val.length
  20259. if (encoding !== undefined) {
  20260. encoding = String(encoding).toLowerCase()
  20261. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  20262. encoding === 'utf16le' || encoding === 'utf-16le') {
  20263. if (arr.length < 2 || val.length < 2) {
  20264. return -1
  20265. }
  20266. indexSize = 2
  20267. arrLength /= 2
  20268. valLength /= 2
  20269. byteOffset /= 2
  20270. }
  20271. }
  20272. function read (buf, i) {
  20273. if (indexSize === 1) {
  20274. return buf[i]
  20275. } else {
  20276. return buf.readUInt16BE(i * indexSize)
  20277. }
  20278. }
  20279. var i
  20280. if (dir) {
  20281. var foundIndex = -1
  20282. for (i = byteOffset; i < arrLength; i++) {
  20283. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  20284. if (foundIndex === -1) foundIndex = i
  20285. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  20286. } else {
  20287. if (foundIndex !== -1) i -= i - foundIndex
  20288. foundIndex = -1
  20289. }
  20290. }
  20291. } else {
  20292. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  20293. for (i = byteOffset; i >= 0; i--) {
  20294. var found = true
  20295. for (var j = 0; j < valLength; j++) {
  20296. if (read(arr, i + j) !== read(val, j)) {
  20297. found = false
  20298. break
  20299. }
  20300. }
  20301. if (found) return i
  20302. }
  20303. }
  20304. return -1
  20305. }
  20306. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  20307. return this.indexOf(val, byteOffset, encoding) !== -1
  20308. }
  20309. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  20310. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  20311. }
  20312. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  20313. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  20314. }
  20315. function hexWrite (buf, string, offset, length) {
  20316. offset = Number(offset) || 0
  20317. var remaining = buf.length - offset
  20318. if (!length) {
  20319. length = remaining
  20320. } else {
  20321. length = Number(length)
  20322. if (length > remaining) {
  20323. length = remaining
  20324. }
  20325. }
  20326. // must be an even number of digits
  20327. var strLen = string.length
  20328. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  20329. if (length > strLen / 2) {
  20330. length = strLen / 2
  20331. }
  20332. for (var i = 0; i < length; ++i) {
  20333. var parsed = parseInt(string.substr(i * 2, 2), 16)
  20334. if (isNaN(parsed)) return i
  20335. buf[offset + i] = parsed
  20336. }
  20337. return i
  20338. }
  20339. function utf8Write (buf, string, offset, length) {
  20340. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  20341. }
  20342. function asciiWrite (buf, string, offset, length) {
  20343. return blitBuffer(asciiToBytes(string), buf, offset, length)
  20344. }
  20345. function latin1Write (buf, string, offset, length) {
  20346. return asciiWrite(buf, string, offset, length)
  20347. }
  20348. function base64Write (buf, string, offset, length) {
  20349. return blitBuffer(base64ToBytes(string), buf, offset, length)
  20350. }
  20351. function ucs2Write (buf, string, offset, length) {
  20352. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  20353. }
  20354. Buffer.prototype.write = function write (string, offset, length, encoding) {
  20355. // Buffer#write(string)
  20356. if (offset === undefined) {
  20357. encoding = 'utf8'
  20358. length = this.length
  20359. offset = 0
  20360. // Buffer#write(string, encoding)
  20361. } else if (length === undefined && typeof offset === 'string') {
  20362. encoding = offset
  20363. length = this.length
  20364. offset = 0
  20365. // Buffer#write(string, offset[, length][, encoding])
  20366. } else if (isFinite(offset)) {
  20367. offset = offset | 0
  20368. if (isFinite(length)) {
  20369. length = length | 0
  20370. if (encoding === undefined) encoding = 'utf8'
  20371. } else {
  20372. encoding = length
  20373. length = undefined
  20374. }
  20375. // legacy write(string, encoding, offset, length) - remove in v0.13
  20376. } else {
  20377. throw new Error(
  20378. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  20379. )
  20380. }
  20381. var remaining = this.length - offset
  20382. if (length === undefined || length > remaining) length = remaining
  20383. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  20384. throw new RangeError('Attempt to write outside buffer bounds')
  20385. }
  20386. if (!encoding) encoding = 'utf8'
  20387. var loweredCase = false
  20388. for (;;) {
  20389. switch (encoding) {
  20390. case 'hex':
  20391. return hexWrite(this, string, offset, length)
  20392. case 'utf8':
  20393. case 'utf-8':
  20394. return utf8Write(this, string, offset, length)
  20395. case 'ascii':
  20396. return asciiWrite(this, string, offset, length)
  20397. case 'latin1':
  20398. case 'binary':
  20399. return latin1Write(this, string, offset, length)
  20400. case 'base64':
  20401. // Warning: maxLength not taken into account in base64Write
  20402. return base64Write(this, string, offset, length)
  20403. case 'ucs2':
  20404. case 'ucs-2':
  20405. case 'utf16le':
  20406. case 'utf-16le':
  20407. return ucs2Write(this, string, offset, length)
  20408. default:
  20409. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20410. encoding = ('' + encoding).toLowerCase()
  20411. loweredCase = true
  20412. }
  20413. }
  20414. }
  20415. Buffer.prototype.toJSON = function toJSON () {
  20416. return {
  20417. type: 'Buffer',
  20418. data: Array.prototype.slice.call(this._arr || this, 0)
  20419. }
  20420. }
  20421. function base64Slice (buf, start, end) {
  20422. if (start === 0 && end === buf.length) {
  20423. return base64.fromByteArray(buf)
  20424. } else {
  20425. return base64.fromByteArray(buf.slice(start, end))
  20426. }
  20427. }
  20428. function utf8Slice (buf, start, end) {
  20429. end = Math.min(buf.length, end)
  20430. var res = []
  20431. var i = start
  20432. while (i < end) {
  20433. var firstByte = buf[i]
  20434. var codePoint = null
  20435. var bytesPerSequence = (firstByte > 0xEF) ? 4
  20436. : (firstByte > 0xDF) ? 3
  20437. : (firstByte > 0xBF) ? 2
  20438. : 1
  20439. if (i + bytesPerSequence <= end) {
  20440. var secondByte, thirdByte, fourthByte, tempCodePoint
  20441. switch (bytesPerSequence) {
  20442. case 1:
  20443. if (firstByte < 0x80) {
  20444. codePoint = firstByte
  20445. }
  20446. break
  20447. case 2:
  20448. secondByte = buf[i + 1]
  20449. if ((secondByte & 0xC0) === 0x80) {
  20450. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  20451. if (tempCodePoint > 0x7F) {
  20452. codePoint = tempCodePoint
  20453. }
  20454. }
  20455. break
  20456. case 3:
  20457. secondByte = buf[i + 1]
  20458. thirdByte = buf[i + 2]
  20459. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  20460. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  20461. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  20462. codePoint = tempCodePoint
  20463. }
  20464. }
  20465. break
  20466. case 4:
  20467. secondByte = buf[i + 1]
  20468. thirdByte = buf[i + 2]
  20469. fourthByte = buf[i + 3]
  20470. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  20471. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  20472. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  20473. codePoint = tempCodePoint
  20474. }
  20475. }
  20476. }
  20477. }
  20478. if (codePoint === null) {
  20479. // we did not generate a valid codePoint so insert a
  20480. // replacement char (U+FFFD) and advance only 1 byte
  20481. codePoint = 0xFFFD
  20482. bytesPerSequence = 1
  20483. } else if (codePoint > 0xFFFF) {
  20484. // encode to utf16 (surrogate pair dance)
  20485. codePoint -= 0x10000
  20486. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  20487. codePoint = 0xDC00 | codePoint & 0x3FF
  20488. }
  20489. res.push(codePoint)
  20490. i += bytesPerSequence
  20491. }
  20492. return decodeCodePointsArray(res)
  20493. }
  20494. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  20495. // the lowest limit is Chrome, with 0x10000 args.
  20496. // We go 1 magnitude less, for safety
  20497. var MAX_ARGUMENTS_LENGTH = 0x1000
  20498. function decodeCodePointsArray (codePoints) {
  20499. var len = codePoints.length
  20500. if (len <= MAX_ARGUMENTS_LENGTH) {
  20501. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  20502. }
  20503. // Decode in chunks to avoid "call stack size exceeded".
  20504. var res = ''
  20505. var i = 0
  20506. while (i < len) {
  20507. res += String.fromCharCode.apply(
  20508. String,
  20509. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  20510. )
  20511. }
  20512. return res
  20513. }
  20514. function asciiSlice (buf, start, end) {
  20515. var ret = ''
  20516. end = Math.min(buf.length, end)
  20517. for (var i = start; i < end; ++i) {
  20518. ret += String.fromCharCode(buf[i] & 0x7F)
  20519. }
  20520. return ret
  20521. }
  20522. function latin1Slice (buf, start, end) {
  20523. var ret = ''
  20524. end = Math.min(buf.length, end)
  20525. for (var i = start; i < end; ++i) {
  20526. ret += String.fromCharCode(buf[i])
  20527. }
  20528. return ret
  20529. }
  20530. function hexSlice (buf, start, end) {
  20531. var len = buf.length
  20532. if (!start || start < 0) start = 0
  20533. if (!end || end < 0 || end > len) end = len
  20534. var out = ''
  20535. for (var i = start; i < end; ++i) {
  20536. out += toHex(buf[i])
  20537. }
  20538. return out
  20539. }
  20540. function utf16leSlice (buf, start, end) {
  20541. var bytes = buf.slice(start, end)
  20542. var res = ''
  20543. for (var i = 0; i < bytes.length; i += 2) {
  20544. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  20545. }
  20546. return res
  20547. }
  20548. Buffer.prototype.slice = function slice (start, end) {
  20549. var len = this.length
  20550. start = ~~start
  20551. end = end === undefined ? len : ~~end
  20552. if (start < 0) {
  20553. start += len
  20554. if (start < 0) start = 0
  20555. } else if (start > len) {
  20556. start = len
  20557. }
  20558. if (end < 0) {
  20559. end += len
  20560. if (end < 0) end = 0
  20561. } else if (end > len) {
  20562. end = len
  20563. }
  20564. if (end < start) end = start
  20565. var newBuf
  20566. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20567. newBuf = this.subarray(start, end)
  20568. newBuf.__proto__ = Buffer.prototype
  20569. } else {
  20570. var sliceLen = end - start
  20571. newBuf = new Buffer(sliceLen, undefined)
  20572. for (var i = 0; i < sliceLen; ++i) {
  20573. newBuf[i] = this[i + start]
  20574. }
  20575. }
  20576. return newBuf
  20577. }
  20578. /*
  20579. * Need to make sure that buffer isn't trying to write out of bounds.
  20580. */
  20581. function checkOffset (offset, ext, length) {
  20582. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  20583. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  20584. }
  20585. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  20586. offset = offset | 0
  20587. byteLength = byteLength | 0
  20588. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20589. var val = this[offset]
  20590. var mul = 1
  20591. var i = 0
  20592. while (++i < byteLength && (mul *= 0x100)) {
  20593. val += this[offset + i] * mul
  20594. }
  20595. return val
  20596. }
  20597. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  20598. offset = offset | 0
  20599. byteLength = byteLength | 0
  20600. if (!noAssert) {
  20601. checkOffset(offset, byteLength, this.length)
  20602. }
  20603. var val = this[offset + --byteLength]
  20604. var mul = 1
  20605. while (byteLength > 0 && (mul *= 0x100)) {
  20606. val += this[offset + --byteLength] * mul
  20607. }
  20608. return val
  20609. }
  20610. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  20611. if (!noAssert) checkOffset(offset, 1, this.length)
  20612. return this[offset]
  20613. }
  20614. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  20615. if (!noAssert) checkOffset(offset, 2, this.length)
  20616. return this[offset] | (this[offset + 1] << 8)
  20617. }
  20618. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  20619. if (!noAssert) checkOffset(offset, 2, this.length)
  20620. return (this[offset] << 8) | this[offset + 1]
  20621. }
  20622. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  20623. if (!noAssert) checkOffset(offset, 4, this.length)
  20624. return ((this[offset]) |
  20625. (this[offset + 1] << 8) |
  20626. (this[offset + 2] << 16)) +
  20627. (this[offset + 3] * 0x1000000)
  20628. }
  20629. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  20630. if (!noAssert) checkOffset(offset, 4, this.length)
  20631. return (this[offset] * 0x1000000) +
  20632. ((this[offset + 1] << 16) |
  20633. (this[offset + 2] << 8) |
  20634. this[offset + 3])
  20635. }
  20636. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  20637. offset = offset | 0
  20638. byteLength = byteLength | 0
  20639. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20640. var val = this[offset]
  20641. var mul = 1
  20642. var i = 0
  20643. while (++i < byteLength && (mul *= 0x100)) {
  20644. val += this[offset + i] * mul
  20645. }
  20646. mul *= 0x80
  20647. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20648. return val
  20649. }
  20650. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  20651. offset = offset | 0
  20652. byteLength = byteLength | 0
  20653. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20654. var i = byteLength
  20655. var mul = 1
  20656. var val = this[offset + --i]
  20657. while (i > 0 && (mul *= 0x100)) {
  20658. val += this[offset + --i] * mul
  20659. }
  20660. mul *= 0x80
  20661. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20662. return val
  20663. }
  20664. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  20665. if (!noAssert) checkOffset(offset, 1, this.length)
  20666. if (!(this[offset] & 0x80)) return (this[offset])
  20667. return ((0xff - this[offset] + 1) * -1)
  20668. }
  20669. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  20670. if (!noAssert) checkOffset(offset, 2, this.length)
  20671. var val = this[offset] | (this[offset + 1] << 8)
  20672. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20673. }
  20674. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  20675. if (!noAssert) checkOffset(offset, 2, this.length)
  20676. var val = this[offset + 1] | (this[offset] << 8)
  20677. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20678. }
  20679. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  20680. if (!noAssert) checkOffset(offset, 4, this.length)
  20681. return (this[offset]) |
  20682. (this[offset + 1] << 8) |
  20683. (this[offset + 2] << 16) |
  20684. (this[offset + 3] << 24)
  20685. }
  20686. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  20687. if (!noAssert) checkOffset(offset, 4, this.length)
  20688. return (this[offset] << 24) |
  20689. (this[offset + 1] << 16) |
  20690. (this[offset + 2] << 8) |
  20691. (this[offset + 3])
  20692. }
  20693. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  20694. if (!noAssert) checkOffset(offset, 4, this.length)
  20695. return ieee754.read(this, offset, true, 23, 4)
  20696. }
  20697. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  20698. if (!noAssert) checkOffset(offset, 4, this.length)
  20699. return ieee754.read(this, offset, false, 23, 4)
  20700. }
  20701. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  20702. if (!noAssert) checkOffset(offset, 8, this.length)
  20703. return ieee754.read(this, offset, true, 52, 8)
  20704. }
  20705. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  20706. if (!noAssert) checkOffset(offset, 8, this.length)
  20707. return ieee754.read(this, offset, false, 52, 8)
  20708. }
  20709. function checkInt (buf, value, offset, ext, max, min) {
  20710. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  20711. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  20712. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  20713. }
  20714. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  20715. value = +value
  20716. offset = offset | 0
  20717. byteLength = byteLength | 0
  20718. if (!noAssert) {
  20719. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20720. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20721. }
  20722. var mul = 1
  20723. var i = 0
  20724. this[offset] = value & 0xFF
  20725. while (++i < byteLength && (mul *= 0x100)) {
  20726. this[offset + i] = (value / mul) & 0xFF
  20727. }
  20728. return offset + byteLength
  20729. }
  20730. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  20731. value = +value
  20732. offset = offset | 0
  20733. byteLength = byteLength | 0
  20734. if (!noAssert) {
  20735. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20736. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20737. }
  20738. var i = byteLength - 1
  20739. var mul = 1
  20740. this[offset + i] = value & 0xFF
  20741. while (--i >= 0 && (mul *= 0x100)) {
  20742. this[offset + i] = (value / mul) & 0xFF
  20743. }
  20744. return offset + byteLength
  20745. }
  20746. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  20747. value = +value
  20748. offset = offset | 0
  20749. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  20750. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20751. this[offset] = (value & 0xff)
  20752. return offset + 1
  20753. }
  20754. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  20755. if (value < 0) value = 0xffff + value + 1
  20756. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  20757. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  20758. (littleEndian ? i : 1 - i) * 8
  20759. }
  20760. }
  20761. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  20762. value = +value
  20763. offset = offset | 0
  20764. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20765. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20766. this[offset] = (value & 0xff)
  20767. this[offset + 1] = (value >>> 8)
  20768. } else {
  20769. objectWriteUInt16(this, value, offset, true)
  20770. }
  20771. return offset + 2
  20772. }
  20773. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  20774. value = +value
  20775. offset = offset | 0
  20776. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20777. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20778. this[offset] = (value >>> 8)
  20779. this[offset + 1] = (value & 0xff)
  20780. } else {
  20781. objectWriteUInt16(this, value, offset, false)
  20782. }
  20783. return offset + 2
  20784. }
  20785. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  20786. if (value < 0) value = 0xffffffff + value + 1
  20787. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  20788. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  20789. }
  20790. }
  20791. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  20792. value = +value
  20793. offset = offset | 0
  20794. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20795. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20796. this[offset + 3] = (value >>> 24)
  20797. this[offset + 2] = (value >>> 16)
  20798. this[offset + 1] = (value >>> 8)
  20799. this[offset] = (value & 0xff)
  20800. } else {
  20801. objectWriteUInt32(this, value, offset, true)
  20802. }
  20803. return offset + 4
  20804. }
  20805. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  20806. value = +value
  20807. offset = offset | 0
  20808. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20809. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20810. this[offset] = (value >>> 24)
  20811. this[offset + 1] = (value >>> 16)
  20812. this[offset + 2] = (value >>> 8)
  20813. this[offset + 3] = (value & 0xff)
  20814. } else {
  20815. objectWriteUInt32(this, value, offset, false)
  20816. }
  20817. return offset + 4
  20818. }
  20819. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  20820. value = +value
  20821. offset = offset | 0
  20822. if (!noAssert) {
  20823. var limit = Math.pow(2, 8 * byteLength - 1)
  20824. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20825. }
  20826. var i = 0
  20827. var mul = 1
  20828. var sub = 0
  20829. this[offset] = value & 0xFF
  20830. while (++i < byteLength && (mul *= 0x100)) {
  20831. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  20832. sub = 1
  20833. }
  20834. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20835. }
  20836. return offset + byteLength
  20837. }
  20838. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  20839. value = +value
  20840. offset = offset | 0
  20841. if (!noAssert) {
  20842. var limit = Math.pow(2, 8 * byteLength - 1)
  20843. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20844. }
  20845. var i = byteLength - 1
  20846. var mul = 1
  20847. var sub = 0
  20848. this[offset + i] = value & 0xFF
  20849. while (--i >= 0 && (mul *= 0x100)) {
  20850. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  20851. sub = 1
  20852. }
  20853. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20854. }
  20855. return offset + byteLength
  20856. }
  20857. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  20858. value = +value
  20859. offset = offset | 0
  20860. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  20861. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20862. if (value < 0) value = 0xff + value + 1
  20863. this[offset] = (value & 0xff)
  20864. return offset + 1
  20865. }
  20866. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  20867. value = +value
  20868. offset = offset | 0
  20869. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20870. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20871. this[offset] = (value & 0xff)
  20872. this[offset + 1] = (value >>> 8)
  20873. } else {
  20874. objectWriteUInt16(this, value, offset, true)
  20875. }
  20876. return offset + 2
  20877. }
  20878. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  20879. value = +value
  20880. offset = offset | 0
  20881. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20882. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20883. this[offset] = (value >>> 8)
  20884. this[offset + 1] = (value & 0xff)
  20885. } else {
  20886. objectWriteUInt16(this, value, offset, false)
  20887. }
  20888. return offset + 2
  20889. }
  20890. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  20891. value = +value
  20892. offset = offset | 0
  20893. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20894. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20895. this[offset] = (value & 0xff)
  20896. this[offset + 1] = (value >>> 8)
  20897. this[offset + 2] = (value >>> 16)
  20898. this[offset + 3] = (value >>> 24)
  20899. } else {
  20900. objectWriteUInt32(this, value, offset, true)
  20901. }
  20902. return offset + 4
  20903. }
  20904. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  20905. value = +value
  20906. offset = offset | 0
  20907. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20908. if (value < 0) value = 0xffffffff + value + 1
  20909. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20910. this[offset] = (value >>> 24)
  20911. this[offset + 1] = (value >>> 16)
  20912. this[offset + 2] = (value >>> 8)
  20913. this[offset + 3] = (value & 0xff)
  20914. } else {
  20915. objectWriteUInt32(this, value, offset, false)
  20916. }
  20917. return offset + 4
  20918. }
  20919. function checkIEEE754 (buf, value, offset, ext, max, min) {
  20920. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  20921. if (offset < 0) throw new RangeError('Index out of range')
  20922. }
  20923. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  20924. if (!noAssert) {
  20925. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  20926. }
  20927. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  20928. return offset + 4
  20929. }
  20930. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  20931. return writeFloat(this, value, offset, true, noAssert)
  20932. }
  20933. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  20934. return writeFloat(this, value, offset, false, noAssert)
  20935. }
  20936. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  20937. if (!noAssert) {
  20938. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  20939. }
  20940. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  20941. return offset + 8
  20942. }
  20943. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  20944. return writeDouble(this, value, offset, true, noAssert)
  20945. }
  20946. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  20947. return writeDouble(this, value, offset, false, noAssert)
  20948. }
  20949. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  20950. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  20951. if (!start) start = 0
  20952. if (!end && end !== 0) end = this.length
  20953. if (targetStart >= target.length) targetStart = target.length
  20954. if (!targetStart) targetStart = 0
  20955. if (end > 0 && end < start) end = start
  20956. // Copy 0 bytes; we're done
  20957. if (end === start) return 0
  20958. if (target.length === 0 || this.length === 0) return 0
  20959. // Fatal error conditions
  20960. if (targetStart < 0) {
  20961. throw new RangeError('targetStart out of bounds')
  20962. }
  20963. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  20964. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  20965. // Are we oob?
  20966. if (end > this.length) end = this.length
  20967. if (target.length - targetStart < end - start) {
  20968. end = target.length - targetStart + start
  20969. }
  20970. var len = end - start
  20971. var i
  20972. if (this === target && start < targetStart && targetStart < end) {
  20973. // descending copy from end
  20974. for (i = len - 1; i >= 0; --i) {
  20975. target[i + targetStart] = this[i + start]
  20976. }
  20977. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  20978. // ascending copy from start
  20979. for (i = 0; i < len; ++i) {
  20980. target[i + targetStart] = this[i + start]
  20981. }
  20982. } else {
  20983. Uint8Array.prototype.set.call(
  20984. target,
  20985. this.subarray(start, start + len),
  20986. targetStart
  20987. )
  20988. }
  20989. return len
  20990. }
  20991. // Usage:
  20992. // buffer.fill(number[, offset[, end]])
  20993. // buffer.fill(buffer[, offset[, end]])
  20994. // buffer.fill(string[, offset[, end]][, encoding])
  20995. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  20996. // Handle string cases:
  20997. if (typeof val === 'string') {
  20998. if (typeof start === 'string') {
  20999. encoding = start
  21000. start = 0
  21001. end = this.length
  21002. } else if (typeof end === 'string') {
  21003. encoding = end
  21004. end = this.length
  21005. }
  21006. if (val.length === 1) {
  21007. var code = val.charCodeAt(0)
  21008. if (code < 256) {
  21009. val = code
  21010. }
  21011. }
  21012. if (encoding !== undefined && typeof encoding !== 'string') {
  21013. throw new TypeError('encoding must be a string')
  21014. }
  21015. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  21016. throw new TypeError('Unknown encoding: ' + encoding)
  21017. }
  21018. } else if (typeof val === 'number') {
  21019. val = val & 255
  21020. }
  21021. // Invalid ranges are not set to a default, so can range check early.
  21022. if (start < 0 || this.length < start || this.length < end) {
  21023. throw new RangeError('Out of range index')
  21024. }
  21025. if (end <= start) {
  21026. return this
  21027. }
  21028. start = start >>> 0
  21029. end = end === undefined ? this.length : end >>> 0
  21030. if (!val) val = 0
  21031. var i
  21032. if (typeof val === 'number') {
  21033. for (i = start; i < end; ++i) {
  21034. this[i] = val
  21035. }
  21036. } else {
  21037. var bytes = Buffer.isBuffer(val)
  21038. ? val
  21039. : utf8ToBytes(new Buffer(val, encoding).toString())
  21040. var len = bytes.length
  21041. for (i = 0; i < end - start; ++i) {
  21042. this[i + start] = bytes[i % len]
  21043. }
  21044. }
  21045. return this
  21046. }
  21047. // HELPER FUNCTIONS
  21048. // ================
  21049. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  21050. function base64clean (str) {
  21051. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  21052. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  21053. // Node converts strings with length < 2 to ''
  21054. if (str.length < 2) return ''
  21055. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  21056. while (str.length % 4 !== 0) {
  21057. str = str + '='
  21058. }
  21059. return str
  21060. }
  21061. function stringtrim (str) {
  21062. if (str.trim) return str.trim()
  21063. return str.replace(/^\s+|\s+$/g, '')
  21064. }
  21065. function toHex (n) {
  21066. if (n < 16) return '0' + n.toString(16)
  21067. return n.toString(16)
  21068. }
  21069. function utf8ToBytes (string, units) {
  21070. units = units || Infinity
  21071. var codePoint
  21072. var length = string.length
  21073. var leadSurrogate = null
  21074. var bytes = []
  21075. for (var i = 0; i < length; ++i) {
  21076. codePoint = string.charCodeAt(i)
  21077. // is surrogate component
  21078. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  21079. // last char was a lead
  21080. if (!leadSurrogate) {
  21081. // no lead yet
  21082. if (codePoint > 0xDBFF) {
  21083. // unexpected trail
  21084. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21085. continue
  21086. } else if (i + 1 === length) {
  21087. // unpaired lead
  21088. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21089. continue
  21090. }
  21091. // valid lead
  21092. leadSurrogate = codePoint
  21093. continue
  21094. }
  21095. // 2 leads in a row
  21096. if (codePoint < 0xDC00) {
  21097. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21098. leadSurrogate = codePoint
  21099. continue
  21100. }
  21101. // valid surrogate pair
  21102. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  21103. } else if (leadSurrogate) {
  21104. // valid bmp char, but last char was a lead
  21105. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21106. }
  21107. leadSurrogate = null
  21108. // encode utf8
  21109. if (codePoint < 0x80) {
  21110. if ((units -= 1) < 0) break
  21111. bytes.push(codePoint)
  21112. } else if (codePoint < 0x800) {
  21113. if ((units -= 2) < 0) break
  21114. bytes.push(
  21115. codePoint >> 0x6 | 0xC0,
  21116. codePoint & 0x3F | 0x80
  21117. )
  21118. } else if (codePoint < 0x10000) {
  21119. if ((units -= 3) < 0) break
  21120. bytes.push(
  21121. codePoint >> 0xC | 0xE0,
  21122. codePoint >> 0x6 & 0x3F | 0x80,
  21123. codePoint & 0x3F | 0x80
  21124. )
  21125. } else if (codePoint < 0x110000) {
  21126. if ((units -= 4) < 0) break
  21127. bytes.push(
  21128. codePoint >> 0x12 | 0xF0,
  21129. codePoint >> 0xC & 0x3F | 0x80,
  21130. codePoint >> 0x6 & 0x3F | 0x80,
  21131. codePoint & 0x3F | 0x80
  21132. )
  21133. } else {
  21134. throw new Error('Invalid code point')
  21135. }
  21136. }
  21137. return bytes
  21138. }
  21139. function asciiToBytes (str) {
  21140. var byteArray = []
  21141. for (var i = 0; i < str.length; ++i) {
  21142. // Node's code seems to be doing this and not & 0x7F..
  21143. byteArray.push(str.charCodeAt(i) & 0xFF)
  21144. }
  21145. return byteArray
  21146. }
  21147. function utf16leToBytes (str, units) {
  21148. var c, hi, lo
  21149. var byteArray = []
  21150. for (var i = 0; i < str.length; ++i) {
  21151. if ((units -= 2) < 0) break
  21152. c = str.charCodeAt(i)
  21153. hi = c >> 8
  21154. lo = c % 256
  21155. byteArray.push(lo)
  21156. byteArray.push(hi)
  21157. }
  21158. return byteArray
  21159. }
  21160. function base64ToBytes (str) {
  21161. return base64.toByteArray(base64clean(str))
  21162. }
  21163. function blitBuffer (src, dst, offset, length) {
  21164. for (var i = 0; i < length; ++i) {
  21165. if ((i + offset >= dst.length) || (i >= src.length)) break
  21166. dst[i + offset] = src[i]
  21167. }
  21168. return i
  21169. }
  21170. function isnan (val) {
  21171. return val !== val // eslint-disable-line no-self-compare
  21172. }
  21173. /***/ }),
  21174. /***/ "./node_modules/call-bind/callBound.js":
  21175. /*!*********************************************!*\
  21176. !*** ./node_modules/call-bind/callBound.js ***!
  21177. \*********************************************/
  21178. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21179. "use strict";
  21180. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21181. var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js");
  21182. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  21183. module.exports = function callBoundIntrinsic(name, allowMissing) {
  21184. var intrinsic = GetIntrinsic(name, !!allowMissing);
  21185. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  21186. return callBind(intrinsic);
  21187. }
  21188. return intrinsic;
  21189. };
  21190. /***/ }),
  21191. /***/ "./node_modules/call-bind/index.js":
  21192. /*!*****************************************!*\
  21193. !*** ./node_modules/call-bind/index.js ***!
  21194. \*****************************************/
  21195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21196. "use strict";
  21197. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  21198. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21199. var $apply = GetIntrinsic('%Function.prototype.apply%');
  21200. var $call = GetIntrinsic('%Function.prototype.call%');
  21201. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  21202. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  21203. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  21204. var $max = GetIntrinsic('%Math.max%');
  21205. if ($defineProperty) {
  21206. try {
  21207. $defineProperty({}, 'a', { value: 1 });
  21208. } catch (e) {
  21209. // IE 8 has a broken defineProperty
  21210. $defineProperty = null;
  21211. }
  21212. }
  21213. module.exports = function callBind(originalFunction) {
  21214. var func = $reflectApply(bind, $call, arguments);
  21215. if ($gOPD && $defineProperty) {
  21216. var desc = $gOPD(func, 'length');
  21217. if (desc.configurable) {
  21218. // original length, plus the receiver, minus any additional arguments (after the receiver)
  21219. $defineProperty(
  21220. func,
  21221. 'length',
  21222. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  21223. );
  21224. }
  21225. }
  21226. return func;
  21227. };
  21228. var applyBind = function applyBind() {
  21229. return $reflectApply(bind, $apply, arguments);
  21230. };
  21231. if ($defineProperty) {
  21232. $defineProperty(module.exports, 'apply', { value: applyBind });
  21233. } else {
  21234. module.exports.apply = applyBind;
  21235. }
  21236. /***/ }),
  21237. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss":
  21238. /*!**************************************************************************************************************************************************************************************************************************************************!*\
  21239. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss ***!
  21240. \**************************************************************************************************************************************************************************************************************************************************/
  21241. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21242. "use strict";
  21243. __webpack_require__.r(__webpack_exports__);
  21244. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21245. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21246. /* harmony export */ });
  21247. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21248. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21249. // Imports
  21250. var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21251. // Module
  21252. ___CSS_LOADER_EXPORT___.push([module.id, "/* General */\n.preloader {\n position: fixed;\n z-index: 999999;\n background: #edf1f5;\n width: 100%;\n height: 100%;\n}\n\n.preloader-content {\n border: 0 solid transparent;\n border-radius: 50%;\n width: 150px;\n height: 150px;\n position: absolute;\n top: calc(50vh - 75px);\n left: calc(50vw - 75px);\n}\n\n.preloader-content:before, .preloader-content:after {\n content: \"\";\n border: 1em solid var(--primary-color);\n border-radius: 50%;\n width: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n left: 0;\n -webkit-animation: loader 2s linear infinite;\n animation: loader 2s linear infinite;\n opacity: 0;\n}\n\n.preloader-content:before {\n -webkit-animation-delay: 0.5s;\n animation-delay: 0.5s;\n}\n\n@-webkit-keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n\n@keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: 100%;\n font-size: 14px;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n background-color: var(--surface-ground);\n margin: 0;\n padding: 0;\n min-height: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\na {\n text-decoration: none;\n color: var(--primary-color);\n}\n\n.layout-theme-light {\n background-color: #edf1f5;\n}\n\n.layout-topbar {\n position: fixed;\n height: 5rem;\n z-index: 997;\n left: 0;\n top: 0;\n width: 100%;\n padding: 0 2rem;\n background-color: var(--surface-card);\n transition: left 0.2s;\n display: flex;\n align-items: center;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n.layout-topbar .layout-topbar-logo {\n display: flex;\n align-items: center;\n color: var(--surface-900);\n font-size: 1.5rem;\n font-weight: 500;\n width: 300px;\n border-radius: 12px;\n}\n.layout-topbar .layout-topbar-logo img {\n height: 2.5rem;\n margin-right: 0.5rem;\n}\n.layout-topbar .layout-topbar-logo:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--text-color-secondary);\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n cursor: pointer;\n transition: background-color 0.2s;\n}\n.layout-topbar .layout-topbar-button:hover {\n color: var(--text-color);\n background-color: var(--surface-hover);\n}\n.layout-topbar .layout-topbar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button i {\n font-size: 1.5rem;\n}\n.layout-topbar .layout-topbar-button span {\n font-size: 1rem;\n display: none;\n}\n.layout-topbar .layout-menu-button {\n margin-left: 2rem;\n}\n.layout-topbar .layout-topbar-menu-button {\n display: none;\n}\n.layout-topbar .layout-topbar-menu-button i {\n font-size: 1.25rem;\n}\n.layout-topbar .layout-topbar-menu {\n margin: 0 0 0 auto;\n padding: 0;\n list-style: none;\n display: flex;\n}\n.layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 1rem;\n}\n\n@media (max-width: 991px) {\n .layout-topbar {\n justify-content: space-between;\n }\n .layout-topbar .layout-topbar-logo {\n width: auto;\n order: 2;\n }\n .layout-topbar .layout-menu-button {\n margin-left: 0;\n order: 1;\n }\n .layout-topbar .layout-topbar-menu-button {\n display: inline-flex;\n margin-left: 0;\n order: 3;\n }\n .layout-topbar .layout-topbar-menu {\n margin-left: 0;\n position: absolute;\n flex-direction: column;\n background-color: var(--surface-overlay);\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n border-radius: 12px;\n padding: 1rem;\n right: 2rem;\n top: 5rem;\n min-width: 15rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 0;\n display: flex;\n width: 100%;\n height: auto;\n justify-content: flex-start;\n border-radius: 12px;\n padding: 1rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button i {\n font-size: 1rem;\n margin-right: 0.5rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button span {\n font-weight: medium;\n display: block;\n }\n}\n.layout-sidebar {\n position: fixed;\n width: 300px;\n height: calc(100vh - 9rem);\n z-index: 999;\n overflow-y: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n top: 7rem;\n left: 2rem;\n transition: transform 0.2s, left 0.2s;\n background-color: var(--surface-overlay);\n border-radius: 12px;\n padding: 1.5rem;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n\n.layout-menu {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li.layout-menuitem-category {\n margin-top: 0.75rem;\n}\n.layout-menu li.layout-menuitem-category:first-child {\n margin-top: 0;\n}\n.layout-menu li .layout-menuitem-root-text {\n text-transform: uppercase;\n color: var(--surface-900);\n font-weight: 600;\n margin-bottom: 0.5rem;\n font-size: 0.875rem;\n}\n.layout-menu li a {\n cursor: pointer;\n text-decoration: none;\n display: flex;\n align-items: center;\n color: var(--text-color);\n transition: color 0.2s;\n border-radius: 12px;\n padding: 0.75rem 1rem;\n transition: background-color 0.15s;\n}\n.layout-menu li a span {\n margin-left: 0.5rem;\n}\n.layout-menu li a .menuitem-toggle-icon {\n margin-left: auto;\n}\n.layout-menu li a:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: inset var(--focus-ring);\n}\n.layout-menu li a:hover {\n background-color: var(--surface-hover);\n}\n.layout-menu li a.router-link-exact-active {\n font-weight: 700;\n color: var(--primary-color);\n}\n.layout-menu li a .p-badge {\n margin-left: auto;\n}\n.layout-menu li.active-menuitem > a .menuitem-toggle-icon:before {\n content: \"\\e933\";\n}\n.layout-menu li ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-from, .layout-menu li ul.layout-submenu-wrapper-leave-to {\n max-height: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-to, .layout-menu li ul.layout-submenu-wrapper-leave-from {\n max-height: 1000px;\n}\n.layout-menu li ul.layout-submenu-wrapper-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n.layout-menu li ul ul {\n padding-left: 1rem;\n}\n\n.layout-main-container {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n justify-content: space-between;\n padding: 7rem 2rem 2rem 4rem;\n transition: margin-left 0.2s;\n}\n\n.layout-main {\n flex: 1 1 auto;\n}\n\n.layout-footer {\n transition: margin-left 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n border-top: 1px solid var(--surface-border);\n}\n\n@media (min-width: 992px) {\n .layout-wrapper.layout-overlay .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper.layout-overlay .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper.layout-overlay.layout-overlay-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-static .layout-main-container {\n margin-left: 300px;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-mask {\n display: none;\n }\n}\n@media (max-width: 991px) {\n .layout-wrapper .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper .layout-mask {\n z-index: 998;\n background-color: var(--maskbg);\n }\n .layout-wrapper .layout-mask.layout-mask-enter-from, .layout-wrapper .layout-mask.layout-mask-leave-to {\n background-color: transparent;\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-mask {\n display: block;\n }\n\n .body-overflow-hidden {\n overflow: hidden;\n }\n}\n.card {\n background-color: var(--surface-card);\n padding: 1.5rem;\n color: var(--surface-900);\n margin-bottom: 1rem;\n border-radius: 12px;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n.card.card-w-title {\n padding-bottom: 2rem;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 1.5rem 0 1rem 0;\n font-family: inherit;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n}\nh1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {\n margin-top: 0;\n}\n\nh1 {\n font-size: 2.5rem;\n}\n\nh2 {\n font-size: 2rem;\n}\n\nh3 {\n font-size: 1.75rem;\n}\n\nh4 {\n font-size: 1.5rem;\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nmark {\n background: #FFF8E1;\n padding: 0.25rem 0.4rem;\n border-radius: 12px;\n font-family: monospace;\n}\n\nblockquote {\n margin: 1rem 0;\n padding: 0 2rem;\n border-left: 4px solid #90A4AE;\n}\n\nhr {\n border-top: solid var(--surface-border);\n border-width: 1px 0 0 0;\n margin: 1rem 0;\n}\n\np {\n margin: 0 0 1rem 0;\n line-height: 1.5;\n}\np:last-child {\n margin-bottom: 0;\n}", ""]);
  21253. // Exports
  21254. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21255. /***/ }),
  21256. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css":
  21257. /*!******************************************************************************************************************************************************************************!*\
  21258. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css ***!
  21259. \******************************************************************************************************************************************************************************/
  21260. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21261. "use strict";
  21262. __webpack_require__.r(__webpack_exports__);
  21263. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21264. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21265. /* harmony export */ });
  21266. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21267. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21268. // Imports
  21269. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21270. // Module
  21271. ___CSS_LOADER_EXPORT___.push([module.id, ".grid {\n display: flex;\n flex-wrap: wrap;\n margin-right: -0.5rem;\n margin-left: -0.5rem;\n margin-top: -0.5rem;\n}\n\n.grid > .col,\n.grid > [class*=col] {\n box-sizing: border-box;\n}\n\n.grid-nogutter {\n margin-right: 0;\n margin-left: 0;\n margin-top: 0;\n}\n\n.grid-nogutter > .col,\n.grid-nogutter > [class*=col-] {\n padding: 0;\n}\n\n.col {\n flex-grow: 1;\n flex-basis: 0;\n padding: 0.5rem;\n}\n\n.col-fixed {\n flex: 0 0 auto;\n padding: 0.5rem;\n}\n\n.col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n}\n\n.col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n}\n\n.col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n}\n\n.col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n}\n\n.col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n}\n\n.col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n}\n\n.col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n}\n\n.col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n}\n\n.col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n}\n\n.col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n}\n\n.col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n}\n\n.col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .sm\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .sm\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .sm\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .sm\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .sm\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .sm\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .sm\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .sm\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .sm\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .sm\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .sm\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .md\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .md\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .md\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .md\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .md\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .md\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .md\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .md\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .md\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .md\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .md\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .lg\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .lg\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .lg\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .lg\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .lg\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .lg\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .lg\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .lg\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .lg\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .lg\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .lg\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .xl\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .xl\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .xl\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .xl\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .xl\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .xl\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .xl\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .xl\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .xl\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .xl\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .xl\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n.col-offset-0 {\n margin-left: 0 !important;\n}\n\n.col-offset-1 {\n margin-left: 8.3333% !important;\n}\n\n.col-offset-2 {\n margin-left: 16.6667% !important;\n}\n\n.col-offset-3 {\n margin-left: 25% !important;\n}\n\n.col-offset-4 {\n margin-left: 33.3333% !important;\n}\n\n.col-offset-5 {\n margin-left: 41.6667% !important;\n}\n\n.col-offset-6 {\n margin-left: 50% !important;\n}\n\n.col-offset-7 {\n margin-left: 58.3333% !important;\n}\n\n.col-offset-8 {\n margin-left: 66.6667% !important;\n}\n\n.col-offset-9 {\n margin-left: 75% !important;\n}\n\n.col-offset-10 {\n margin-left: 83.3333% !important;\n}\n\n.col-offset-11 {\n margin-left: 91.6667% !important;\n}\n\n.col-offset-12 {\n margin-left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .sm\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .sm\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .sm\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .sm\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .sm\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .sm\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .sm\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .sm\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .sm\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .sm\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .sm\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .sm\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .md\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .md\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .md\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .md\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .md\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .md\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .md\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .md\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .md\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .md\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .md\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .md\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .lg\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .lg\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .lg\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .lg\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .lg\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .lg\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .lg\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .lg\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .lg\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .lg\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .lg\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .lg\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .xl\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .xl\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .xl\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .xl\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .xl\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .xl\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .xl\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .xl\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .xl\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .xl\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .xl\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .xl\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n.text-0 {\n color: var(--surface-0) !important;\n}\n\n.text-50 {\n color: var(--surface-50) !important;\n}\n\n.text-100 {\n color: var(--surface-100) !important;\n}\n\n.text-200 {\n color: var(--surface-200) !important;\n}\n\n.text-300 {\n color: var(--surface-300) !important;\n}\n\n.text-400 {\n color: var(--surface-400) !important;\n}\n\n.text-500 {\n color: var(--surface-500) !important;\n}\n\n.text-600 {\n color: var(--surface-600) !important;\n}\n\n.text-700 {\n color: var(--surface-700) !important;\n}\n\n.text-800 {\n color: var(--surface-800) !important;\n}\n\n.text-900 {\n color: var(--surface-900) !important;\n}\n\n.focus\\:text-0:focus {\n color: var(--surface-0) !important;\n}\n\n.hover\\:text-0:hover {\n color: var(--surface-0) !important;\n}\n\n.active\\:text-0:active {\n color: var(--surface-0) !important;\n}\n\n.focus\\:text-50:focus {\n color: var(--surface-50) !important;\n}\n\n.hover\\:text-50:hover {\n color: var(--surface-50) !important;\n}\n\n.active\\:text-50:active {\n color: var(--surface-50) !important;\n}\n\n.focus\\:text-100:focus {\n color: var(--surface-100) !important;\n}\n\n.hover\\:text-100:hover {\n color: var(--surface-100) !important;\n}\n\n.active\\:text-100:active {\n color: var(--surface-100) !important;\n}\n\n.focus\\:text-200:focus {\n color: var(--surface-200) !important;\n}\n\n.hover\\:text-200:hover {\n color: var(--surface-200) !important;\n}\n\n.active\\:text-200:active {\n color: var(--surface-200) !important;\n}\n\n.focus\\:text-300:focus {\n color: var(--surface-300) !important;\n}\n\n.hover\\:text-300:hover {\n color: var(--surface-300) !important;\n}\n\n.active\\:text-300:active {\n color: var(--surface-300) !important;\n}\n\n.focus\\:text-400:focus {\n color: var(--surface-400) !important;\n}\n\n.hover\\:text-400:hover {\n color: var(--surface-400) !important;\n}\n\n.active\\:text-400:active {\n color: var(--surface-400) !important;\n}\n\n.focus\\:text-500:focus {\n color: var(--surface-500) !important;\n}\n\n.hover\\:text-500:hover {\n color: var(--surface-500) !important;\n}\n\n.active\\:text-500:active {\n color: var(--surface-500) !important;\n}\n\n.focus\\:text-600:focus {\n color: var(--surface-600) !important;\n}\n\n.hover\\:text-600:hover {\n color: var(--surface-600) !important;\n}\n\n.active\\:text-600:active {\n color: var(--surface-600) !important;\n}\n\n.focus\\:text-700:focus {\n color: var(--surface-700) !important;\n}\n\n.hover\\:text-700:hover {\n color: var(--surface-700) !important;\n}\n\n.active\\:text-700:active {\n color: var(--surface-700) !important;\n}\n\n.focus\\:text-800:focus {\n color: var(--surface-800) !important;\n}\n\n.hover\\:text-800:hover {\n color: var(--surface-800) !important;\n}\n\n.active\\:text-800:active {\n color: var(--surface-800) !important;\n}\n\n.focus\\:text-900:focus {\n color: var(--surface-900) !important;\n}\n\n.hover\\:text-900:hover {\n color: var(--surface-900) !important;\n}\n\n.active\\:text-900:active {\n color: var(--surface-900) !important;\n}\n\n.surface-0 {\n background-color: var(--surface-0) !important;\n}\n\n.surface-50 {\n background-color: var(--surface-50) !important;\n}\n\n.surface-100 {\n background-color: var(--surface-100) !important;\n}\n\n.surface-200 {\n background-color: var(--surface-200) !important;\n}\n\n.surface-300 {\n background-color: var(--surface-300) !important;\n}\n\n.surface-400 {\n background-color: var(--surface-400) !important;\n}\n\n.surface-500 {\n background-color: var(--surface-500) !important;\n}\n\n.surface-600 {\n background-color: var(--surface-600) !important;\n}\n\n.surface-700 {\n background-color: var(--surface-700) !important;\n}\n\n.surface-800 {\n background-color: var(--surface-800) !important;\n}\n\n.surface-900 {\n background-color: var(--surface-900) !important;\n}\n\n.focus\\:surface-0:focus {\n background-color: var(--surface-0) !important;\n}\n\n.hover\\:surface-0:hover {\n background-color: var(--surface-0) !important;\n}\n\n.active\\:surface-0:active {\n background-color: var(--surface-0) !important;\n}\n\n.focus\\:surface-50:focus {\n background-color: var(--surface-50) !important;\n}\n\n.hover\\:surface-50:hover {\n background-color: var(--surface-50) !important;\n}\n\n.active\\:surface-50:active {\n background-color: var(--surface-50) !important;\n}\n\n.focus\\:surface-100:focus {\n background-color: var(--surface-100) !important;\n}\n\n.hover\\:surface-100:hover {\n background-color: var(--surface-100) !important;\n}\n\n.active\\:surface-100:active {\n background-color: var(--surface-100) !important;\n}\n\n.focus\\:surface-200:focus {\n background-color: var(--surface-200) !important;\n}\n\n.hover\\:surface-200:hover {\n background-color: var(--surface-200) !important;\n}\n\n.active\\:surface-200:active {\n background-color: var(--surface-200) !important;\n}\n\n.focus\\:surface-300:focus {\n background-color: var(--surface-300) !important;\n}\n\n.hover\\:surface-300:hover {\n background-color: var(--surface-300) !important;\n}\n\n.active\\:surface-300:active {\n background-color: var(--surface-300) !important;\n}\n\n.focus\\:surface-400:focus {\n background-color: var(--surface-400) !important;\n}\n\n.hover\\:surface-400:hover {\n background-color: var(--surface-400) !important;\n}\n\n.active\\:surface-400:active {\n background-color: var(--surface-400) !important;\n}\n\n.focus\\:surface-500:focus {\n background-color: var(--surface-500) !important;\n}\n\n.hover\\:surface-500:hover {\n background-color: var(--surface-500) !important;\n}\n\n.active\\:surface-500:active {\n background-color: var(--surface-500) !important;\n}\n\n.focus\\:surface-600:focus {\n background-color: var(--surface-600) !important;\n}\n\n.hover\\:surface-600:hover {\n background-color: var(--surface-600) !important;\n}\n\n.active\\:surface-600:active {\n background-color: var(--surface-600) !important;\n}\n\n.focus\\:surface-700:focus {\n background-color: var(--surface-700) !important;\n}\n\n.hover\\:surface-700:hover {\n background-color: var(--surface-700) !important;\n}\n\n.active\\:surface-700:active {\n background-color: var(--surface-700) !important;\n}\n\n.focus\\:surface-800:focus {\n background-color: var(--surface-800) !important;\n}\n\n.hover\\:surface-800:hover {\n background-color: var(--surface-800) !important;\n}\n\n.active\\:surface-800:active {\n background-color: var(--surface-800) !important;\n}\n\n.focus\\:surface-900:focus {\n background-color: var(--surface-900) !important;\n}\n\n.hover\\:surface-900:hover {\n background-color: var(--surface-900) !important;\n}\n\n.active\\:surface-900:active {\n background-color: var(--surface-900) !important;\n}\n\n.border-0 {\n border-color: var(--surface-0) !important;\n}\n\n.border-50 {\n border-color: var(--surface-50) !important;\n}\n\n.border-100 {\n border-color: var(--surface-100) !important;\n}\n\n.border-200 {\n border-color: var(--surface-200) !important;\n}\n\n.border-300 {\n border-color: var(--surface-300) !important;\n}\n\n.border-400 {\n border-color: var(--surface-400) !important;\n}\n\n.border-500 {\n border-color: var(--surface-500) !important;\n}\n\n.border-600 {\n border-color: var(--surface-600) !important;\n}\n\n.border-700 {\n border-color: var(--surface-700) !important;\n}\n\n.border-800 {\n border-color: var(--surface-800) !important;\n}\n\n.border-900 {\n border-color: var(--surface-900) !important;\n}\n\n.focus\\:border-0:focus {\n border-color: var(--surface-0) !important;\n}\n\n.hover\\:border-0:hover {\n border-color: var(--surface-0) !important;\n}\n\n.active\\:border-0:active {\n border-color: var(--surface-0) !important;\n}\n\n.focus\\:border-50:focus {\n border-color: var(--surface-50) !important;\n}\n\n.hover\\:border-50:hover {\n border-color: var(--surface-50) !important;\n}\n\n.active\\:border-50:active {\n border-color: var(--surface-50) !important;\n}\n\n.focus\\:border-100:focus {\n border-color: var(--surface-100) !important;\n}\n\n.hover\\:border-100:hover {\n border-color: var(--surface-100) !important;\n}\n\n.active\\:border-100:active {\n border-color: var(--surface-100) !important;\n}\n\n.focus\\:border-200:focus {\n border-color: var(--surface-200) !important;\n}\n\n.hover\\:border-200:hover {\n border-color: var(--surface-200) !important;\n}\n\n.active\\:border-200:active {\n border-color: var(--surface-200) !important;\n}\n\n.focus\\:border-300:focus {\n border-color: var(--surface-300) !important;\n}\n\n.hover\\:border-300:hover {\n border-color: var(--surface-300) !important;\n}\n\n.active\\:border-300:active {\n border-color: var(--surface-300) !important;\n}\n\n.focus\\:border-400:focus {\n border-color: var(--surface-400) !important;\n}\n\n.hover\\:border-400:hover {\n border-color: var(--surface-400) !important;\n}\n\n.active\\:border-400:active {\n border-color: var(--surface-400) !important;\n}\n\n.focus\\:border-500:focus {\n border-color: var(--surface-500) !important;\n}\n\n.hover\\:border-500:hover {\n border-color: var(--surface-500) !important;\n}\n\n.active\\:border-500:active {\n border-color: var(--surface-500) !important;\n}\n\n.focus\\:border-600:focus {\n border-color: var(--surface-600) !important;\n}\n\n.hover\\:border-600:hover {\n border-color: var(--surface-600) !important;\n}\n\n.active\\:border-600:active {\n border-color: var(--surface-600) !important;\n}\n\n.focus\\:border-700:focus {\n border-color: var(--surface-700) !important;\n}\n\n.hover\\:border-700:hover {\n border-color: var(--surface-700) !important;\n}\n\n.active\\:border-700:active {\n border-color: var(--surface-700) !important;\n}\n\n.focus\\:border-800:focus {\n border-color: var(--surface-800) !important;\n}\n\n.hover\\:border-800:hover {\n border-color: var(--surface-800) !important;\n}\n\n.active\\:border-800:active {\n border-color: var(--surface-800) !important;\n}\n\n.focus\\:border-900:focus {\n border-color: var(--surface-900) !important;\n}\n\n.hover\\:border-900:hover {\n border-color: var(--surface-900) !important;\n}\n\n.active\\:border-900:active {\n border-color: var(--surface-900) !important;\n}\n\n.bg-transparent {\n background-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n.border-transparent {\n border-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-transparent {\n border-color: transparent !important;\n }\n}\n.text-blue-50 {\n color: var(--blue-50) !important;\n}\n.text-blue-100 {\n color: var(--blue-100) !important;\n}\n.text-blue-200 {\n color: var(--blue-200) !important;\n}\n.text-blue-300 {\n color: var(--blue-300) !important;\n}\n.text-blue-400 {\n color: var(--blue-400) !important;\n}\n.text-blue-500 {\n color: var(--blue-500) !important;\n}\n.text-blue-600 {\n color: var(--blue-600) !important;\n}\n.text-blue-700 {\n color: var(--blue-700) !important;\n}\n.text-blue-800 {\n color: var(--blue-800) !important;\n}\n.text-blue-900 {\n color: var(--blue-900) !important;\n}\n\n.focus\\:text-blue-50:focus {\n color: var(--blue-50) !important;\n}\n.focus\\:text-blue-100:focus {\n color: var(--blue-100) !important;\n}\n.focus\\:text-blue-200:focus {\n color: var(--blue-200) !important;\n}\n.focus\\:text-blue-300:focus {\n color: var(--blue-300) !important;\n}\n.focus\\:text-blue-400:focus {\n color: var(--blue-400) !important;\n}\n.focus\\:text-blue-500:focus {\n color: var(--blue-500) !important;\n}\n.focus\\:text-blue-600:focus {\n color: var(--blue-600) !important;\n}\n.focus\\:text-blue-700:focus {\n color: var(--blue-700) !important;\n}\n.focus\\:text-blue-800:focus {\n color: var(--blue-800) !important;\n}\n.focus\\:text-blue-900:focus {\n color: var(--blue-900) !important;\n}\n\n.hover\\:text-blue-50:hover {\n color: var(--blue-50) !important;\n}\n.hover\\:text-blue-100:hover {\n color: var(--blue-100) !important;\n}\n.hover\\:text-blue-200:hover {\n color: var(--blue-200) !important;\n}\n.hover\\:text-blue-300:hover {\n color: var(--blue-300) !important;\n}\n.hover\\:text-blue-400:hover {\n color: var(--blue-400) !important;\n}\n.hover\\:text-blue-500:hover {\n color: var(--blue-500) !important;\n}\n.hover\\:text-blue-600:hover {\n color: var(--blue-600) !important;\n}\n.hover\\:text-blue-700:hover {\n color: var(--blue-700) !important;\n}\n.hover\\:text-blue-800:hover {\n color: var(--blue-800) !important;\n}\n.hover\\:text-blue-900:hover {\n color: var(--blue-900) !important;\n}\n\n.active\\:text-blue-50:active {\n color: var(--blue-50) !important;\n}\n.active\\:text-blue-100:active {\n color: var(--blue-100) !important;\n}\n.active\\:text-blue-200:active {\n color: var(--blue-200) !important;\n}\n.active\\:text-blue-300:active {\n color: var(--blue-300) !important;\n}\n.active\\:text-blue-400:active {\n color: var(--blue-400) !important;\n}\n.active\\:text-blue-500:active {\n color: var(--blue-500) !important;\n}\n.active\\:text-blue-600:active {\n color: var(--blue-600) !important;\n}\n.active\\:text-blue-700:active {\n color: var(--blue-700) !important;\n}\n.active\\:text-blue-800:active {\n color: var(--blue-800) !important;\n}\n.active\\:text-blue-900:active {\n color: var(--blue-900) !important;\n}\n\n.text-green-50 {\n color: var(--green-50) !important;\n}\n.text-green-100 {\n color: var(--green-100) !important;\n}\n.text-green-200 {\n color: var(--green-200) !important;\n}\n.text-green-300 {\n color: var(--green-300) !important;\n}\n.text-green-400 {\n color: var(--green-400) !important;\n}\n.text-green-500 {\n color: var(--green-500) !important;\n}\n.text-green-600 {\n color: var(--green-600) !important;\n}\n.text-green-700 {\n color: var(--green-700) !important;\n}\n.text-green-800 {\n color: var(--green-800) !important;\n}\n.text-green-900 {\n color: var(--green-900) !important;\n}\n\n.focus\\:text-green-50:focus {\n color: var(--green-50) !important;\n}\n.focus\\:text-green-100:focus {\n color: var(--green-100) !important;\n}\n.focus\\:text-green-200:focus {\n color: var(--green-200) !important;\n}\n.focus\\:text-green-300:focus {\n color: var(--green-300) !important;\n}\n.focus\\:text-green-400:focus {\n color: var(--green-400) !important;\n}\n.focus\\:text-green-500:focus {\n color: var(--green-500) !important;\n}\n.focus\\:text-green-600:focus {\n color: var(--green-600) !important;\n}\n.focus\\:text-green-700:focus {\n color: var(--green-700) !important;\n}\n.focus\\:text-green-800:focus {\n color: var(--green-800) !important;\n}\n.focus\\:text-green-900:focus {\n color: var(--green-900) !important;\n}\n\n.hover\\:text-green-50:hover {\n color: var(--green-50) !important;\n}\n.hover\\:text-green-100:hover {\n color: var(--green-100) !important;\n}\n.hover\\:text-green-200:hover {\n color: var(--green-200) !important;\n}\n.hover\\:text-green-300:hover {\n color: var(--green-300) !important;\n}\n.hover\\:text-green-400:hover {\n color: var(--green-400) !important;\n}\n.hover\\:text-green-500:hover {\n color: var(--green-500) !important;\n}\n.hover\\:text-green-600:hover {\n color: var(--green-600) !important;\n}\n.hover\\:text-green-700:hover {\n color: var(--green-700) !important;\n}\n.hover\\:text-green-800:hover {\n color: var(--green-800) !important;\n}\n.hover\\:text-green-900:hover {\n color: var(--green-900) !important;\n}\n\n.active\\:text-green-50:active {\n color: var(--green-50) !important;\n}\n.active\\:text-green-100:active {\n color: var(--green-100) !important;\n}\n.active\\:text-green-200:active {\n color: var(--green-200) !important;\n}\n.active\\:text-green-300:active {\n color: var(--green-300) !important;\n}\n.active\\:text-green-400:active {\n color: var(--green-400) !important;\n}\n.active\\:text-green-500:active {\n color: var(--green-500) !important;\n}\n.active\\:text-green-600:active {\n color: var(--green-600) !important;\n}\n.active\\:text-green-700:active {\n color: var(--green-700) !important;\n}\n.active\\:text-green-800:active {\n color: var(--green-800) !important;\n}\n.active\\:text-green-900:active {\n color: var(--green-900) !important;\n}\n\n.text-yellow-50 {\n color: var(--yellow-50) !important;\n}\n.text-yellow-100 {\n color: var(--yellow-100) !important;\n}\n.text-yellow-200 {\n color: var(--yellow-200) !important;\n}\n.text-yellow-300 {\n color: var(--yellow-300) !important;\n}\n.text-yellow-400 {\n color: var(--yellow-400) !important;\n}\n.text-yellow-500 {\n color: var(--yellow-500) !important;\n}\n.text-yellow-600 {\n color: var(--yellow-600) !important;\n}\n.text-yellow-700 {\n color: var(--yellow-700) !important;\n}\n.text-yellow-800 {\n color: var(--yellow-800) !important;\n}\n.text-yellow-900 {\n color: var(--yellow-900) !important;\n}\n\n.focus\\:text-yellow-50:focus {\n color: var(--yellow-50) !important;\n}\n.focus\\:text-yellow-100:focus {\n color: var(--yellow-100) !important;\n}\n.focus\\:text-yellow-200:focus {\n color: var(--yellow-200) !important;\n}\n.focus\\:text-yellow-300:focus {\n color: var(--yellow-300) !important;\n}\n.focus\\:text-yellow-400:focus {\n color: var(--yellow-400) !important;\n}\n.focus\\:text-yellow-500:focus {\n color: var(--yellow-500) !important;\n}\n.focus\\:text-yellow-600:focus {\n color: var(--yellow-600) !important;\n}\n.focus\\:text-yellow-700:focus {\n color: var(--yellow-700) !important;\n}\n.focus\\:text-yellow-800:focus {\n color: var(--yellow-800) !important;\n}\n.focus\\:text-yellow-900:focus {\n color: var(--yellow-900) !important;\n}\n\n.hover\\:text-yellow-50:hover {\n color: var(--yellow-50) !important;\n}\n.hover\\:text-yellow-100:hover {\n color: var(--yellow-100) !important;\n}\n.hover\\:text-yellow-200:hover {\n color: var(--yellow-200) !important;\n}\n.hover\\:text-yellow-300:hover {\n color: var(--yellow-300) !important;\n}\n.hover\\:text-yellow-400:hover {\n color: var(--yellow-400) !important;\n}\n.hover\\:text-yellow-500:hover {\n color: var(--yellow-500) !important;\n}\n.hover\\:text-yellow-600:hover {\n color: var(--yellow-600) !important;\n}\n.hover\\:text-yellow-700:hover {\n color: var(--yellow-700) !important;\n}\n.hover\\:text-yellow-800:hover {\n color: var(--yellow-800) !important;\n}\n.hover\\:text-yellow-900:hover {\n color: var(--yellow-900) !important;\n}\n\n.active\\:text-yellow-50:active {\n color: var(--yellow-50) !important;\n}\n.active\\:text-yellow-100:active {\n color: var(--yellow-100) !important;\n}\n.active\\:text-yellow-200:active {\n color: var(--yellow-200) !important;\n}\n.active\\:text-yellow-300:active {\n color: var(--yellow-300) !important;\n}\n.active\\:text-yellow-400:active {\n color: var(--yellow-400) !important;\n}\n.active\\:text-yellow-500:active {\n color: var(--yellow-500) !important;\n}\n.active\\:text-yellow-600:active {\n color: var(--yellow-600) !important;\n}\n.active\\:text-yellow-700:active {\n color: var(--yellow-700) !important;\n}\n.active\\:text-yellow-800:active {\n color: var(--yellow-800) !important;\n}\n.active\\:text-yellow-900:active {\n color: var(--yellow-900) !important;\n}\n\n.text-cyan-50 {\n color: var(--cyan-50) !important;\n}\n.text-cyan-100 {\n color: var(--cyan-100) !important;\n}\n.text-cyan-200 {\n color: var(--cyan-200) !important;\n}\n.text-cyan-300 {\n color: var(--cyan-300) !important;\n}\n.text-cyan-400 {\n color: var(--cyan-400) !important;\n}\n.text-cyan-500 {\n color: var(--cyan-500) !important;\n}\n.text-cyan-600 {\n color: var(--cyan-600) !important;\n}\n.text-cyan-700 {\n color: var(--cyan-700) !important;\n}\n.text-cyan-800 {\n color: var(--cyan-800) !important;\n}\n.text-cyan-900 {\n color: var(--cyan-900) !important;\n}\n\n.focus\\:text-cyan-50:focus {\n color: var(--cyan-50) !important;\n}\n.focus\\:text-cyan-100:focus {\n color: var(--cyan-100) !important;\n}\n.focus\\:text-cyan-200:focus {\n color: var(--cyan-200) !important;\n}\n.focus\\:text-cyan-300:focus {\n color: var(--cyan-300) !important;\n}\n.focus\\:text-cyan-400:focus {\n color: var(--cyan-400) !important;\n}\n.focus\\:text-cyan-500:focus {\n color: var(--cyan-500) !important;\n}\n.focus\\:text-cyan-600:focus {\n color: var(--cyan-600) !important;\n}\n.focus\\:text-cyan-700:focus {\n color: var(--cyan-700) !important;\n}\n.focus\\:text-cyan-800:focus {\n color: var(--cyan-800) !important;\n}\n.focus\\:text-cyan-900:focus {\n color: var(--cyan-900) !important;\n}\n\n.hover\\:text-cyan-50:hover {\n color: var(--cyan-50) !important;\n}\n.hover\\:text-cyan-100:hover {\n color: var(--cyan-100) !important;\n}\n.hover\\:text-cyan-200:hover {\n color: var(--cyan-200) !important;\n}\n.hover\\:text-cyan-300:hover {\n color: var(--cyan-300) !important;\n}\n.hover\\:text-cyan-400:hover {\n color: var(--cyan-400) !important;\n}\n.hover\\:text-cyan-500:hover {\n color: var(--cyan-500) !important;\n}\n.hover\\:text-cyan-600:hover {\n color: var(--cyan-600) !important;\n}\n.hover\\:text-cyan-700:hover {\n color: var(--cyan-700) !important;\n}\n.hover\\:text-cyan-800:hover {\n color: var(--cyan-800) !important;\n}\n.hover\\:text-cyan-900:hover {\n color: var(--cyan-900) !important;\n}\n\n.active\\:text-cyan-50:active {\n color: var(--cyan-50) !important;\n}\n.active\\:text-cyan-100:active {\n color: var(--cyan-100) !important;\n}\n.active\\:text-cyan-200:active {\n color: var(--cyan-200) !important;\n}\n.active\\:text-cyan-300:active {\n color: var(--cyan-300) !important;\n}\n.active\\:text-cyan-400:active {\n color: var(--cyan-400) !important;\n}\n.active\\:text-cyan-500:active {\n color: var(--cyan-500) !important;\n}\n.active\\:text-cyan-600:active {\n color: var(--cyan-600) !important;\n}\n.active\\:text-cyan-700:active {\n color: var(--cyan-700) !important;\n}\n.active\\:text-cyan-800:active {\n color: var(--cyan-800) !important;\n}\n.active\\:text-cyan-900:active {\n color: var(--cyan-900) !important;\n}\n\n.text-pink-50 {\n color: var(--pink-50) !important;\n}\n.text-pink-100 {\n color: var(--pink-100) !important;\n}\n.text-pink-200 {\n color: var(--pink-200) !important;\n}\n.text-pink-300 {\n color: var(--pink-300) !important;\n}\n.text-pink-400 {\n color: var(--pink-400) !important;\n}\n.text-pink-500 {\n color: var(--pink-500) !important;\n}\n.text-pink-600 {\n color: var(--pink-600) !important;\n}\n.text-pink-700 {\n color: var(--pink-700) !important;\n}\n.text-pink-800 {\n color: var(--pink-800) !important;\n}\n.text-pink-900 {\n color: var(--pink-900) !important;\n}\n\n.focus\\:text-pink-50:focus {\n color: var(--pink-50) !important;\n}\n.focus\\:text-pink-100:focus {\n color: var(--pink-100) !important;\n}\n.focus\\:text-pink-200:focus {\n color: var(--pink-200) !important;\n}\n.focus\\:text-pink-300:focus {\n color: var(--pink-300) !important;\n}\n.focus\\:text-pink-400:focus {\n color: var(--pink-400) !important;\n}\n.focus\\:text-pink-500:focus {\n color: var(--pink-500) !important;\n}\n.focus\\:text-pink-600:focus {\n color: var(--pink-600) !important;\n}\n.focus\\:text-pink-700:focus {\n color: var(--pink-700) !important;\n}\n.focus\\:text-pink-800:focus {\n color: var(--pink-800) !important;\n}\n.focus\\:text-pink-900:focus {\n color: var(--pink-900) !important;\n}\n\n.hover\\:text-pink-50:hover {\n color: var(--pink-50) !important;\n}\n.hover\\:text-pink-100:hover {\n color: var(--pink-100) !important;\n}\n.hover\\:text-pink-200:hover {\n color: var(--pink-200) !important;\n}\n.hover\\:text-pink-300:hover {\n color: var(--pink-300) !important;\n}\n.hover\\:text-pink-400:hover {\n color: var(--pink-400) !important;\n}\n.hover\\:text-pink-500:hover {\n color: var(--pink-500) !important;\n}\n.hover\\:text-pink-600:hover {\n color: var(--pink-600) !important;\n}\n.hover\\:text-pink-700:hover {\n color: var(--pink-700) !important;\n}\n.hover\\:text-pink-800:hover {\n color: var(--pink-800) !important;\n}\n.hover\\:text-pink-900:hover {\n color: var(--pink-900) !important;\n}\n\n.active\\:text-pink-50:active {\n color: var(--pink-50) !important;\n}\n.active\\:text-pink-100:active {\n color: var(--pink-100) !important;\n}\n.active\\:text-pink-200:active {\n color: var(--pink-200) !important;\n}\n.active\\:text-pink-300:active {\n color: var(--pink-300) !important;\n}\n.active\\:text-pink-400:active {\n color: var(--pink-400) !important;\n}\n.active\\:text-pink-500:active {\n color: var(--pink-500) !important;\n}\n.active\\:text-pink-600:active {\n color: var(--pink-600) !important;\n}\n.active\\:text-pink-700:active {\n color: var(--pink-700) !important;\n}\n.active\\:text-pink-800:active {\n color: var(--pink-800) !important;\n}\n.active\\:text-pink-900:active {\n color: var(--pink-900) !important;\n}\n\n.text-indigo-50 {\n color: var(--indigo-50) !important;\n}\n.text-indigo-100 {\n color: var(--indigo-100) !important;\n}\n.text-indigo-200 {\n color: var(--indigo-200) !important;\n}\n.text-indigo-300 {\n color: var(--indigo-300) !important;\n}\n.text-indigo-400 {\n color: var(--indigo-400) !important;\n}\n.text-indigo-500 {\n color: var(--indigo-500) !important;\n}\n.text-indigo-600 {\n color: var(--indigo-600) !important;\n}\n.text-indigo-700 {\n color: var(--indigo-700) !important;\n}\n.text-indigo-800 {\n color: var(--indigo-800) !important;\n}\n.text-indigo-900 {\n color: var(--indigo-900) !important;\n}\n\n.focus\\:text-indigo-50:focus {\n color: var(--indigo-50) !important;\n}\n.focus\\:text-indigo-100:focus {\n color: var(--indigo-100) !important;\n}\n.focus\\:text-indigo-200:focus {\n color: var(--indigo-200) !important;\n}\n.focus\\:text-indigo-300:focus {\n color: var(--indigo-300) !important;\n}\n.focus\\:text-indigo-400:focus {\n color: var(--indigo-400) !important;\n}\n.focus\\:text-indigo-500:focus {\n color: var(--indigo-500) !important;\n}\n.focus\\:text-indigo-600:focus {\n color: var(--indigo-600) !important;\n}\n.focus\\:text-indigo-700:focus {\n color: var(--indigo-700) !important;\n}\n.focus\\:text-indigo-800:focus {\n color: var(--indigo-800) !important;\n}\n.focus\\:text-indigo-900:focus {\n color: var(--indigo-900) !important;\n}\n\n.hover\\:text-indigo-50:hover {\n color: var(--indigo-50) !important;\n}\n.hover\\:text-indigo-100:hover {\n color: var(--indigo-100) !important;\n}\n.hover\\:text-indigo-200:hover {\n color: var(--indigo-200) !important;\n}\n.hover\\:text-indigo-300:hover {\n color: var(--indigo-300) !important;\n}\n.hover\\:text-indigo-400:hover {\n color: var(--indigo-400) !important;\n}\n.hover\\:text-indigo-500:hover {\n color: var(--indigo-500) !important;\n}\n.hover\\:text-indigo-600:hover {\n color: var(--indigo-600) !important;\n}\n.hover\\:text-indigo-700:hover {\n color: var(--indigo-700) !important;\n}\n.hover\\:text-indigo-800:hover {\n color: var(--indigo-800) !important;\n}\n.hover\\:text-indigo-900:hover {\n color: var(--indigo-900) !important;\n}\n\n.active\\:text-indigo-50:active {\n color: var(--indigo-50) !important;\n}\n.active\\:text-indigo-100:active {\n color: var(--indigo-100) !important;\n}\n.active\\:text-indigo-200:active {\n color: var(--indigo-200) !important;\n}\n.active\\:text-indigo-300:active {\n color: var(--indigo-300) !important;\n}\n.active\\:text-indigo-400:active {\n color: var(--indigo-400) !important;\n}\n.active\\:text-indigo-500:active {\n color: var(--indigo-500) !important;\n}\n.active\\:text-indigo-600:active {\n color: var(--indigo-600) !important;\n}\n.active\\:text-indigo-700:active {\n color: var(--indigo-700) !important;\n}\n.active\\:text-indigo-800:active {\n color: var(--indigo-800) !important;\n}\n.active\\:text-indigo-900:active {\n color: var(--indigo-900) !important;\n}\n\n.text-teal-50 {\n color: var(--teal-50) !important;\n}\n.text-teal-100 {\n color: var(--teal-100) !important;\n}\n.text-teal-200 {\n color: var(--teal-200) !important;\n}\n.text-teal-300 {\n color: var(--teal-300) !important;\n}\n.text-teal-400 {\n color: var(--teal-400) !important;\n}\n.text-teal-500 {\n color: var(--teal-500) !important;\n}\n.text-teal-600 {\n color: var(--teal-600) !important;\n}\n.text-teal-700 {\n color: var(--teal-700) !important;\n}\n.text-teal-800 {\n color: var(--teal-800) !important;\n}\n.text-teal-900 {\n color: var(--teal-900) !important;\n}\n\n.focus\\:text-teal-50:focus {\n color: var(--teal-50) !important;\n}\n.focus\\:text-teal-100:focus {\n color: var(--teal-100) !important;\n}\n.focus\\:text-teal-200:focus {\n color: var(--teal-200) !important;\n}\n.focus\\:text-teal-300:focus {\n color: var(--teal-300) !important;\n}\n.focus\\:text-teal-400:focus {\n color: var(--teal-400) !important;\n}\n.focus\\:text-teal-500:focus {\n color: var(--teal-500) !important;\n}\n.focus\\:text-teal-600:focus {\n color: var(--teal-600) !important;\n}\n.focus\\:text-teal-700:focus {\n color: var(--teal-700) !important;\n}\n.focus\\:text-teal-800:focus {\n color: var(--teal-800) !important;\n}\n.focus\\:text-teal-900:focus {\n color: var(--teal-900) !important;\n}\n\n.hover\\:text-teal-50:hover {\n color: var(--teal-50) !important;\n}\n.hover\\:text-teal-100:hover {\n color: var(--teal-100) !important;\n}\n.hover\\:text-teal-200:hover {\n color: var(--teal-200) !important;\n}\n.hover\\:text-teal-300:hover {\n color: var(--teal-300) !important;\n}\n.hover\\:text-teal-400:hover {\n color: var(--teal-400) !important;\n}\n.hover\\:text-teal-500:hover {\n color: var(--teal-500) !important;\n}\n.hover\\:text-teal-600:hover {\n color: var(--teal-600) !important;\n}\n.hover\\:text-teal-700:hover {\n color: var(--teal-700) !important;\n}\n.hover\\:text-teal-800:hover {\n color: var(--teal-800) !important;\n}\n.hover\\:text-teal-900:hover {\n color: var(--teal-900) !important;\n}\n\n.active\\:text-teal-50:active {\n color: var(--teal-50) !important;\n}\n.active\\:text-teal-100:active {\n color: var(--teal-100) !important;\n}\n.active\\:text-teal-200:active {\n color: var(--teal-200) !important;\n}\n.active\\:text-teal-300:active {\n color: var(--teal-300) !important;\n}\n.active\\:text-teal-400:active {\n color: var(--teal-400) !important;\n}\n.active\\:text-teal-500:active {\n color: var(--teal-500) !important;\n}\n.active\\:text-teal-600:active {\n color: var(--teal-600) !important;\n}\n.active\\:text-teal-700:active {\n color: var(--teal-700) !important;\n}\n.active\\:text-teal-800:active {\n color: var(--teal-800) !important;\n}\n.active\\:text-teal-900:active {\n color: var(--teal-900) !important;\n}\n\n.text-orange-50 {\n color: var(--orange-50) !important;\n}\n.text-orange-100 {\n color: var(--orange-100) !important;\n}\n.text-orange-200 {\n color: var(--orange-200) !important;\n}\n.text-orange-300 {\n color: var(--orange-300) !important;\n}\n.text-orange-400 {\n color: var(--orange-400) !important;\n}\n.text-orange-500 {\n color: var(--orange-500) !important;\n}\n.text-orange-600 {\n color: var(--orange-600) !important;\n}\n.text-orange-700 {\n color: var(--orange-700) !important;\n}\n.text-orange-800 {\n color: var(--orange-800) !important;\n}\n.text-orange-900 {\n color: var(--orange-900) !important;\n}\n\n.focus\\:text-orange-50:focus {\n color: var(--orange-50) !important;\n}\n.focus\\:text-orange-100:focus {\n color: var(--orange-100) !important;\n}\n.focus\\:text-orange-200:focus {\n color: var(--orange-200) !important;\n}\n.focus\\:text-orange-300:focus {\n color: var(--orange-300) !important;\n}\n.focus\\:text-orange-400:focus {\n color: var(--orange-400) !important;\n}\n.focus\\:text-orange-500:focus {\n color: var(--orange-500) !important;\n}\n.focus\\:text-orange-600:focus {\n color: var(--orange-600) !important;\n}\n.focus\\:text-orange-700:focus {\n color: var(--orange-700) !important;\n}\n.focus\\:text-orange-800:focus {\n color: var(--orange-800) !important;\n}\n.focus\\:text-orange-900:focus {\n color: var(--orange-900) !important;\n}\n\n.hover\\:text-orange-50:hover {\n color: var(--orange-50) !important;\n}\n.hover\\:text-orange-100:hover {\n color: var(--orange-100) !important;\n}\n.hover\\:text-orange-200:hover {\n color: var(--orange-200) !important;\n}\n.hover\\:text-orange-300:hover {\n color: var(--orange-300) !important;\n}\n.hover\\:text-orange-400:hover {\n color: var(--orange-400) !important;\n}\n.hover\\:text-orange-500:hover {\n color: var(--orange-500) !important;\n}\n.hover\\:text-orange-600:hover {\n color: var(--orange-600) !important;\n}\n.hover\\:text-orange-700:hover {\n color: var(--orange-700) !important;\n}\n.hover\\:text-orange-800:hover {\n color: var(--orange-800) !important;\n}\n.hover\\:text-orange-900:hover {\n color: var(--orange-900) !important;\n}\n\n.active\\:text-orange-50:active {\n color: var(--orange-50) !important;\n}\n.active\\:text-orange-100:active {\n color: var(--orange-100) !important;\n}\n.active\\:text-orange-200:active {\n color: var(--orange-200) !important;\n}\n.active\\:text-orange-300:active {\n color: var(--orange-300) !important;\n}\n.active\\:text-orange-400:active {\n color: var(--orange-400) !important;\n}\n.active\\:text-orange-500:active {\n color: var(--orange-500) !important;\n}\n.active\\:text-orange-600:active {\n color: var(--orange-600) !important;\n}\n.active\\:text-orange-700:active {\n color: var(--orange-700) !important;\n}\n.active\\:text-orange-800:active {\n color: var(--orange-800) !important;\n}\n.active\\:text-orange-900:active {\n color: var(--orange-900) !important;\n}\n\n.text-bluegray-50 {\n color: var(--bluegray-50) !important;\n}\n.text-bluegray-100 {\n color: var(--bluegray-100) !important;\n}\n.text-bluegray-200 {\n color: var(--bluegray-200) !important;\n}\n.text-bluegray-300 {\n color: var(--bluegray-300) !important;\n}\n.text-bluegray-400 {\n color: var(--bluegray-400) !important;\n}\n.text-bluegray-500 {\n color: var(--bluegray-500) !important;\n}\n.text-bluegray-600 {\n color: var(--bluegray-600) !important;\n}\n.text-bluegray-700 {\n color: var(--bluegray-700) !important;\n}\n.text-bluegray-800 {\n color: var(--bluegray-800) !important;\n}\n.text-bluegray-900 {\n color: var(--bluegray-900) !important;\n}\n\n.focus\\:text-bluegray-50:focus {\n color: var(--bluegray-50) !important;\n}\n.focus\\:text-bluegray-100:focus {\n color: var(--bluegray-100) !important;\n}\n.focus\\:text-bluegray-200:focus {\n color: var(--bluegray-200) !important;\n}\n.focus\\:text-bluegray-300:focus {\n color: var(--bluegray-300) !important;\n}\n.focus\\:text-bluegray-400:focus {\n color: var(--bluegray-400) !important;\n}\n.focus\\:text-bluegray-500:focus {\n color: var(--bluegray-500) !important;\n}\n.focus\\:text-bluegray-600:focus {\n color: var(--bluegray-600) !important;\n}\n.focus\\:text-bluegray-700:focus {\n color: var(--bluegray-700) !important;\n}\n.focus\\:text-bluegray-800:focus {\n color: var(--bluegray-800) !important;\n}\n.focus\\:text-bluegray-900:focus {\n color: var(--bluegray-900) !important;\n}\n\n.hover\\:text-bluegray-50:hover {\n color: var(--bluegray-50) !important;\n}\n.hover\\:text-bluegray-100:hover {\n color: var(--bluegray-100) !important;\n}\n.hover\\:text-bluegray-200:hover {\n color: var(--bluegray-200) !important;\n}\n.hover\\:text-bluegray-300:hover {\n color: var(--bluegray-300) !important;\n}\n.hover\\:text-bluegray-400:hover {\n color: var(--bluegray-400) !important;\n}\n.hover\\:text-bluegray-500:hover {\n color: var(--bluegray-500) !important;\n}\n.hover\\:text-bluegray-600:hover {\n color: var(--bluegray-600) !important;\n}\n.hover\\:text-bluegray-700:hover {\n color: var(--bluegray-700) !important;\n}\n.hover\\:text-bluegray-800:hover {\n color: var(--bluegray-800) !important;\n}\n.hover\\:text-bluegray-900:hover {\n color: var(--bluegray-900) !important;\n}\n\n.active\\:text-bluegray-50:active {\n color: var(--bluegray-50) !important;\n}\n.active\\:text-bluegray-100:active {\n color: var(--bluegray-100) !important;\n}\n.active\\:text-bluegray-200:active {\n color: var(--bluegray-200) !important;\n}\n.active\\:text-bluegray-300:active {\n color: var(--bluegray-300) !important;\n}\n.active\\:text-bluegray-400:active {\n color: var(--bluegray-400) !important;\n}\n.active\\:text-bluegray-500:active {\n color: var(--bluegray-500) !important;\n}\n.active\\:text-bluegray-600:active {\n color: var(--bluegray-600) !important;\n}\n.active\\:text-bluegray-700:active {\n color: var(--bluegray-700) !important;\n}\n.active\\:text-bluegray-800:active {\n color: var(--bluegray-800) !important;\n}\n.active\\:text-bluegray-900:active {\n color: var(--bluegray-900) !important;\n}\n\n.text-purple-50 {\n color: var(--purple-50) !important;\n}\n.text-purple-100 {\n color: var(--purple-100) !important;\n}\n.text-purple-200 {\n color: var(--purple-200) !important;\n}\n.text-purple-300 {\n color: var(--purple-300) !important;\n}\n.text-purple-400 {\n color: var(--purple-400) !important;\n}\n.text-purple-500 {\n color: var(--purple-500) !important;\n}\n.text-purple-600 {\n color: var(--purple-600) !important;\n}\n.text-purple-700 {\n color: var(--purple-700) !important;\n}\n.text-purple-800 {\n color: var(--purple-800) !important;\n}\n.text-purple-900 {\n color: var(--purple-900) !important;\n}\n\n.focus\\:text-purple-50:focus {\n color: var(--purple-50) !important;\n}\n.focus\\:text-purple-100:focus {\n color: var(--purple-100) !important;\n}\n.focus\\:text-purple-200:focus {\n color: var(--purple-200) !important;\n}\n.focus\\:text-purple-300:focus {\n color: var(--purple-300) !important;\n}\n.focus\\:text-purple-400:focus {\n color: var(--purple-400) !important;\n}\n.focus\\:text-purple-500:focus {\n color: var(--purple-500) !important;\n}\n.focus\\:text-purple-600:focus {\n color: var(--purple-600) !important;\n}\n.focus\\:text-purple-700:focus {\n color: var(--purple-700) !important;\n}\n.focus\\:text-purple-800:focus {\n color: var(--purple-800) !important;\n}\n.focus\\:text-purple-900:focus {\n color: var(--purple-900) !important;\n}\n\n.hover\\:text-purple-50:hover {\n color: var(--purple-50) !important;\n}\n.hover\\:text-purple-100:hover {\n color: var(--purple-100) !important;\n}\n.hover\\:text-purple-200:hover {\n color: var(--purple-200) !important;\n}\n.hover\\:text-purple-300:hover {\n color: var(--purple-300) !important;\n}\n.hover\\:text-purple-400:hover {\n color: var(--purple-400) !important;\n}\n.hover\\:text-purple-500:hover {\n color: var(--purple-500) !important;\n}\n.hover\\:text-purple-600:hover {\n color: var(--purple-600) !important;\n}\n.hover\\:text-purple-700:hover {\n color: var(--purple-700) !important;\n}\n.hover\\:text-purple-800:hover {\n color: var(--purple-800) !important;\n}\n.hover\\:text-purple-900:hover {\n color: var(--purple-900) !important;\n}\n\n.active\\:text-purple-50:active {\n color: var(--purple-50) !important;\n}\n.active\\:text-purple-100:active {\n color: var(--purple-100) !important;\n}\n.active\\:text-purple-200:active {\n color: var(--purple-200) !important;\n}\n.active\\:text-purple-300:active {\n color: var(--purple-300) !important;\n}\n.active\\:text-purple-400:active {\n color: var(--purple-400) !important;\n}\n.active\\:text-purple-500:active {\n color: var(--purple-500) !important;\n}\n.active\\:text-purple-600:active {\n color: var(--purple-600) !important;\n}\n.active\\:text-purple-700:active {\n color: var(--purple-700) !important;\n}\n.active\\:text-purple-800:active {\n color: var(--purple-800) !important;\n}\n.active\\:text-purple-900:active {\n color: var(--purple-900) !important;\n}\n\n.text-gray-50 {\n color: var(--gray-50) !important;\n}\n.text-gray-100 {\n color: var(--gray-100) !important;\n}\n.text-gray-200 {\n color: var(--gray-200) !important;\n}\n.text-gray-300 {\n color: var(--gray-300) !important;\n}\n.text-gray-400 {\n color: var(--gray-400) !important;\n}\n.text-gray-500 {\n color: var(--gray-500) !important;\n}\n.text-gray-600 {\n color: var(--gray-600) !important;\n}\n.text-gray-700 {\n color: var(--gray-700) !important;\n}\n.text-gray-800 {\n color: var(--gray-800) !important;\n}\n.text-gray-900 {\n color: var(--gray-900) !important;\n}\n\n.focus\\:text-gray-50:focus {\n color: var(--gray-50) !important;\n}\n.focus\\:text-gray-100:focus {\n color: var(--gray-100) !important;\n}\n.focus\\:text-gray-200:focus {\n color: var(--gray-200) !important;\n}\n.focus\\:text-gray-300:focus {\n color: var(--gray-300) !important;\n}\n.focus\\:text-gray-400:focus {\n color: var(--gray-400) !important;\n}\n.focus\\:text-gray-500:focus {\n color: var(--gray-500) !important;\n}\n.focus\\:text-gray-600:focus {\n color: var(--gray-600) !important;\n}\n.focus\\:text-gray-700:focus {\n color: var(--gray-700) !important;\n}\n.focus\\:text-gray-800:focus {\n color: var(--gray-800) !important;\n}\n.focus\\:text-gray-900:focus {\n color: var(--gray-900) !important;\n}\n\n.hover\\:text-gray-50:hover {\n color: var(--gray-50) !important;\n}\n.hover\\:text-gray-100:hover {\n color: var(--gray-100) !important;\n}\n.hover\\:text-gray-200:hover {\n color: var(--gray-200) !important;\n}\n.hover\\:text-gray-300:hover {\n color: var(--gray-300) !important;\n}\n.hover\\:text-gray-400:hover {\n color: var(--gray-400) !important;\n}\n.hover\\:text-gray-500:hover {\n color: var(--gray-500) !important;\n}\n.hover\\:text-gray-600:hover {\n color: var(--gray-600) !important;\n}\n.hover\\:text-gray-700:hover {\n color: var(--gray-700) !important;\n}\n.hover\\:text-gray-800:hover {\n color: var(--gray-800) !important;\n}\n.hover\\:text-gray-900:hover {\n color: var(--gray-900) !important;\n}\n\n.active\\:text-gray-50:active {\n color: var(--gray-50) !important;\n}\n.active\\:text-gray-100:active {\n color: var(--gray-100) !important;\n}\n.active\\:text-gray-200:active {\n color: var(--gray-200) !important;\n}\n.active\\:text-gray-300:active {\n color: var(--gray-300) !important;\n}\n.active\\:text-gray-400:active {\n color: var(--gray-400) !important;\n}\n.active\\:text-gray-500:active {\n color: var(--gray-500) !important;\n}\n.active\\:text-gray-600:active {\n color: var(--gray-600) !important;\n}\n.active\\:text-gray-700:active {\n color: var(--gray-700) !important;\n}\n.active\\:text-gray-800:active {\n color: var(--gray-800) !important;\n}\n.active\\:text-gray-900:active {\n color: var(--gray-900) !important;\n}\n\n.bg-blue-50 {\n background-color: var(--blue-50) !important;\n}\n.bg-blue-100 {\n background-color: var(--blue-100) !important;\n}\n.bg-blue-200 {\n background-color: var(--blue-200) !important;\n}\n.bg-blue-300 {\n background-color: var(--blue-300) !important;\n}\n.bg-blue-400 {\n background-color: var(--blue-400) !important;\n}\n.bg-blue-500 {\n background-color: var(--blue-500) !important;\n}\n.bg-blue-600 {\n background-color: var(--blue-600) !important;\n}\n.bg-blue-700 {\n background-color: var(--blue-700) !important;\n}\n.bg-blue-800 {\n background-color: var(--blue-800) !important;\n}\n.bg-blue-900 {\n background-color: var(--blue-900) !important;\n}\n\n.focus\\:bg-blue-50:focus {\n background-color: var(--blue-50) !important;\n}\n.focus\\:bg-blue-100:focus {\n background-color: var(--blue-100) !important;\n}\n.focus\\:bg-blue-200:focus {\n background-color: var(--blue-200) !important;\n}\n.focus\\:bg-blue-300:focus {\n background-color: var(--blue-300) !important;\n}\n.focus\\:bg-blue-400:focus {\n background-color: var(--blue-400) !important;\n}\n.focus\\:bg-blue-500:focus {\n background-color: var(--blue-500) !important;\n}\n.focus\\:bg-blue-600:focus {\n background-color: var(--blue-600) !important;\n}\n.focus\\:bg-blue-700:focus {\n background-color: var(--blue-700) !important;\n}\n.focus\\:bg-blue-800:focus {\n background-color: var(--blue-800) !important;\n}\n.focus\\:bg-blue-900:focus {\n background-color: var(--blue-900) !important;\n}\n\n.hover\\:bg-blue-50:hover {\n background-color: var(--blue-50) !important;\n}\n.hover\\:bg-blue-100:hover {\n background-color: var(--blue-100) !important;\n}\n.hover\\:bg-blue-200:hover {\n background-color: var(--blue-200) !important;\n}\n.hover\\:bg-blue-300:hover {\n background-color: var(--blue-300) !important;\n}\n.hover\\:bg-blue-400:hover {\n background-color: var(--blue-400) !important;\n}\n.hover\\:bg-blue-500:hover {\n background-color: var(--blue-500) !important;\n}\n.hover\\:bg-blue-600:hover {\n background-color: var(--blue-600) !important;\n}\n.hover\\:bg-blue-700:hover {\n background-color: var(--blue-700) !important;\n}\n.hover\\:bg-blue-800:hover {\n background-color: var(--blue-800) !important;\n}\n.hover\\:bg-blue-900:hover {\n background-color: var(--blue-900) !important;\n}\n\n.active\\:bg-blue-50:active {\n background-color: var(--blue-50) !important;\n}\n.active\\:bg-blue-100:active {\n background-color: var(--blue-100) !important;\n}\n.active\\:bg-blue-200:active {\n background-color: var(--blue-200) !important;\n}\n.active\\:bg-blue-300:active {\n background-color: var(--blue-300) !important;\n}\n.active\\:bg-blue-400:active {\n background-color: var(--blue-400) !important;\n}\n.active\\:bg-blue-500:active {\n background-color: var(--blue-500) !important;\n}\n.active\\:bg-blue-600:active {\n background-color: var(--blue-600) !important;\n}\n.active\\:bg-blue-700:active {\n background-color: var(--blue-700) !important;\n}\n.active\\:bg-blue-800:active {\n background-color: var(--blue-800) !important;\n}\n.active\\:bg-blue-900:active {\n background-color: var(--blue-900) !important;\n}\n\n.bg-green-50 {\n background-color: var(--green-50) !important;\n}\n.bg-green-100 {\n background-color: var(--green-100) !important;\n}\n.bg-green-200 {\n background-color: var(--green-200) !important;\n}\n.bg-green-300 {\n background-color: var(--green-300) !important;\n}\n.bg-green-400 {\n background-color: var(--green-400) !important;\n}\n.bg-green-500 {\n background-color: var(--green-500) !important;\n}\n.bg-green-600 {\n background-color: var(--green-600) !important;\n}\n.bg-green-700 {\n background-color: var(--green-700) !important;\n}\n.bg-green-800 {\n background-color: var(--green-800) !important;\n}\n.bg-green-900 {\n background-color: var(--green-900) !important;\n}\n\n.focus\\:bg-green-50:focus {\n background-color: var(--green-50) !important;\n}\n.focus\\:bg-green-100:focus {\n background-color: var(--green-100) !important;\n}\n.focus\\:bg-green-200:focus {\n background-color: var(--green-200) !important;\n}\n.focus\\:bg-green-300:focus {\n background-color: var(--green-300) !important;\n}\n.focus\\:bg-green-400:focus {\n background-color: var(--green-400) !important;\n}\n.focus\\:bg-green-500:focus {\n background-color: var(--green-500) !important;\n}\n.focus\\:bg-green-600:focus {\n background-color: var(--green-600) !important;\n}\n.focus\\:bg-green-700:focus {\n background-color: var(--green-700) !important;\n}\n.focus\\:bg-green-800:focus {\n background-color: var(--green-800) !important;\n}\n.focus\\:bg-green-900:focus {\n background-color: var(--green-900) !important;\n}\n\n.hover\\:bg-green-50:hover {\n background-color: var(--green-50) !important;\n}\n.hover\\:bg-green-100:hover {\n background-color: var(--green-100) !important;\n}\n.hover\\:bg-green-200:hover {\n background-color: var(--green-200) !important;\n}\n.hover\\:bg-green-300:hover {\n background-color: var(--green-300) !important;\n}\n.hover\\:bg-green-400:hover {\n background-color: var(--green-400) !important;\n}\n.hover\\:bg-green-500:hover {\n background-color: var(--green-500) !important;\n}\n.hover\\:bg-green-600:hover {\n background-color: var(--green-600) !important;\n}\n.hover\\:bg-green-700:hover {\n background-color: var(--green-700) !important;\n}\n.hover\\:bg-green-800:hover {\n background-color: var(--green-800) !important;\n}\n.hover\\:bg-green-900:hover {\n background-color: var(--green-900) !important;\n}\n\n.active\\:bg-green-50:active {\n background-color: var(--green-50) !important;\n}\n.active\\:bg-green-100:active {\n background-color: var(--green-100) !important;\n}\n.active\\:bg-green-200:active {\n background-color: var(--green-200) !important;\n}\n.active\\:bg-green-300:active {\n background-color: var(--green-300) !important;\n}\n.active\\:bg-green-400:active {\n background-color: var(--green-400) !important;\n}\n.active\\:bg-green-500:active {\n background-color: var(--green-500) !important;\n}\n.active\\:bg-green-600:active {\n background-color: var(--green-600) !important;\n}\n.active\\:bg-green-700:active {\n background-color: var(--green-700) !important;\n}\n.active\\:bg-green-800:active {\n background-color: var(--green-800) !important;\n}\n.active\\:bg-green-900:active {\n background-color: var(--green-900) !important;\n}\n\n.bg-yellow-50 {\n background-color: var(--yellow-50) !important;\n}\n.bg-yellow-100 {\n background-color: var(--yellow-100) !important;\n}\n.bg-yellow-200 {\n background-color: var(--yellow-200) !important;\n}\n.bg-yellow-300 {\n background-color: var(--yellow-300) !important;\n}\n.bg-yellow-400 {\n background-color: var(--yellow-400) !important;\n}\n.bg-yellow-500 {\n background-color: var(--yellow-500) !important;\n}\n.bg-yellow-600 {\n background-color: var(--yellow-600) !important;\n}\n.bg-yellow-700 {\n background-color: var(--yellow-700) !important;\n}\n.bg-yellow-800 {\n background-color: var(--yellow-800) !important;\n}\n.bg-yellow-900 {\n background-color: var(--yellow-900) !important;\n}\n\n.focus\\:bg-yellow-50:focus {\n background-color: var(--yellow-50) !important;\n}\n.focus\\:bg-yellow-100:focus {\n background-color: var(--yellow-100) !important;\n}\n.focus\\:bg-yellow-200:focus {\n background-color: var(--yellow-200) !important;\n}\n.focus\\:bg-yellow-300:focus {\n background-color: var(--yellow-300) !important;\n}\n.focus\\:bg-yellow-400:focus {\n background-color: var(--yellow-400) !important;\n}\n.focus\\:bg-yellow-500:focus {\n background-color: var(--yellow-500) !important;\n}\n.focus\\:bg-yellow-600:focus {\n background-color: var(--yellow-600) !important;\n}\n.focus\\:bg-yellow-700:focus {\n background-color: var(--yellow-700) !important;\n}\n.focus\\:bg-yellow-800:focus {\n background-color: var(--yellow-800) !important;\n}\n.focus\\:bg-yellow-900:focus {\n background-color: var(--yellow-900) !important;\n}\n\n.hover\\:bg-yellow-50:hover {\n background-color: var(--yellow-50) !important;\n}\n.hover\\:bg-yellow-100:hover {\n background-color: var(--yellow-100) !important;\n}\n.hover\\:bg-yellow-200:hover {\n background-color: var(--yellow-200) !important;\n}\n.hover\\:bg-yellow-300:hover {\n background-color: var(--yellow-300) !important;\n}\n.hover\\:bg-yellow-400:hover {\n background-color: var(--yellow-400) !important;\n}\n.hover\\:bg-yellow-500:hover {\n background-color: var(--yellow-500) !important;\n}\n.hover\\:bg-yellow-600:hover {\n background-color: var(--yellow-600) !important;\n}\n.hover\\:bg-yellow-700:hover {\n background-color: var(--yellow-700) !important;\n}\n.hover\\:bg-yellow-800:hover {\n background-color: var(--yellow-800) !important;\n}\n.hover\\:bg-yellow-900:hover {\n background-color: var(--yellow-900) !important;\n}\n\n.active\\:bg-yellow-50:active {\n background-color: var(--yellow-50) !important;\n}\n.active\\:bg-yellow-100:active {\n background-color: var(--yellow-100) !important;\n}\n.active\\:bg-yellow-200:active {\n background-color: var(--yellow-200) !important;\n}\n.active\\:bg-yellow-300:active {\n background-color: var(--yellow-300) !important;\n}\n.active\\:bg-yellow-400:active {\n background-color: var(--yellow-400) !important;\n}\n.active\\:bg-yellow-500:active {\n background-color: var(--yellow-500) !important;\n}\n.active\\:bg-yellow-600:active {\n background-color: var(--yellow-600) !important;\n}\n.active\\:bg-yellow-700:active {\n background-color: var(--yellow-700) !important;\n}\n.active\\:bg-yellow-800:active {\n background-color: var(--yellow-800) !important;\n}\n.active\\:bg-yellow-900:active {\n background-color: var(--yellow-900) !important;\n}\n\n.bg-cyan-50 {\n background-color: var(--cyan-50) !important;\n}\n.bg-cyan-100 {\n background-color: var(--cyan-100) !important;\n}\n.bg-cyan-200 {\n background-color: var(--cyan-200) !important;\n}\n.bg-cyan-300 {\n background-color: var(--cyan-300) !important;\n}\n.bg-cyan-400 {\n background-color: var(--cyan-400) !important;\n}\n.bg-cyan-500 {\n background-color: var(--cyan-500) !important;\n}\n.bg-cyan-600 {\n background-color: var(--cyan-600) !important;\n}\n.bg-cyan-700 {\n background-color: var(--cyan-700) !important;\n}\n.bg-cyan-800 {\n background-color: var(--cyan-800) !important;\n}\n.bg-cyan-900 {\n background-color: var(--cyan-900) !important;\n}\n\n.focus\\:bg-cyan-50:focus {\n background-color: var(--cyan-50) !important;\n}\n.focus\\:bg-cyan-100:focus {\n background-color: var(--cyan-100) !important;\n}\n.focus\\:bg-cyan-200:focus {\n background-color: var(--cyan-200) !important;\n}\n.focus\\:bg-cyan-300:focus {\n background-color: var(--cyan-300) !important;\n}\n.focus\\:bg-cyan-400:focus {\n background-color: var(--cyan-400) !important;\n}\n.focus\\:bg-cyan-500:focus {\n background-color: var(--cyan-500) !important;\n}\n.focus\\:bg-cyan-600:focus {\n background-color: var(--cyan-600) !important;\n}\n.focus\\:bg-cyan-700:focus {\n background-color: var(--cyan-700) !important;\n}\n.focus\\:bg-cyan-800:focus {\n background-color: var(--cyan-800) !important;\n}\n.focus\\:bg-cyan-900:focus {\n background-color: var(--cyan-900) !important;\n}\n\n.hover\\:bg-cyan-50:hover {\n background-color: var(--cyan-50) !important;\n}\n.hover\\:bg-cyan-100:hover {\n background-color: var(--cyan-100) !important;\n}\n.hover\\:bg-cyan-200:hover {\n background-color: var(--cyan-200) !important;\n}\n.hover\\:bg-cyan-300:hover {\n background-color: var(--cyan-300) !important;\n}\n.hover\\:bg-cyan-400:hover {\n background-color: var(--cyan-400) !important;\n}\n.hover\\:bg-cyan-500:hover {\n background-color: var(--cyan-500) !important;\n}\n.hover\\:bg-cyan-600:hover {\n background-color: var(--cyan-600) !important;\n}\n.hover\\:bg-cyan-700:hover {\n background-color: var(--cyan-700) !important;\n}\n.hover\\:bg-cyan-800:hover {\n background-color: var(--cyan-800) !important;\n}\n.hover\\:bg-cyan-900:hover {\n background-color: var(--cyan-900) !important;\n}\n\n.active\\:bg-cyan-50:active {\n background-color: var(--cyan-50) !important;\n}\n.active\\:bg-cyan-100:active {\n background-color: var(--cyan-100) !important;\n}\n.active\\:bg-cyan-200:active {\n background-color: var(--cyan-200) !important;\n}\n.active\\:bg-cyan-300:active {\n background-color: var(--cyan-300) !important;\n}\n.active\\:bg-cyan-400:active {\n background-color: var(--cyan-400) !important;\n}\n.active\\:bg-cyan-500:active {\n background-color: var(--cyan-500) !important;\n}\n.active\\:bg-cyan-600:active {\n background-color: var(--cyan-600) !important;\n}\n.active\\:bg-cyan-700:active {\n background-color: var(--cyan-700) !important;\n}\n.active\\:bg-cyan-800:active {\n background-color: var(--cyan-800) !important;\n}\n.active\\:bg-cyan-900:active {\n background-color: var(--cyan-900) !important;\n}\n\n.bg-pink-50 {\n background-color: var(--pink-50) !important;\n}\n.bg-pink-100 {\n background-color: var(--pink-100) !important;\n}\n.bg-pink-200 {\n background-color: var(--pink-200) !important;\n}\n.bg-pink-300 {\n background-color: var(--pink-300) !important;\n}\n.bg-pink-400 {\n background-color: var(--pink-400) !important;\n}\n.bg-pink-500 {\n background-color: var(--pink-500) !important;\n}\n.bg-pink-600 {\n background-color: var(--pink-600) !important;\n}\n.bg-pink-700 {\n background-color: var(--pink-700) !important;\n}\n.bg-pink-800 {\n background-color: var(--pink-800) !important;\n}\n.bg-pink-900 {\n background-color: var(--pink-900) !important;\n}\n\n.focus\\:bg-pink-50:focus {\n background-color: var(--pink-50) !important;\n}\n.focus\\:bg-pink-100:focus {\n background-color: var(--pink-100) !important;\n}\n.focus\\:bg-pink-200:focus {\n background-color: var(--pink-200) !important;\n}\n.focus\\:bg-pink-300:focus {\n background-color: var(--pink-300) !important;\n}\n.focus\\:bg-pink-400:focus {\n background-color: var(--pink-400) !important;\n}\n.focus\\:bg-pink-500:focus {\n background-color: var(--pink-500) !important;\n}\n.focus\\:bg-pink-600:focus {\n background-color: var(--pink-600) !important;\n}\n.focus\\:bg-pink-700:focus {\n background-color: var(--pink-700) !important;\n}\n.focus\\:bg-pink-800:focus {\n background-color: var(--pink-800) !important;\n}\n.focus\\:bg-pink-900:focus {\n background-color: var(--pink-900) !important;\n}\n\n.hover\\:bg-pink-50:hover {\n background-color: var(--pink-50) !important;\n}\n.hover\\:bg-pink-100:hover {\n background-color: var(--pink-100) !important;\n}\n.hover\\:bg-pink-200:hover {\n background-color: var(--pink-200) !important;\n}\n.hover\\:bg-pink-300:hover {\n background-color: var(--pink-300) !important;\n}\n.hover\\:bg-pink-400:hover {\n background-color: var(--pink-400) !important;\n}\n.hover\\:bg-pink-500:hover {\n background-color: var(--pink-500) !important;\n}\n.hover\\:bg-pink-600:hover {\n background-color: var(--pink-600) !important;\n}\n.hover\\:bg-pink-700:hover {\n background-color: var(--pink-700) !important;\n}\n.hover\\:bg-pink-800:hover {\n background-color: var(--pink-800) !important;\n}\n.hover\\:bg-pink-900:hover {\n background-color: var(--pink-900) !important;\n}\n\n.active\\:bg-pink-50:active {\n background-color: var(--pink-50) !important;\n}\n.active\\:bg-pink-100:active {\n background-color: var(--pink-100) !important;\n}\n.active\\:bg-pink-200:active {\n background-color: var(--pink-200) !important;\n}\n.active\\:bg-pink-300:active {\n background-color: var(--pink-300) !important;\n}\n.active\\:bg-pink-400:active {\n background-color: var(--pink-400) !important;\n}\n.active\\:bg-pink-500:active {\n background-color: var(--pink-500) !important;\n}\n.active\\:bg-pink-600:active {\n background-color: var(--pink-600) !important;\n}\n.active\\:bg-pink-700:active {\n background-color: var(--pink-700) !important;\n}\n.active\\:bg-pink-800:active {\n background-color: var(--pink-800) !important;\n}\n.active\\:bg-pink-900:active {\n background-color: var(--pink-900) !important;\n}\n\n.bg-indigo-50 {\n background-color: var(--indigo-50) !important;\n}\n.bg-indigo-100 {\n background-color: var(--indigo-100) !important;\n}\n.bg-indigo-200 {\n background-color: var(--indigo-200) !important;\n}\n.bg-indigo-300 {\n background-color: var(--indigo-300) !important;\n}\n.bg-indigo-400 {\n background-color: var(--indigo-400) !important;\n}\n.bg-indigo-500 {\n background-color: var(--indigo-500) !important;\n}\n.bg-indigo-600 {\n background-color: var(--indigo-600) !important;\n}\n.bg-indigo-700 {\n background-color: var(--indigo-700) !important;\n}\n.bg-indigo-800 {\n background-color: var(--indigo-800) !important;\n}\n.bg-indigo-900 {\n background-color: var(--indigo-900) !important;\n}\n\n.focus\\:bg-indigo-50:focus {\n background-color: var(--indigo-50) !important;\n}\n.focus\\:bg-indigo-100:focus {\n background-color: var(--indigo-100) !important;\n}\n.focus\\:bg-indigo-200:focus {\n background-color: var(--indigo-200) !important;\n}\n.focus\\:bg-indigo-300:focus {\n background-color: var(--indigo-300) !important;\n}\n.focus\\:bg-indigo-400:focus {\n background-color: var(--indigo-400) !important;\n}\n.focus\\:bg-indigo-500:focus {\n background-color: var(--indigo-500) !important;\n}\n.focus\\:bg-indigo-600:focus {\n background-color: var(--indigo-600) !important;\n}\n.focus\\:bg-indigo-700:focus {\n background-color: var(--indigo-700) !important;\n}\n.focus\\:bg-indigo-800:focus {\n background-color: var(--indigo-800) !important;\n}\n.focus\\:bg-indigo-900:focus {\n background-color: var(--indigo-900) !important;\n}\n\n.hover\\:bg-indigo-50:hover {\n background-color: var(--indigo-50) !important;\n}\n.hover\\:bg-indigo-100:hover {\n background-color: var(--indigo-100) !important;\n}\n.hover\\:bg-indigo-200:hover {\n background-color: var(--indigo-200) !important;\n}\n.hover\\:bg-indigo-300:hover {\n background-color: var(--indigo-300) !important;\n}\n.hover\\:bg-indigo-400:hover {\n background-color: var(--indigo-400) !important;\n}\n.hover\\:bg-indigo-500:hover {\n background-color: var(--indigo-500) !important;\n}\n.hover\\:bg-indigo-600:hover {\n background-color: var(--indigo-600) !important;\n}\n.hover\\:bg-indigo-700:hover {\n background-color: var(--indigo-700) !important;\n}\n.hover\\:bg-indigo-800:hover {\n background-color: var(--indigo-800) !important;\n}\n.hover\\:bg-indigo-900:hover {\n background-color: var(--indigo-900) !important;\n}\n\n.active\\:bg-indigo-50:active {\n background-color: var(--indigo-50) !important;\n}\n.active\\:bg-indigo-100:active {\n background-color: var(--indigo-100) !important;\n}\n.active\\:bg-indigo-200:active {\n background-color: var(--indigo-200) !important;\n}\n.active\\:bg-indigo-300:active {\n background-color: var(--indigo-300) !important;\n}\n.active\\:bg-indigo-400:active {\n background-color: var(--indigo-400) !important;\n}\n.active\\:bg-indigo-500:active {\n background-color: var(--indigo-500) !important;\n}\n.active\\:bg-indigo-600:active {\n background-color: var(--indigo-600) !important;\n}\n.active\\:bg-indigo-700:active {\n background-color: var(--indigo-700) !important;\n}\n.active\\:bg-indigo-800:active {\n background-color: var(--indigo-800) !important;\n}\n.active\\:bg-indigo-900:active {\n background-color: var(--indigo-900) !important;\n}\n\n.bg-teal-50 {\n background-color: var(--teal-50) !important;\n}\n.bg-teal-100 {\n background-color: var(--teal-100) !important;\n}\n.bg-teal-200 {\n background-color: var(--teal-200) !important;\n}\n.bg-teal-300 {\n background-color: var(--teal-300) !important;\n}\n.bg-teal-400 {\n background-color: var(--teal-400) !important;\n}\n.bg-teal-500 {\n background-color: var(--teal-500) !important;\n}\n.bg-teal-600 {\n background-color: var(--teal-600) !important;\n}\n.bg-teal-700 {\n background-color: var(--teal-700) !important;\n}\n.bg-teal-800 {\n background-color: var(--teal-800) !important;\n}\n.bg-teal-900 {\n background-color: var(--teal-900) !important;\n}\n\n.focus\\:bg-teal-50:focus {\n background-color: var(--teal-50) !important;\n}\n.focus\\:bg-teal-100:focus {\n background-color: var(--teal-100) !important;\n}\n.focus\\:bg-teal-200:focus {\n background-color: var(--teal-200) !important;\n}\n.focus\\:bg-teal-300:focus {\n background-color: var(--teal-300) !important;\n}\n.focus\\:bg-teal-400:focus {\n background-color: var(--teal-400) !important;\n}\n.focus\\:bg-teal-500:focus {\n background-color: var(--teal-500) !important;\n}\n.focus\\:bg-teal-600:focus {\n background-color: var(--teal-600) !important;\n}\n.focus\\:bg-teal-700:focus {\n background-color: var(--teal-700) !important;\n}\n.focus\\:bg-teal-800:focus {\n background-color: var(--teal-800) !important;\n}\n.focus\\:bg-teal-900:focus {\n background-color: var(--teal-900) !important;\n}\n\n.hover\\:bg-teal-50:hover {\n background-color: var(--teal-50) !important;\n}\n.hover\\:bg-teal-100:hover {\n background-color: var(--teal-100) !important;\n}\n.hover\\:bg-teal-200:hover {\n background-color: var(--teal-200) !important;\n}\n.hover\\:bg-teal-300:hover {\n background-color: var(--teal-300) !important;\n}\n.hover\\:bg-teal-400:hover {\n background-color: var(--teal-400) !important;\n}\n.hover\\:bg-teal-500:hover {\n background-color: var(--teal-500) !important;\n}\n.hover\\:bg-teal-600:hover {\n background-color: var(--teal-600) !important;\n}\n.hover\\:bg-teal-700:hover {\n background-color: var(--teal-700) !important;\n}\n.hover\\:bg-teal-800:hover {\n background-color: var(--teal-800) !important;\n}\n.hover\\:bg-teal-900:hover {\n background-color: var(--teal-900) !important;\n}\n\n.active\\:bg-teal-50:active {\n background-color: var(--teal-50) !important;\n}\n.active\\:bg-teal-100:active {\n background-color: var(--teal-100) !important;\n}\n.active\\:bg-teal-200:active {\n background-color: var(--teal-200) !important;\n}\n.active\\:bg-teal-300:active {\n background-color: var(--teal-300) !important;\n}\n.active\\:bg-teal-400:active {\n background-color: var(--teal-400) !important;\n}\n.active\\:bg-teal-500:active {\n background-color: var(--teal-500) !important;\n}\n.active\\:bg-teal-600:active {\n background-color: var(--teal-600) !important;\n}\n.active\\:bg-teal-700:active {\n background-color: var(--teal-700) !important;\n}\n.active\\:bg-teal-800:active {\n background-color: var(--teal-800) !important;\n}\n.active\\:bg-teal-900:active {\n background-color: var(--teal-900) !important;\n}\n\n.bg-orange-50 {\n background-color: var(--orange-50) !important;\n}\n.bg-orange-100 {\n background-color: var(--orange-100) !important;\n}\n.bg-orange-200 {\n background-color: var(--orange-200) !important;\n}\n.bg-orange-300 {\n background-color: var(--orange-300) !important;\n}\n.bg-orange-400 {\n background-color: var(--orange-400) !important;\n}\n.bg-orange-500 {\n background-color: var(--orange-500) !important;\n}\n.bg-orange-600 {\n background-color: var(--orange-600) !important;\n}\n.bg-orange-700 {\n background-color: var(--orange-700) !important;\n}\n.bg-orange-800 {\n background-color: var(--orange-800) !important;\n}\n.bg-orange-900 {\n background-color: var(--orange-900) !important;\n}\n\n.focus\\:bg-orange-50:focus {\n background-color: var(--orange-50) !important;\n}\n.focus\\:bg-orange-100:focus {\n background-color: var(--orange-100) !important;\n}\n.focus\\:bg-orange-200:focus {\n background-color: var(--orange-200) !important;\n}\n.focus\\:bg-orange-300:focus {\n background-color: var(--orange-300) !important;\n}\n.focus\\:bg-orange-400:focus {\n background-color: var(--orange-400) !important;\n}\n.focus\\:bg-orange-500:focus {\n background-color: var(--orange-500) !important;\n}\n.focus\\:bg-orange-600:focus {\n background-color: var(--orange-600) !important;\n}\n.focus\\:bg-orange-700:focus {\n background-color: var(--orange-700) !important;\n}\n.focus\\:bg-orange-800:focus {\n background-color: var(--orange-800) !important;\n}\n.focus\\:bg-orange-900:focus {\n background-color: var(--orange-900) !important;\n}\n\n.hover\\:bg-orange-50:hover {\n background-color: var(--orange-50) !important;\n}\n.hover\\:bg-orange-100:hover {\n background-color: var(--orange-100) !important;\n}\n.hover\\:bg-orange-200:hover {\n background-color: var(--orange-200) !important;\n}\n.hover\\:bg-orange-300:hover {\n background-color: var(--orange-300) !important;\n}\n.hover\\:bg-orange-400:hover {\n background-color: var(--orange-400) !important;\n}\n.hover\\:bg-orange-500:hover {\n background-color: var(--orange-500) !important;\n}\n.hover\\:bg-orange-600:hover {\n background-color: var(--orange-600) !important;\n}\n.hover\\:bg-orange-700:hover {\n background-color: var(--orange-700) !important;\n}\n.hover\\:bg-orange-800:hover {\n background-color: var(--orange-800) !important;\n}\n.hover\\:bg-orange-900:hover {\n background-color: var(--orange-900) !important;\n}\n\n.active\\:bg-orange-50:active {\n background-color: var(--orange-50) !important;\n}\n.active\\:bg-orange-100:active {\n background-color: var(--orange-100) !important;\n}\n.active\\:bg-orange-200:active {\n background-color: var(--orange-200) !important;\n}\n.active\\:bg-orange-300:active {\n background-color: var(--orange-300) !important;\n}\n.active\\:bg-orange-400:active {\n background-color: var(--orange-400) !important;\n}\n.active\\:bg-orange-500:active {\n background-color: var(--orange-500) !important;\n}\n.active\\:bg-orange-600:active {\n background-color: var(--orange-600) !important;\n}\n.active\\:bg-orange-700:active {\n background-color: var(--orange-700) !important;\n}\n.active\\:bg-orange-800:active {\n background-color: var(--orange-800) !important;\n}\n.active\\:bg-orange-900:active {\n background-color: var(--orange-900) !important;\n}\n\n.bg-bluegray-50 {\n background-color: var(--bluegray-50) !important;\n}\n.bg-bluegray-100 {\n background-color: var(--bluegray-100) !important;\n}\n.bg-bluegray-200 {\n background-color: var(--bluegray-200) !important;\n}\n.bg-bluegray-300 {\n background-color: var(--bluegray-300) !important;\n}\n.bg-bluegray-400 {\n background-color: var(--bluegray-400) !important;\n}\n.bg-bluegray-500 {\n background-color: var(--bluegray-500) !important;\n}\n.bg-bluegray-600 {\n background-color: var(--bluegray-600) !important;\n}\n.bg-bluegray-700 {\n background-color: var(--bluegray-700) !important;\n}\n.bg-bluegray-800 {\n background-color: var(--bluegray-800) !important;\n}\n.bg-bluegray-900 {\n background-color: var(--bluegray-900) !important;\n}\n\n.focus\\:bg-bluegray-50:focus {\n background-color: var(--bluegray-50) !important;\n}\n.focus\\:bg-bluegray-100:focus {\n background-color: var(--bluegray-100) !important;\n}\n.focus\\:bg-bluegray-200:focus {\n background-color: var(--bluegray-200) !important;\n}\n.focus\\:bg-bluegray-300:focus {\n background-color: var(--bluegray-300) !important;\n}\n.focus\\:bg-bluegray-400:focus {\n background-color: var(--bluegray-400) !important;\n}\n.focus\\:bg-bluegray-500:focus {\n background-color: var(--bluegray-500) !important;\n}\n.focus\\:bg-bluegray-600:focus {\n background-color: var(--bluegray-600) !important;\n}\n.focus\\:bg-bluegray-700:focus {\n background-color: var(--bluegray-700) !important;\n}\n.focus\\:bg-bluegray-800:focus {\n background-color: var(--bluegray-800) !important;\n}\n.focus\\:bg-bluegray-900:focus {\n background-color: var(--bluegray-900) !important;\n}\n\n.hover\\:bg-bluegray-50:hover {\n background-color: var(--bluegray-50) !important;\n}\n.hover\\:bg-bluegray-100:hover {\n background-color: var(--bluegray-100) !important;\n}\n.hover\\:bg-bluegray-200:hover {\n background-color: var(--bluegray-200) !important;\n}\n.hover\\:bg-bluegray-300:hover {\n background-color: var(--bluegray-300) !important;\n}\n.hover\\:bg-bluegray-400:hover {\n background-color: var(--bluegray-400) !important;\n}\n.hover\\:bg-bluegray-500:hover {\n background-color: var(--bluegray-500) !important;\n}\n.hover\\:bg-bluegray-600:hover {\n background-color: var(--bluegray-600) !important;\n}\n.hover\\:bg-bluegray-700:hover {\n background-color: var(--bluegray-700) !important;\n}\n.hover\\:bg-bluegray-800:hover {\n background-color: var(--bluegray-800) !important;\n}\n.hover\\:bg-bluegray-900:hover {\n background-color: var(--bluegray-900) !important;\n}\n\n.active\\:bg-bluegray-50:active {\n background-color: var(--bluegray-50) !important;\n}\n.active\\:bg-bluegray-100:active {\n background-color: var(--bluegray-100) !important;\n}\n.active\\:bg-bluegray-200:active {\n background-color: var(--bluegray-200) !important;\n}\n.active\\:bg-bluegray-300:active {\n background-color: var(--bluegray-300) !important;\n}\n.active\\:bg-bluegray-400:active {\n background-color: var(--bluegray-400) !important;\n}\n.active\\:bg-bluegray-500:active {\n background-color: var(--bluegray-500) !important;\n}\n.active\\:bg-bluegray-600:active {\n background-color: var(--bluegray-600) !important;\n}\n.active\\:bg-bluegray-700:active {\n background-color: var(--bluegray-700) !important;\n}\n.active\\:bg-bluegray-800:active {\n background-color: var(--bluegray-800) !important;\n}\n.active\\:bg-bluegray-900:active {\n background-color: var(--bluegray-900) !important;\n}\n\n.bg-purple-50 {\n background-color: var(--purple-50) !important;\n}\n.bg-purple-100 {\n background-color: var(--purple-100) !important;\n}\n.bg-purple-200 {\n background-color: var(--purple-200) !important;\n}\n.bg-purple-300 {\n background-color: var(--purple-300) !important;\n}\n.bg-purple-400 {\n background-color: var(--purple-400) !important;\n}\n.bg-purple-500 {\n background-color: var(--purple-500) !important;\n}\n.bg-purple-600 {\n background-color: var(--purple-600) !important;\n}\n.bg-purple-700 {\n background-color: var(--purple-700) !important;\n}\n.bg-purple-800 {\n background-color: var(--purple-800) !important;\n}\n.bg-purple-900 {\n background-color: var(--purple-900) !important;\n}\n\n.focus\\:bg-purple-50:focus {\n background-color: var(--purple-50) !important;\n}\n.focus\\:bg-purple-100:focus {\n background-color: var(--purple-100) !important;\n}\n.focus\\:bg-purple-200:focus {\n background-color: var(--purple-200) !important;\n}\n.focus\\:bg-purple-300:focus {\n background-color: var(--purple-300) !important;\n}\n.focus\\:bg-purple-400:focus {\n background-color: var(--purple-400) !important;\n}\n.focus\\:bg-purple-500:focus {\n background-color: var(--purple-500) !important;\n}\n.focus\\:bg-purple-600:focus {\n background-color: var(--purple-600) !important;\n}\n.focus\\:bg-purple-700:focus {\n background-color: var(--purple-700) !important;\n}\n.focus\\:bg-purple-800:focus {\n background-color: var(--purple-800) !important;\n}\n.focus\\:bg-purple-900:focus {\n background-color: var(--purple-900) !important;\n}\n\n.hover\\:bg-purple-50:hover {\n background-color: var(--purple-50) !important;\n}\n.hover\\:bg-purple-100:hover {\n background-color: var(--purple-100) !important;\n}\n.hover\\:bg-purple-200:hover {\n background-color: var(--purple-200) !important;\n}\n.hover\\:bg-purple-300:hover {\n background-color: var(--purple-300) !important;\n}\n.hover\\:bg-purple-400:hover {\n background-color: var(--purple-400) !important;\n}\n.hover\\:bg-purple-500:hover {\n background-color: var(--purple-500) !important;\n}\n.hover\\:bg-purple-600:hover {\n background-color: var(--purple-600) !important;\n}\n.hover\\:bg-purple-700:hover {\n background-color: var(--purple-700) !important;\n}\n.hover\\:bg-purple-800:hover {\n background-color: var(--purple-800) !important;\n}\n.hover\\:bg-purple-900:hover {\n background-color: var(--purple-900) !important;\n}\n\n.active\\:bg-purple-50:active {\n background-color: var(--purple-50) !important;\n}\n.active\\:bg-purple-100:active {\n background-color: var(--purple-100) !important;\n}\n.active\\:bg-purple-200:active {\n background-color: var(--purple-200) !important;\n}\n.active\\:bg-purple-300:active {\n background-color: var(--purple-300) !important;\n}\n.active\\:bg-purple-400:active {\n background-color: var(--purple-400) !important;\n}\n.active\\:bg-purple-500:active {\n background-color: var(--purple-500) !important;\n}\n.active\\:bg-purple-600:active {\n background-color: var(--purple-600) !important;\n}\n.active\\:bg-purple-700:active {\n background-color: var(--purple-700) !important;\n}\n.active\\:bg-purple-800:active {\n background-color: var(--purple-800) !important;\n}\n.active\\:bg-purple-900:active {\n background-color: var(--purple-900) !important;\n}\n\n.bg-gray-50 {\n background-color: var(--gray-50) !important;\n}\n.bg-gray-100 {\n background-color: var(--gray-100) !important;\n}\n.bg-gray-200 {\n background-color: var(--gray-200) !important;\n}\n.bg-gray-300 {\n background-color: var(--gray-300) !important;\n}\n.bg-gray-400 {\n background-color: var(--gray-400) !important;\n}\n.bg-gray-500 {\n background-color: var(--gray-500) !important;\n}\n.bg-gray-600 {\n background-color: var(--gray-600) !important;\n}\n.bg-gray-700 {\n background-color: var(--gray-700) !important;\n}\n.bg-gray-800 {\n background-color: var(--gray-800) !important;\n}\n.bg-gray-900 {\n background-color: var(--gray-900) !important;\n}\n\n.focus\\:bg-gray-50:focus {\n background-color: var(--gray-50) !important;\n}\n.focus\\:bg-gray-100:focus {\n background-color: var(--gray-100) !important;\n}\n.focus\\:bg-gray-200:focus {\n background-color: var(--gray-200) !important;\n}\n.focus\\:bg-gray-300:focus {\n background-color: var(--gray-300) !important;\n}\n.focus\\:bg-gray-400:focus {\n background-color: var(--gray-400) !important;\n}\n.focus\\:bg-gray-500:focus {\n background-color: var(--gray-500) !important;\n}\n.focus\\:bg-gray-600:focus {\n background-color: var(--gray-600) !important;\n}\n.focus\\:bg-gray-700:focus {\n background-color: var(--gray-700) !important;\n}\n.focus\\:bg-gray-800:focus {\n background-color: var(--gray-800) !important;\n}\n.focus\\:bg-gray-900:focus {\n background-color: var(--gray-900) !important;\n}\n\n.hover\\:bg-gray-50:hover {\n background-color: var(--gray-50) !important;\n}\n.hover\\:bg-gray-100:hover {\n background-color: var(--gray-100) !important;\n}\n.hover\\:bg-gray-200:hover {\n background-color: var(--gray-200) !important;\n}\n.hover\\:bg-gray-300:hover {\n background-color: var(--gray-300) !important;\n}\n.hover\\:bg-gray-400:hover {\n background-color: var(--gray-400) !important;\n}\n.hover\\:bg-gray-500:hover {\n background-color: var(--gray-500) !important;\n}\n.hover\\:bg-gray-600:hover {\n background-color: var(--gray-600) !important;\n}\n.hover\\:bg-gray-700:hover {\n background-color: var(--gray-700) !important;\n}\n.hover\\:bg-gray-800:hover {\n background-color: var(--gray-800) !important;\n}\n.hover\\:bg-gray-900:hover {\n background-color: var(--gray-900) !important;\n}\n\n.active\\:bg-gray-50:active {\n background-color: var(--gray-50) !important;\n}\n.active\\:bg-gray-100:active {\n background-color: var(--gray-100) !important;\n}\n.active\\:bg-gray-200:active {\n background-color: var(--gray-200) !important;\n}\n.active\\:bg-gray-300:active {\n background-color: var(--gray-300) !important;\n}\n.active\\:bg-gray-400:active {\n background-color: var(--gray-400) !important;\n}\n.active\\:bg-gray-500:active {\n background-color: var(--gray-500) !important;\n}\n.active\\:bg-gray-600:active {\n background-color: var(--gray-600) !important;\n}\n.active\\:bg-gray-700:active {\n background-color: var(--gray-700) !important;\n}\n.active\\:bg-gray-800:active {\n background-color: var(--gray-800) !important;\n}\n.active\\:bg-gray-900:active {\n background-color: var(--gray-900) !important;\n}\n\n.border-blue-50 {\n border-color: var(--blue-50) !important;\n}\n.border-blue-100 {\n border-color: var(--blue-100) !important;\n}\n.border-blue-200 {\n border-color: var(--blue-200) !important;\n}\n.border-blue-300 {\n border-color: var(--blue-300) !important;\n}\n.border-blue-400 {\n border-color: var(--blue-400) !important;\n}\n.border-blue-500 {\n border-color: var(--blue-500) !important;\n}\n.border-blue-600 {\n border-color: var(--blue-600) !important;\n}\n.border-blue-700 {\n border-color: var(--blue-700) !important;\n}\n.border-blue-800 {\n border-color: var(--blue-800) !important;\n}\n.border-blue-900 {\n border-color: var(--blue-900) !important;\n}\n\n.focus\\:border-blue-50:focus {\n border-color: var(--blue-50) !important;\n}\n.focus\\:border-blue-100:focus {\n border-color: var(--blue-100) !important;\n}\n.focus\\:border-blue-200:focus {\n border-color: var(--blue-200) !important;\n}\n.focus\\:border-blue-300:focus {\n border-color: var(--blue-300) !important;\n}\n.focus\\:border-blue-400:focus {\n border-color: var(--blue-400) !important;\n}\n.focus\\:border-blue-500:focus {\n border-color: var(--blue-500) !important;\n}\n.focus\\:border-blue-600:focus {\n border-color: var(--blue-600) !important;\n}\n.focus\\:border-blue-700:focus {\n border-color: var(--blue-700) !important;\n}\n.focus\\:border-blue-800:focus {\n border-color: var(--blue-800) !important;\n}\n.focus\\:border-blue-900:focus {\n border-color: var(--blue-900) !important;\n}\n\n.hover\\:border-blue-50:hover {\n border-color: var(--blue-50) !important;\n}\n.hover\\:border-blue-100:hover {\n border-color: var(--blue-100) !important;\n}\n.hover\\:border-blue-200:hover {\n border-color: var(--blue-200) !important;\n}\n.hover\\:border-blue-300:hover {\n border-color: var(--blue-300) !important;\n}\n.hover\\:border-blue-400:hover {\n border-color: var(--blue-400) !important;\n}\n.hover\\:border-blue-500:hover {\n border-color: var(--blue-500) !important;\n}\n.hover\\:border-blue-600:hover {\n border-color: var(--blue-600) !important;\n}\n.hover\\:border-blue-700:hover {\n border-color: var(--blue-700) !important;\n}\n.hover\\:border-blue-800:hover {\n border-color: var(--blue-800) !important;\n}\n.hover\\:border-blue-900:hover {\n border-color: var(--blue-900) !important;\n}\n\n.active\\:border-blue-50:active {\n border-color: var(--blue-50) !important;\n}\n.active\\:border-blue-100:active {\n border-color: var(--blue-100) !important;\n}\n.active\\:border-blue-200:active {\n border-color: var(--blue-200) !important;\n}\n.active\\:border-blue-300:active {\n border-color: var(--blue-300) !important;\n}\n.active\\:border-blue-400:active {\n border-color: var(--blue-400) !important;\n}\n.active\\:border-blue-500:active {\n border-color: var(--blue-500) !important;\n}\n.active\\:border-blue-600:active {\n border-color: var(--blue-600) !important;\n}\n.active\\:border-blue-700:active {\n border-color: var(--blue-700) !important;\n}\n.active\\:border-blue-800:active {\n border-color: var(--blue-800) !important;\n}\n.active\\:border-blue-900:active {\n border-color: var(--blue-900) !important;\n}\n\n.border-green-50 {\n border-color: var(--green-50) !important;\n}\n.border-green-100 {\n border-color: var(--green-100) !important;\n}\n.border-green-200 {\n border-color: var(--green-200) !important;\n}\n.border-green-300 {\n border-color: var(--green-300) !important;\n}\n.border-green-400 {\n border-color: var(--green-400) !important;\n}\n.border-green-500 {\n border-color: var(--green-500) !important;\n}\n.border-green-600 {\n border-color: var(--green-600) !important;\n}\n.border-green-700 {\n border-color: var(--green-700) !important;\n}\n.border-green-800 {\n border-color: var(--green-800) !important;\n}\n.border-green-900 {\n border-color: var(--green-900) !important;\n}\n\n.focus\\:border-green-50:focus {\n border-color: var(--green-50) !important;\n}\n.focus\\:border-green-100:focus {\n border-color: var(--green-100) !important;\n}\n.focus\\:border-green-200:focus {\n border-color: var(--green-200) !important;\n}\n.focus\\:border-green-300:focus {\n border-color: var(--green-300) !important;\n}\n.focus\\:border-green-400:focus {\n border-color: var(--green-400) !important;\n}\n.focus\\:border-green-500:focus {\n border-color: var(--green-500) !important;\n}\n.focus\\:border-green-600:focus {\n border-color: var(--green-600) !important;\n}\n.focus\\:border-green-700:focus {\n border-color: var(--green-700) !important;\n}\n.focus\\:border-green-800:focus {\n border-color: var(--green-800) !important;\n}\n.focus\\:border-green-900:focus {\n border-color: var(--green-900) !important;\n}\n\n.hover\\:border-green-50:hover {\n border-color: var(--green-50) !important;\n}\n.hover\\:border-green-100:hover {\n border-color: var(--green-100) !important;\n}\n.hover\\:border-green-200:hover {\n border-color: var(--green-200) !important;\n}\n.hover\\:border-green-300:hover {\n border-color: var(--green-300) !important;\n}\n.hover\\:border-green-400:hover {\n border-color: var(--green-400) !important;\n}\n.hover\\:border-green-500:hover {\n border-color: var(--green-500) !important;\n}\n.hover\\:border-green-600:hover {\n border-color: var(--green-600) !important;\n}\n.hover\\:border-green-700:hover {\n border-color: var(--green-700) !important;\n}\n.hover\\:border-green-800:hover {\n border-color: var(--green-800) !important;\n}\n.hover\\:border-green-900:hover {\n border-color: var(--green-900) !important;\n}\n\n.active\\:border-green-50:active {\n border-color: var(--green-50) !important;\n}\n.active\\:border-green-100:active {\n border-color: var(--green-100) !important;\n}\n.active\\:border-green-200:active {\n border-color: var(--green-200) !important;\n}\n.active\\:border-green-300:active {\n border-color: var(--green-300) !important;\n}\n.active\\:border-green-400:active {\n border-color: var(--green-400) !important;\n}\n.active\\:border-green-500:active {\n border-color: var(--green-500) !important;\n}\n.active\\:border-green-600:active {\n border-color: var(--green-600) !important;\n}\n.active\\:border-green-700:active {\n border-color: var(--green-700) !important;\n}\n.active\\:border-green-800:active {\n border-color: var(--green-800) !important;\n}\n.active\\:border-green-900:active {\n border-color: var(--green-900) !important;\n}\n\n.border-yellow-50 {\n border-color: var(--yellow-50) !important;\n}\n.border-yellow-100 {\n border-color: var(--yellow-100) !important;\n}\n.border-yellow-200 {\n border-color: var(--yellow-200) !important;\n}\n.border-yellow-300 {\n border-color: var(--yellow-300) !important;\n}\n.border-yellow-400 {\n border-color: var(--yellow-400) !important;\n}\n.border-yellow-500 {\n border-color: var(--yellow-500) !important;\n}\n.border-yellow-600 {\n border-color: var(--yellow-600) !important;\n}\n.border-yellow-700 {\n border-color: var(--yellow-700) !important;\n}\n.border-yellow-800 {\n border-color: var(--yellow-800) !important;\n}\n.border-yellow-900 {\n border-color: var(--yellow-900) !important;\n}\n\n.focus\\:border-yellow-50:focus {\n border-color: var(--yellow-50) !important;\n}\n.focus\\:border-yellow-100:focus {\n border-color: var(--yellow-100) !important;\n}\n.focus\\:border-yellow-200:focus {\n border-color: var(--yellow-200) !important;\n}\n.focus\\:border-yellow-300:focus {\n border-color: var(--yellow-300) !important;\n}\n.focus\\:border-yellow-400:focus {\n border-color: var(--yellow-400) !important;\n}\n.focus\\:border-yellow-500:focus {\n border-color: var(--yellow-500) !important;\n}\n.focus\\:border-yellow-600:focus {\n border-color: var(--yellow-600) !important;\n}\n.focus\\:border-yellow-700:focus {\n border-color: var(--yellow-700) !important;\n}\n.focus\\:border-yellow-800:focus {\n border-color: var(--yellow-800) !important;\n}\n.focus\\:border-yellow-900:focus {\n border-color: var(--yellow-900) !important;\n}\n\n.hover\\:border-yellow-50:hover {\n border-color: var(--yellow-50) !important;\n}\n.hover\\:border-yellow-100:hover {\n border-color: var(--yellow-100) !important;\n}\n.hover\\:border-yellow-200:hover {\n border-color: var(--yellow-200) !important;\n}\n.hover\\:border-yellow-300:hover {\n border-color: var(--yellow-300) !important;\n}\n.hover\\:border-yellow-400:hover {\n border-color: var(--yellow-400) !important;\n}\n.hover\\:border-yellow-500:hover {\n border-color: var(--yellow-500) !important;\n}\n.hover\\:border-yellow-600:hover {\n border-color: var(--yellow-600) !important;\n}\n.hover\\:border-yellow-700:hover {\n border-color: var(--yellow-700) !important;\n}\n.hover\\:border-yellow-800:hover {\n border-color: var(--yellow-800) !important;\n}\n.hover\\:border-yellow-900:hover {\n border-color: var(--yellow-900) !important;\n}\n\n.active\\:border-yellow-50:active {\n border-color: var(--yellow-50) !important;\n}\n.active\\:border-yellow-100:active {\n border-color: var(--yellow-100) !important;\n}\n.active\\:border-yellow-200:active {\n border-color: var(--yellow-200) !important;\n}\n.active\\:border-yellow-300:active {\n border-color: var(--yellow-300) !important;\n}\n.active\\:border-yellow-400:active {\n border-color: var(--yellow-400) !important;\n}\n.active\\:border-yellow-500:active {\n border-color: var(--yellow-500) !important;\n}\n.active\\:border-yellow-600:active {\n border-color: var(--yellow-600) !important;\n}\n.active\\:border-yellow-700:active {\n border-color: var(--yellow-700) !important;\n}\n.active\\:border-yellow-800:active {\n border-color: var(--yellow-800) !important;\n}\n.active\\:border-yellow-900:active {\n border-color: var(--yellow-900) !important;\n}\n\n.border-cyan-50 {\n border-color: var(--cyan-50) !important;\n}\n.border-cyan-100 {\n border-color: var(--cyan-100) !important;\n}\n.border-cyan-200 {\n border-color: var(--cyan-200) !important;\n}\n.border-cyan-300 {\n border-color: var(--cyan-300) !important;\n}\n.border-cyan-400 {\n border-color: var(--cyan-400) !important;\n}\n.border-cyan-500 {\n border-color: var(--cyan-500) !important;\n}\n.border-cyan-600 {\n border-color: var(--cyan-600) !important;\n}\n.border-cyan-700 {\n border-color: var(--cyan-700) !important;\n}\n.border-cyan-800 {\n border-color: var(--cyan-800) !important;\n}\n.border-cyan-900 {\n border-color: var(--cyan-900) !important;\n}\n\n.focus\\:border-cyan-50:focus {\n border-color: var(--cyan-50) !important;\n}\n.focus\\:border-cyan-100:focus {\n border-color: var(--cyan-100) !important;\n}\n.focus\\:border-cyan-200:focus {\n border-color: var(--cyan-200) !important;\n}\n.focus\\:border-cyan-300:focus {\n border-color: var(--cyan-300) !important;\n}\n.focus\\:border-cyan-400:focus {\n border-color: var(--cyan-400) !important;\n}\n.focus\\:border-cyan-500:focus {\n border-color: var(--cyan-500) !important;\n}\n.focus\\:border-cyan-600:focus {\n border-color: var(--cyan-600) !important;\n}\n.focus\\:border-cyan-700:focus {\n border-color: var(--cyan-700) !important;\n}\n.focus\\:border-cyan-800:focus {\n border-color: var(--cyan-800) !important;\n}\n.focus\\:border-cyan-900:focus {\n border-color: var(--cyan-900) !important;\n}\n\n.hover\\:border-cyan-50:hover {\n border-color: var(--cyan-50) !important;\n}\n.hover\\:border-cyan-100:hover {\n border-color: var(--cyan-100) !important;\n}\n.hover\\:border-cyan-200:hover {\n border-color: var(--cyan-200) !important;\n}\n.hover\\:border-cyan-300:hover {\n border-color: var(--cyan-300) !important;\n}\n.hover\\:border-cyan-400:hover {\n border-color: var(--cyan-400) !important;\n}\n.hover\\:border-cyan-500:hover {\n border-color: var(--cyan-500) !important;\n}\n.hover\\:border-cyan-600:hover {\n border-color: var(--cyan-600) !important;\n}\n.hover\\:border-cyan-700:hover {\n border-color: var(--cyan-700) !important;\n}\n.hover\\:border-cyan-800:hover {\n border-color: var(--cyan-800) !important;\n}\n.hover\\:border-cyan-900:hover {\n border-color: var(--cyan-900) !important;\n}\n\n.active\\:border-cyan-50:active {\n border-color: var(--cyan-50) !important;\n}\n.active\\:border-cyan-100:active {\n border-color: var(--cyan-100) !important;\n}\n.active\\:border-cyan-200:active {\n border-color: var(--cyan-200) !important;\n}\n.active\\:border-cyan-300:active {\n border-color: var(--cyan-300) !important;\n}\n.active\\:border-cyan-400:active {\n border-color: var(--cyan-400) !important;\n}\n.active\\:border-cyan-500:active {\n border-color: var(--cyan-500) !important;\n}\n.active\\:border-cyan-600:active {\n border-color: var(--cyan-600) !important;\n}\n.active\\:border-cyan-700:active {\n border-color: var(--cyan-700) !important;\n}\n.active\\:border-cyan-800:active {\n border-color: var(--cyan-800) !important;\n}\n.active\\:border-cyan-900:active {\n border-color: var(--cyan-900) !important;\n}\n\n.border-pink-50 {\n border-color: var(--pink-50) !important;\n}\n.border-pink-100 {\n border-color: var(--pink-100) !important;\n}\n.border-pink-200 {\n border-color: var(--pink-200) !important;\n}\n.border-pink-300 {\n border-color: var(--pink-300) !important;\n}\n.border-pink-400 {\n border-color: var(--pink-400) !important;\n}\n.border-pink-500 {\n border-color: var(--pink-500) !important;\n}\n.border-pink-600 {\n border-color: var(--pink-600) !important;\n}\n.border-pink-700 {\n border-color: var(--pink-700) !important;\n}\n.border-pink-800 {\n border-color: var(--pink-800) !important;\n}\n.border-pink-900 {\n border-color: var(--pink-900) !important;\n}\n\n.focus\\:border-pink-50:focus {\n border-color: var(--pink-50) !important;\n}\n.focus\\:border-pink-100:focus {\n border-color: var(--pink-100) !important;\n}\n.focus\\:border-pink-200:focus {\n border-color: var(--pink-200) !important;\n}\n.focus\\:border-pink-300:focus {\n border-color: var(--pink-300) !important;\n}\n.focus\\:border-pink-400:focus {\n border-color: var(--pink-400) !important;\n}\n.focus\\:border-pink-500:focus {\n border-color: var(--pink-500) !important;\n}\n.focus\\:border-pink-600:focus {\n border-color: var(--pink-600) !important;\n}\n.focus\\:border-pink-700:focus {\n border-color: var(--pink-700) !important;\n}\n.focus\\:border-pink-800:focus {\n border-color: var(--pink-800) !important;\n}\n.focus\\:border-pink-900:focus {\n border-color: var(--pink-900) !important;\n}\n\n.hover\\:border-pink-50:hover {\n border-color: var(--pink-50) !important;\n}\n.hover\\:border-pink-100:hover {\n border-color: var(--pink-100) !important;\n}\n.hover\\:border-pink-200:hover {\n border-color: var(--pink-200) !important;\n}\n.hover\\:border-pink-300:hover {\n border-color: var(--pink-300) !important;\n}\n.hover\\:border-pink-400:hover {\n border-color: var(--pink-400) !important;\n}\n.hover\\:border-pink-500:hover {\n border-color: var(--pink-500) !important;\n}\n.hover\\:border-pink-600:hover {\n border-color: var(--pink-600) !important;\n}\n.hover\\:border-pink-700:hover {\n border-color: var(--pink-700) !important;\n}\n.hover\\:border-pink-800:hover {\n border-color: var(--pink-800) !important;\n}\n.hover\\:border-pink-900:hover {\n border-color: var(--pink-900) !important;\n}\n\n.active\\:border-pink-50:active {\n border-color: var(--pink-50) !important;\n}\n.active\\:border-pink-100:active {\n border-color: var(--pink-100) !important;\n}\n.active\\:border-pink-200:active {\n border-color: var(--pink-200) !important;\n}\n.active\\:border-pink-300:active {\n border-color: var(--pink-300) !important;\n}\n.active\\:border-pink-400:active {\n border-color: var(--pink-400) !important;\n}\n.active\\:border-pink-500:active {\n border-color: var(--pink-500) !important;\n}\n.active\\:border-pink-600:active {\n border-color: var(--pink-600) !important;\n}\n.active\\:border-pink-700:active {\n border-color: var(--pink-700) !important;\n}\n.active\\:border-pink-800:active {\n border-color: var(--pink-800) !important;\n}\n.active\\:border-pink-900:active {\n border-color: var(--pink-900) !important;\n}\n\n.border-indigo-50 {\n border-color: var(--indigo-50) !important;\n}\n.border-indigo-100 {\n border-color: var(--indigo-100) !important;\n}\n.border-indigo-200 {\n border-color: var(--indigo-200) !important;\n}\n.border-indigo-300 {\n border-color: var(--indigo-300) !important;\n}\n.border-indigo-400 {\n border-color: var(--indigo-400) !important;\n}\n.border-indigo-500 {\n border-color: var(--indigo-500) !important;\n}\n.border-indigo-600 {\n border-color: var(--indigo-600) !important;\n}\n.border-indigo-700 {\n border-color: var(--indigo-700) !important;\n}\n.border-indigo-800 {\n border-color: var(--indigo-800) !important;\n}\n.border-indigo-900 {\n border-color: var(--indigo-900) !important;\n}\n\n.focus\\:border-indigo-50:focus {\n border-color: var(--indigo-50) !important;\n}\n.focus\\:border-indigo-100:focus {\n border-color: var(--indigo-100) !important;\n}\n.focus\\:border-indigo-200:focus {\n border-color: var(--indigo-200) !important;\n}\n.focus\\:border-indigo-300:focus {\n border-color: var(--indigo-300) !important;\n}\n.focus\\:border-indigo-400:focus {\n border-color: var(--indigo-400) !important;\n}\n.focus\\:border-indigo-500:focus {\n border-color: var(--indigo-500) !important;\n}\n.focus\\:border-indigo-600:focus {\n border-color: var(--indigo-600) !important;\n}\n.focus\\:border-indigo-700:focus {\n border-color: var(--indigo-700) !important;\n}\n.focus\\:border-indigo-800:focus {\n border-color: var(--indigo-800) !important;\n}\n.focus\\:border-indigo-900:focus {\n border-color: var(--indigo-900) !important;\n}\n\n.hover\\:border-indigo-50:hover {\n border-color: var(--indigo-50) !important;\n}\n.hover\\:border-indigo-100:hover {\n border-color: var(--indigo-100) !important;\n}\n.hover\\:border-indigo-200:hover {\n border-color: var(--indigo-200) !important;\n}\n.hover\\:border-indigo-300:hover {\n border-color: var(--indigo-300) !important;\n}\n.hover\\:border-indigo-400:hover {\n border-color: var(--indigo-400) !important;\n}\n.hover\\:border-indigo-500:hover {\n border-color: var(--indigo-500) !important;\n}\n.hover\\:border-indigo-600:hover {\n border-color: var(--indigo-600) !important;\n}\n.hover\\:border-indigo-700:hover {\n border-color: var(--indigo-700) !important;\n}\n.hover\\:border-indigo-800:hover {\n border-color: var(--indigo-800) !important;\n}\n.hover\\:border-indigo-900:hover {\n border-color: var(--indigo-900) !important;\n}\n\n.active\\:border-indigo-50:active {\n border-color: var(--indigo-50) !important;\n}\n.active\\:border-indigo-100:active {\n border-color: var(--indigo-100) !important;\n}\n.active\\:border-indigo-200:active {\n border-color: var(--indigo-200) !important;\n}\n.active\\:border-indigo-300:active {\n border-color: var(--indigo-300) !important;\n}\n.active\\:border-indigo-400:active {\n border-color: var(--indigo-400) !important;\n}\n.active\\:border-indigo-500:active {\n border-color: var(--indigo-500) !important;\n}\n.active\\:border-indigo-600:active {\n border-color: var(--indigo-600) !important;\n}\n.active\\:border-indigo-700:active {\n border-color: var(--indigo-700) !important;\n}\n.active\\:border-indigo-800:active {\n border-color: var(--indigo-800) !important;\n}\n.active\\:border-indigo-900:active {\n border-color: var(--indigo-900) !important;\n}\n\n.border-teal-50 {\n border-color: var(--teal-50) !important;\n}\n.border-teal-100 {\n border-color: var(--teal-100) !important;\n}\n.border-teal-200 {\n border-color: var(--teal-200) !important;\n}\n.border-teal-300 {\n border-color: var(--teal-300) !important;\n}\n.border-teal-400 {\n border-color: var(--teal-400) !important;\n}\n.border-teal-500 {\n border-color: var(--teal-500) !important;\n}\n.border-teal-600 {\n border-color: var(--teal-600) !important;\n}\n.border-teal-700 {\n border-color: var(--teal-700) !important;\n}\n.border-teal-800 {\n border-color: var(--teal-800) !important;\n}\n.border-teal-900 {\n border-color: var(--teal-900) !important;\n}\n\n.focus\\:border-teal-50:focus {\n border-color: var(--teal-50) !important;\n}\n.focus\\:border-teal-100:focus {\n border-color: var(--teal-100) !important;\n}\n.focus\\:border-teal-200:focus {\n border-color: var(--teal-200) !important;\n}\n.focus\\:border-teal-300:focus {\n border-color: var(--teal-300) !important;\n}\n.focus\\:border-teal-400:focus {\n border-color: var(--teal-400) !important;\n}\n.focus\\:border-teal-500:focus {\n border-color: var(--teal-500) !important;\n}\n.focus\\:border-teal-600:focus {\n border-color: var(--teal-600) !important;\n}\n.focus\\:border-teal-700:focus {\n border-color: var(--teal-700) !important;\n}\n.focus\\:border-teal-800:focus {\n border-color: var(--teal-800) !important;\n}\n.focus\\:border-teal-900:focus {\n border-color: var(--teal-900) !important;\n}\n\n.hover\\:border-teal-50:hover {\n border-color: var(--teal-50) !important;\n}\n.hover\\:border-teal-100:hover {\n border-color: var(--teal-100) !important;\n}\n.hover\\:border-teal-200:hover {\n border-color: var(--teal-200) !important;\n}\n.hover\\:border-teal-300:hover {\n border-color: var(--teal-300) !important;\n}\n.hover\\:border-teal-400:hover {\n border-color: var(--teal-400) !important;\n}\n.hover\\:border-teal-500:hover {\n border-color: var(--teal-500) !important;\n}\n.hover\\:border-teal-600:hover {\n border-color: var(--teal-600) !important;\n}\n.hover\\:border-teal-700:hover {\n border-color: var(--teal-700) !important;\n}\n.hover\\:border-teal-800:hover {\n border-color: var(--teal-800) !important;\n}\n.hover\\:border-teal-900:hover {\n border-color: var(--teal-900) !important;\n}\n\n.active\\:border-teal-50:active {\n border-color: var(--teal-50) !important;\n}\n.active\\:border-teal-100:active {\n border-color: var(--teal-100) !important;\n}\n.active\\:border-teal-200:active {\n border-color: var(--teal-200) !important;\n}\n.active\\:border-teal-300:active {\n border-color: var(--teal-300) !important;\n}\n.active\\:border-teal-400:active {\n border-color: var(--teal-400) !important;\n}\n.active\\:border-teal-500:active {\n border-color: var(--teal-500) !important;\n}\n.active\\:border-teal-600:active {\n border-color: var(--teal-600) !important;\n}\n.active\\:border-teal-700:active {\n border-color: var(--teal-700) !important;\n}\n.active\\:border-teal-800:active {\n border-color: var(--teal-800) !important;\n}\n.active\\:border-teal-900:active {\n border-color: var(--teal-900) !important;\n}\n\n.border-orange-50 {\n border-color: var(--orange-50) !important;\n}\n.border-orange-100 {\n border-color: var(--orange-100) !important;\n}\n.border-orange-200 {\n border-color: var(--orange-200) !important;\n}\n.border-orange-300 {\n border-color: var(--orange-300) !important;\n}\n.border-orange-400 {\n border-color: var(--orange-400) !important;\n}\n.border-orange-500 {\n border-color: var(--orange-500) !important;\n}\n.border-orange-600 {\n border-color: var(--orange-600) !important;\n}\n.border-orange-700 {\n border-color: var(--orange-700) !important;\n}\n.border-orange-800 {\n border-color: var(--orange-800) !important;\n}\n.border-orange-900 {\n border-color: var(--orange-900) !important;\n}\n\n.focus\\:border-orange-50:focus {\n border-color: var(--orange-50) !important;\n}\n.focus\\:border-orange-100:focus {\n border-color: var(--orange-100) !important;\n}\n.focus\\:border-orange-200:focus {\n border-color: var(--orange-200) !important;\n}\n.focus\\:border-orange-300:focus {\n border-color: var(--orange-300) !important;\n}\n.focus\\:border-orange-400:focus {\n border-color: var(--orange-400) !important;\n}\n.focus\\:border-orange-500:focus {\n border-color: var(--orange-500) !important;\n}\n.focus\\:border-orange-600:focus {\n border-color: var(--orange-600) !important;\n}\n.focus\\:border-orange-700:focus {\n border-color: var(--orange-700) !important;\n}\n.focus\\:border-orange-800:focus {\n border-color: var(--orange-800) !important;\n}\n.focus\\:border-orange-900:focus {\n border-color: var(--orange-900) !important;\n}\n\n.hover\\:border-orange-50:hover {\n border-color: var(--orange-50) !important;\n}\n.hover\\:border-orange-100:hover {\n border-color: var(--orange-100) !important;\n}\n.hover\\:border-orange-200:hover {\n border-color: var(--orange-200) !important;\n}\n.hover\\:border-orange-300:hover {\n border-color: var(--orange-300) !important;\n}\n.hover\\:border-orange-400:hover {\n border-color: var(--orange-400) !important;\n}\n.hover\\:border-orange-500:hover {\n border-color: var(--orange-500) !important;\n}\n.hover\\:border-orange-600:hover {\n border-color: var(--orange-600) !important;\n}\n.hover\\:border-orange-700:hover {\n border-color: var(--orange-700) !important;\n}\n.hover\\:border-orange-800:hover {\n border-color: var(--orange-800) !important;\n}\n.hover\\:border-orange-900:hover {\n border-color: var(--orange-900) !important;\n}\n\n.active\\:border-orange-50:active {\n border-color: var(--orange-50) !important;\n}\n.active\\:border-orange-100:active {\n border-color: var(--orange-100) !important;\n}\n.active\\:border-orange-200:active {\n border-color: var(--orange-200) !important;\n}\n.active\\:border-orange-300:active {\n border-color: var(--orange-300) !important;\n}\n.active\\:border-orange-400:active {\n border-color: var(--orange-400) !important;\n}\n.active\\:border-orange-500:active {\n border-color: var(--orange-500) !important;\n}\n.active\\:border-orange-600:active {\n border-color: var(--orange-600) !important;\n}\n.active\\:border-orange-700:active {\n border-color: var(--orange-700) !important;\n}\n.active\\:border-orange-800:active {\n border-color: var(--orange-800) !important;\n}\n.active\\:border-orange-900:active {\n border-color: var(--orange-900) !important;\n}\n\n.border-bluegray-50 {\n border-color: var(--bluegray-50) !important;\n}\n.border-bluegray-100 {\n border-color: var(--bluegray-100) !important;\n}\n.border-bluegray-200 {\n border-color: var(--bluegray-200) !important;\n}\n.border-bluegray-300 {\n border-color: var(--bluegray-300) !important;\n}\n.border-bluegray-400 {\n border-color: var(--bluegray-400) !important;\n}\n.border-bluegray-500 {\n border-color: var(--bluegray-500) !important;\n}\n.border-bluegray-600 {\n border-color: var(--bluegray-600) !important;\n}\n.border-bluegray-700 {\n border-color: var(--bluegray-700) !important;\n}\n.border-bluegray-800 {\n border-color: var(--bluegray-800) !important;\n}\n.border-bluegray-900 {\n border-color: var(--bluegray-900) !important;\n}\n\n.focus\\:border-bluegray-50:focus {\n border-color: var(--bluegray-50) !important;\n}\n.focus\\:border-bluegray-100:focus {\n border-color: var(--bluegray-100) !important;\n}\n.focus\\:border-bluegray-200:focus {\n border-color: var(--bluegray-200) !important;\n}\n.focus\\:border-bluegray-300:focus {\n border-color: var(--bluegray-300) !important;\n}\n.focus\\:border-bluegray-400:focus {\n border-color: var(--bluegray-400) !important;\n}\n.focus\\:border-bluegray-500:focus {\n border-color: var(--bluegray-500) !important;\n}\n.focus\\:border-bluegray-600:focus {\n border-color: var(--bluegray-600) !important;\n}\n.focus\\:border-bluegray-700:focus {\n border-color: var(--bluegray-700) !important;\n}\n.focus\\:border-bluegray-800:focus {\n border-color: var(--bluegray-800) !important;\n}\n.focus\\:border-bluegray-900:focus {\n border-color: var(--bluegray-900) !important;\n}\n\n.hover\\:border-bluegray-50:hover {\n border-color: var(--bluegray-50) !important;\n}\n.hover\\:border-bluegray-100:hover {\n border-color: var(--bluegray-100) !important;\n}\n.hover\\:border-bluegray-200:hover {\n border-color: var(--bluegray-200) !important;\n}\n.hover\\:border-bluegray-300:hover {\n border-color: var(--bluegray-300) !important;\n}\n.hover\\:border-bluegray-400:hover {\n border-color: var(--bluegray-400) !important;\n}\n.hover\\:border-bluegray-500:hover {\n border-color: var(--bluegray-500) !important;\n}\n.hover\\:border-bluegray-600:hover {\n border-color: var(--bluegray-600) !important;\n}\n.hover\\:border-bluegray-700:hover {\n border-color: var(--bluegray-700) !important;\n}\n.hover\\:border-bluegray-800:hover {\n border-color: var(--bluegray-800) !important;\n}\n.hover\\:border-bluegray-900:hover {\n border-color: var(--bluegray-900) !important;\n}\n\n.active\\:border-bluegray-50:active {\n border-color: var(--bluegray-50) !important;\n}\n.active\\:border-bluegray-100:active {\n border-color: var(--bluegray-100) !important;\n}\n.active\\:border-bluegray-200:active {\n border-color: var(--bluegray-200) !important;\n}\n.active\\:border-bluegray-300:active {\n border-color: var(--bluegray-300) !important;\n}\n.active\\:border-bluegray-400:active {\n border-color: var(--bluegray-400) !important;\n}\n.active\\:border-bluegray-500:active {\n border-color: var(--bluegray-500) !important;\n}\n.active\\:border-bluegray-600:active {\n border-color: var(--bluegray-600) !important;\n}\n.active\\:border-bluegray-700:active {\n border-color: var(--bluegray-700) !important;\n}\n.active\\:border-bluegray-800:active {\n border-color: var(--bluegray-800) !important;\n}\n.active\\:border-bluegray-900:active {\n border-color: var(--bluegray-900) !important;\n}\n\n.border-purple-50 {\n border-color: var(--purple-50) !important;\n}\n.border-purple-100 {\n border-color: var(--purple-100) !important;\n}\n.border-purple-200 {\n border-color: var(--purple-200) !important;\n}\n.border-purple-300 {\n border-color: var(--purple-300) !important;\n}\n.border-purple-400 {\n border-color: var(--purple-400) !important;\n}\n.border-purple-500 {\n border-color: var(--purple-500) !important;\n}\n.border-purple-600 {\n border-color: var(--purple-600) !important;\n}\n.border-purple-700 {\n border-color: var(--purple-700) !important;\n}\n.border-purple-800 {\n border-color: var(--purple-800) !important;\n}\n.border-purple-900 {\n border-color: var(--purple-900) !important;\n}\n\n.focus\\:border-purple-50:focus {\n border-color: var(--purple-50) !important;\n}\n.focus\\:border-purple-100:focus {\n border-color: var(--purple-100) !important;\n}\n.focus\\:border-purple-200:focus {\n border-color: var(--purple-200) !important;\n}\n.focus\\:border-purple-300:focus {\n border-color: var(--purple-300) !important;\n}\n.focus\\:border-purple-400:focus {\n border-color: var(--purple-400) !important;\n}\n.focus\\:border-purple-500:focus {\n border-color: var(--purple-500) !important;\n}\n.focus\\:border-purple-600:focus {\n border-color: var(--purple-600) !important;\n}\n.focus\\:border-purple-700:focus {\n border-color: var(--purple-700) !important;\n}\n.focus\\:border-purple-800:focus {\n border-color: var(--purple-800) !important;\n}\n.focus\\:border-purple-900:focus {\n border-color: var(--purple-900) !important;\n}\n\n.hover\\:border-purple-50:hover {\n border-color: var(--purple-50) !important;\n}\n.hover\\:border-purple-100:hover {\n border-color: var(--purple-100) !important;\n}\n.hover\\:border-purple-200:hover {\n border-color: var(--purple-200) !important;\n}\n.hover\\:border-purple-300:hover {\n border-color: var(--purple-300) !important;\n}\n.hover\\:border-purple-400:hover {\n border-color: var(--purple-400) !important;\n}\n.hover\\:border-purple-500:hover {\n border-color: var(--purple-500) !important;\n}\n.hover\\:border-purple-600:hover {\n border-color: var(--purple-600) !important;\n}\n.hover\\:border-purple-700:hover {\n border-color: var(--purple-700) !important;\n}\n.hover\\:border-purple-800:hover {\n border-color: var(--purple-800) !important;\n}\n.hover\\:border-purple-900:hover {\n border-color: var(--purple-900) !important;\n}\n\n.active\\:border-purple-50:active {\n border-color: var(--purple-50) !important;\n}\n.active\\:border-purple-100:active {\n border-color: var(--purple-100) !important;\n}\n.active\\:border-purple-200:active {\n border-color: var(--purple-200) !important;\n}\n.active\\:border-purple-300:active {\n border-color: var(--purple-300) !important;\n}\n.active\\:border-purple-400:active {\n border-color: var(--purple-400) !important;\n}\n.active\\:border-purple-500:active {\n border-color: var(--purple-500) !important;\n}\n.active\\:border-purple-600:active {\n border-color: var(--purple-600) !important;\n}\n.active\\:border-purple-700:active {\n border-color: var(--purple-700) !important;\n}\n.active\\:border-purple-800:active {\n border-color: var(--purple-800) !important;\n}\n.active\\:border-purple-900:active {\n border-color: var(--purple-900) !important;\n}\n\n.border-gray-50 {\n border-color: var(--gray-50) !important;\n}\n.border-gray-100 {\n border-color: var(--gray-100) !important;\n}\n.border-gray-200 {\n border-color: var(--gray-200) !important;\n}\n.border-gray-300 {\n border-color: var(--gray-300) !important;\n}\n.border-gray-400 {\n border-color: var(--gray-400) !important;\n}\n.border-gray-500 {\n border-color: var(--gray-500) !important;\n}\n.border-gray-600 {\n border-color: var(--gray-600) !important;\n}\n.border-gray-700 {\n border-color: var(--gray-700) !important;\n}\n.border-gray-800 {\n border-color: var(--gray-800) !important;\n}\n.border-gray-900 {\n border-color: var(--gray-900) !important;\n}\n\n.focus\\:border-gray-50:focus {\n border-color: var(--gray-50) !important;\n}\n.focus\\:border-gray-100:focus {\n border-color: var(--gray-100) !important;\n}\n.focus\\:border-gray-200:focus {\n border-color: var(--gray-200) !important;\n}\n.focus\\:border-gray-300:focus {\n border-color: var(--gray-300) !important;\n}\n.focus\\:border-gray-400:focus {\n border-color: var(--gray-400) !important;\n}\n.focus\\:border-gray-500:focus {\n border-color: var(--gray-500) !important;\n}\n.focus\\:border-gray-600:focus {\n border-color: var(--gray-600) !important;\n}\n.focus\\:border-gray-700:focus {\n border-color: var(--gray-700) !important;\n}\n.focus\\:border-gray-800:focus {\n border-color: var(--gray-800) !important;\n}\n.focus\\:border-gray-900:focus {\n border-color: var(--gray-900) !important;\n}\n\n.hover\\:border-gray-50:hover {\n border-color: var(--gray-50) !important;\n}\n.hover\\:border-gray-100:hover {\n border-color: var(--gray-100) !important;\n}\n.hover\\:border-gray-200:hover {\n border-color: var(--gray-200) !important;\n}\n.hover\\:border-gray-300:hover {\n border-color: var(--gray-300) !important;\n}\n.hover\\:border-gray-400:hover {\n border-color: var(--gray-400) !important;\n}\n.hover\\:border-gray-500:hover {\n border-color: var(--gray-500) !important;\n}\n.hover\\:border-gray-600:hover {\n border-color: var(--gray-600) !important;\n}\n.hover\\:border-gray-700:hover {\n border-color: var(--gray-700) !important;\n}\n.hover\\:border-gray-800:hover {\n border-color: var(--gray-800) !important;\n}\n.hover\\:border-gray-900:hover {\n border-color: var(--gray-900) !important;\n}\n\n.active\\:border-gray-50:active {\n border-color: var(--gray-50) !important;\n}\n.active\\:border-gray-100:active {\n border-color: var(--gray-100) !important;\n}\n.active\\:border-gray-200:active {\n border-color: var(--gray-200) !important;\n}\n.active\\:border-gray-300:active {\n border-color: var(--gray-300) !important;\n}\n.active\\:border-gray-400:active {\n border-color: var(--gray-400) !important;\n}\n.active\\:border-gray-500:active {\n border-color: var(--gray-500) !important;\n}\n.active\\:border-gray-600:active {\n border-color: var(--gray-600) !important;\n}\n.active\\:border-gray-700:active {\n border-color: var(--gray-700) !important;\n}\n.active\\:border-gray-800:active {\n border-color: var(--gray-800) !important;\n}\n.active\\:border-gray-900:active {\n border-color: var(--gray-900) !important;\n}\n\n.bg-white-alpha-10 {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.bg-white-alpha-20 {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.bg-white-alpha-30 {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.bg-white-alpha-40 {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.bg-white-alpha-50 {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.bg-white-alpha-60 {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.bg-white-alpha-70 {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.bg-white-alpha-80 {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.bg-white-alpha-90 {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:bg-white-alpha-10:hover {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:bg-white-alpha-20:hover {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:bg-white-alpha-30:hover {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:bg-white-alpha-40:hover {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:bg-white-alpha-50:hover {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:bg-white-alpha-60:hover {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:bg-white-alpha-70:hover {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:bg-white-alpha-80:hover {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:bg-white-alpha-90:hover {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:bg-white-alpha-10:focus {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:bg-white-alpha-20:focus {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:bg-white-alpha-30:focus {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:bg-white-alpha-40:focus {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:bg-white-alpha-50:focus {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:bg-white-alpha-60:focus {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:bg-white-alpha-70:focus {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:bg-white-alpha-80:focus {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:bg-white-alpha-90:focus {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:bg-white-alpha-10:active {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:bg-white-alpha-20:active {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:bg-white-alpha-30:active {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:bg-white-alpha-40:active {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:bg-white-alpha-50:active {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:bg-white-alpha-60:active {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:bg-white-alpha-70:active {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:bg-white-alpha-80:active {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:bg-white-alpha-90:active {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.bg-black-alpha-10 {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.bg-black-alpha-20 {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.bg-black-alpha-30 {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.bg-black-alpha-40 {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.bg-black-alpha-50 {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.bg-black-alpha-60 {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.bg-black-alpha-70 {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.bg-black-alpha-80 {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.bg-black-alpha-90 {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:bg-black-alpha-10:hover {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:bg-black-alpha-20:hover {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:bg-black-alpha-30:hover {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:bg-black-alpha-40:hover {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:bg-black-alpha-50:hover {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:bg-black-alpha-60:hover {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:bg-black-alpha-70:hover {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:bg-black-alpha-80:hover {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:bg-black-alpha-90:hover {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:bg-black-alpha-10:focus {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:bg-black-alpha-20:focus {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:bg-black-alpha-30:focus {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:bg-black-alpha-40:focus {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:bg-black-alpha-50:focus {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:bg-black-alpha-60:focus {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:bg-black-alpha-70:focus {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:bg-black-alpha-80:focus {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:bg-black-alpha-90:focus {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:bg-black-alpha-10:active {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:bg-black-alpha-20:active {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:bg-black-alpha-30:active {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:bg-black-alpha-40:active {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:bg-black-alpha-50:active {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:bg-black-alpha-60:active {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:bg-black-alpha-70:active {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:bg-black-alpha-80:active {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:bg-black-alpha-90:active {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.border-white-alpha-10 {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.border-white-alpha-20 {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.border-white-alpha-30 {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.border-white-alpha-40 {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.border-white-alpha-50 {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.border-white-alpha-60 {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.border-white-alpha-70 {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.border-white-alpha-80 {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.border-white-alpha-90 {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:border-white-alpha-10:hover {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:border-white-alpha-20:hover {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:border-white-alpha-30:hover {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:border-white-alpha-40:hover {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:border-white-alpha-50:hover {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:border-white-alpha-60:hover {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:border-white-alpha-70:hover {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:border-white-alpha-80:hover {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:border-white-alpha-90:hover {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:border-white-alpha-10:focus {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:border-white-alpha-20:focus {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:border-white-alpha-30:focus {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:border-white-alpha-40:focus {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:border-white-alpha-50:focus {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:border-white-alpha-60:focus {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:border-white-alpha-70:focus {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:border-white-alpha-80:focus {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:border-white-alpha-90:focus {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:border-white-alpha-10:active {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:border-white-alpha-20:active {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:border-white-alpha-30:active {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:border-white-alpha-40:active {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:border-white-alpha-50:active {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:border-white-alpha-60:active {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:border-white-alpha-70:active {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:border-white-alpha-80:active {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:border-white-alpha-90:active {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.border-black-alpha-10 {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.border-black-alpha-20 {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.border-black-alpha-30 {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.border-black-alpha-40 {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.border-black-alpha-50 {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.border-black-alpha-60 {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.border-black-alpha-70 {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.border-black-alpha-80 {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.border-black-alpha-90 {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:border-black-alpha-10:hover {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:border-black-alpha-20:hover {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:border-black-alpha-30:hover {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:border-black-alpha-40:hover {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:border-black-alpha-50:hover {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:border-black-alpha-60:hover {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:border-black-alpha-70:hover {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:border-black-alpha-80:hover {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:border-black-alpha-90:hover {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:border-black-alpha-10:focus {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:border-black-alpha-20:focus {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:border-black-alpha-30:focus {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:border-black-alpha-40:focus {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:border-black-alpha-50:focus {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:border-black-alpha-60:focus {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:border-black-alpha-70:focus {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:border-black-alpha-80:focus {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:border-black-alpha-90:focus {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:border-black-alpha-10:active {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:border-black-alpha-20:active {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:border-black-alpha-30:active {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:border-black-alpha-40:active {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:border-black-alpha-50:active {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:border-black-alpha-60:active {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:border-black-alpha-70:active {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:border-black-alpha-80:active {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:border-black-alpha-90:active {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.text-white-alpha-10 {\n color: rgba(255,255,255,0.1) !important;\n}\n.text-white-alpha-20 {\n color: rgba(255,255,255,0.2) !important;\n}\n.text-white-alpha-30 {\n color: rgba(255,255,255,0.3) !important;\n}\n.text-white-alpha-40 {\n color: rgba(255,255,255,0.4) !important;\n}\n.text-white-alpha-50 {\n color: rgba(255,255,255,0.5) !important;\n}\n.text-white-alpha-60 {\n color: rgba(255,255,255,0.6) !important;\n}\n.text-white-alpha-70 {\n color: rgba(255,255,255,0.7) !important;\n}\n.text-white-alpha-80 {\n color: rgba(255,255,255,0.8) !important;\n}\n.text-white-alpha-90 {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:text-white-alpha-10:hover {\n color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:text-white-alpha-20:hover {\n color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:text-white-alpha-30:hover {\n color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:text-white-alpha-40:hover {\n color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:text-white-alpha-50:hover {\n color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:text-white-alpha-60:hover {\n color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:text-white-alpha-70:hover {\n color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:text-white-alpha-80:hover {\n color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:text-white-alpha-90:hover {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:text-white-alpha-10:focus {\n color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:text-white-alpha-20:focus {\n color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:text-white-alpha-30:focus {\n color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:text-white-alpha-40:focus {\n color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:text-white-alpha-50:focus {\n color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:text-white-alpha-60:focus {\n color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:text-white-alpha-70:focus {\n color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:text-white-alpha-80:focus {\n color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:text-white-alpha-90:focus {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:text-white-alpha-10:active {\n color: rgba(255,255,255,0.1) !important;\n}\n.active\\:text-white-alpha-20:active {\n color: rgba(255,255,255,0.2) !important;\n}\n.active\\:text-white-alpha-30:active {\n color: rgba(255,255,255,0.3) !important;\n}\n.active\\:text-white-alpha-40:active {\n color: rgba(255,255,255,0.4) !important;\n}\n.active\\:text-white-alpha-50:active {\n color: rgba(255,255,255,0.5) !important;\n}\n.active\\:text-white-alpha-60:active {\n color: rgba(255,255,255,0.6) !important;\n}\n.active\\:text-white-alpha-70:active {\n color: rgba(255,255,255,0.7) !important;\n}\n.active\\:text-white-alpha-80:active {\n color: rgba(255,255,255,0.8) !important;\n}\n.active\\:text-white-alpha-90:active {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.text-black-alpha-10 {\n color: rgba(0,0,0,0.1) !important;\n}\n.text-black-alpha-20 {\n color: rgba(0,0,0,0.2) !important;\n}\n.text-black-alpha-30 {\n color: rgba(0,0,0,0.3) !important;\n}\n.text-black-alpha-40 {\n color: rgba(0,0,0,0.4) !important;\n}\n.text-black-alpha-50 {\n color: rgba(0,0,0,0.5) !important;\n}\n.text-black-alpha-60 {\n color: rgba(0,0,0,0.6) !important;\n}\n.text-black-alpha-70 {\n color: rgba(0,0,0,0.7) !important;\n}\n.text-black-alpha-80 {\n color: rgba(0,0,0,0.8) !important;\n}\n.text-black-alpha-90 {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:text-black-alpha-10:hover {\n color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:text-black-alpha-20:hover {\n color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:text-black-alpha-30:hover {\n color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:text-black-alpha-40:hover {\n color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:text-black-alpha-50:hover {\n color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:text-black-alpha-60:hover {\n color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:text-black-alpha-70:hover {\n color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:text-black-alpha-80:hover {\n color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:text-black-alpha-90:hover {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:text-black-alpha-10:focus {\n color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:text-black-alpha-20:focus {\n color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:text-black-alpha-30:focus {\n color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:text-black-alpha-40:focus {\n color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:text-black-alpha-50:focus {\n color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:text-black-alpha-60:focus {\n color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:text-black-alpha-70:focus {\n color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:text-black-alpha-80:focus {\n color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:text-black-alpha-90:focus {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:text-black-alpha-10:active {\n color: rgba(0,0,0,0.1) !important;\n}\n.active\\:text-black-alpha-20:active {\n color: rgba(0,0,0,0.2) !important;\n}\n.active\\:text-black-alpha-30:active {\n color: rgba(0,0,0,0.3) !important;\n}\n.active\\:text-black-alpha-40:active {\n color: rgba(0,0,0,0.4) !important;\n}\n.active\\:text-black-alpha-50:active {\n color: rgba(0,0,0,0.5) !important;\n}\n.active\\:text-black-alpha-60:active {\n color: rgba(0,0,0,0.6) !important;\n}\n.active\\:text-black-alpha-70:active {\n color: rgba(0,0,0,0.7) !important;\n}\n.active\\:text-black-alpha-80:active {\n color: rgba(0,0,0,0.8) !important;\n}\n.active\\:text-black-alpha-90:active {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.text-primary {\n color: var(--primary-color) !important;\n}\n\n.hover\\:text-primary:hover {\n color: var(--primary-color) !important;\n}\n\n.bg-primary {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.hover\\:bg-primary:hover {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.border-primary {\n border-color: var(--primary-color) !important;\n}\n\n.hover\\:border-primary:hover {\n border-color: var(--primary-color) !important;\n}\n\n.bg-primary-reverse {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.hover\\:bg-primary-reverse:hover {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.text-white {\n color: #ffffff !important;\n}\n\n.hover\\:text-white:hover {\n color: #ffffff !important;\n}\n\n.bg-white {\n background-color: #ffffff !important;\n}\n\n.hover\\:bg-white:hover {\n background-color: #ffffff !important;\n}\n\n.border-white {\n border-color: #ffffff !important;\n}\n\n.hover\\:border-white:hover {\n border-color: #ffffff !important;\n}\n\n.surface-ground {\n background-color: var(--surface-ground) !important;\n}\n\n.surface-section {\n background-color: var(--surface-section) !important;\n}\n\n.surface-card {\n background-color: var(--surface-card) !important;\n}\n\n.surface-overlay {\n background-color: var(--surface-overlay) !important;\n}\n\n.surface-border {\n border-color: var(--surface-border) !important;\n}\n\n.surface-hover {\n background-color: var(--surface-hover) !important;\n}\n\n.field {\n margin-bottom: 1rem;\n}\n\n.field > label {\n display: inline-block;\n margin-bottom: 0.5rem;\n}\n\n.field.grid > label {\n display: flex;\n align-items: center;\n}\n\n.field > small {\n margin-top: 0.25rem;\n}\n\n.field.grid,\n.formgrid.grid {\n margin-top: 0;\n}\n\n.field.grid .col-fixed,\n.formgrid.grid .col-fixed,\n.field.grid .col,\n.formgrid.grid .col,\n.field.grid .col-1,\n.formgrid.grid .col-1,\n.field.grid .col-2,\n.formgrid.grid .col-2,\n.field.grid .col-3,\n.formgrid.grid .col-3,\n.field.grid .col-4,\n.formgrid.grid .col-4,\n.field.grid .col-5,\n.formgrid.grid .col-5,\n.field.grid .col-6,\n.formgrid.grid .col-6,\n.field.grid .col-7,\n.formgrid.grid .col-7,\n.field.grid .col-8,\n.formgrid.grid .col-8,\n.field.grid .col-9,\n.formgrid.grid .col-9,\n.field.grid .col-10,\n.formgrid.grid .col-10,\n.field.grid .col-11,\n.formgrid.grid .col-11,\n.field.grid .col-12,\n.formgrid.grid .col-12 {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.formgroup-inline {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n}\n\n.formgroup-inline .field,\n.formgroup-inline .field-checkbox,\n.formgroup-inline .field-radiobutton {\n margin-right: 1rem;\n}\n\n.formgroup-inline .field > label,\n.formgroup-inline .field-checkbox > label,\n.formgroup-inline .field-radiobutton > label {\n margin-right: 0.5rem;\n margin-bottom: 0;\n}\n\n.field-checkbox,\n.field-radiobutton {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n}\n\n.field-checkbox > label,\n.field-radiobutton > label {\n margin-left: 0.5rem;\n line-height: 1;\n}\n\n.hidden {\n display: none !important;\n}\n\n.block {\n display: block !important;\n}\n\n.inline {\n display: inline !important;\n}\n\n.inline-block {\n display: inline-block !important;\n}\n\n.flex {\n display: flex !important;\n}\n\n.inline-flex {\n display: inline-flex !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:hidden {\n display: none !important;\n }\n .sm\\:block {\n display: block !important;\n }\n .sm\\:inline {\n display: inline !important;\n }\n .sm\\:inline-block {\n display: inline-block !important;\n }\n .sm\\:flex {\n display: flex !important;\n }\n .sm\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:hidden {\n display: none !important;\n }\n .md\\:block {\n display: block !important;\n }\n .md\\:inline {\n display: inline !important;\n }\n .md\\:inline-block {\n display: inline-block !important;\n }\n .md\\:flex {\n display: flex !important;\n }\n .md\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:hidden {\n display: none !important;\n }\n .lg\\:block {\n display: block !important;\n }\n .lg\\:inline {\n display: inline !important;\n }\n .lg\\:inline-block {\n display: inline-block !important;\n }\n .lg\\:flex {\n display: flex !important;\n }\n .lg\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:hidden {\n display: none !important;\n }\n .xl\\:block {\n display: block !important;\n }\n .xl\\:inline {\n display: inline !important;\n }\n .xl\\:inline-block {\n display: inline-block !important;\n }\n .xl\\:flex {\n display: flex !important;\n }\n .xl\\:inline-flex {\n display: inline-flex !important;\n }\n}\n.text-center {\n text-align: center !important;\n}\n\n.text-justify {\n text-align: justify !important;\n}\n\n.text-left {\n text-align: left !important;\n}\n\n.text-right {\n text-align: right !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-center {\n text-align: center !important;\n }\n .sm\\:text-justify {\n text-align: justify !important;\n }\n .sm\\:text-left {\n text-align: left !important;\n }\n .sm\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-center {\n text-align: center !important;\n }\n .md\\:text-justify {\n text-align: justify !important;\n }\n .md\\:text-left {\n text-align: left !important;\n }\n .md\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-center {\n text-align: center !important;\n }\n .lg\\:text-justify {\n text-align: justify !important;\n }\n .lg\\:text-left {\n text-align: left !important;\n }\n .lg\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-center {\n text-align: center !important;\n }\n .xl\\:text-justify {\n text-align: justify !important;\n }\n .xl\\:text-left {\n text-align: left !important;\n }\n .xl\\:text-right {\n text-align: right !important;\n }\n}\n.underline {\n text-decoration: underline !important;\n}\n\n.line-through {\n text-decoration: line-through !important;\n}\n\n.no-underline {\n text-decoration: none !important;\n}\n\n.lowercase {\n text-transform: lowercase !important;\n}\n\n.uppercase {\n text-transform: uppercase !important;\n}\n\n.capitalize {\n text-transform: capitalize !important;\n}\n\n.text-overflow-clip {\n text-overflow: clip !important;\n}\n\n.text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .sm\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .md\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .lg\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .xl\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n.font-light {\n font-weight: 300 !important;\n}\n\n.font-normal {\n font-weight: 400 !important;\n}\n\n.font-medium {\n font-weight: 500 !important;\n}\n\n.font-semibold {\n font-weight: 600 !important;\n}\n\n.font-bold {\n font-weight: 700 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:font-light {\n font-weight: 300 !important;\n }\n .sm\\:font-normal {\n font-weight: 400 !important;\n }\n .sm\\:font-medium {\n font-weight: 500 !important;\n }\n .sm\\:font-semibold {\n font-weight: 600 !important;\n }\n .sm\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:font-light {\n font-weight: 300 !important;\n }\n .md\\:font-normal {\n font-weight: 400 !important;\n }\n .md\\:font-medium {\n font-weight: 500 !important;\n }\n .md\\:font-semibold {\n font-weight: 600 !important;\n }\n .md\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:font-light {\n font-weight: 300 !important;\n }\n .lg\\:font-normal {\n font-weight: 400 !important;\n }\n .lg\\:font-medium {\n font-weight: 500 !important;\n }\n .lg\\:font-semibold {\n font-weight: 600 !important;\n }\n .lg\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:font-light {\n font-weight: 300 !important;\n }\n .xl\\:font-normal {\n font-weight: 400 !important;\n }\n .xl\\:font-medium {\n font-weight: 500 !important;\n }\n .xl\\:font-semibold {\n font-weight: 600 !important;\n }\n .xl\\:font-bold {\n font-weight: 700 !important;\n }\n}\n.font-italic {\n font-style: italic !important;\n}\n\n.text-xs {\n font-size: 0.75rem !important;\n}\n\n.text-sm {\n font-size: 0.875rem !important;\n}\n\n.text-base {\n font-size: 1rem !important;\n}\n\n.text-lg {\n font-size: 1.125rem !important;\n}\n\n.text-xl {\n font-size: 1.25rem !important;\n}\n\n.text-2xl {\n font-size: 1.5rem !important;\n}\n\n.text-3xl {\n font-size: 1.75rem !important;\n}\n\n.text-4xl {\n font-size: 2rem !important;\n}\n\n.text-5xl {\n font-size: 2.5rem !important;\n}\n\n.text-6xl {\n font-size: 3rem !important;\n}\n\n.text-7xl {\n font-size: 4rem !important;\n}\n\n.text-8xl {\n font-size: 6rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-xs {\n font-size: 0.75rem !important;\n }\n .sm\\:text-sm {\n font-size: 0.875rem !important;\n }\n .sm\\:text-base {\n font-size: 1rem !important;\n }\n .sm\\:text-lg {\n font-size: 1.125rem !important;\n }\n .sm\\:text-xl {\n font-size: 1.25rem !important;\n }\n .sm\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .sm\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .sm\\:text-4xl {\n font-size: 2rem !important;\n }\n .sm\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .sm\\:text-6xl {\n font-size: 3rem !important;\n }\n .sm\\:text-7xl {\n font-size: 4rem !important;\n }\n .sm\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-xs {\n font-size: 0.75rem !important;\n }\n .md\\:text-sm {\n font-size: 0.875rem !important;\n }\n .md\\:text-base {\n font-size: 1rem !important;\n }\n .md\\:text-lg {\n font-size: 1.125rem !important;\n }\n .md\\:text-xl {\n font-size: 1.25rem !important;\n }\n .md\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .md\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .md\\:text-4xl {\n font-size: 2rem !important;\n }\n .md\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .md\\:text-6xl {\n font-size: 3rem !important;\n }\n .md\\:text-7xl {\n font-size: 4rem !important;\n }\n .md\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-xs {\n font-size: 0.75rem !important;\n }\n .lg\\:text-sm {\n font-size: 0.875rem !important;\n }\n .lg\\:text-base {\n font-size: 1rem !important;\n }\n .lg\\:text-lg {\n font-size: 1.125rem !important;\n }\n .lg\\:text-xl {\n font-size: 1.25rem !important;\n }\n .lg\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .lg\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .lg\\:text-4xl {\n font-size: 2rem !important;\n }\n .lg\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .lg\\:text-6xl {\n font-size: 3rem !important;\n }\n .lg\\:text-7xl {\n font-size: 4rem !important;\n }\n .lg\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-xs {\n font-size: 0.75rem !important;\n }\n .xl\\:text-sm {\n font-size: 0.875rem !important;\n }\n .xl\\:text-base {\n font-size: 1rem !important;\n }\n .xl\\:text-lg {\n font-size: 1.125rem !important;\n }\n .xl\\:text-xl {\n font-size: 1.25rem !important;\n }\n .xl\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .xl\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .xl\\:text-4xl {\n font-size: 2rem !important;\n }\n .xl\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .xl\\:text-6xl {\n font-size: 3rem !important;\n }\n .xl\\:text-7xl {\n font-size: 4rem !important;\n }\n .xl\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n.line-height-1 {\n line-height: 1 !important;\n}\n\n.line-height-2 {\n line-height: 1.25 !important;\n}\n\n.line-height-3 {\n line-height: 1.5 !important;\n}\n\n.line-height-4 {\n line-height: 2 !important;\n}\n\n.white-space-normal {\n white-space: normal !important;\n}\n\n.white-space-nowrap {\n white-space: nowrap !important;\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-row {\n flex-direction: row !important;\n }\n .sm\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .sm\\:flex-column {\n flex-direction: column !important;\n }\n .sm\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-row {\n flex-direction: row !important;\n }\n .md\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .md\\:flex-column {\n flex-direction: column !important;\n }\n .md\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-row {\n flex-direction: row !important;\n }\n .lg\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .lg\\:flex-column {\n flex-direction: column !important;\n }\n .lg\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-row {\n flex-direction: row !important;\n }\n .xl\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .xl\\:flex-column {\n flex-direction: column !important;\n }\n .xl\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .sm\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .sm\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .md\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .md\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .lg\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .lg\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .xl\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .xl\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.justify-content-evenly {\n justify-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .sm\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .sm\\:justify-content-center {\n justify-content: center !important;\n }\n .sm\\:justify-content-between {\n justify-content: space-between !important;\n }\n .sm\\:justify-content-around {\n justify-content: space-around !important;\n }\n .sm\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .md\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .md\\:justify-content-center {\n justify-content: center !important;\n }\n .md\\:justify-content-between {\n justify-content: space-between !important;\n }\n .md\\:justify-content-around {\n justify-content: space-around !important;\n }\n .md\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .lg\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .lg\\:justify-content-center {\n justify-content: center !important;\n }\n .lg\\:justify-content-between {\n justify-content: space-between !important;\n }\n .lg\\:justify-content-around {\n justify-content: space-around !important;\n }\n .lg\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .xl\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .xl\\:justify-content-center {\n justify-content: center !important;\n }\n .xl\\:justify-content-between {\n justify-content: space-between !important;\n }\n .xl\\:justify-content-around {\n justify-content: space-around !important;\n }\n .xl\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-evenly {\n align-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-content-start {\n align-content: flex-start !important;\n }\n .sm\\:align-content-end {\n align-content: flex-end !important;\n }\n .sm\\:align-content-center {\n align-content: center !important;\n }\n .sm\\:align-content-between {\n align-content: space-between !important;\n }\n .sm\\:align-content-around {\n align-content: space-around !important;\n }\n .sm\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-content-start {\n align-content: flex-start !important;\n }\n .md\\:align-content-end {\n align-content: flex-end !important;\n }\n .md\\:align-content-center {\n align-content: center !important;\n }\n .md\\:align-content-between {\n align-content: space-between !important;\n }\n .md\\:align-content-around {\n align-content: space-around !important;\n }\n .md\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-content-start {\n align-content: flex-start !important;\n }\n .lg\\:align-content-end {\n align-content: flex-end !important;\n }\n .lg\\:align-content-center {\n align-content: center !important;\n }\n .lg\\:align-content-between {\n align-content: space-between !important;\n }\n .lg\\:align-content-around {\n align-content: space-around !important;\n }\n .lg\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-content-start {\n align-content: flex-start !important;\n }\n .xl\\:align-content-end {\n align-content: flex-end !important;\n }\n .xl\\:align-content-center {\n align-content: center !important;\n }\n .xl\\:align-content-between {\n align-content: space-between !important;\n }\n .xl\\:align-content-around {\n align-content: space-around !important;\n }\n .xl\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-items-stretch {\n align-items: stretch !important;\n }\n .sm\\:align-items-start {\n align-items: flex-start !important;\n }\n .sm\\:align-items-center {\n align-items: center !important;\n }\n .sm\\:align-items-end {\n align-items: flex-end !important;\n }\n .sm\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-items-stretch {\n align-items: stretch !important;\n }\n .md\\:align-items-start {\n align-items: flex-start !important;\n }\n .md\\:align-items-center {\n align-items: center !important;\n }\n .md\\:align-items-end {\n align-items: flex-end !important;\n }\n .md\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-items-stretch {\n align-items: stretch !important;\n }\n .lg\\:align-items-start {\n align-items: flex-start !important;\n }\n .lg\\:align-items-center {\n align-items: center !important;\n }\n .lg\\:align-items-end {\n align-items: flex-end !important;\n }\n .lg\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-items-stretch {\n align-items: stretch !important;\n }\n .xl\\:align-items-start {\n align-items: flex-start !important;\n }\n .xl\\:align-items-center {\n align-items: center !important;\n }\n .xl\\:align-items-end {\n align-items: flex-end !important;\n }\n .xl\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-self-auto {\n align-self: auto !important;\n }\n .sm\\:align-self-start {\n align-self: flex-start !important;\n }\n .sm\\:align-self-end {\n align-self: flex-end !important;\n }\n .sm\\:align-self-center {\n align-self: center !important;\n }\n .sm\\:align-self-stretch {\n align-self: stretch !important;\n }\n .sm\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-self-auto {\n align-self: auto !important;\n }\n .md\\:align-self-start {\n align-self: flex-start !important;\n }\n .md\\:align-self-end {\n align-self: flex-end !important;\n }\n .md\\:align-self-center {\n align-self: center !important;\n }\n .md\\:align-self-stretch {\n align-self: stretch !important;\n }\n .md\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-self-auto {\n align-self: auto !important;\n }\n .lg\\:align-self-start {\n align-self: flex-start !important;\n }\n .lg\\:align-self-end {\n align-self: flex-end !important;\n }\n .lg\\:align-self-center {\n align-self: center !important;\n }\n .lg\\:align-self-stretch {\n align-self: stretch !important;\n }\n .lg\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-self-auto {\n align-self: auto !important;\n }\n .xl\\:align-self-start {\n align-self: flex-start !important;\n }\n .xl\\:align-self-end {\n align-self: flex-end !important;\n }\n .xl\\:align-self-center {\n align-self: center !important;\n }\n .xl\\:align-self-stretch {\n align-self: stretch !important;\n }\n .xl\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n.flex-order-0 {\n order: 0 !important;\n}\n\n.flex-order-1 {\n order: 1 !important;\n}\n\n.flex-order-2 {\n order: 2 !important;\n}\n\n.flex-order-3 {\n order: 3 !important;\n}\n\n.flex-order-4 {\n order: 4 !important;\n}\n\n.flex-order-5 {\n order: 5 !important;\n}\n\n.flex-order-6 {\n order: 6 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-order-0 {\n order: 0 !important;\n }\n .sm\\:flex-order-1 {\n order: 1 !important;\n }\n .sm\\:flex-order-2 {\n order: 2 !important;\n }\n .sm\\:flex-order-3 {\n order: 3 !important;\n }\n .sm\\:flex-order-4 {\n order: 4 !important;\n }\n .sm\\:flex-order-5 {\n order: 5 !important;\n }\n .sm\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-order-0 {\n order: 0 !important;\n }\n .md\\:flex-order-1 {\n order: 1 !important;\n }\n .md\\:flex-order-2 {\n order: 2 !important;\n }\n .md\\:flex-order-3 {\n order: 3 !important;\n }\n .md\\:flex-order-4 {\n order: 4 !important;\n }\n .md\\:flex-order-5 {\n order: 5 !important;\n }\n .md\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-order-0 {\n order: 0 !important;\n }\n .lg\\:flex-order-1 {\n order: 1 !important;\n }\n .lg\\:flex-order-2 {\n order: 2 !important;\n }\n .lg\\:flex-order-3 {\n order: 3 !important;\n }\n .lg\\:flex-order-4 {\n order: 4 !important;\n }\n .lg\\:flex-order-5 {\n order: 5 !important;\n }\n .lg\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-order-0 {\n order: 0 !important;\n }\n .xl\\:flex-order-1 {\n order: 1 !important;\n }\n .xl\\:flex-order-2 {\n order: 2 !important;\n }\n .xl\\:flex-order-3 {\n order: 3 !important;\n }\n .xl\\:flex-order-4 {\n order: 4 !important;\n }\n .xl\\:flex-order-5 {\n order: 5 !important;\n }\n .xl\\:flex-order-6 {\n order: 6 !important;\n }\n}\n.flex-1 {\n flex: 1 1 0% !important;\n}\n\n.flex-auto {\n flex: 1 1 auto !important;\n}\n\n.flex-initial {\n flex: 0 1 auto !important;\n}\n\n.flex-none {\n flex: none !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .sm\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .sm\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .sm\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .md\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .md\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .md\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .lg\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .lg\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .lg\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .xl\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .xl\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .xl\\:flex-none {\n flex: none !important;\n }\n}\n.flex-grow-0 {\n flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n flex-grow: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .sm\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .md\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .lg\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .xl\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n.flex-shrink-0 {\n flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n flex-shrink: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .sm\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .md\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .lg\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .xl\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n.p-0 {\n padding: 0rem !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.p-5 {\n padding: 2rem !important;\n}\n\n.p-6 {\n padding: 3rem !important;\n}\n\n.p-7 {\n padding: 4rem !important;\n}\n\n.p-8 {\n padding: 5rem !important;\n}\n\n.pt-0 {\n padding-top: 0rem !important;\n}\n\n.pt-1 {\n padding-top: 0.25rem !important;\n}\n\n.pt-2 {\n padding-top: 0.5rem !important;\n}\n\n.pt-3 {\n padding-top: 1rem !important;\n}\n\n.pt-4 {\n padding-top: 1.5rem !important;\n}\n\n.pt-5 {\n padding-top: 2rem !important;\n}\n\n.pt-6 {\n padding-top: 3rem !important;\n}\n\n.pt-7 {\n padding-top: 4rem !important;\n}\n\n.pt-8 {\n padding-top: 5rem !important;\n}\n\n.pr-0 {\n padding-right: 0rem !important;\n}\n\n.pr-1 {\n padding-right: 0.25rem !important;\n}\n\n.pr-2 {\n padding-right: 0.5rem !important;\n}\n\n.pr-3 {\n padding-right: 1rem !important;\n}\n\n.pr-4 {\n padding-right: 1.5rem !important;\n}\n\n.pr-5 {\n padding-right: 2rem !important;\n}\n\n.pr-6 {\n padding-right: 3rem !important;\n}\n\n.pr-7 {\n padding-right: 4rem !important;\n}\n\n.pr-8 {\n padding-right: 5rem !important;\n}\n\n.pl-0 {\n padding-left: 0rem !important;\n}\n\n.pl-1 {\n padding-left: 0.25rem !important;\n}\n\n.pl-2 {\n padding-left: 0.5rem !important;\n}\n\n.pl-3 {\n padding-left: 1rem !important;\n}\n\n.pl-4 {\n padding-left: 1.5rem !important;\n}\n\n.pl-5 {\n padding-left: 2rem !important;\n}\n\n.pl-6 {\n padding-left: 3rem !important;\n}\n\n.pl-7 {\n padding-left: 4rem !important;\n}\n\n.pl-8 {\n padding-left: 5rem !important;\n}\n\n.pb-0 {\n padding-bottom: 0rem !important;\n}\n\n.pb-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pb-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pb-3 {\n padding-bottom: 1rem !important;\n}\n\n.pb-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pb-5 {\n padding-bottom: 2rem !important;\n}\n\n.pb-6 {\n padding-bottom: 3rem !important;\n}\n\n.pb-7 {\n padding-bottom: 4rem !important;\n}\n\n.pb-8 {\n padding-bottom: 5rem !important;\n}\n\n.px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n}\n\n.px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n}\n\n.px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n}\n\n.px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n}\n\n.px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n}\n\n.px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n}\n\n.px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n}\n\n.px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n}\n\n.py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n}\n\n.py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n}\n\n.py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n.py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n}\n\n.py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:p-0 {\n padding: 0rem !important;\n }\n\n .sm\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .sm\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .sm\\:p-3 {\n padding: 1rem !important;\n }\n\n .sm\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .sm\\:p-5 {\n padding: 2rem !important;\n }\n\n .sm\\:p-6 {\n padding: 3rem !important;\n }\n\n .sm\\:p-7 {\n padding: 4rem !important;\n }\n\n .sm\\:p-8 {\n padding: 5rem !important;\n }\n\n .sm\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .sm\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .sm\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .sm\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .sm\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .sm\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .sm\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .sm\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .sm\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .sm\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .sm\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .sm\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .sm\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .sm\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .sm\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .sm\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .sm\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .sm\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .sm\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .sm\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .sm\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .sm\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .sm\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .sm\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .sm\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .sm\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .sm\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .sm\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .sm\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .sm\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .sm\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .sm\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .sm\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .sm\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .sm\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .sm\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .sm\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .sm\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .sm\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .sm\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .sm\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .sm\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .sm\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .sm\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .sm\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .sm\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .sm\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .sm\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:p-0 {\n padding: 0rem !important;\n }\n\n .md\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .md\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .md\\:p-3 {\n padding: 1rem !important;\n }\n\n .md\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .md\\:p-5 {\n padding: 2rem !important;\n }\n\n .md\\:p-6 {\n padding: 3rem !important;\n }\n\n .md\\:p-7 {\n padding: 4rem !important;\n }\n\n .md\\:p-8 {\n padding: 5rem !important;\n }\n\n .md\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .md\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .md\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .md\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .md\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .md\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .md\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .md\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .md\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .md\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .md\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .md\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .md\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .md\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .md\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .md\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .md\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .md\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .md\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .md\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .md\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .md\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .md\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .md\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .md\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .md\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .md\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .md\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .md\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .md\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .md\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .md\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .md\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .md\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .md\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .md\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .md\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .md\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .md\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .md\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .md\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .md\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .md\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .md\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .md\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .md\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .md\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .md\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:p-0 {\n padding: 0rem !important;\n }\n\n .lg\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .lg\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .lg\\:p-3 {\n padding: 1rem !important;\n }\n\n .lg\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .lg\\:p-5 {\n padding: 2rem !important;\n }\n\n .lg\\:p-6 {\n padding: 3rem !important;\n }\n\n .lg\\:p-7 {\n padding: 4rem !important;\n }\n\n .lg\\:p-8 {\n padding: 5rem !important;\n }\n\n .lg\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .lg\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .lg\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .lg\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .lg\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .lg\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .lg\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .lg\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .lg\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .lg\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .lg\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .lg\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .lg\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .lg\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .lg\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .lg\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .lg\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .lg\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .lg\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .lg\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .lg\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .lg\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .lg\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .lg\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .lg\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .lg\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .lg\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .lg\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .lg\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .lg\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .lg\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .lg\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .lg\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .lg\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .lg\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .lg\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .lg\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .lg\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .lg\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .lg\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .lg\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .lg\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .lg\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .lg\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .lg\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .lg\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .lg\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .lg\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:p-0 {\n padding: 0rem !important;\n }\n\n .xl\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .xl\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .xl\\:p-3 {\n padding: 1rem !important;\n }\n\n .xl\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .xl\\:p-5 {\n padding: 2rem !important;\n }\n\n .xl\\:p-6 {\n padding: 3rem !important;\n }\n\n .xl\\:p-7 {\n padding: 4rem !important;\n }\n\n .xl\\:p-8 {\n padding: 5rem !important;\n }\n\n .xl\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .xl\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .xl\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .xl\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .xl\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .xl\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .xl\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .xl\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .xl\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .xl\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .xl\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .xl\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .xl\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .xl\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .xl\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .xl\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .xl\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .xl\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .xl\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .xl\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .xl\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .xl\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .xl\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .xl\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .xl\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .xl\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .xl\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .xl\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .xl\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .xl\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .xl\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .xl\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .xl\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .xl\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .xl\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .xl\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .xl\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .xl\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .xl\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .xl\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .xl\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .xl\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .xl\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .xl\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .xl\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .xl\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .xl\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .xl\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n.m-0 {\n margin: 0rem !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.m-5 {\n margin: 2rem !important;\n}\n\n.m-6 {\n margin: 3rem !important;\n}\n\n.m-7 {\n margin: 4rem !important;\n}\n\n.m-8 {\n margin: 5rem !important;\n}\n\n.-m-1 {\n margin: -0.25rem !important;\n}\n\n.-m-2 {\n margin: -0.5rem !important;\n}\n\n.-m-3 {\n margin: -1rem !important;\n}\n\n.-m-4 {\n margin: -1.5rem !important;\n}\n\n.-m-5 {\n margin: -2rem !important;\n}\n\n.-m-6 {\n margin: -3rem !important;\n}\n\n.-m-7 {\n margin: -4rem !important;\n}\n\n.-m-8 {\n margin: -5rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-0 {\n margin-top: 0rem !important;\n}\n\n.mt-1 {\n margin-top: 0.25rem !important;\n}\n\n.mt-2 {\n margin-top: 0.5rem !important;\n}\n\n.mt-3 {\n margin-top: 1rem !important;\n}\n\n.mt-4 {\n margin-top: 1.5rem !important;\n}\n\n.mt-5 {\n margin-top: 2rem !important;\n}\n\n.mt-6 {\n margin-top: 3rem !important;\n}\n\n.mt-7 {\n margin-top: 4rem !important;\n}\n\n.mt-8 {\n margin-top: 5rem !important;\n}\n\n.-mt-1 {\n margin-top: -0.25rem !important;\n}\n\n.-mt-2 {\n margin-top: -0.5rem !important;\n}\n\n.-mt-3 {\n margin-top: -1rem !important;\n}\n\n.-mt-4 {\n margin-top: -1.5rem !important;\n}\n\n.-mt-5 {\n margin-top: -2rem !important;\n}\n\n.-mt-6 {\n margin-top: -3rem !important;\n}\n\n.-mt-7 {\n margin-top: -4rem !important;\n}\n\n.-mt-8 {\n margin-top: -5rem !important;\n}\n\n.mt-auto {\n margin-top: auto !important;\n}\n\n.mr-0 {\n margin-right: 0rem !important;\n}\n\n.mr-1 {\n margin-right: 0.25rem !important;\n}\n\n.mr-2 {\n margin-right: 0.5rem !important;\n}\n\n.mr-3 {\n margin-right: 1rem !important;\n}\n\n.mr-4 {\n margin-right: 1.5rem !important;\n}\n\n.mr-5 {\n margin-right: 2rem !important;\n}\n\n.mr-6 {\n margin-right: 3rem !important;\n}\n\n.mr-7 {\n margin-right: 4rem !important;\n}\n\n.mr-8 {\n margin-right: 5rem !important;\n}\n\n.-mr-1 {\n margin-right: -0.25rem !important;\n}\n\n.-mr-2 {\n margin-right: -0.5rem !important;\n}\n\n.-mr-3 {\n margin-right: -1rem !important;\n}\n\n.-mr-4 {\n margin-right: -1.5rem !important;\n}\n\n.-mr-5 {\n margin-right: -2rem !important;\n}\n\n.-mr-6 {\n margin-right: -3rem !important;\n}\n\n.-mr-7 {\n margin-right: -4rem !important;\n}\n\n.-mr-8 {\n margin-right: -5rem !important;\n}\n\n.mr-auto {\n margin-right: auto !important;\n}\n\n.ml-0 {\n margin-left: 0rem !important;\n}\n\n.ml-1 {\n margin-left: 0.25rem !important;\n}\n\n.ml-2 {\n margin-left: 0.5rem !important;\n}\n\n.ml-3 {\n margin-left: 1rem !important;\n}\n\n.ml-4 {\n margin-left: 1.5rem !important;\n}\n\n.ml-5 {\n margin-left: 2rem !important;\n}\n\n.ml-6 {\n margin-left: 3rem !important;\n}\n\n.ml-7 {\n margin-left: 4rem !important;\n}\n\n.ml-8 {\n margin-left: 5rem !important;\n}\n\n.-ml-1 {\n margin-left: -0.25rem !important;\n}\n\n.-ml-2 {\n margin-left: -0.5rem !important;\n}\n\n.-ml-3 {\n margin-left: -1rem !important;\n}\n\n.-ml-4 {\n margin-left: -1.5rem !important;\n}\n\n.-ml-5 {\n margin-left: -2rem !important;\n}\n\n.-ml-6 {\n margin-left: -3rem !important;\n}\n\n.-ml-7 {\n margin-left: -4rem !important;\n}\n\n.-ml-8 {\n margin-left: -5rem !important;\n}\n\n.ml-auto {\n margin-left: auto !important;\n}\n\n.mb-0 {\n margin-bottom: 0rem !important;\n}\n\n.mb-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.mb-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.mb-3 {\n margin-bottom: 1rem !important;\n}\n\n.mb-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.mb-5 {\n margin-bottom: 2rem !important;\n}\n\n.mb-6 {\n margin-bottom: 3rem !important;\n}\n\n.mb-7 {\n margin-bottom: 4rem !important;\n}\n\n.mb-8 {\n margin-bottom: 5rem !important;\n}\n\n.-mb-1 {\n margin-bottom: -0.25rem !important;\n}\n\n.-mb-2 {\n margin-bottom: -0.5rem !important;\n}\n\n.-mb-3 {\n margin-bottom: -1rem !important;\n}\n\n.-mb-4 {\n margin-bottom: -1.5rem !important;\n}\n\n.-mb-5 {\n margin-bottom: -2rem !important;\n}\n\n.-mb-6 {\n margin-bottom: -3rem !important;\n}\n\n.-mb-7 {\n margin-bottom: -4rem !important;\n}\n\n.-mb-8 {\n margin-bottom: -5rem !important;\n}\n\n.mb-auto {\n margin-bottom: auto !important;\n}\n\n.mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n}\n\n.mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n}\n\n.mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n}\n\n.mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n}\n\n.mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n}\n\n.mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n}\n\n.mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n}\n\n.mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n}\n\n.mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n}\n\n.-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n}\n\n.-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n}\n\n.-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n}\n\n.-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n}\n\n.-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n}\n\n.-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n}\n\n.-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n}\n\n.-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n}\n\n.mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n}\n\n.my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n}\n\n.my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n}\n\n.my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n}\n\n.my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n}\n\n.-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n}\n\n.-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n}\n\n.-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n}\n\n.-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n}\n\n.-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n}\n\n.-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n}\n\n.-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n}\n\n.-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n}\n\n.my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:m-0 {\n margin: 0rem !important;\n }\n\n .sm\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .sm\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .sm\\:m-3 {\n margin: 1rem !important;\n }\n\n .sm\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .sm\\:m-5 {\n margin: 2rem !important;\n }\n\n .sm\\:m-6 {\n margin: 3rem !important;\n }\n\n .sm\\:m-7 {\n margin: 4rem !important;\n }\n\n .sm\\:m-8 {\n margin: 5rem !important;\n }\n\n .sm\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .sm\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .sm\\:-m-3 {\n margin: -1rem !important;\n }\n\n .sm\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .sm\\:-m-5 {\n margin: -2rem !important;\n }\n\n .sm\\:-m-6 {\n margin: -3rem !important;\n }\n\n .sm\\:-m-7 {\n margin: -4rem !important;\n }\n\n .sm\\:-m-8 {\n margin: -5rem !important;\n }\n\n .sm\\:m-auto {\n margin: auto !important;\n }\n\n .sm\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .sm\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .sm\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .sm\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .sm\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .sm\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .sm\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .sm\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .sm\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .sm\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .sm\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .sm\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .sm\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .sm\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .sm\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .sm\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .sm\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .sm\\:mt-auto {\n margin-top: auto !important;\n }\n\n .sm\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .sm\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .sm\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .sm\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .sm\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .sm\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .sm\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .sm\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .sm\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .sm\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .sm\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .sm\\:mr-auto {\n margin-right: auto !important;\n }\n\n .sm\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .sm\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .sm\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .sm\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .sm\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .sm\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .sm\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .sm\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .sm\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .sm\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .sm\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .sm\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .sm\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .sm\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .sm\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .sm\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .sm\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .sm\\:ml-auto {\n margin-left: auto !important;\n }\n\n .sm\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .sm\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .sm\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .sm\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .sm\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .sm\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .sm\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .sm\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .sm\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .sm\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .sm\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .sm\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .sm\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .sm\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .sm\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .sm\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .sm\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .sm\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .sm\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .sm\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .sm\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .sm\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .sm\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .sm\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .sm\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .sm\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:m-0 {\n margin: 0rem !important;\n }\n\n .md\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .md\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .md\\:m-3 {\n margin: 1rem !important;\n }\n\n .md\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .md\\:m-5 {\n margin: 2rem !important;\n }\n\n .md\\:m-6 {\n margin: 3rem !important;\n }\n\n .md\\:m-7 {\n margin: 4rem !important;\n }\n\n .md\\:m-8 {\n margin: 5rem !important;\n }\n\n .md\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .md\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .md\\:-m-3 {\n margin: -1rem !important;\n }\n\n .md\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .md\\:-m-5 {\n margin: -2rem !important;\n }\n\n .md\\:-m-6 {\n margin: -3rem !important;\n }\n\n .md\\:-m-7 {\n margin: -4rem !important;\n }\n\n .md\\:-m-8 {\n margin: -5rem !important;\n }\n\n .md\\:m-auto {\n margin: auto !important;\n }\n\n .md\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .md\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .md\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .md\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .md\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .md\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .md\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .md\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .md\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .md\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .md\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .md\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .md\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .md\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .md\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .md\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .md\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .md\\:mt-auto {\n margin-top: auto !important;\n }\n\n .md\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .md\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .md\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .md\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .md\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .md\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .md\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .md\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .md\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .md\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .md\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .md\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .md\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .md\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .md\\:mr-auto {\n margin-right: auto !important;\n }\n\n .md\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .md\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .md\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .md\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .md\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .md\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .md\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .md\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .md\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .md\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .md\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .md\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .md\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .md\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .md\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .md\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .md\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .md\\:ml-auto {\n margin-left: auto !important;\n }\n\n .md\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .md\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .md\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .md\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .md\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .md\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .md\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .md\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .md\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .md\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .md\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .md\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .md\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .md\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .md\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .md\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .md\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .md\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .md\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .md\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .md\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .md\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .md\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .md\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .md\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .md\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .md\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .md\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .md\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .md\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .md\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .md\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .md\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .md\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .md\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .md\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .md\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .md\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .md\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:m-0 {\n margin: 0rem !important;\n }\n\n .lg\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .lg\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .lg\\:m-3 {\n margin: 1rem !important;\n }\n\n .lg\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .lg\\:m-5 {\n margin: 2rem !important;\n }\n\n .lg\\:m-6 {\n margin: 3rem !important;\n }\n\n .lg\\:m-7 {\n margin: 4rem !important;\n }\n\n .lg\\:m-8 {\n margin: 5rem !important;\n }\n\n .lg\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .lg\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .lg\\:-m-3 {\n margin: -1rem !important;\n }\n\n .lg\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .lg\\:-m-5 {\n margin: -2rem !important;\n }\n\n .lg\\:-m-6 {\n margin: -3rem !important;\n }\n\n .lg\\:-m-7 {\n margin: -4rem !important;\n }\n\n .lg\\:-m-8 {\n margin: -5rem !important;\n }\n\n .lg\\:m-auto {\n margin: auto !important;\n }\n\n .lg\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .lg\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .lg\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .lg\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .lg\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .lg\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .lg\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .lg\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .lg\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .lg\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .lg\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .lg\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .lg\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .lg\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .lg\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .lg\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .lg\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .lg\\:mt-auto {\n margin-top: auto !important;\n }\n\n .lg\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .lg\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .lg\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .lg\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .lg\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .lg\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .lg\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .lg\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .lg\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .lg\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .lg\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .lg\\:mr-auto {\n margin-right: auto !important;\n }\n\n .lg\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .lg\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .lg\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .lg\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .lg\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .lg\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .lg\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .lg\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .lg\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .lg\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .lg\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .lg\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .lg\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .lg\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .lg\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .lg\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .lg\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .lg\\:ml-auto {\n margin-left: auto !important;\n }\n\n .lg\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .lg\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .lg\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .lg\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .lg\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .lg\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .lg\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .lg\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .lg\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .lg\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .lg\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .lg\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .lg\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .lg\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .lg\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .lg\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .lg\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .lg\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .lg\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .lg\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .lg\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .lg\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .lg\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .lg\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .lg\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .lg\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:m-0 {\n margin: 0rem !important;\n }\n\n .xl\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .xl\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .xl\\:m-3 {\n margin: 1rem !important;\n }\n\n .xl\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .xl\\:m-5 {\n margin: 2rem !important;\n }\n\n .xl\\:m-6 {\n margin: 3rem !important;\n }\n\n .xl\\:m-7 {\n margin: 4rem !important;\n }\n\n .xl\\:m-8 {\n margin: 5rem !important;\n }\n\n .xl\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .xl\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .xl\\:-m-3 {\n margin: -1rem !important;\n }\n\n .xl\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .xl\\:-m-5 {\n margin: -2rem !important;\n }\n\n .xl\\:-m-6 {\n margin: -3rem !important;\n }\n\n .xl\\:-m-7 {\n margin: -4rem !important;\n }\n\n .xl\\:-m-8 {\n margin: -5rem !important;\n }\n\n .xl\\:m-auto {\n margin: auto !important;\n }\n\n .xl\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .xl\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .xl\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .xl\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .xl\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .xl\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .xl\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .xl\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .xl\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .xl\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .xl\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .xl\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .xl\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .xl\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .xl\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .xl\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .xl\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .xl\\:mt-auto {\n margin-top: auto !important;\n }\n\n .xl\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .xl\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .xl\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .xl\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .xl\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .xl\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .xl\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .xl\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .xl\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .xl\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .xl\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .xl\\:mr-auto {\n margin-right: auto !important;\n }\n\n .xl\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .xl\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .xl\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .xl\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .xl\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .xl\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .xl\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .xl\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .xl\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .xl\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .xl\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .xl\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .xl\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .xl\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .xl\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .xl\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .xl\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .xl\\:ml-auto {\n margin-left: auto !important;\n }\n\n .xl\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .xl\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .xl\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .xl\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .xl\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .xl\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .xl\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .xl\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .xl\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .xl\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .xl\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .xl\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .xl\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .xl\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .xl\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .xl\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .xl\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .xl\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .xl\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .xl\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .xl\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .xl\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .xl\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .xl\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .xl\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .xl\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n.shadow-none {\n box-shadow: none !important;\n}\n\n.shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n\n.shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n}\n\n.shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n}\n\n.shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n}\n\n.shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n}\n\n.shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:shadow-none {\n box-shadow: none !important;\n }\n .sm\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .sm\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .sm\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .sm\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .sm\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .sm\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:shadow-none {\n box-shadow: none !important;\n }\n .md\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .md\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .md\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .md\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .md\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .md\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:shadow-none {\n box-shadow: none !important;\n }\n .lg\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .lg\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .lg\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .lg\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .lg\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .lg\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:shadow-none {\n box-shadow: none !important;\n }\n .xl\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .xl\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .xl\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .xl\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .xl\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .xl\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n.border-none {\n border-width: 0px !important;\n border-style: none;\n}\n\n.border-1 {\n border-width: 1px !important;\n border-style: solid;\n}\n\n.border-2 {\n border-width: 2px !important;\n border-style: solid;\n}\n\n.border-3 {\n border-width: 3px !important;\n border-style: solid;\n}\n\n.border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n}\n\n.border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n}\n\n.border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n}\n\n.border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n}\n\n.border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n}\n\n.border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n}\n\n.border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n}\n\n.border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n}\n\n.border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n.border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .sm\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .sm\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .sm\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .sm\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .sm\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .sm\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .sm\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .sm\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .md\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .md\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .md\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .md\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .md\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .md\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .md\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .md\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .md\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .md\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .md\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .md\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .md\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .lg\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .lg\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .lg\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .lg\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .lg\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .lg\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .lg\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .lg\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .xl\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .xl\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .xl\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .xl\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .xl\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .xl\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .xl\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .xl\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n.border-solid {\n border-style: solid !important;\n}\n\n.border-dashed {\n border-style: dashed !important;\n}\n\n.border-dotted {\n border-style: dotted !important;\n}\n\n.border-double {\n border-style: double !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-solid {\n border-style: solid !important;\n }\n .sm\\:border-dashed {\n border-style: dashed !important;\n }\n .sm\\:border-dotted {\n border-style: dotted !important;\n }\n .sm\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-solid {\n border-style: solid !important;\n }\n .md\\:border-dashed {\n border-style: dashed !important;\n }\n .md\\:border-dotted {\n border-style: dotted !important;\n }\n .md\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-solid {\n border-style: solid !important;\n }\n .lg\\:border-dashed {\n border-style: dashed !important;\n }\n .lg\\:border-dotted {\n border-style: dotted !important;\n }\n .lg\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-solid {\n border-style: solid !important;\n }\n .xl\\:border-dashed {\n border-style: dashed !important;\n }\n .xl\\:border-dotted {\n border-style: dotted !important;\n }\n .xl\\:border-double {\n border-style: double !important;\n }\n}\n.border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n}\n\n.border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n}\n\n.border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n.border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .sm\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .sm\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .sm\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .md\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .md\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .md\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .lg\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .lg\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .lg\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .xl\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .xl\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .xl\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n.border-noround {\n border-radius: 0 !important;\n}\n\n.border-round {\n border-radius: var(--border-radius) !important;\n}\n\n.border-circle {\n border-radius: 50% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-noround {\n border-radius: 0 !important;\n }\n .sm\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .sm\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-noround {\n border-radius: 0 !important;\n }\n .md\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .md\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-noround {\n border-radius: 0 !important;\n }\n .lg\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .lg\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-noround {\n border-radius: 0 !important;\n }\n .xl\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .xl\\:border-circle {\n border-radius: 50% !important;\n }\n}\n.w-full {\n width: 100% !important;\n}\n\n.w-screen {\n width: 100vw !important;\n}\n\n.w-auto {\n width: auto !important;\n}\n\n.w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n}\n\n.w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n}\n\n.w-1 {\n width: 8.3333% !important;\n}\n\n.w-2 {\n width: 16.6667% !important;\n}\n\n.w-3 {\n width: 25% !important;\n}\n\n.w-4 {\n width: 33.3333% !important;\n}\n\n.w-5 {\n width: 41.6667% !important;\n}\n\n.w-6 {\n width: 50% !important;\n}\n\n.w-7 {\n width: 58.3333% !important;\n}\n\n.w-8 {\n width: 66.6667% !important;\n}\n\n.w-9 {\n width: 75% !important;\n}\n\n.w-10 {\n width: 83.3333% !important;\n}\n\n.w-11 {\n width: 91.6667% !important;\n}\n\n.w-12 {\n width: 100% !important;\n}\n\n.w-1rem {\n width: 1rem !important;\n}\n\n.w-2rem {\n width: 2rem !important;\n}\n\n.w-3rem {\n width: 3rem !important;\n}\n\n.w-4rem {\n width: 4rem !important;\n}\n\n.w-5rem {\n width: 5rem !important;\n}\n\n.w-6rem {\n width: 6rem !important;\n}\n\n.w-7rem {\n width: 7rem !important;\n}\n\n.w-8rem {\n width: 8rem !important;\n}\n\n.w-9rem {\n width: 9rem !important;\n}\n\n.w-10rem {\n width: 10rem !important;\n}\n\n.w-11rem {\n width: 11rem !important;\n}\n\n.w-12rem {\n width: 12rem !important;\n}\n\n.w-13rem {\n width: 13rem !important;\n}\n\n.w-14rem {\n width: 14rem !important;\n}\n\n.w-15rem {\n width: 15rem !important;\n}\n\n.w-16rem {\n width: 16rem !important;\n}\n\n.w-17rem {\n width: 17rem !important;\n}\n\n.w-18rem {\n width: 18rem !important;\n}\n\n.w-19rem {\n width: 19rem !important;\n}\n\n.w-20rem {\n width: 20rem !important;\n}\n\n.w-21rem {\n width: 21rem !important;\n}\n\n.w-22rem {\n width: 22rem !important;\n}\n\n.w-23rem {\n width: 23rem !important;\n}\n\n.w-24rem {\n width: 24rem !important;\n}\n\n.w-25rem {\n width: 25rem !important;\n}\n\n.w-26rem {\n width: 26rem !important;\n}\n\n.w-27rem {\n width: 27rem !important;\n}\n\n.w-28rem {\n width: 28rem !important;\n}\n\n.w-29rem {\n width: 29rem !important;\n}\n\n.w-30rem {\n width: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:w-full {\n width: 100% !important;\n }\n .sm\\:w-screen {\n width: 100vw !important;\n }\n .sm\\:w-auto {\n width: auto !important;\n }\n .sm\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .sm\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .sm\\:w-1 {\n width: 8.3333% !important;\n }\n .sm\\:w-2 {\n width: 16.6667% !important;\n }\n .sm\\:w-3 {\n width: 25% !important;\n }\n .sm\\:w-4 {\n width: 33.3333% !important;\n }\n .sm\\:w-5 {\n width: 41.6667% !important;\n }\n .sm\\:w-6 {\n width: 50% !important;\n }\n .sm\\:w-7 {\n width: 58.3333% !important;\n }\n .sm\\:w-8 {\n width: 66.6667% !important;\n }\n .sm\\:w-9 {\n width: 75% !important;\n }\n .sm\\:w-10 {\n width: 83.3333% !important;\n }\n .sm\\:w-11 {\n width: 91.6667% !important;\n }\n .sm\\:w-12 {\n width: 100% !important;\n }\n .sm\\:w-1rem {\n width: 1rem !important;\n }\n .sm\\:w-2rem {\n width: 2rem !important;\n }\n .sm\\:w-3rem {\n width: 3rem !important;\n }\n .sm\\:w-4rem {\n width: 4rem !important;\n }\n .sm\\:w-5rem {\n width: 5rem !important;\n }\n .sm\\:w-6rem {\n width: 6rem !important;\n }\n .sm\\:w-7rem {\n width: 7rem !important;\n }\n .sm\\:w-8rem {\n width: 8rem !important;\n }\n .sm\\:w-9rem {\n width: 9rem !important;\n }\n .sm\\:w-10rem {\n width: 10rem !important;\n }\n .sm\\:w-11rem {\n width: 11rem !important;\n }\n .sm\\:w-12rem {\n width: 12rem !important;\n }\n .sm\\:w-13rem {\n width: 13rem !important;\n }\n .sm\\:w-14rem {\n width: 14rem !important;\n }\n .sm\\:w-15rem {\n width: 15rem !important;\n }\n .sm\\:w-16rem {\n width: 16rem !important;\n }\n .sm\\:w-17rem {\n width: 17rem !important;\n }\n .sm\\:w-18rem {\n width: 18rem !important;\n }\n .sm\\:w-19rem {\n width: 19rem !important;\n }\n .sm\\:w-20rem {\n width: 20rem !important;\n }\n .sm\\:w-21rem {\n width: 21rem !important;\n }\n .sm\\:w-22rem {\n width: 22rem !important;\n }\n .sm\\:w-23rem {\n width: 23rem !important;\n }\n .sm\\:w-24rem {\n width: 24rem !important;\n }\n .sm\\:w-25rem {\n width: 25rem !important;\n }\n .sm\\:w-26rem {\n width: 26rem !important;\n }\n .sm\\:w-27rem {\n width: 27rem !important;\n }\n .sm\\:w-28rem {\n width: 28rem !important;\n }\n .sm\\:w-29rem {\n width: 29rem !important;\n }\n .sm\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:w-full {\n width: 100% !important;\n }\n .md\\:w-screen {\n width: 100vw !important;\n }\n .md\\:w-auto {\n width: auto !important;\n }\n .md\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .md\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .md\\:w-1 {\n width: 8.3333% !important;\n }\n .md\\:w-2 {\n width: 16.6667% !important;\n }\n .md\\:w-3 {\n width: 25% !important;\n }\n .md\\:w-4 {\n width: 33.3333% !important;\n }\n .md\\:w-5 {\n width: 41.6667% !important;\n }\n .md\\:w-6 {\n width: 50% !important;\n }\n .md\\:w-7 {\n width: 58.3333% !important;\n }\n .md\\:w-8 {\n width: 66.6667% !important;\n }\n .md\\:w-9 {\n width: 75% !important;\n }\n .md\\:w-10 {\n width: 83.3333% !important;\n }\n .md\\:w-11 {\n width: 91.6667% !important;\n }\n .md\\:w-12 {\n width: 100% !important;\n }\n .md\\:w-1rem {\n width: 1rem !important;\n }\n .md\\:w-2rem {\n width: 2rem !important;\n }\n .md\\:w-3rem {\n width: 3rem !important;\n }\n .md\\:w-4rem {\n width: 4rem !important;\n }\n .md\\:w-5rem {\n width: 5rem !important;\n }\n .md\\:w-6rem {\n width: 6rem !important;\n }\n .md\\:w-7rem {\n width: 7rem !important;\n }\n .md\\:w-8rem {\n width: 8rem !important;\n }\n .md\\:w-9rem {\n width: 9rem !important;\n }\n .md\\:w-10rem {\n width: 10rem !important;\n }\n .md\\:w-11rem {\n width: 11rem !important;\n }\n .md\\:w-12rem {\n width: 12rem !important;\n }\n .md\\:w-13rem {\n width: 13rem !important;\n }\n .md\\:w-14rem {\n width: 14rem !important;\n }\n .md\\:w-15rem {\n width: 15rem !important;\n }\n .md\\:w-16rem {\n width: 16rem !important;\n }\n .md\\:w-17rem {\n width: 17rem !important;\n }\n .md\\:w-18rem {\n width: 18rem !important;\n }\n .md\\:w-19rem {\n width: 19rem !important;\n }\n .md\\:w-20rem {\n width: 20rem !important;\n }\n .md\\:w-21rem {\n width: 21rem !important;\n }\n .md\\:w-22rem {\n width: 22rem !important;\n }\n .md\\:w-23rem {\n width: 23rem !important;\n }\n .md\\:w-24rem {\n width: 24rem !important;\n }\n .md\\:w-25rem {\n width: 25rem !important;\n }\n .md\\:w-26rem {\n width: 26rem !important;\n }\n .md\\:w-27rem {\n width: 27rem !important;\n }\n .md\\:w-28rem {\n width: 28rem !important;\n }\n .md\\:w-29rem {\n width: 29rem !important;\n }\n .md\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:w-full {\n width: 100% !important;\n }\n .lg\\:w-screen {\n width: 100vw !important;\n }\n .lg\\:w-auto {\n width: auto !important;\n }\n .lg\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .lg\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .lg\\:w-1 {\n width: 8.3333% !important;\n }\n .lg\\:w-2 {\n width: 16.6667% !important;\n }\n .lg\\:w-3 {\n width: 25% !important;\n }\n .lg\\:w-4 {\n width: 33.3333% !important;\n }\n .lg\\:w-5 {\n width: 41.6667% !important;\n }\n .lg\\:w-6 {\n width: 50% !important;\n }\n .lg\\:w-7 {\n width: 58.3333% !important;\n }\n .lg\\:w-8 {\n width: 66.6667% !important;\n }\n .lg\\:w-9 {\n width: 75% !important;\n }\n .lg\\:w-10 {\n width: 83.3333% !important;\n }\n .lg\\:w-11 {\n width: 91.6667% !important;\n }\n .lg\\:w-12 {\n width: 100% !important;\n }\n .lg\\:w-1rem {\n width: 1rem !important;\n }\n .lg\\:w-2rem {\n width: 2rem !important;\n }\n .lg\\:w-3rem {\n width: 3rem !important;\n }\n .lg\\:w-4rem {\n width: 4rem !important;\n }\n .lg\\:w-5rem {\n width: 5rem !important;\n }\n .lg\\:w-6rem {\n width: 6rem !important;\n }\n .lg\\:w-7rem {\n width: 7rem !important;\n }\n .lg\\:w-8rem {\n width: 8rem !important;\n }\n .lg\\:w-9rem {\n width: 9rem !important;\n }\n .lg\\:w-10rem {\n width: 10rem !important;\n }\n .lg\\:w-11rem {\n width: 11rem !important;\n }\n .lg\\:w-12rem {\n width: 12rem !important;\n }\n .lg\\:w-13rem {\n width: 13rem !important;\n }\n .lg\\:w-14rem {\n width: 14rem !important;\n }\n .lg\\:w-15rem {\n width: 15rem !important;\n }\n .lg\\:w-16rem {\n width: 16rem !important;\n }\n .lg\\:w-17rem {\n width: 17rem !important;\n }\n .lg\\:w-18rem {\n width: 18rem !important;\n }\n .lg\\:w-19rem {\n width: 19rem !important;\n }\n .lg\\:w-20rem {\n width: 20rem !important;\n }\n .lg\\:w-21rem {\n width: 21rem !important;\n }\n .lg\\:w-22rem {\n width: 22rem !important;\n }\n .lg\\:w-23rem {\n width: 23rem !important;\n }\n .lg\\:w-24rem {\n width: 24rem !important;\n }\n .lg\\:w-25rem {\n width: 25rem !important;\n }\n .lg\\:w-26rem {\n width: 26rem !important;\n }\n .lg\\:w-27rem {\n width: 27rem !important;\n }\n .lg\\:w-28rem {\n width: 28rem !important;\n }\n .lg\\:w-29rem {\n width: 29rem !important;\n }\n .lg\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:w-full {\n width: 100% !important;\n }\n .xl\\:w-screen {\n width: 100vw !important;\n }\n .xl\\:w-auto {\n width: auto !important;\n }\n .xl\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .xl\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .xl\\:w-1 {\n width: 8.3333% !important;\n }\n .xl\\:w-2 {\n width: 16.6667% !important;\n }\n .xl\\:w-3 {\n width: 25% !important;\n }\n .xl\\:w-4 {\n width: 33.3333% !important;\n }\n .xl\\:w-5 {\n width: 41.6667% !important;\n }\n .xl\\:w-6 {\n width: 50% !important;\n }\n .xl\\:w-7 {\n width: 58.3333% !important;\n }\n .xl\\:w-8 {\n width: 66.6667% !important;\n }\n .xl\\:w-9 {\n width: 75% !important;\n }\n .xl\\:w-10 {\n width: 83.3333% !important;\n }\n .xl\\:w-11 {\n width: 91.6667% !important;\n }\n .xl\\:w-12 {\n width: 100% !important;\n }\n .xl\\:w-1rem {\n width: 1rem !important;\n }\n .xl\\:w-2rem {\n width: 2rem !important;\n }\n .xl\\:w-3rem {\n width: 3rem !important;\n }\n .xl\\:w-4rem {\n width: 4rem !important;\n }\n .xl\\:w-5rem {\n width: 5rem !important;\n }\n .xl\\:w-6rem {\n width: 6rem !important;\n }\n .xl\\:w-7rem {\n width: 7rem !important;\n }\n .xl\\:w-8rem {\n width: 8rem !important;\n }\n .xl\\:w-9rem {\n width: 9rem !important;\n }\n .xl\\:w-10rem {\n width: 10rem !important;\n }\n .xl\\:w-11rem {\n width: 11rem !important;\n }\n .xl\\:w-12rem {\n width: 12rem !important;\n }\n .xl\\:w-13rem {\n width: 13rem !important;\n }\n .xl\\:w-14rem {\n width: 14rem !important;\n }\n .xl\\:w-15rem {\n width: 15rem !important;\n }\n .xl\\:w-16rem {\n width: 16rem !important;\n }\n .xl\\:w-17rem {\n width: 17rem !important;\n }\n .xl\\:w-18rem {\n width: 18rem !important;\n }\n .xl\\:w-19rem {\n width: 19rem !important;\n }\n .xl\\:w-20rem {\n width: 20rem !important;\n }\n .xl\\:w-21rem {\n width: 21rem !important;\n }\n .xl\\:w-22rem {\n width: 22rem !important;\n }\n .xl\\:w-23rem {\n width: 23rem !important;\n }\n .xl\\:w-24rem {\n width: 24rem !important;\n }\n .xl\\:w-25rem {\n width: 25rem !important;\n }\n .xl\\:w-26rem {\n width: 26rem !important;\n }\n .xl\\:w-27rem {\n width: 27rem !important;\n }\n .xl\\:w-28rem {\n width: 28rem !important;\n }\n .xl\\:w-29rem {\n width: 29rem !important;\n }\n .xl\\:w-30rem {\n width: 30rem !important;\n }\n}\n.h-full {\n height: 100% !important;\n}\n\n.h-screen {\n height: 100vh !important;\n}\n\n.h-auto {\n height: auto !important;\n}\n\n.h-1rem {\n height: 1rem !important;\n}\n\n.h-2rem {\n height: 2rem !important;\n}\n\n.h-3rem {\n height: 3rem !important;\n}\n\n.h-4rem {\n height: 4rem !important;\n}\n\n.h-5rem {\n height: 5rem !important;\n}\n\n.h-6rem {\n height: 6rem !important;\n}\n\n.h-7rem {\n height: 7rem !important;\n}\n\n.h-8rem {\n height: 8rem !important;\n}\n\n.h-9rem {\n height: 9rem !important;\n}\n\n.h-10rem {\n height: 10rem !important;\n}\n\n.h-11rem {\n height: 11rem !important;\n}\n\n.h-12rem {\n height: 12rem !important;\n}\n\n.h-13rem {\n height: 13rem !important;\n}\n\n.h-14rem {\n height: 14rem !important;\n}\n\n.h-15rem {\n height: 15rem !important;\n}\n\n.h-16rem {\n height: 16rem !important;\n}\n\n.h-17rem {\n height: 17rem !important;\n}\n\n.h-18rem {\n height: 18rem !important;\n}\n\n.h-19rem {\n height: 19rem !important;\n}\n\n.h-20rem {\n height: 20rem !important;\n}\n\n.h-21rem {\n height: 21rem !important;\n}\n\n.h-22rem {\n height: 22rem !important;\n}\n\n.h-23rem {\n height: 23rem !important;\n}\n\n.h-24rem {\n height: 24rem !important;\n}\n\n.h-25rem {\n height: 25rem !important;\n}\n\n.h-26rem {\n height: 26rem !important;\n}\n\n.h-27rem {\n height: 27rem !important;\n}\n\n.h-28rem {\n height: 28rem !important;\n}\n\n.h-29rem {\n height: 29rem !important;\n}\n\n.h-30rem {\n height: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:h-full {\n height: 100% !important;\n }\n .sm\\:h-screen {\n height: 100vh !important;\n }\n .sm\\:h-auto {\n height: auto !important;\n }\n .sm\\:h-1rem {\n height: 1rem !important;\n }\n .sm\\:h-2rem {\n height: 2rem !important;\n }\n .sm\\:h-3rem {\n height: 3rem !important;\n }\n .sm\\:h-4rem {\n height: 4rem !important;\n }\n .sm\\:h-5rem {\n height: 5rem !important;\n }\n .sm\\:h-6rem {\n height: 6rem !important;\n }\n .sm\\:h-7rem {\n height: 7rem !important;\n }\n .sm\\:h-8rem {\n height: 8rem !important;\n }\n .sm\\:h-9rem {\n height: 9rem !important;\n }\n .sm\\:h-10rem {\n height: 10rem !important;\n }\n .sm\\:h-11rem {\n height: 11rem !important;\n }\n .sm\\:h-12rem {\n height: 12rem !important;\n }\n .sm\\:h-13rem {\n height: 13rem !important;\n }\n .sm\\:h-14rem {\n height: 14rem !important;\n }\n .sm\\:h-15rem {\n height: 15rem !important;\n }\n .sm\\:h-16rem {\n height: 16rem !important;\n }\n .sm\\:h-17rem {\n height: 17rem !important;\n }\n .sm\\:h-18rem {\n height: 18rem !important;\n }\n .sm\\:h-19rem {\n height: 19rem !important;\n }\n .sm\\:h-20rem {\n height: 20rem !important;\n }\n .sm\\:h-21rem {\n height: 21rem !important;\n }\n .sm\\:h-22rem {\n height: 22rem !important;\n }\n .sm\\:h-23rem {\n height: 23rem !important;\n }\n .sm\\:h-24rem {\n height: 24rem !important;\n }\n .sm\\:h-25rem {\n height: 25rem !important;\n }\n .sm\\:h-26rem {\n height: 26rem !important;\n }\n .sm\\:h-27rem {\n height: 27rem !important;\n }\n .sm\\:h-28rem {\n height: 28rem !important;\n }\n .sm\\:h-29rem {\n height: 29rem !important;\n }\n .sm\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:h-full {\n height: 100% !important;\n }\n .md\\:h-screen {\n height: 100vh !important;\n }\n .md\\:h-auto {\n height: auto !important;\n }\n .md\\:h-1rem {\n height: 1rem !important;\n }\n .md\\:h-2rem {\n height: 2rem !important;\n }\n .md\\:h-3rem {\n height: 3rem !important;\n }\n .md\\:h-4rem {\n height: 4rem !important;\n }\n .md\\:h-5rem {\n height: 5rem !important;\n }\n .md\\:h-6rem {\n height: 6rem !important;\n }\n .md\\:h-7rem {\n height: 7rem !important;\n }\n .md\\:h-8rem {\n height: 8rem !important;\n }\n .md\\:h-9rem {\n height: 9rem !important;\n }\n .md\\:h-10rem {\n height: 10rem !important;\n }\n .md\\:h-11rem {\n height: 11rem !important;\n }\n .md\\:h-12rem {\n height: 12rem !important;\n }\n .md\\:h-13rem {\n height: 13rem !important;\n }\n .md\\:h-14rem {\n height: 14rem !important;\n }\n .md\\:h-15rem {\n height: 15rem !important;\n }\n .md\\:h-16rem {\n height: 16rem !important;\n }\n .md\\:h-17rem {\n height: 17rem !important;\n }\n .md\\:h-18rem {\n height: 18rem !important;\n }\n .md\\:h-19rem {\n height: 19rem !important;\n }\n .md\\:h-20rem {\n height: 20rem !important;\n }\n .md\\:h-21rem {\n height: 21rem !important;\n }\n .md\\:h-22rem {\n height: 22rem !important;\n }\n .md\\:h-23rem {\n height: 23rem !important;\n }\n .md\\:h-24rem {\n height: 24rem !important;\n }\n .md\\:h-25rem {\n height: 25rem !important;\n }\n .md\\:h-26rem {\n height: 26rem !important;\n }\n .md\\:h-27rem {\n height: 27rem !important;\n }\n .md\\:h-28rem {\n height: 28rem !important;\n }\n .md\\:h-29rem {\n height: 29rem !important;\n }\n .md\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:h-full {\n height: 100% !important;\n }\n .lg\\:h-screen {\n height: 100vh !important;\n }\n .lg\\:h-auto {\n height: auto !important;\n }\n .lg\\:h-1rem {\n height: 1rem !important;\n }\n .lg\\:h-2rem {\n height: 2rem !important;\n }\n .lg\\:h-3rem {\n height: 3rem !important;\n }\n .lg\\:h-4rem {\n height: 4rem !important;\n }\n .lg\\:h-5rem {\n height: 5rem !important;\n }\n .lg\\:h-6rem {\n height: 6rem !important;\n }\n .lg\\:h-7rem {\n height: 7rem !important;\n }\n .lg\\:h-8rem {\n height: 8rem !important;\n }\n .lg\\:h-9rem {\n height: 9rem !important;\n }\n .lg\\:h-10rem {\n height: 10rem !important;\n }\n .lg\\:h-11rem {\n height: 11rem !important;\n }\n .lg\\:h-12rem {\n height: 12rem !important;\n }\n .lg\\:h-13rem {\n height: 13rem !important;\n }\n .lg\\:h-14rem {\n height: 14rem !important;\n }\n .lg\\:h-15rem {\n height: 15rem !important;\n }\n .lg\\:h-16rem {\n height: 16rem !important;\n }\n .lg\\:h-17rem {\n height: 17rem !important;\n }\n .lg\\:h-18rem {\n height: 18rem !important;\n }\n .lg\\:h-19rem {\n height: 19rem !important;\n }\n .lg\\:h-20rem {\n height: 20rem !important;\n }\n .lg\\:h-21rem {\n height: 21rem !important;\n }\n .lg\\:h-22rem {\n height: 22rem !important;\n }\n .lg\\:h-23rem {\n height: 23rem !important;\n }\n .lg\\:h-24rem {\n height: 24rem !important;\n }\n .lg\\:h-25rem {\n height: 25rem !important;\n }\n .lg\\:h-26rem {\n height: 26rem !important;\n }\n .lg\\:h-27rem {\n height: 27rem !important;\n }\n .lg\\:h-28rem {\n height: 28rem !important;\n }\n .lg\\:h-29rem {\n height: 29rem !important;\n }\n .lg\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:h-full {\n height: 100% !important;\n }\n .xl\\:h-screen {\n height: 100vh !important;\n }\n .xl\\:h-auto {\n height: auto !important;\n }\n .xl\\:h-1rem {\n height: 1rem !important;\n }\n .xl\\:h-2rem {\n height: 2rem !important;\n }\n .xl\\:h-3rem {\n height: 3rem !important;\n }\n .xl\\:h-4rem {\n height: 4rem !important;\n }\n .xl\\:h-5rem {\n height: 5rem !important;\n }\n .xl\\:h-6rem {\n height: 6rem !important;\n }\n .xl\\:h-7rem {\n height: 7rem !important;\n }\n .xl\\:h-8rem {\n height: 8rem !important;\n }\n .xl\\:h-9rem {\n height: 9rem !important;\n }\n .xl\\:h-10rem {\n height: 10rem !important;\n }\n .xl\\:h-11rem {\n height: 11rem !important;\n }\n .xl\\:h-12rem {\n height: 12rem !important;\n }\n .xl\\:h-13rem {\n height: 13rem !important;\n }\n .xl\\:h-14rem {\n height: 14rem !important;\n }\n .xl\\:h-15rem {\n height: 15rem !important;\n }\n .xl\\:h-16rem {\n height: 16rem !important;\n }\n .xl\\:h-17rem {\n height: 17rem !important;\n }\n .xl\\:h-18rem {\n height: 18rem !important;\n }\n .xl\\:h-19rem {\n height: 19rem !important;\n }\n .xl\\:h-20rem {\n height: 20rem !important;\n }\n .xl\\:h-21rem {\n height: 21rem !important;\n }\n .xl\\:h-22rem {\n height: 22rem !important;\n }\n .xl\\:h-23rem {\n height: 23rem !important;\n }\n .xl\\:h-24rem {\n height: 24rem !important;\n }\n .xl\\:h-25rem {\n height: 25rem !important;\n }\n .xl\\:h-26rem {\n height: 26rem !important;\n }\n .xl\\:h-27rem {\n height: 27rem !important;\n }\n .xl\\:h-28rem {\n height: 28rem !important;\n }\n .xl\\:h-29rem {\n height: 29rem !important;\n }\n .xl\\:h-30rem {\n height: 30rem !important;\n }\n}\n.min-w-0 {\n min-width: 0px !important;\n}\n\n.min-w-full {\n min-width: 100% !important;\n}\n\n.min-w-screen {\n min-width: 100vw !important;\n}\n\n.min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n}\n\n.min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-w-0 {\n min-width: 0px !important;\n }\n .sm\\:min-w-full {\n min-width: 100% !important;\n }\n .sm\\:min-w-screen {\n min-width: 100vw !important;\n }\n .sm\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .sm\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-w-0 {\n min-width: 0px !important;\n }\n .md\\:min-w-full {\n min-width: 100% !important;\n }\n .md\\:min-w-screen {\n min-width: 100vw !important;\n }\n .md\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .md\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-w-0 {\n min-width: 0px !important;\n }\n .lg\\:min-w-full {\n min-width: 100% !important;\n }\n .lg\\:min-w-screen {\n min-width: 100vw !important;\n }\n .lg\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .lg\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-w-0 {\n min-width: 0px !important;\n }\n .xl\\:min-w-full {\n min-width: 100% !important;\n }\n .xl\\:min-w-screen {\n min-width: 100vw !important;\n }\n .xl\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .xl\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n.max-w-0 {\n max-width: 0px !important;\n}\n\n.max-w-full {\n max-width: 100% !important;\n}\n\n.max-w-screen {\n max-width: 100vw !important;\n}\n\n.max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n}\n\n.max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-w-0 {\n max-width: 0px !important;\n }\n .sm\\:max-w-full {\n max-width: 100% !important;\n }\n .sm\\:max-w-screen {\n max-width: 100vw !important;\n }\n .sm\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .sm\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-w-0 {\n max-width: 0px !important;\n }\n .md\\:max-w-full {\n max-width: 100% !important;\n }\n .md\\:max-w-screen {\n max-width: 100vw !important;\n }\n .md\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .md\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-w-0 {\n max-width: 0px !important;\n }\n .lg\\:max-w-full {\n max-width: 100% !important;\n }\n .lg\\:max-w-screen {\n max-width: 100vw !important;\n }\n .lg\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .lg\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-w-0 {\n max-width: 0px !important;\n }\n .xl\\:max-w-full {\n max-width: 100% !important;\n }\n .xl\\:max-w-screen {\n max-width: 100vw !important;\n }\n .xl\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .xl\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n.min-h-0 {\n min-height: 0px !important;\n}\n\n.min-h-full {\n min-height: 100% !important;\n}\n\n.min-h-screen {\n min-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-h-0 {\n min-height: 0px !important;\n }\n .sm\\:min-h-full {\n min-height: 100% !important;\n }\n .sm\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-h-0 {\n min-height: 0px !important;\n }\n .md\\:min-h-full {\n min-height: 100% !important;\n }\n .md\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-h-0 {\n min-height: 0px !important;\n }\n .lg\\:min-h-full {\n min-height: 100% !important;\n }\n .lg\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-h-0 {\n min-height: 0px !important;\n }\n .xl\\:min-h-full {\n min-height: 100% !important;\n }\n .xl\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n.max-h-0 {\n max-height: 0px !important;\n}\n\n.max-h-full {\n max-height: 100% !important;\n}\n\n.max-h-screen {\n max-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-h-0 {\n max-height: 0px !important;\n }\n .sm\\:max-h-full {\n max-height: 100% !important;\n }\n .sm\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-h-0 {\n max-height: 0px !important;\n }\n .md\\:max-h-full {\n max-height: 100% !important;\n }\n .md\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-h-0 {\n max-height: 0px !important;\n }\n .lg\\:max-h-full {\n max-height: 100% !important;\n }\n .lg\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-h-0 {\n max-height: 0px !important;\n }\n .xl\\:max-h-full {\n max-height: 100% !important;\n }\n .xl\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n.static {\n position: static !important;\n}\n\n.fixed {\n position: fixed !important;\n}\n\n.absolute {\n position: absolute !important;\n}\n\n.relative {\n position: relative !important;\n}\n\n.sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:static {\n position: static !important;\n }\n .sm\\:fixed {\n position: fixed !important;\n }\n .sm\\:absolute {\n position: absolute !important;\n }\n .sm\\:relative {\n position: relative !important;\n }\n .sm\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:static {\n position: static !important;\n }\n .md\\:fixed {\n position: fixed !important;\n }\n .md\\:absolute {\n position: absolute !important;\n }\n .md\\:relative {\n position: relative !important;\n }\n .md\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:static {\n position: static !important;\n }\n .lg\\:fixed {\n position: fixed !important;\n }\n .lg\\:absolute {\n position: absolute !important;\n }\n .lg\\:relative {\n position: relative !important;\n }\n .lg\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:static {\n position: static !important;\n }\n .xl\\:fixed {\n position: fixed !important;\n }\n .xl\\:absolute {\n position: absolute !important;\n }\n .xl\\:relative {\n position: relative !important;\n }\n .xl\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n.top-auto {\n top: auto !important;\n}\n\n.top-0 {\n top: 0px !important;\n}\n\n.top-50 {\n top: 50% !important;\n}\n\n.top-100 {\n top: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:top-auto {\n top: auto !important;\n }\n .sm\\:top-0 {\n top: 0px !important;\n }\n .sm\\:top-50 {\n top: 50% !important;\n }\n .sm\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:top-auto {\n top: auto !important;\n }\n .md\\:top-0 {\n top: 0px !important;\n }\n .md\\:top-50 {\n top: 50% !important;\n }\n .md\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:top-auto {\n top: auto !important;\n }\n .lg\\:top-0 {\n top: 0px !important;\n }\n .lg\\:top-50 {\n top: 50% !important;\n }\n .lg\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:top-auto {\n top: auto !important;\n }\n .xl\\:top-0 {\n top: 0px !important;\n }\n .xl\\:top-50 {\n top: 50% !important;\n }\n .xl\\:top-100 {\n top: 100% !important;\n }\n}\n.left-auto {\n left: auto !important;\n}\n\n.left-0 {\n left: 0px !important;\n}\n\n.left-50 {\n left: 50% !important;\n}\n\n.left-100 {\n left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:left-auto {\n left: auto !important;\n }\n .sm\\:left-0 {\n left: 0px !important;\n }\n .sm\\:left-50 {\n left: 50% !important;\n }\n .sm\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:left-auto {\n left: auto !important;\n }\n .md\\:left-0 {\n left: 0px !important;\n }\n .md\\:left-50 {\n left: 50% !important;\n }\n .md\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:left-auto {\n left: auto !important;\n }\n .lg\\:left-0 {\n left: 0px !important;\n }\n .lg\\:left-50 {\n left: 50% !important;\n }\n .lg\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:left-auto {\n left: auto !important;\n }\n .xl\\:left-0 {\n left: 0px !important;\n }\n .xl\\:left-50 {\n left: 50% !important;\n }\n .xl\\:left-100 {\n left: 100% !important;\n }\n}\n.right-auto {\n right: auto !important;\n}\n\n.right-0 {\n right: 0px !important;\n}\n\n.right-50 {\n right: 50% !important;\n}\n\n.right-100 {\n right: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:right-auto {\n right: auto !important;\n }\n .sm\\:right-0 {\n right: 0px !important;\n }\n .sm\\:right-50 {\n right: 50% !important;\n }\n .sm\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:right-auto {\n right: auto !important;\n }\n .md\\:right-0 {\n right: 0px !important;\n }\n .md\\:right-50 {\n right: 50% !important;\n }\n .md\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:right-auto {\n right: auto !important;\n }\n .lg\\:right-0 {\n right: 0px !important;\n }\n .lg\\:right-50 {\n right: 50% !important;\n }\n .lg\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:right-auto {\n right: auto !important;\n }\n .xl\\:right-0 {\n right: 0px !important;\n }\n .xl\\:right-50 {\n right: 50% !important;\n }\n .xl\\:right-100 {\n right: 100% !important;\n }\n}\n.bottom-auto {\n bottom: auto !important;\n}\n\n.bottom-0 {\n bottom: 0px !important;\n}\n\n.bottom-50 {\n bottom: 50% !important;\n}\n\n.bottom-100 {\n bottom: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bottom-auto {\n bottom: auto !important;\n }\n .sm\\:bottom-0 {\n bottom: 0px !important;\n }\n .sm\\:bottom-50 {\n bottom: 50% !important;\n }\n .sm\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bottom-auto {\n bottom: auto !important;\n }\n .md\\:bottom-0 {\n bottom: 0px !important;\n }\n .md\\:bottom-50 {\n bottom: 50% !important;\n }\n .md\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bottom-auto {\n bottom: auto !important;\n }\n .lg\\:bottom-0 {\n bottom: 0px !important;\n }\n .lg\\:bottom-50 {\n bottom: 50% !important;\n }\n .lg\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bottom-auto {\n bottom: auto !important;\n }\n .xl\\:bottom-0 {\n bottom: 0px !important;\n }\n .xl\\:bottom-50 {\n bottom: 50% !important;\n }\n .xl\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n.overflow-auto {\n overflow: auto !important;\n}\n\n.overflow-hidden {\n overflow: hidden !important;\n}\n\n.overflow-visible {\n overflow: visible !important;\n}\n\n.overflow-scroll {\n overflow: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-auto {\n overflow: auto !important;\n }\n .sm\\:overflow-hidden {\n overflow: hidden !important;\n }\n .sm\\:overflow-visible {\n overflow: visible !important;\n }\n .sm\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-auto {\n overflow: auto !important;\n }\n .md\\:overflow-hidden {\n overflow: hidden !important;\n }\n .md\\:overflow-visible {\n overflow: visible !important;\n }\n .md\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-auto {\n overflow: auto !important;\n }\n .lg\\:overflow-hidden {\n overflow: hidden !important;\n }\n .lg\\:overflow-visible {\n overflow: visible !important;\n }\n .lg\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-auto {\n overflow: auto !important;\n }\n .xl\\:overflow-hidden {\n overflow: hidden !important;\n }\n .xl\\:overflow-visible {\n overflow: visible !important;\n }\n .xl\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n.overflow-x-auto {\n overflow-x: auto !important;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden !important;\n}\n\n.overflow-x-visible {\n overflow-x: visible !important;\n}\n\n.overflow-x-scroll {\n overflow-x: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .sm\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .sm\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .sm\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .md\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .md\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .md\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .lg\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .lg\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .lg\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .xl\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .xl\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .xl\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n.overflow-y-auto {\n overflow-y: auto !important;\n}\n\n.overflow-y-hidden {\n overflow-y: hidden !important;\n}\n\n.overflow-y-visible {\n overflow-y: visible !important;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .sm\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .sm\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .sm\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .md\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .md\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .md\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .lg\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .lg\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .lg\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .xl\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .xl\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .xl\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n.z-auto {\n z-index: auto !important;\n}\n\n.z-0 {\n z-index: 0 !important;\n}\n\n.z-1 {\n z-index: 1 !important;\n}\n\n.z-2 {\n z-index: 2 !important;\n}\n\n.z-3 {\n z-index: 3 !important;\n}\n\n.z-4 {\n z-index: 4 !important;\n}\n\n.z-5 {\n z-index: 5 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:z-auto {\n z-index: auto !important;\n }\n .sm\\:z-0 {\n z-index: 0 !important;\n }\n .sm\\:z-1 {\n z-index: 1 !important;\n }\n .sm\\:z-2 {\n z-index: 2 !important;\n }\n .sm\\:z-3 {\n z-index: 3 !important;\n }\n .sm\\:z-4 {\n z-index: 4 !important;\n }\n .sm\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:z-auto {\n z-index: auto !important;\n }\n .md\\:z-0 {\n z-index: 0 !important;\n }\n .md\\:z-1 {\n z-index: 1 !important;\n }\n .md\\:z-2 {\n z-index: 2 !important;\n }\n .md\\:z-3 {\n z-index: 3 !important;\n }\n .md\\:z-4 {\n z-index: 4 !important;\n }\n .md\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:z-auto {\n z-index: auto !important;\n }\n .lg\\:z-0 {\n z-index: 0 !important;\n }\n .lg\\:z-1 {\n z-index: 1 !important;\n }\n .lg\\:z-2 {\n z-index: 2 !important;\n }\n .lg\\:z-3 {\n z-index: 3 !important;\n }\n .lg\\:z-4 {\n z-index: 4 !important;\n }\n .lg\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:z-auto {\n z-index: auto !important;\n }\n .xl\\:z-0 {\n z-index: 0 !important;\n }\n .xl\\:z-1 {\n z-index: 1 !important;\n }\n .xl\\:z-2 {\n z-index: 2 !important;\n }\n .xl\\:z-3 {\n z-index: 3 !important;\n }\n .xl\\:z-4 {\n z-index: 4 !important;\n }\n .xl\\:z-5 {\n z-index: 5 !important;\n }\n}\n.bg-repeat {\n background-repeat: repeat !important;\n}\n\n.bg-no-repeat {\n background-repeat: no-repeat !important;\n}\n\n.bg-repeat-x {\n background-repeat: repeat-x !important;\n}\n\n.bg-repeat-y {\n background-repeat: repeat-y !important;\n}\n\n.bg-repeat-round {\n background-repeat: round !important;\n}\n\n.bg-repeat-space {\n background-repeat: space !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .sm\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .sm\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .sm\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .sm\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .sm\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .md\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .md\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .md\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .md\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .md\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .lg\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .lg\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .lg\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .lg\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .lg\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .xl\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .xl\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .xl\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .xl\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .xl\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n.bg-auto {\n background-size: auto !important;\n}\n\n.bg-cover {\n background-size: cover !important;\n}\n\n.bg-contain {\n background-size: contain !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-auto {\n background-size: auto !important;\n }\n .sm\\:bg-cover {\n background-size: cover !important;\n }\n .sm\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-auto {\n background-size: auto !important;\n }\n .md\\:bg-cover {\n background-size: cover !important;\n }\n .md\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-auto {\n background-size: auto !important;\n }\n .lg\\:bg-cover {\n background-size: cover !important;\n }\n .lg\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-auto {\n background-size: auto !important;\n }\n .xl\\:bg-cover {\n background-size: cover !important;\n }\n .xl\\:bg-contain {\n background-size: contain !important;\n }\n}\n.bg-bottom {\n background-position: bottom !important;\n}\n\n.bg-center {\n background-position: center !important;\n}\n\n.bg-left {\n background-position: left !important;\n}\n\n.bg-left-bottom {\n background-position: left bottom !important;\n}\n\n.bg-left-top {\n background-position: left top !important;\n}\n\n.bg-right {\n background-position: right !important;\n}\n\n.bg-right-bottom {\n background-position: right bottom !important;\n}\n\n.bg-right-top {\n background-position: right top !important;\n}\n\n.bg-top {\n background-position: top !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-bottom {\n background-position: bottom !important;\n }\n .sm\\:bg-center {\n background-position: center !important;\n }\n .sm\\:bg-left {\n background-position: left !important;\n }\n .sm\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .sm\\:bg-left-top {\n background-position: left top !important;\n }\n .sm\\:bg-right {\n background-position: right !important;\n }\n .sm\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .sm\\:bg-right-top {\n background-position: right top !important;\n }\n .sm\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-bottom {\n background-position: bottom !important;\n }\n .md\\:bg-center {\n background-position: center !important;\n }\n .md\\:bg-left {\n background-position: left !important;\n }\n .md\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .md\\:bg-left-top {\n background-position: left top !important;\n }\n .md\\:bg-right {\n background-position: right !important;\n }\n .md\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .md\\:bg-right-top {\n background-position: right top !important;\n }\n .md\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-bottom {\n background-position: bottom !important;\n }\n .lg\\:bg-center {\n background-position: center !important;\n }\n .lg\\:bg-left {\n background-position: left !important;\n }\n .lg\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .lg\\:bg-left-top {\n background-position: left top !important;\n }\n .lg\\:bg-right {\n background-position: right !important;\n }\n .lg\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .lg\\:bg-right-top {\n background-position: right top !important;\n }\n .lg\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-bottom {\n background-position: bottom !important;\n }\n .xl\\:bg-center {\n background-position: center !important;\n }\n .xl\\:bg-left {\n background-position: left !important;\n }\n .xl\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .xl\\:bg-left-top {\n background-position: left top !important;\n }\n .xl\\:bg-right {\n background-position: right !important;\n }\n .xl\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .xl\\:bg-right-top {\n background-position: right top !important;\n }\n .xl\\:bg-top {\n background-position: top !important;\n }\n}\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.list-none {\n list-style: none !important;\n}\n\n.list-disc {\n list-style: disc !important;\n}\n\n.list-decimal {\n list-style: decimal !important;\n}\n\n.appearance-none {\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n}\n\n.outline-none {\n outline: none !important;\n}\n\n.pointer-events-none {\n pointer-events: none !important;\n}\n\n.pointer-events-auto {\n pointer-events: auto !important;\n}\n\n.cursor-auto {\n cursor: auto !important;\n}\n\n.cursor-pointer {\n cursor: pointer !important;\n}\n\n.cursor-wait {\n cursor: wait !important;\n}\n\n.cursor-move {\n cursor: move !important;\n}\n\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.opacity-0 {\n opacity: 0 !important;\n}\n\n.opacity-10 {\n opacity: .1 !important;\n}\n\n.opacity-20 {\n opacity: .2 !important;\n}\n\n.opacity-30 {\n opacity: .3 !important;\n}\n\n.opacity-40 {\n opacity: .4 !important;\n}\n\n.opacity-50 {\n opacity: .5 !important;\n}\n\n.opacity-60 {\n opacity: .6 !important;\n}\n\n.opacity-70 {\n opacity: .7 !important;\n}\n\n.opacity-80 {\n opacity: .8 !important;\n}\n\n.opacity-90 {\n opacity: .9 !important;\n}\n\n.opacity-100 {\n opacity: 1 !important;\n}\n\n.transition-none {\n transition-property: none !important;\n}\n\n.transition-all {\n transition-property: all !important;\n}\n\n.transition-colors {\n transition-property: background-color,border-color,color !important;\n}\n\n.transition-transform {\n transition-property: transform !important;\n}\n\n.transition-duration-100 {\n transition-duration: 100ms !important;\n}\n\n.transition-duration-150 {\n transition-duration: 150ms !important;\n}\n\n.transition-duration-200 {\n transition-duration: 200ms !important;\n}\n\n.transition-duration-300 {\n transition-duration: 300ms !important;\n}\n\n.transition-duration-400 {\n transition-duration: 400ms !important;\n}\n\n.transition-duration-500 {\n transition-duration: 500ms !important;\n}\n\n.transition-duration-1000 {\n transition-duration: 1000ms !important;\n}\n\n.transition-duration-2000 {\n transition-duration: 2000ms !important;\n}\n\n.transition-duration-3000 {\n transition-duration: 3000ms !important;\n}\n\n.transition-linear {\n transition-timing-function: linear !important;\n}\n\n.transition-ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.transition-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.transition-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.transition-delay-100 {\n transition-delay: 100ms !important;\n}\n\n.transition-delay-150 {\n transition-delay: 150ms !important;\n}\n\n.transition-delay-200 {\n transition-delay: 200ms !important;\n}\n\n.transition-delay-300 {\n transition-delay: 300ms !important;\n}\n\n.transition-delay-400 {\n transition-delay: 400ms !important;\n}\n\n.transition-delay-500 {\n transition-delay: 500ms !important;\n}\n\n.transition-delay-1000 {\n transition-delay: 1000ms !important;\n}\n\n.translate-x-0 {\n transform: translateX(0%) !important;\n}\n\n.translate-x-100 {\n transform: translateX(100%) !important;\n}\n\n.-translate-x-100 {\n transform: translateX(-100%) !important;\n}\n\n.translate-y-0 {\n transform: translateY(0%) !important;\n}\n\n.translate-y-100 {\n transform: translateY(100%) !important;\n}\n\n.-translate-y-100 {\n transform: translateY(-100%) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .sm\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .sm\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .sm\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .sm\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .sm\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .md\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .md\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .md\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .md\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .md\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .lg\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .lg\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .lg\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .lg\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .lg\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .xl\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .xl\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .xl\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .xl\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .xl\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n.rotate-45 {\n transform: rotate(45deg) !important;\n}\n\n.-rotate-45 {\n transform: rotate(-45deg) !important;\n}\n\n.rotate-90 {\n transform: rotate(90deg) !important;\n}\n\n.-rotate-90 {\n transform: rotate(-90deg) !important;\n}\n\n.rotate-180 {\n transform: rotate(180deg) !important;\n}\n\n.-rotate-180 {\n transform: rotate(-180deg) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .sm\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .sm\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .sm\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .sm\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .sm\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .md\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .md\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .md\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .md\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .md\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .lg\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .lg\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .lg\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .lg\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .lg\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .xl\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .xl\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .xl\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .xl\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .xl\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n.origin-center {\n transform-origin: center !important;\n}\n\n.origin-top {\n transform-origin: top !important;\n}\n\n.origin-top-right {\n transform-origin: top right !important;\n}\n\n.origin-right {\n transform-origin: right !important;\n}\n\n.origin-bottom-right {\n transform-origin: bottom right !important;\n}\n\n.origin-bottom {\n transform-origin: bottom !important;\n}\n\n.origin-bottom-left {\n transform-origin: bottom left !important;\n}\n\n.origin-left {\n transform-origin: left !important;\n}\n\n.origin-top-left {\n transform-origin: top-left !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:origin-center {\n transform-origin: center !important;\n }\n .sm\\:origin-top {\n transform-origin: top !important;\n }\n .sm\\:origin-top-right {\n transform-origin: top right !important;\n }\n .sm\\:origin-right {\n transform-origin: right !important;\n }\n .sm\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .sm\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .sm\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .sm\\:origin-left {\n transform-origin: left !important;\n }\n .sm\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:origin-center {\n transform-origin: center !important;\n }\n .md\\:origin-top {\n transform-origin: top !important;\n }\n .md\\:origin-top-right {\n transform-origin: top right !important;\n }\n .md\\:origin-right {\n transform-origin: right !important;\n }\n .md\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .md\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .md\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .md\\:origin-left {\n transform-origin: left !important;\n }\n .md\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:origin-center {\n transform-origin: center !important;\n }\n .lg\\:origin-top {\n transform-origin: top !important;\n }\n .lg\\:origin-top-right {\n transform-origin: top right !important;\n }\n .lg\\:origin-right {\n transform-origin: right !important;\n }\n .lg\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .lg\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .lg\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .lg\\:origin-left {\n transform-origin: left !important;\n }\n .lg\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:origin-center {\n transform-origin: center !important;\n }\n .xl\\:origin-top {\n transform-origin: top !important;\n }\n .xl\\:origin-top-right {\n transform-origin: top right !important;\n }\n .xl\\:origin-right {\n transform-origin: right !important;\n }\n .xl\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .xl\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .xl\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .xl\\:origin-left {\n transform-origin: left !important;\n }\n .xl\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@-webkit-keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@-webkit-keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@-webkit-keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@-webkit-keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@-webkit-keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@-webkit-keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@-webkit-keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@-webkit-keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@-webkit-keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n@keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n.fadein {\n -webkit-animation: fadein 0.15s linear;\n animation: fadein 0.15s linear;\n}\n\n.fadeout {\n -webkit-animation: fadeout 0.15s linear;\n animation: fadeout 0.15s linear;\n}\n\n.slidedown {\n -webkit-animation: slidedown 0.45s ease-in-out;\n animation: slidedown 0.45s ease-in-out;\n}\n\n.slideup {\n -webkit-animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.scalein {\n -webkit-animation: scalein 0.15s linear;\n animation: scalein 0.15s linear;\n}\n\n.fadeinleft {\n -webkit-animation: fadeinleft 0.15s linear;\n animation: fadeinleft 0.15s linear;\n}\n\n.fadeoutleft {\n -webkit-animation: fadeoutleft 0.15s linear;\n animation: fadeoutleft 0.15s linear;\n}\n\n.fadeinright {\n -webkit-animation: fadeinright 0.15s linear;\n animation: fadeinright 0.15s linear;\n}\n\n.fadeoutright {\n -webkit-animation: fadeoutright 0.15s linear;\n animation: fadeoutright 0.15s linear;\n}\n\n.fadeinup {\n -webkit-animation: fadeinup 0.15s linear;\n animation: fadeinup 0.15s linear;\n}\n\n.fadeoutup {\n -webkit-animation: fadeoutup 0.15s linear;\n animation: fadeoutup 0.15s linear;\n}\n\n.fadeindown {\n -webkit-animation: fadeindown 0.15s linear;\n animation: fadeindown 0.15s linear;\n}\n\n.fadeoutdown {\n -webkit-animation: fadeoutdown 0.15s linear;\n animation: fadeoutdown 0.15s linear;\n}\n\n.animate-width {\n -webkit-animation: animate-width 1000ms linear;\n animation: animate-width 1000ms linear;\n}\n\n.animation-duration-100 {\n -webkit-animation-duration: 100ms !important;\n animation-duration: 100ms !important;\n}\n\n.animation-duration-150 {\n -webkit-animation-duration: 150ms !important;\n animation-duration: 150ms !important;\n}\n\n.animation-duration-200 {\n -webkit-animation-duration: 200ms !important;\n animation-duration: 200ms !important;\n}\n\n.animation-duration-300 {\n -webkit-animation-duration: 300ms !important;\n animation-duration: 300ms !important;\n}\n\n.animation-duration-400 {\n -webkit-animation-duration: 400ms !important;\n animation-duration: 400ms !important;\n}\n\n.animation-duration-500 {\n -webkit-animation-duration: 500ms !important;\n animation-duration: 500ms !important;\n}\n\n.animation-duration-1000 {\n -webkit-animation-duration: 1000ms !important;\n animation-duration: 1000ms !important;\n}\n\n.animation-duration-2000 {\n -webkit-animation-duration: 2000ms !important;\n animation-duration: 2000ms !important;\n}\n\n.animation-duration-3000 {\n -webkit-animation-duration: 3000ms !important;\n animation-duration: 3000ms !important;\n}\n\n.animation-delay-100 {\n -webkit-animation-delay: 100ms !important;\n animation-delay: 100ms !important;\n}\n\n.animation-delay-150 {\n -webkit-animation-delay: 150ms !important;\n animation-delay: 150ms !important;\n}\n\n.animation-delay-200 {\n -webkit-animation-delay: 200ms !important;\n animation-delay: 200ms !important;\n}\n\n.animation-delay-300 {\n -webkit-animation-delay: 300ms !important;\n animation-delay: 300ms !important;\n}\n\n.animation-delay-400 {\n -webkit-animation-delay: 400ms !important;\n animation-delay: 400ms !important;\n}\n\n.animation-delay-500 {\n -webkit-animation-delay: 500ms !important;\n animation-delay: 500ms !important;\n}\n\n.animation-delay-1000 {\n -webkit-animation-delay: 1000ms !important;\n animation-delay: 1000ms !important;\n}\n\n.animation-iteration-1 {\n -webkit-animation-iteration-count: 1 !important;\n animation-iteration-count: 1 !important;\n}\n\n.animation-iteration-2 {\n -webkit-animation-iteration-count: 2 !important;\n animation-iteration-count: 2 !important;\n}\n\n.animation-iteration-infinite {\n -webkit-animation-iteration-count: infinite !important;\n animation-iteration-count: infinite !important;\n}\n\n.animation-linear {\n -webkit-animation-timing-function: linear !important;\n animation-timing-function: linear !important;\n}\n\n.animation-ease-in {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.animation-ease-out {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.animation-ease-in-out {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.animation-fill-none {\n -webkit-animation-fill-mode: none !important;\n animation-fill-mode: none !important;\n}\n\n.animation-fill-forwards {\n -webkit-animation-fill-mode: forwards !important;\n animation-fill-mode: forwards !important;\n}\n\n.animation-fill-backwards {\n -webkit-animation-fill-mode: backwards !important;\n animation-fill-mode: backwards !important;\n}\n\n.animation-fill-both {\n -webkit-animation-fill-mode: both !important;\n animation-fill-mode: both !important;\n}\n", ""]);
  21272. // Exports
  21273. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21274. /***/ }),
  21275. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css":
  21276. /*!********************************************************************************************************************************************************************************!*\
  21277. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css ***!
  21278. \********************************************************************************************************************************************************************************/
  21279. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21280. "use strict";
  21281. __webpack_require__.r(__webpack_exports__);
  21282. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21283. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21284. /* harmony export */ });
  21285. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21286. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21287. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21288. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21289. /* harmony import */ var _fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/primeicons.eot */ "./node_modules/primeicons/fonts/primeicons.eot");
  21290. /* harmony import */ var _fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/primeicons.ttf */ "./node_modules/primeicons/fonts/primeicons.ttf");
  21291. /* harmony import */ var _fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/primeicons.woff */ "./node_modules/primeicons/fonts/primeicons.woff");
  21292. /* harmony import */ var _fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/primeicons.svg */ "./node_modules/primeicons/fonts/primeicons.svg");
  21293. // Imports
  21294. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21295. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21296. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"], { hash: "?#iefix" });
  21297. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21298. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21299. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__["default"], { hash: "?#primeicons" });
  21300. // Module
  21301. ___CSS_LOADER_EXPORT___.push([module.id, "@font-face {\n font-family: 'primeicons';\n font-display: block;\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format('embedded-opentype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format('truetype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format('woff'), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n.pi {\n font-family: 'primeicons';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n display: inline-block;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.pi:before {\n --webkit-backface-visibility:hidden;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.pi-fw {\n width: 1.28571429em;\n text-align: center;\n}\n\n.pi-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n.pi-sort-alt-slash:before {\n content: \"\\e9ee\";\n}\n\n.pi-arrows-h:before {\n content: \"\\e9ec\";\n}\n\n.pi-arrows-v:before {\n content: \"\\e9ed\";\n}\n\n.pi-pound:before {\n content: \"\\e9eb\";\n}\n\n.pi-prime:before {\n content: \"\\e9ea\";\n}\n\n.pi-chart-pie:before {\n content: \"\\e9e9\";\n}\n\n.pi-reddit:before {\n content: \"\\e9e8\";\n}\n\n.pi-code:before {\n content: \"\\e9e7\";\n}\n\n.pi-sync:before {\n content: \"\\e9e6\";\n}\n\n.pi-shopping-bag:before {\n content: \"\\e9e5\";\n}\n\n.pi-server:before {\n content: \"\\e9e4\";\n}\n\n.pi-database:before {\n content: \"\\e9e3\";\n}\n\n.pi-hashtag:before {\n content: \"\\e9e2\";\n}\n\n.pi-bookmark-fill:before {\n content: \"\\e9df\";\n}\n\n.pi-filter-fill:before {\n content: \"\\e9e0\";\n}\n\n.pi-heart-fill:before {\n content: \"\\e9e1\";\n}\n\n.pi-flag-fill:before {\n content: \"\\e9de\";\n}\n\n.pi-circle:before {\n content: \"\\e9dc\";\n}\n\n.pi-circle-fill:before {\n content: \"\\e9dd\";\n}\n\n.pi-bolt:before {\n content: \"\\e9db\";\n}\n\n.pi-history:before {\n content: \"\\e9da\";\n}\n\n.pi-box:before {\n content: \"\\e9d9\";\n}\n\n.pi-at:before {\n content: \"\\e9d8\";\n}\n\n.pi-arrow-up-right:before {\n content: \"\\e9d4\";\n}\n\n.pi-arrow-up-left:before {\n content: \"\\e9d5\";\n}\n\n.pi-arrow-down-left:before {\n content: \"\\e9d6\";\n}\n\n.pi-arrow-down-right:before {\n content: \"\\e9d7\";\n}\n\n.pi-telegram:before {\n content: \"\\e9d3\";\n}\n\n.pi-stop-circle:before {\n content: \"\\e9d2\";\n}\n\n.pi-stop:before {\n content: \"\\e9d1\";\n}\n\n.pi-whatsapp:before {\n content: \"\\e9d0\";\n}\n\n.pi-building:before {\n content: \"\\e9cf\";\n}\n\n.pi-qrcode:before {\n content: \"\\e9ce\";\n}\n\n.pi-car:before {\n content: \"\\e9cd\";\n}\n\n.pi-instagram:before {\n content: \"\\e9cc\";\n}\n\n.pi-linkedin:before {\n content: \"\\e9cb\";\n}\n\n.pi-send:before {\n content: \"\\e9ca\";\n}\n\n.pi-slack:before {\n content: \"\\e9c9\";\n}\n\n.pi-sun:before {\n content: \"\\e9c8\";\n}\n\n.pi-moon:before {\n content: \"\\e9c7\";\n}\n\n.pi-vimeo:before {\n content: \"\\e9c6\";\n}\n\n.pi-youtube:before {\n content: \"\\e9c5\";\n}\n\n.pi-flag:before {\n content: \"\\e9c4\";\n}\n\n.pi-wallet:before {\n content: \"\\e9c3\";\n}\n\n.pi-map:before {\n content: \"\\e9c2\";\n}\n\n.pi-link:before {\n content: \"\\e9c1\";\n}\n\n.pi-credit-card:before {\n content: \"\\e9bf\";\n}\n\n.pi-discord:before {\n content: \"\\e9c0\";\n}\n\n.pi-percentage:before {\n content: \"\\e9be\";\n}\n\n.pi-euro:before {\n content: \"\\e9bd\";\n}\n\n.pi-book:before {\n content: \"\\e9ba\";\n}\n\n.pi-shield:before {\n content: \"\\e9b9\";\n}\n\n.pi-paypal:before {\n content: \"\\e9bb\";\n}\n\n.pi-amazon:before {\n content: \"\\e9bc\";\n}\n\n.pi-phone:before {\n content: \"\\e9b8\";\n}\n\n.pi-filter-slash:before {\n content: \"\\e9b7\";\n}\n\n.pi-facebook:before {\n content: \"\\e9b4\";\n}\n\n.pi-github:before {\n content: \"\\e9b5\";\n}\n\n.pi-twitter:before {\n content: \"\\e9b6\";\n}\n\n.pi-step-backward-alt:before {\n content: \"\\e9ac\";\n}\n\n.pi-step-forward-alt:before {\n content: \"\\e9ad\";\n}\n\n.pi-forward:before {\n content: \"\\e9ae\";\n}\n\n.pi-backward:before {\n content: \"\\e9af\";\n}\n\n.pi-fast-backward:before {\n content: \"\\e9b0\";\n}\n\n.pi-fast-forward:before {\n content: \"\\e9b1\";\n}\n\n.pi-pause:before {\n content: \"\\e9b2\";\n}\n\n.pi-play:before {\n content: \"\\e9b3\";\n}\n\n.pi-compass:before {\n content: \"\\e9ab\";\n}\n\n.pi-id-card:before {\n content: \"\\e9aa\";\n}\n\n.pi-ticket:before {\n content: \"\\e9a9\";\n}\n\n.pi-file-o:before {\n content: \"\\e9a8\";\n}\n\n.pi-reply:before {\n content: \"\\e9a7\";\n}\n\n.pi-directions-alt:before {\n content: \"\\e9a5\";\n}\n\n.pi-directions:before {\n content: \"\\e9a6\";\n}\n\n.pi-thumbs-up:before {\n content: \"\\e9a3\";\n}\n\n.pi-thumbs-down:before {\n content: \"\\e9a4\";\n}\n\n.pi-sort-numeric-down-alt:before {\n content: \"\\e996\";\n}\n\n.pi-sort-numeric-up-alt:before {\n content: \"\\e997\";\n}\n\n.pi-sort-alpha-down-alt:before {\n content: \"\\e998\";\n}\n\n.pi-sort-alpha-up-alt:before {\n content: \"\\e999\";\n}\n\n.pi-sort-numeric-down:before {\n content: \"\\e99a\";\n}\n\n.pi-sort-numeric-up:before {\n content: \"\\e99b\";\n}\n\n.pi-sort-alpha-down:before {\n content: \"\\e99c\";\n}\n\n.pi-sort-alpha-up:before {\n content: \"\\e99d\";\n}\n\n.pi-sort-alt:before {\n content: \"\\e99e\";\n}\n\n.pi-sort-amount-up:before {\n content: \"\\e99f\";\n}\n\n.pi-sort-amount-down:before {\n content: \"\\e9a0\";\n}\n\n.pi-sort-amount-down-alt:before {\n content: \"\\e9a1\";\n}\n\n.pi-sort-amount-up-alt:before {\n content: \"\\e9a2\";\n}\n\n.pi-palette:before {\n content: \"\\e995\";\n}\n\n.pi-undo:before {\n content: \"\\e994\";\n}\n\n.pi-desktop:before {\n content: \"\\e993\";\n}\n\n.pi-sliders-v:before {\n content: \"\\e991\";\n}\n\n.pi-sliders-h:before {\n content: \"\\e992\";\n}\n\n.pi-search-plus:before {\n content: \"\\e98f\";\n}\n\n.pi-search-minus:before {\n content: \"\\e990\";\n}\n\n.pi-file-excel:before {\n content: \"\\e98e\";\n}\n\n.pi-file-pdf:before {\n content: \"\\e98d\";\n}\n\n.pi-check-square:before {\n content: \"\\e98c\";\n}\n\n.pi-chart-line:before {\n content: \"\\e98b\";\n}\n\n.pi-user-edit:before {\n content: \"\\e98a\";\n}\n\n.pi-exclamation-circle:before {\n content: \"\\e989\";\n}\n\n.pi-android:before {\n content: \"\\e985\";\n}\n\n.pi-google:before {\n content: \"\\e986\";\n}\n\n.pi-apple:before {\n content: \"\\e987\";\n}\n\n.pi-microsoft:before {\n content: \"\\e988\";\n}\n\n.pi-heart:before {\n content: \"\\e984\";\n}\n\n.pi-mobile:before {\n content: \"\\e982\";\n}\n\n.pi-tablet:before {\n content: \"\\e983\";\n}\n\n.pi-key:before {\n content: \"\\e981\";\n}\n\n.pi-shopping-cart:before {\n content: \"\\e980\";\n}\n\n.pi-comments:before {\n content: \"\\e97e\";\n}\n\n.pi-comment:before {\n content: \"\\e97f\";\n}\n\n.pi-briefcase:before {\n content: \"\\e97d\";\n}\n\n.pi-bell:before {\n content: \"\\e97c\";\n}\n\n.pi-paperclip:before {\n content: \"\\e97b\";\n}\n\n.pi-share-alt:before {\n content: \"\\e97a\";\n}\n\n.pi-envelope:before {\n content: \"\\e979\";\n}\n\n.pi-volume-down:before {\n content: \"\\e976\";\n}\n\n.pi-volume-up:before {\n content: \"\\e977\";\n}\n\n.pi-volume-off:before {\n content: \"\\e978\";\n}\n\n.pi-eject:before {\n content: \"\\e975\";\n}\n\n.pi-money-bill:before {\n content: \"\\e974\";\n}\n\n.pi-images:before {\n content: \"\\e973\";\n}\n\n.pi-image:before {\n content: \"\\e972\";\n}\n\n.pi-sign-in:before {\n content: \"\\e970\";\n}\n\n.pi-sign-out:before {\n content: \"\\e971\";\n}\n\n.pi-wifi:before {\n content: \"\\e96f\";\n}\n\n.pi-sitemap:before {\n content: \"\\e96e\";\n}\n\n.pi-chart-bar:before {\n content: \"\\e96d\";\n}\n\n.pi-camera:before {\n content: \"\\e96c\";\n}\n\n.pi-dollar:before {\n content: \"\\e96b\";\n}\n\n.pi-lock-open:before {\n content: \"\\e96a\";\n}\n\n.pi-table:before {\n content: \"\\e969\";\n}\n\n.pi-map-marker:before {\n content: \"\\e968\";\n}\n\n.pi-list:before {\n content: \"\\e967\";\n}\n\n.pi-eye-slash:before {\n content: \"\\e965\";\n}\n\n.pi-eye:before {\n content: \"\\e966\";\n}\n\n.pi-folder-open:before {\n content: \"\\e964\";\n}\n\n.pi-folder:before {\n content: \"\\e963\";\n}\n\n.pi-video:before {\n content: \"\\e962\";\n}\n\n.pi-inbox:before {\n content: \"\\e961\";\n}\n\n.pi-lock:before {\n content: \"\\e95f\";\n}\n\n.pi-unlock:before {\n content: \"\\e960\";\n}\n\n.pi-tags:before {\n content: \"\\e95d\";\n}\n\n.pi-tag:before {\n content: \"\\e95e\";\n}\n\n.pi-power-off:before {\n content: \"\\e95c\";\n}\n\n.pi-save:before {\n content: \"\\e95b\";\n}\n\n.pi-question-circle:before {\n content: \"\\e959\";\n}\n\n.pi-question:before {\n content: \"\\e95a\";\n}\n\n.pi-copy:before {\n content: \"\\e957\";\n}\n\n.pi-file:before {\n content: \"\\e958\";\n}\n\n.pi-clone:before {\n content: \"\\e955\";\n}\n\n.pi-calendar-times:before {\n content: \"\\e952\";\n}\n\n.pi-calendar-minus:before {\n content: \"\\e953\";\n}\n\n.pi-calendar-plus:before {\n content: \"\\e954\";\n}\n\n.pi-ellipsis-v:before {\n content: \"\\e950\";\n}\n\n.pi-ellipsis-h:before {\n content: \"\\e951\";\n}\n\n.pi-bookmark:before {\n content: \"\\e94e\";\n}\n\n.pi-globe:before {\n content: \"\\e94f\";\n}\n\n.pi-replay:before {\n content: \"\\e94d\";\n}\n\n.pi-filter:before {\n content: \"\\e94c\";\n}\n\n.pi-print:before {\n content: \"\\e94b\";\n}\n\n.pi-align-right:before {\n content: \"\\e946\";\n}\n\n.pi-align-left:before {\n content: \"\\e947\";\n}\n\n.pi-align-center:before {\n content: \"\\e948\";\n}\n\n.pi-align-justify:before {\n content: \"\\e949\";\n}\n\n.pi-cog:before {\n content: \"\\e94a\";\n}\n\n.pi-cloud-download:before {\n content: \"\\e943\";\n}\n\n.pi-cloud-upload:before {\n content: \"\\e944\";\n}\n\n.pi-cloud:before {\n content: \"\\e945\";\n}\n\n.pi-pencil:before {\n content: \"\\e942\";\n}\n\n.pi-users:before {\n content: \"\\e941\";\n}\n\n.pi-clock:before {\n content: \"\\e940\";\n}\n\n.pi-user-minus:before {\n content: \"\\e93e\";\n}\n\n.pi-user-plus:before {\n content: \"\\e93f\";\n}\n\n.pi-trash:before {\n content: \"\\e93d\";\n}\n\n.pi-external-link:before {\n content: \"\\e93c\";\n}\n\n.pi-window-maximize:before {\n content: \"\\e93b\";\n}\n\n.pi-window-minimize:before {\n content: \"\\e93a\";\n}\n\n.pi-refresh:before {\n content: \"\\e938\";\n}\n \n.pi-user:before {\n content: \"\\e939\";\n}\n\n.pi-exclamation-triangle:before {\n content: \"\\e922\";\n}\n\n.pi-calendar:before {\n content: \"\\e927\";\n}\n\n.pi-chevron-circle-left:before {\n content: \"\\e928\";\n}\n\n.pi-chevron-circle-down:before {\n content: \"\\e929\";\n}\n\n.pi-chevron-circle-right:before {\n content: \"\\e92a\";\n}\n\n.pi-chevron-circle-up:before {\n content: \"\\e92b\";\n}\n\n.pi-angle-double-down:before {\n content: \"\\e92c\";\n}\n\n.pi-angle-double-left:before {\n content: \"\\e92d\";\n}\n\n.pi-angle-double-right:before {\n content: \"\\e92e\";\n}\n\n.pi-angle-double-up:before {\n content: \"\\e92f\";\n}\n\n.pi-angle-down:before {\n content: \"\\e930\";\n}\n\n.pi-angle-left:before {\n content: \"\\e931\";\n}\n\n.pi-angle-right:before {\n content: \"\\e932\";\n}\n\n.pi-angle-up:before {\n content: \"\\e933\";\n}\n\n.pi-upload:before {\n content: \"\\e934\";\n}\n\n.pi-download:before {\n content: \"\\e956\";\n}\n\n.pi-ban:before {\n content: \"\\e935\";\n}\n\n.pi-star-fill:before {\n content: \"\\e936\";\n}\n\n.pi-star:before {\n content: \"\\e937\";\n}\n\n.pi-chevron-left:before {\n content: \"\\e900\";\n}\n\n.pi-chevron-right:before {\n content: \"\\e901\";\n}\n\n.pi-chevron-down:before {\n content: \"\\e902\";\n}\n\n.pi-chevron-up:before {\n content: \"\\e903\";\n}\n\n.pi-caret-left:before {\n content: \"\\e904\";\n}\n\n.pi-caret-right:before {\n content: \"\\e905\";\n}\n\n.pi-caret-down:before {\n content: \"\\e906\";\n}\n\n.pi-caret-up:before {\n content: \"\\e907\";\n}\n\n.pi-search:before {\n content: \"\\e908\";\n}\n\n.pi-check:before {\n content: \"\\e909\";\n}\n\n.pi-check-circle:before {\n content: \"\\e90a\";\n}\n\n.pi-times:before {\n content: \"\\e90b\";\n}\n\n.pi-times-circle:before {\n content: \"\\e90c\";\n}\n\n.pi-plus:before {\n content: \"\\e90d\";\n}\n\n.pi-plus-circle:before {\n content: \"\\e90e\";\n}\n\n.pi-minus:before {\n content: \"\\e90f\";\n}\n\n.pi-minus-circle:before {\n content: \"\\e910\";\n}\n\n.pi-circle-on:before {\n content: \"\\e911\";\n}\n\n.pi-circle-off:before {\n content: \"\\e912\";\n}\n\n.pi-sort-down:before {\n content: \"\\e913\";\n}\n\n.pi-sort-up:before {\n content: \"\\e914\";\n}\n\n.pi-sort:before {\n content: \"\\e915\";\n}\n\n.pi-step-backward:before {\n content: \"\\e916\";\n}\n\n.pi-step-forward:before {\n content: \"\\e917\";\n}\n\n.pi-th-large:before {\n content: \"\\e918\";\n}\n\n.pi-arrow-down:before {\n content: \"\\e919\";\n}\n\n.pi-arrow-left:before {\n content: \"\\e91a\";\n}\n\n.pi-arrow-right:before {\n content: \"\\e91b\";\n}\n\n.pi-arrow-up:before {\n content: \"\\e91c\";\n}\n\n.pi-bars:before {\n content: \"\\e91d\";\n}\n\n.pi-arrow-circle-down:before {\n content: \"\\e91e\";\n}\n\n.pi-arrow-circle-left:before {\n content: \"\\e91f\";\n}\n\n.pi-arrow-circle-right:before {\n content: \"\\e920\";\n}\n\n.pi-arrow-circle-up:before {\n content: \"\\e921\";\n}\n\n.pi-info:before {\n content: \"\\e923\";\n}\n\n.pi-info-circle:before {\n content: \"\\e924\";\n}\n\n.pi-home:before {\n content: \"\\e925\";\n}\n\n.pi-spinner:before {\n content: \"\\e926\";\n}\n", ""]);
  21302. // Exports
  21303. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21304. /***/ }),
  21305. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css":
  21306. /*!******************************************************************************************************************************************************************************************!*\
  21307. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css ***!
  21308. \******************************************************************************************************************************************************************************************/
  21309. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21310. "use strict";
  21311. __webpack_require__.r(__webpack_exports__);
  21312. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21313. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21314. /* harmony export */ });
  21315. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21316. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21317. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21318. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21319. /* harmony import */ var _images_color_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./images/color.png */ "./node_modules/primevue/resources/images/color.png");
  21320. /* harmony import */ var _images_hue_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./images/hue.png */ "./node_modules/primevue/resources/images/hue.png");
  21321. // Imports
  21322. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21323. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_color_png__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21324. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_hue_png__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21325. // Module
  21326. ___CSS_LOADER_EXPORT___.push([module.id, ".p-component,.p-component *{box-sizing:border-box}.p-hidden{display:none}.p-hidden-space{visibility:hidden}.p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.p-hidden-accessible input,.p-hidden-accessible select{transform:scale(0)}.p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.p-disabled,.p-disabled *{cursor:default !important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.p-overflow-hidden{overflow:hidden}.p-unselectable-text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@-webkit-keyframes p-fadein{0%{opacity:0}100%{opacity:1}}@keyframes p-fadein{0%{opacity:0}100%{opacity:1}}input[type=\"button\"],input[type=\"submit\"],input[type=\"reset\"],input[type=\"file\"]::-webkit-file-upload-button,button{border-radius:0}.p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-link:disabled{cursor:default}.p-connected-overlay{opacity:0;transform:scaleY(0.8);transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-visible{opacity:1;transform:scaleY(1)}.p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}.p-connected-overlay-enter-from{opacity:0;transform:scaleY(0.8)}.p-connected-overlay-leave-to{opacity:0}.p-connected-overlay-enter-active{transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-leave-active{transition:opacity .1s linear}.p-toggleable-content-enter-from,.p-toggleable-content-leave-to{max-height:0}.p-toggleable-content-enter-to,.p-toggleable-content-leave-from{max-height:1000px}.p-toggleable-content-leave-active{overflow:hidden;transition:max-height .45s cubic-bezier(0,1,0,1)}.p-toggleable-content-enter-active{overflow:hidden;transition:max-height 1s ease-in-out}.p-sr-only{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}.p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}.p-overlay-badge{position:relative}.p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}.p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}.p-badge-no-gutter{padding:0;border-radius:50%}.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}.p-button-label{transition:all .2s}.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-box{display:flex;justify-content:center;align-items:center}.p-colorpicker-panel .p-colorpicker-color{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat left top}.p-colorpicker-panel .p-colorpicker-hue{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat left top}.p-inputtext{margin:0}.p-fluid .p-inputtext{width:100%}.p-inputgroup{display:flex;align-items:stretch;width:100%}.p-inputgroup-addon{display:flex;align-items:center;justify-content:center}.p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}.p-inputgroup .p-inputtext,.p-fluid .p-inputgroup .p-inputtext,.p-inputgroup .p-inputwrapper,.p-fluid .p-inputgroup .p-input{flex:1 1 auto;width:1%}.p-float-label{display:block;position:relative}.p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}.p-float-label textarea ~ label{top:1rem}.p-float-label input:focus ~ label,.p-float-label input.p-filled ~ label,.p-float-label textarea:focus ~ label,.p-float-label textarea.p-filled ~ label,.p-float-label .p-inputwrapper-focus ~ label,.p-float-label .p-inputwrapper-filled ~ label{top:-.75rem;font-size:12px}.p-float-label .input:-webkit-autofill ~ label{top:-20px;font-size:12px}.p-input-icon-left,.p-input-icon-right{position:relative;display:inline-block}.p-input-icon-left>i,.p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-input-icon-left,.p-fluid .p-input-icon-right{display:block;width:100%}.p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom}.p-radiobutton-box{display:flex;justify-content:center;align-items:center}.p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}.p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1.0,1.0);visibility:visible}.p-ripple{overflow:hidden;position:relative}.p-ink{display:block;position:absolute;background:rgba(255,255,255,0.5);border-radius:100%;transform:scale(0);pointer-events:none}.p-ink-active{-webkit-animation:ripple .4s linear;animation:ripple .4s linear}.p-ripple-disabled .p-ink{display:none !important}@-webkit-keyframes ripple{100%{opacity:0;transform:scale(2.5)}}@keyframes ripple{100%{opacity:0;transform:scale(2.5)}}.p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}.p-tooltip.p-tooltip-right,.p-tooltip.p-tooltip-left{padding:0 .25rem}.p-tooltip.p-tooltip-top,.p-tooltip.p-tooltip-bottom{padding:.25em 0}.p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}.p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}.p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}.p-tooltip.p-tooltip-top{padding:.25em 0}.p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}.p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}", ""]);
  21327. // Exports
  21328. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21329. /***/ }),
  21330. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  21331. /*!*********************************************************************************************************************************************************************************************************!*\
  21332. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  21333. \*********************************************************************************************************************************************************************************************************/
  21334. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21335. "use strict";
  21336. __webpack_require__.r(__webpack_exports__);
  21337. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21338. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21339. /* harmony export */ });
  21340. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21341. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21342. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21343. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21344. /* harmony import */ var _fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/Inter-Light.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2");
  21345. /* harmony import */ var _fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/Inter-Light.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff");
  21346. /* harmony import */ var _fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2");
  21347. /* harmony import */ var _fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff");
  21348. /* harmony import */ var _fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2");
  21349. /* harmony import */ var _fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff");
  21350. /* harmony import */ var _fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2");
  21351. /* harmony import */ var _fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff");
  21352. /* harmony import */ var _fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2");
  21353. /* harmony import */ var _fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff");
  21354. // Imports
  21355. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21356. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21357. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21358. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21359. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__["default"]);
  21360. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__["default"]);
  21361. var ___CSS_LOADER_URL_REPLACEMENT_5___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__["default"]);
  21362. var ___CSS_LOADER_URL_REPLACEMENT_6___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__["default"]);
  21363. var ___CSS_LOADER_URL_REPLACEMENT_7___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__["default"]);
  21364. var ___CSS_LOADER_URL_REPLACEMENT_8___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__["default"]);
  21365. var ___CSS_LOADER_URL_REPLACEMENT_9___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__["default"]);
  21366. // Module
  21367. ___CSS_LOADER_EXPORT___.push([module.id, ":root {\n --surface-a:#ffffff;\n --surface-b:#fafafa;\n --surface-c:#f4f4f5;\n --surface-d:#e5e7eb;\n --surface-e:#ffffff;\n --surface-f:#ffffff;\n --text-color:#3f3f46;\n --text-color-secondary:#71717A;\n --primary-color:#4F46E5;\n --primary-color-text:#ffffff;\n --font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n --surface-0: #ffffff;\n --surface-50: #FAFAFA;\n --surface-100: #F4F4F5;\n --surface-200: #E4E4E7;\n --surface-300: #D4D4D8;\n --surface-400: #A1A1AA;\n --surface-500: #71717A;\n --surface-600: #52525B;\n --surface-700: #3F3F46;\n --surface-800: #27272A;\n --surface-900: #18181B;\n --gray-50: #FAFAFA;\n --gray-100: #F4F4F5;\n --gray-200: #E4E4E7;\n --gray-300: #D4D4D8;\n --gray-400: #A1A1AA;\n --gray-500: #71717A;\n --gray-600: #52525B;\n --gray-700: #3F3F46;\n --gray-800: #27272A;\n --gray-900: #18181B;\n --content-padding:1.25rem;\n --inline-spacing:0.5rem;\n --border-radius:0.375rem;\n --surface-ground:#FAFAFA;\n --surface-section:#ffffff;\n --surface-card:#ffffff;\n --surface-overlay:#ffffff;\n --surface-border:#e5e7eb;\n --surface-hover: #f4f4f5;\n --focus-ring: 0 0 0 1px #6366F1;\n --maskbg: rgba(0, 0, 0, 0.4);\n}\n\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 300;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 500;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_5___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 600;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_6___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_7___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 700;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_8___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_9___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n* {\n box-sizing: border-box;\n}\n\n.p-component {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: normal;\n}\n\n.p-component-overlay {\n background-color: rgba(0, 0, 0, 0.4);\n transition-duration: 0.2s;\n}\n\n.p-disabled, .p-component:disabled {\n opacity: 0.6;\n}\n\n.p-error {\n color: #e24c4c;\n}\n\n.p-text-secondary {\n color: #71717A;\n}\n\n.pi {\n font-size: 1rem;\n}\n\n.p-link {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n border-radius: 0.375rem;\n}\n.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-component-overlay-enter {\n -webkit-animation: p-component-overlay-enter-animation 150ms forwards;\n animation: p-component-overlay-enter-animation 150ms forwards;\n}\n\n.p-component-overlay-leave {\n -webkit-animation: p-component-overlay-leave-animation 150ms forwards;\n animation: p-component-overlay-leave-animation 150ms forwards;\n}\n\n@-webkit-keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n\n@keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n@-webkit-keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n@keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n\n:root {\n --blue-50:#f5f9ff;\n --blue-100:#d0e1fd;\n --blue-200:#abc9fb;\n --blue-300:#85b2f9;\n --blue-400:#609af8;\n --blue-500:#3b82f6;\n --blue-600:#326fd1;\n --blue-700:#295bac;\n --blue-800:#204887;\n --blue-900:#183462;\n --green-50:#f4fcf7;\n --green-100:#caf1d8;\n --green-200:#a0e6ba;\n --green-300:#76db9b;\n --green-400:#4cd07d;\n --green-500:#22c55e;\n --green-600:#1da750;\n --green-700:#188a42;\n --green-800:#136c34;\n --green-900:#0e4f26;\n --yellow-50:#fefbf3;\n --yellow-100:#faedc4;\n --yellow-200:#f6de95;\n --yellow-300:#f2d066;\n --yellow-400:#eec137;\n --yellow-500:#eab308;\n --yellow-600:#c79807;\n --yellow-700:#a47d06;\n --yellow-800:#816204;\n --yellow-900:#5e4803;\n --cyan-50:#f3fbfd;\n --cyan-100:#c3edf5;\n --cyan-200:#94e0ed;\n --cyan-300:#65d2e4;\n --cyan-400:#35c4dc;\n --cyan-500:#06b6d4;\n --cyan-600:#059bb4;\n --cyan-700:#047f94;\n --cyan-800:#036475;\n --cyan-900:#024955;\n --pink-50:#fef6fa;\n --pink-100:#fad3e7;\n --pink-200:#f7b0d3;\n --pink-300:#f38ec0;\n --pink-400:#f06bac;\n --pink-500:#ec4899;\n --pink-600:#c93d82;\n --pink-700:#a5326b;\n --pink-800:#822854;\n --pink-900:#5e1d3d;\n --indigo-50:#f7f7fe;\n --indigo-100:#dadafc;\n --indigo-200:#bcbdf9;\n --indigo-300:#9ea0f6;\n --indigo-400:#8183f4;\n --indigo-500:#6366f1;\n --indigo-600:#5457cd;\n --indigo-700:#4547a9;\n --indigo-800:#363885;\n --indigo-900:#282960;\n --teal-50:#f3fbfb;\n --teal-100:#c7eeea;\n --teal-200:#9ae0d9;\n --teal-300:#6dd3c8;\n --teal-400:#41c5b7;\n --teal-500:#14b8a6;\n --teal-600:#119c8d;\n --teal-700:#0e8174;\n --teal-800:#0b655b;\n --teal-900:#084a42;\n --orange-50:#fff8f3;\n --orange-100:#feddc7;\n --orange-200:#fcc39b;\n --orange-300:#fba86f;\n --orange-400:#fa8e42;\n --orange-500:#f97316;\n --orange-600:#d46213;\n --orange-700:#ae510f;\n --orange-800:#893f0c;\n --orange-900:#642e09;\n --bluegray-50:#f7f8f9;\n --bluegray-100:#dadee3;\n --bluegray-200:#bcc3cd;\n --bluegray-300:#9fa9b7;\n --bluegray-400:#818ea1;\n --bluegray-500:#64748b;\n --bluegray-600:#556376;\n --bluegray-700:#465161;\n --bluegray-800:#37404c;\n --bluegray-900:#282e38;\n --purple-50:#fbf7ff;\n --purple-100:#ead6fd;\n --purple-200:#dab6fc;\n --purple-300:#c996fa;\n --purple-400:#b975f9;\n --purple-500:#a855f7;\n --purple-600:#8f48d2;\n --purple-700:#763cad;\n --purple-800:#5c2f88;\n --purple-900:#432263;\n --red-50:#fef6f6;\n --red-100:#fbd2d2;\n --red-200:#f8afaf;\n --red-300:#f58b8b;\n --red-400:#f26868;\n --red-500:#ef4444;\n --red-600:#cb3a3a;\n --red-700:#a73030;\n --red-800:#832525;\n --red-900:#601b1b;\n}\n\n.p-autocomplete .p-autocomplete-loader {\n right: 0.75rem;\n}\n.p-autocomplete.p-autocomplete-dd .p-autocomplete-loader {\n right: 3.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token {\n padding: 0.375rem 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon {\n margin-left: 0.5rem;\n}\n.p-autocomplete.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-autocomplete-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-autocomplete-panel .p-autocomplete-items {\n padding: 0.25rem 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n\n.p-calendar.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-datepicker {\n padding: 0.5rem;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-datepicker:not(.p-datepicker-inline) {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {\n background: #ffffff;\n}\n.p-datepicker .p-datepicker-header {\n padding: 0.5rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n margin: 0;\n border-bottom: 1px solid #e5e7eb;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev,\n.p-datepicker .p-datepicker-header .p-datepicker-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,\n.p-datepicker .p-datepicker-header .p-datepicker-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title {\n line-height: 2rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n color: #3f3f46;\n transition: none;\n font-weight: 600;\n padding: 0.5rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month:enabled:hover {\n color: #4F46E5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n margin-right: 0.5rem;\n}\n.p-datepicker table {\n font-size: 1rem;\n margin: 0.5rem 0;\n}\n.p-datepicker table th {\n padding: 0.5rem;\n}\n.p-datepicker table th > span {\n width: 2.5rem;\n height: 2.5rem;\n}\n.p-datepicker table td {\n padding: 0.5rem;\n}\n.p-datepicker table td > span {\n width: 2.5rem;\n height: 2.5rem;\n border-radius: 50%;\n transition: none;\n border: 1px solid transparent;\n}\n.p-datepicker table td > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker table td > span:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker table td.p-datepicker-today > span {\n background: #d4d4d8;\n color: #3f3f46;\n border-color: transparent;\n}\n.p-datepicker table td.p-datepicker-today > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-datepicker-buttonbar {\n padding: 1rem 0;\n border-top: 1px solid #f3f4f6;\n}\n.p-datepicker .p-datepicker-buttonbar .p-button {\n width: auto;\n}\n.p-datepicker .p-timepicker {\n border-top: 1px solid #f3f4f6;\n padding: 0.5rem;\n}\n.p-datepicker .p-timepicker button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-timepicker button:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-timepicker button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-timepicker button:last-child {\n margin-top: 0.2em;\n}\n.p-datepicker .p-timepicker span {\n font-size: 1.25rem;\n}\n.p-datepicker .p-timepicker > div {\n padding: 0 0.5rem;\n}\n.p-datepicker.p-datepicker-timeonly .p-timepicker {\n border-top: 0 none;\n}\n.p-datepicker .p-monthpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-yearpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group {\n border-left: 1px solid #f3f4f6;\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n padding-top: 0;\n padding-bottom: 0;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {\n padding-left: 0;\n border-left: 0 none;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {\n padding-right: 0;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n@media screen and (max-width: 769px) {\n .p-datepicker table th, .p-datepicker table td {\n padding: 0;\n }\n}\n.p-cascadeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-cascadeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-cascadeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-cascadeselect .p-cascadeselect-label {\n background: transparent;\n border: 0 none;\n padding: 0.75rem 0.75rem;\n}\n.p-cascadeselect .p-cascadeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-cascadeselect .p-cascadeselect-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-cascadeselect .p-cascadeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-cascadeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-cascadeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-cascadeselect-panel .p-cascadeselect-items {\n padding: 0.25rem 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item {\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content {\n padding: 0.75rem 1rem;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-group-icon {\n font-size: 0.875rem;\n}\n\n.p-input-filled .p-cascadeselect {\n background: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-checkbox {\n width: 16px;\n height: 16px;\n}\n.p-checkbox .p-checkbox-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-checkbox .p-checkbox-box .p-checkbox-icon {\n transition-duration: 0.2s;\n color: #ffffff;\n font-size: 10px;\n}\n.p-checkbox .p-checkbox-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n border-color: #d4d4d8;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-checkbox.p-invalid > .p-checkbox-box {\n border-color: #f0a9a7;\n}\n\n.p-input-filled .p-checkbox .p-checkbox-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n background: #4F46E5;\n}\n\n.p-chips .p-chips-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-chips .p-chips-multiple-container .p-chips-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {\n margin-left: 0.5rem;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token {\n padding: 0.375rem 0;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-chips.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-colorpicker-preview {\n width: 2rem;\n height: 2rem;\n}\n\n.p-colorpicker-panel {\n background: #27272A;\n border: 1px solid #18181B;\n}\n.p-colorpicker-panel .p-colorpicker-color-handle,\n.p-colorpicker-panel .p-colorpicker-hue-handle {\n border-color: #ffffff;\n}\n\n.p-colorpicker-overlay-panel {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n\n.p-dropdown {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-dropdown:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-dropdown:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-dropdown.p-dropdown-clearable .p-dropdown-label {\n padding-right: 1.75rem;\n}\n.p-dropdown .p-dropdown-label {\n background: transparent;\n border: 0 none;\n}\n.p-dropdown .p-dropdown-label.p-placeholder {\n color: #71717A;\n}\n.p-dropdown .p-dropdown-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-dropdown .p-dropdown-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-dropdown .p-dropdown-clear-icon {\n color: #71717A;\n right: 3rem;\n}\n.p-dropdown.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-dropdown-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-dropdown-panel .p-dropdown-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {\n padding-right: 1.75rem;\n margin-right: -1.75rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-dropdown-panel .p-dropdown-items {\n padding: 0.25rem 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-dropdown {\n background: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus .p-inputtext {\n background-color: transparent;\n}\n\n.p-editor-container .p-editor-toolbar {\n background: #fafafa;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-toolbar.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {\n stroke: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {\n fill: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {\n border: 0 none;\n color: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n padding: 0.25rem 0;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {\n padding: 0.75rem 1rem;\n}\n.p-editor-container .p-editor-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-content.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-content .ql-editor {\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover,\n.p-editor-container .ql-snow.ql-toolbar button:focus {\n color: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected {\n color: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {\n stroke: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {\n fill: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {\n color: #4F46E5;\n}\n\n.p-inputgroup-addon {\n background: #fafafa;\n color: #71717A;\n border-top: 1px solid #d4d4d8;\n border-left: 1px solid #d4d4d8;\n border-bottom: 1px solid #d4d4d8;\n padding: 0.75rem 0.75rem;\n min-width: 3rem;\n}\n.p-inputgroup-addon:last-child {\n border-right: 1px solid #d4d4d8;\n}\n\n.p-inputgroup > .p-component,\n.p-inputgroup > .p-inputwrapper > .p-inputtext,\n.p-inputgroup > .p-float-label > .p-component {\n border-radius: 0;\n margin: 0;\n}\n.p-inputgroup > .p-component + .p-inputgroup-addon,\n.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,\n.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {\n border-left: 0 none;\n}\n.p-inputgroup > .p-component:focus,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,\n.p-inputgroup > .p-float-label > .p-component:focus {\n z-index: 1;\n}\n.p-inputgroup > .p-component:focus ~ label,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label,\n.p-inputgroup > .p-float-label > .p-component:focus ~ label {\n z-index: 1;\n}\n\n.p-inputgroup-addon:first-child,\n.p-inputgroup button:first-child,\n.p-inputgroup input:first-child,\n.p-inputgroup > .p-inputwrapper:first-child,\n.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:first-child input {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup-addon:last-child,\n.p-inputgroup button:last-child,\n.p-inputgroup input:last-child,\n.p-inputgroup > .p-inputwrapper:last-child,\n.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:last-child input {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-fluid .p-inputgroup .p-button {\n width: auto;\n}\n.p-fluid .p-inputgroup .p-button.p-button-icon-only {\n width: 3rem;\n}\n\n.p-inputnumber.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-inputswitch {\n width: 3rem;\n height: 1.75rem;\n}\n.p-inputswitch .p-inputswitch-slider {\n background: #d4d4d8;\n transition: none;\n border-radius: 30px;\n}\n.p-inputswitch .p-inputswitch-slider:before {\n background: #ffffff;\n width: 1.25rem;\n height: 1.25rem;\n left: 0.25rem;\n margin-top: -0.625rem;\n border-radius: 50%;\n transition-duration: 0.2s;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n transform: translateX(1.25rem);\n}\n.p-inputswitch.p-focus .p-inputswitch-slider {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {\n background: #bebec4;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {\n background: #4F46E5;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n background: #ffffff;\n}\n.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {\n background: #4338CA;\n}\n.p-inputswitch.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-inputtext {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n background: #ffffff;\n padding: 0.75rem 0.75rem;\n border: 1px solid #d4d4d8;\n transition: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 0.375rem;\n}\n.p-inputtext:enabled:hover {\n border-color: #d4d4d8;\n}\n.p-inputtext:enabled:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-inputtext.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n.p-inputtext.p-inputtext-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n.p-inputtext.p-inputtext-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-float-label > label {\n left: 0.75rem;\n color: #71717A;\n transition-duration: 0.2s;\n}\n\n.p-input-icon-left > i:first-of-type {\n left: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-left > .p-inputtext {\n padding-left: 2.5rem;\n}\n\n.p-input-icon-left.p-float-label > label {\n left: 2.5rem;\n}\n\n.p-input-icon-right > i:last-of-type {\n right: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-right > .p-inputtext {\n padding-right: 2.5rem;\n}\n\n::-webkit-input-placeholder {\n color: #71717A;\n}\n\n:-moz-placeholder {\n color: #71717A;\n}\n\n::-moz-placeholder {\n color: #71717A;\n}\n\n:-ms-input-placeholder {\n color: #71717A;\n}\n\n.p-input-filled .p-inputtext {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:focus {\n background-color: #ffffff;\n}\n\n.p-inputtext-sm .p-inputtext {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n\n.p-inputtext-lg .p-inputtext {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-listbox {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter {\n padding-right: 1.75rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-listbox .p-listbox-list {\n padding: 0.25rem 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n transition: none;\n border-radius: 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-listbox .p-listbox-list .p-listbox-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-listbox .p-listbox-list .p-listbox-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-listbox .p-listbox-list .p-listbox-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-listbox.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-multiselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-multiselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-multiselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-multiselect .p-multiselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-multiselect .p-multiselect-label.p-placeholder {\n color: #71717A;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {\n margin-left: 0.5rem;\n}\n.p-multiselect .p-multiselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-multiselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-multiselect.p-multiselect-chip .p-multiselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-multiselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-multiselect-panel .p-multiselect-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {\n padding-right: 1.75rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-multiselect-panel .p-multiselect-header .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close {\n margin-left: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items {\n padding: 0.25rem 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-multiselect {\n background: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-password.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-password-panel {\n padding: 1.25rem;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-password-panel .p-password-meter {\n margin-bottom: 0.5rem;\n background: #e5e7eb;\n}\n.p-password-panel .p-password-meter .p-password-strength.weak {\n background: #EF4444;\n}\n.p-password-panel .p-password-meter .p-password-strength.medium {\n background: #F59E0B;\n}\n.p-password-panel .p-password-meter .p-password-strength.strong {\n background: #22C55E;\n}\n\n.p-radiobutton {\n width: 16px;\n height: 16px;\n}\n.p-radiobutton .p-radiobutton-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 50%;\n transition: none;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {\n border-color: #d4d4d8;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {\n width: 6px;\n height: 6px;\n transition-duration: 0.2s;\n background-color: #ffffff;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-radiobutton.p-invalid > .p-radiobutton-box {\n border-color: #f0a9a7;\n}\n.p-radiobutton:focus {\n outline: 0 none;\n}\n\n.p-input-filled .p-radiobutton .p-radiobutton-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n background: #4F46E5;\n}\n\n.p-rating .p-rating-icon {\n color: #3f3f46;\n margin-left: 0.5rem;\n transition: none;\n font-size: 1.143rem;\n}\n.p-rating .p-rating-icon.p-rating-cancel {\n color: #EF4444;\n}\n.p-rating .p-rating-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-rating .p-rating-icon:first-child {\n margin-left: 0;\n}\n.p-rating .p-rating-icon.pi-star-fill {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {\n color: #DC2626;\n}\n\n.p-selectbutton .p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-selectbutton .p-button .p-button-icon-left,\n.p-selectbutton .p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-slider {\n background: #e5e7eb;\n border: 0 none;\n border-radius: 0.375rem;\n}\n.p-slider.p-slider-horizontal {\n height: 0.286rem;\n}\n.p-slider.p-slider-horizontal .p-slider-handle {\n margin-top: -0.5715rem;\n margin-left: -0.5715rem;\n}\n.p-slider.p-slider-vertical {\n width: 0.286rem;\n}\n.p-slider.p-slider-vertical .p-slider-handle {\n margin-left: -0.5715rem;\n margin-bottom: -0.5715rem;\n}\n.p-slider .p-slider-handle {\n height: 1.143rem;\n width: 1.143rem;\n background: #ffffff;\n border: 2px solid #4F46E5;\n border-radius: 50%;\n transition: none;\n}\n.p-slider .p-slider-handle:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-slider .p-slider-range {\n background: #4F46E5;\n}\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n\n.p-treeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-treeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-treeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-treeselect .p-treeselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-treeselect .p-treeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-treeselect.p-treeselect-chip .p-treeselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-treeselect .p-treeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-treeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-treeselect.p-treeselect-chip .p-treeselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-treeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-tree {\n border: 0 none;\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-treeselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-treeselect {\n background: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-togglebutton.p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-togglebutton.p-button .p-button-icon-left,\n.p-togglebutton.p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n padding: 0.75rem 1rem;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button.p-button-outlined {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined.p-button-plain {\n color: #71717A;\n border-color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button.p-button-text {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text.p-button-plain {\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-button .p-button-icon-left {\n margin-right: 0.5rem;\n}\n.p-button .p-button-icon-right {\n margin-left: 0.5rem;\n}\n.p-button .p-button-icon-bottom {\n margin-top: 0.5rem;\n}\n.p-button .p-button-icon-top {\n margin-bottom: 0.5rem;\n}\n.p-button .p-badge {\n margin-left: 0.5rem;\n min-width: 1rem;\n height: 1rem;\n line-height: 1rem;\n color: #4F46E5;\n background-color: #ffffff;\n}\n.p-button.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-button.p-button-rounded {\n border-radius: 2rem;\n}\n.p-button.p-button-icon-only {\n width: 3rem;\n padding: 0.75rem 0;\n}\n.p-button.p-button-icon-only .p-button-icon-left,\n.p-button.p-button-icon-only .p-button-icon-right {\n margin: 0;\n}\n.p-button.p-button-icon-only.p-button-rounded {\n border-radius: 50%;\n height: 3rem;\n}\n.p-button.p-button-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-button.p-button-sm .p-button-icon {\n font-size: 0.875rem;\n}\n.p-button.p-button-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-button.p-button-lg .p-button-icon {\n font-size: 1.25rem;\n}\n.p-button.p-button-loading-label-only .p-button-label {\n margin-left: 0.5rem;\n}\n.p-button.p-button-loading-label-only .p-button-loading-icon {\n margin-right: 0;\n}\n\n.p-fluid .p-button {\n width: 100%;\n}\n.p-fluid .p-button-icon-only {\n width: 3rem;\n}\n.p-fluid .p-buttonset {\n display: flex;\n}\n.p-fluid .p-buttonset .p-button {\n flex: 1;\n}\n\n.p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {\n color: #ffffff;\n background: #64748B;\n border: 1px solid #64748B;\n}\n.p-button.p-button-secondary:enabled:hover, .p-buttonset.p-button-secondary > .p-button:enabled:hover, .p-splitbutton.p-button-secondary > .p-button:enabled:hover {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary:enabled:focus, .p-buttonset.p-button-secondary > .p-button:enabled:focus, .p-splitbutton.p-button-secondary > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #c0c7d2;\n}\n.p-button.p-button-secondary:enabled:active, .p-buttonset.p-button-secondary > .p-button:enabled:active, .p-splitbutton.p-button-secondary > .p-button:enabled:active {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-button.p-button-secondary.p-button-text:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-button.p-button-secondary.p-button-text:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {\n color: #ffffff;\n background: #3B82F6;\n border: 1px solid #3B82F6;\n}\n.p-button.p-button-info:enabled:hover, .p-buttonset.p-button-info > .p-button:enabled:hover, .p-splitbutton.p-button-info > .p-button:enabled:hover {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info:enabled:focus, .p-buttonset.p-button-info > .p-button:enabled:focus, .p-splitbutton.p-button-info > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #b1cdfb;\n}\n.p-button.p-button-info:enabled:active, .p-buttonset.p-button-info > .p-button:enabled:active, .p-splitbutton.p-button-info > .p-button:enabled:active {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-button.p-button-info.p-button-text:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-button.p-button-info.p-button-text:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {\n color: #ffffff;\n background: #22C55E;\n border: 1px solid #22C55E;\n}\n.p-button.p-button-success:enabled:hover, .p-buttonset.p-button-success > .p-button:enabled:hover, .p-splitbutton.p-button-success > .p-button:enabled:hover {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success:enabled:focus, .p-buttonset.p-button-success > .p-button:enabled:focus, .p-splitbutton.p-button-success > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #a0efbd;\n}\n.p-button.p-button-success:enabled:active, .p-buttonset.p-button-success > .p-button:enabled:active, .p-splitbutton.p-button-success > .p-button:enabled:active {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-button.p-button-success.p-button-text:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-button.p-button-success.p-button-text:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {\n color: #ffffff;\n background: #F59E0B;\n border: 1px solid #F59E0B;\n}\n.p-button.p-button-warning:enabled:hover, .p-buttonset.p-button-warning > .p-button:enabled:hover, .p-splitbutton.p-button-warning > .p-button:enabled:hover {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning:enabled:focus, .p-buttonset.p-button-warning > .p-button:enabled:focus, .p-splitbutton.p-button-warning > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #fbd89d;\n}\n.p-button.p-button-warning:enabled:active, .p-buttonset.p-button-warning > .p-button:enabled:active, .p-splitbutton.p-button-warning > .p-button:enabled:active {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-button.p-button-warning.p-button-text:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-button.p-button-warning.p-button-text:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {\n color: #ffffff;\n background: #A855F7;\n border: 1px solid #A855F7;\n}\n.p-button.p-button-help:enabled:hover, .p-buttonset.p-button-help > .p-button:enabled:hover, .p-splitbutton.p-button-help > .p-button:enabled:hover {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help:enabled:focus, .p-buttonset.p-button-help > .p-button:enabled:focus, .p-splitbutton.p-button-help > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #dcbbfc;\n}\n.p-button.p-button-help:enabled:active, .p-buttonset.p-button-help > .p-button:enabled:active, .p-splitbutton.p-button-help > .p-button:enabled:active {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-button.p-button-help.p-button-text:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-button.p-button-help.p-button-text:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {\n color: #ffffff;\n background: #EF4444;\n border: 1px solid #EF4444;\n}\n.p-button.p-button-danger:enabled:hover, .p-buttonset.p-button-danger > .p-button:enabled:hover, .p-splitbutton.p-button-danger > .p-button:enabled:hover {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger:enabled:focus, .p-buttonset.p-button-danger > .p-button:enabled:focus, .p-splitbutton.p-button-danger > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #f9b4b4;\n}\n.p-button.p-button-danger:enabled:active, .p-buttonset.p-button-danger > .p-button:enabled:active, .p-splitbutton.p-button-danger > .p-button:enabled:active {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-button.p-button-danger.p-button-text:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-button.p-button-danger.p-button-text:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-button.p-button-link {\n color: #4F46E5;\n background: transparent;\n border: transparent;\n}\n.p-button.p-button-link:enabled:hover {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:hover .p-button-label {\n text-decoration: underline;\n}\n.p-button.p-button-link:enabled:focus {\n background: transparent;\n box-shadow: 0 0 0 0.2rem #6366F1;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:active {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n\n.p-speeddial-button.p-button.p-button-icon-only {\n width: 4rem;\n height: 4rem;\n}\n.p-speeddial-button.p-button.p-button-icon-only .p-button-icon {\n font-size: 1.3rem;\n}\n\n.p-speeddial-action {\n width: 3rem;\n height: 3rem;\n background: #3f3f46;\n color: #fff;\n}\n.p-speeddial-action:hover {\n background: #27272A;\n color: #fff;\n}\n\n.p-speeddial-direction-up .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-up .p-speeddial-item:first-child {\n margin-bottom: 0.5rem;\n}\n\n.p-speeddial-direction-down .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-down .p-speeddial-item:first-child {\n margin-top: 0.5rem;\n}\n\n.p-speeddial-direction-left .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-left .p-speeddial-item:first-child {\n margin-right: 0.5rem;\n}\n\n.p-speeddial-direction-right .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-right .p-speeddial-item:first-child {\n margin-left: 0.5rem;\n}\n\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n margin: 0;\n}\n.p-speeddial-circle .p-speeddial-item:first-child, .p-speeddial-circle .p-speeddial-item:last-child,\n.p-speeddial-semi-circle .p-speeddial-item:first-child,\n.p-speeddial-semi-circle .p-speeddial-item:last-child,\n.p-speeddial-quarter-circle .p-speeddial-item:first-child,\n.p-speeddial-quarter-circle .p-speeddial-item:last-child {\n margin: 0;\n}\n\n.p-speeddial-mask {\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.p-splitbutton {\n border-radius: 0.375rem;\n}\n.p-splitbutton.p-button-outlined > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button {\n color: #71717A;\n border-color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-text > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button {\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-splitbutton.p-button-rounded {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-rounded > .p-button {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-sm > .p-button {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-splitbutton.p-button-sm > .p-button .p-button-icon {\n font-size: 0.875rem;\n}\n.p-splitbutton.p-button-lg > .p-button {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-splitbutton.p-button-lg > .p-button .p-button-icon {\n font-size: 1.25rem;\n}\n\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-splitbutton.p-button-info.p-button-outlined > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-splitbutton.p-button-success.p-button-outlined > .p-button {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-splitbutton.p-button-help.p-button-outlined > .p-button {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-carousel .p-carousel-content .p-carousel-prev,\n.p-carousel .p-carousel-content .p-carousel-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin: 0.5rem;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,\n.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:focus,\n.p-carousel .p-carousel-content .p-carousel-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-carousel .p-carousel-indicators {\n padding: 1rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator {\n margin-right: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button {\n background-color: #f4f4f5;\n width: 2rem;\n height: 0.5rem;\n transition: none;\n border-radius: 0;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button:hover {\n background: #e5e7eb;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n\n.p-datatable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-datatable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-datatable .p-datatable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-datatable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-datatable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover {\n background: #f4f4f5;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column:focus {\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n outline: 0 none;\n}\n.p-datatable .p-datatable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {\n margin-right: 0.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n font-weight: 500;\n}\n.p-datatable .p-datatable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-datatable .p-datatable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #EEF2FF;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #EEF2FF;\n}\n.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-datatable .p-datatable-scrollable-header,\n.p-datatable .p-datatable-scrollable-footer {\n background: #fafafa;\n}\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-thead,\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tfoot {\n background-color: #fafafa;\n}\n.p-datatable .p-datatable-loading-icon {\n font-size: 2rem;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-top {\n border-width: 0 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n border-width: 1px 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {\n border-top-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {\n background: #fcfcfc;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler {\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover {\n color: #312E81;\n}\n.p-datatable.p-datatable-sm .p-datatable-header {\n padding: 0.625rem 0.625rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-dataview .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-dataview-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-dataview .p-dataview-content {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n padding: 0;\n}\n.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {\n border: solid #f4f4f5;\n border-width: 0 0 1px 0;\n}\n.p-dataview .p-dataview-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n border-bottom-left-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-column-filter-row .p-column-filter-menu-button,\n.p-column-filter-row .p-column-filter-clear-button {\n margin-left: 0.5rem;\n}\n\n.p-column-filter-menu-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-menu-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-open, .p-column-filter-menu-button.p-column-filter-menu-button-open:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-active, .p-column-filter-menu-button.p-column-filter-menu-button-active:hover {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-column-filter-menu-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-clear-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-clear-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-clear-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-overlay {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n min-width: 12.5rem;\n}\n.p-column-filter-overlay .p-column-filter-row-items {\n padding: 0.25rem 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-column-filter-overlay-menu .p-column-filter-operator {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint {\n padding: 1.25rem;\n border-bottom: 1px solid #f3f4f6;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-matchmode-dropdown {\n margin-bottom: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-remove-button {\n margin-top: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint:last-child {\n border-bottom: 0 none;\n}\n.p-column-filter-overlay-menu .p-column-filter-add-rule {\n padding: 0.75rem 1.25rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-buttonbar {\n padding: 1.25rem;\n}\n\n.fc {\n /* FullCalendar 4 */\n /* FullCalendar 5 */\n}\n.fc.fc-unthemed .fc-view-container th {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-widget-content {\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-head-container {\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-view {\n background: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-row {\n border-right: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-event {\n background: #4F46E5;\n border: 1px solid #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-divider {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-scrollgrid {\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness th {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness td {\n color: #3f3f46;\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-view {\n background: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover {\n background: none;\n border: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close {\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n font-family: \"PrimeIcons\" !important;\n font-size: 1rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:before {\n content: \"\\e90b\";\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-body {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event {\n color: #ffffff;\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event .fc-event-main {\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event .fc-daygrid-event-dot {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-cell-shaded {\n background: #fafafa;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:disabled {\n opacity: 0.6;\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:not(:disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n\n.p-orderlist .p-orderlist-controls {\n padding: 1.25rem;\n}\n.p-orderlist .p-orderlist-controls .p-button {\n margin-bottom: 0.5rem;\n}\n.p-orderlist .p-orderlist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i {\n color: #6f91ff;\n}\n.p-organizationchart .p-organizationchart-line-down {\n background: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-left {\n border-right: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-top {\n border-top: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-node-content {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler {\n background: inherit;\n color: inherit;\n border-radius: 50%;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-paginator {\n background: #ffffff;\n color: #71717A;\n border: solid #f4f4f5;\n border-width: 0;\n padding: 0.75rem 1.5rem;\n border-radius: 0.375rem;\n}\n.p-paginator .p-paginator-first,\n.p-paginator .p-paginator-prev,\n.p-paginator .p-paginator-next,\n.p-paginator .p-paginator-last {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-paginator .p-paginator-first {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-paginator .p-paginator-last {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-paginator .p-dropdown {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n height: 3rem;\n}\n.p-paginator .p-dropdown .p-dropdown-label {\n padding-right: 0;\n}\n.p-paginator .p-paginator-page-input {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.p-paginator .p-paginator-page-input .p-inputtext {\n max-width: 3rem;\n}\n.p-paginator .p-paginator-current {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n padding: 0 0.5rem;\n}\n.p-paginator .p-paginator-pages .p-paginator-page {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n background: #EEF2FF;\n border-color: #EEF2FF;\n color: #312E81;\n}\n.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n\n.p-picklist .p-picklist-buttons {\n padding: 1.25rem;\n}\n.p-picklist .p-picklist-buttons .p-button {\n margin-bottom: 0.5rem;\n}\n.p-picklist .p-picklist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list .p-picklist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-picklist .p-picklist-list .p-picklist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-picklist .p-picklist-list .p-picklist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-timeline .p-timeline-event-marker {\n border: 2px solid #4F46E5;\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n background-color: #ffffff;\n}\n.p-timeline .p-timeline-event-connector {\n background-color: #e5e7eb;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-opposite,\n.p-timeline.p-timeline-vertical .p-timeline-event-content {\n padding: 0 1rem;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-connector {\n width: 2px;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-opposite,\n.p-timeline.p-timeline-horizontal .p-timeline-event-content {\n padding: 1rem 0;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-connector {\n height: 2px;\n}\n\n.p-tree {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-tree .p-tree-container .p-treenode {\n padding: 0.143rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content {\n border-radius: 0.375rem;\n transition: none;\n padding: 0;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {\n margin-right: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {\n margin-right: 0.5rem;\n color: #71717A;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler:hover,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon:hover {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-tree .p-tree-filter-container {\n margin-bottom: 0.5rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter {\n width: 100%;\n padding-right: 1.75rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-tree .p-treenode-children {\n padding: 0 0 0 1rem;\n}\n.p-tree .p-tree-loading-icon {\n font-size: 2rem;\n}\n\n.p-treetable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-treetable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-treetable .p-treetable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-treetable .p-sortable-column {\n outline-color: #6366F1;\n}\n.p-treetable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-treetable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-treetable .p-treetable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-treetable .p-treetable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-treetable .p-treetable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {\n color: #312E81;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {\n color: #3f3f46;\n}\n.p-treetable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-treetable .p-treetable-scrollable-header,\n.p-treetable .p-treetable-scrollable-footer {\n background: #fafafa;\n}\n.p-treetable .p-treetable-loading-icon {\n font-size: 2rem;\n}\n.p-treetable.p-treetable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-top {\n border-width: 0 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-sm .p-treetable-header {\n padding: 1.09375rem 1.09375rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-accordion .p-accordion-header .p-accordion-header-link {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon {\n margin-right: 0.5rem;\n}\n.p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab {\n margin-bottom: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-header .p-accordion-header-link {\n border-radius: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-content {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link, .p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:first-child .p-accordion-header .p-accordion-header-link {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-header-link {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-card {\n background: #ffffff;\n color: #3f3f46;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n border-radius: 0.375rem;\n}\n.p-card .p-card-body {\n padding: 1.25rem;\n}\n.p-card .p-card-title {\n font-size: 1.5rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n}\n.p-card .p-card-subtitle {\n font-weight: 400;\n margin-bottom: 0.5rem;\n color: #71717A;\n}\n.p-card .p-card-content {\n padding: 1.25rem 0;\n}\n.p-card .p-card-footer {\n padding: 1.25rem 0 0 0;\n}\n\n.p-fieldset {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-radius: 0.375rem;\n}\n.p-fieldset .p-fieldset-legend {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {\n padding: 0;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {\n padding: 1.25rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {\n margin-right: 0.5rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:hover {\n color: #18181B;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #18181B;\n}\n.p-fieldset .p-fieldset-content {\n padding: 1.25rem;\n}\n\n.p-divider .p-divider-content {\n background-color: #ffffff;\n}\n.p-divider.p-divider-horizontal {\n margin: 1rem 0;\n padding: 0 1rem;\n}\n.p-divider.p-divider-horizontal:before {\n border-top: 1px #e5e7eb;\n}\n.p-divider.p-divider-horizontal .p-divider-content {\n padding: 0 0.5rem;\n}\n.p-divider.p-divider-vertical {\n margin: 0 1rem;\n padding: 1rem 0;\n}\n.p-divider.p-divider-vertical:before {\n border-left: 1px #e5e7eb;\n}\n.p-divider.p-divider-vertical .p-divider-content {\n padding: 0.5rem 0;\n}\n\n.p-panel .p-panel-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panel .p-panel-header .p-panel-title {\n font-weight: 700;\n}\n.p-panel .p-panel-header .p-panel-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-panel .p-panel-header .p-panel-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panel.p-panel-toggleable .p-panel-header {\n padding: 0.75rem 1.25rem;\n}\n.p-panel .p-panel-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-top: 0 none;\n}\n.p-panel .p-panel-footer {\n padding: 0.75rem 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n\n.p-scrollpanel .p-scrollpanel-bar {\n background: #fafafa;\n border: 0 none;\n}\n\n.p-splitter {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n border-radius: 0.375rem;\n color: #3f3f46;\n}\n.p-splitter .p-splitter-gutter {\n transition: none;\n background: #fafafa;\n}\n.p-splitter .p-splitter-gutter .p-splitter-gutter-handle {\n background: #e5e7eb;\n}\n.p-splitter .p-splitter-gutter-resizing {\n background: #e5e7eb;\n}\n\n.p-tabview .p-tabview-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabview .p-tabview-nav li {\n margin-right: 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n.p-tabview .p-tabview-nav-btn.p-link {\n background: #ffffff;\n color: #4F46E5;\n width: 3rem;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n border-radius: 0;\n}\n.p-tabview .p-tabview-nav-btn.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-panels {\n background: #ffffff;\n padding: 1.25rem;\n border: 0 none;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-toolbar {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-toolbar .p-toolbar-separator {\n margin: 0 0.5rem;\n}\n\n.p-confirm-popup {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-confirm-popup .p-confirm-popup-content {\n padding: 1.25rem;\n}\n.p-confirm-popup .p-confirm-popup-footer {\n text-align: right;\n padding: 0 1rem 1rem 1rem;\n}\n.p-confirm-popup .p-confirm-popup-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-confirm-popup .p-confirm-popup-footer button:last-child {\n margin: 0;\n}\n.p-confirm-popup:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-top-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-top-color: #ffffff;\n}\n.p-confirm-popup .p-confirm-popup-icon {\n font-size: 1.5rem;\n}\n.p-confirm-popup .p-confirm-popup-message {\n margin-left: 1rem;\n}\n\n.p-dialog {\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border: 0 none;\n}\n.p-dialog .p-dialog-header {\n border-bottom: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.5rem;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-header .p-dialog-title {\n font-weight: 600;\n font-size: 1.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:last-child {\n margin-right: 0;\n}\n.p-dialog .p-dialog-content {\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n}\n.p-dialog .p-dialog-footer {\n border-top: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n text-align: right;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-icon {\n font-size: 2rem;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-message {\n margin-left: 1rem;\n}\n\n.p-overlaypanel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-overlaypanel .p-overlaypanel-content {\n padding: 1.25rem;\n}\n.p-overlaypanel .p-overlaypanel-close {\n background: #4F46E5;\n color: #ffffff;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n position: absolute;\n top: -1rem;\n right: -1rem;\n}\n.p-overlaypanel .p-overlaypanel-close:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n}\n.p-overlaypanel:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:after {\n border-top-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:before {\n border-top-color: #ffffff;\n}\n\n.p-sidebar {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-sidebar .p-sidebar-header {\n padding: 1.25rem;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close,\n.p-sidebar .p-sidebar-header .p-sidebar-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:focus,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-sidebar .p-sidebar-header + .p-sidebar-content {\n padding-top: 0;\n}\n.p-sidebar .p-sidebar-content {\n padding: 1.25rem;\n}\n\n.p-tooltip .p-tooltip-text {\n background: #3f3f46;\n color: #ffffff;\n padding: 0.75rem 0.75rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-tooltip.p-tooltip-right .p-tooltip-arrow {\n border-right-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-left .p-tooltip-arrow {\n border-left-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-top .p-tooltip-arrow {\n border-top-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {\n border-bottom-color: #3f3f46;\n}\n\n.p-fileupload .p-fileupload-buttonbar {\n background: #fafafa;\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button {\n margin-right: 0.5rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fileupload .p-fileupload-content {\n background: #ffffff;\n padding: 2rem 1rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-fileupload .p-progressbar {\n height: 0.25rem;\n}\n.p-fileupload .p-fileupload-row > div {\n padding: 1rem 1.5rem;\n}\n.p-fileupload.p-fileupload-advanced .p-message {\n margin-top: 0;\n}\n\n.p-fileupload-choose:not(.p-disabled):hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-fileupload-choose:not(.p-disabled):active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n\n.p-breadcrumb {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n padding: 1rem;\n}\n.p-breadcrumb ul li .p-menuitem-link {\n transition: none;\n border-radius: 0.375rem;\n}\n.p-breadcrumb ul li .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n}\n.p-breadcrumb ul li.p-breadcrumb-chevron {\n margin: 0 0.5rem 0 0.5rem;\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-icon {\n color: #71717A;\n}\n\n.p-contextmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-contextmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-contextmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-contextmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-dock .p-dock-list-container {\n background: rgba(255, 255, 255, 0.1);\n border: 1px solid rgba(255, 255, 255, 0.2);\n padding: 0.5rem 0.5rem;\n border-radius: 0.5rem;\n}\n.p-dock .p-dock-item {\n padding: 0.5rem;\n}\n.p-dock .p-dock-action {\n width: 4rem;\n height: 4rem;\n}\n.p-dock.p-dock-top .p-dock-item-second-prev,\n.p-dock.p-dock-top .p-dock-item-second-next, .p-dock.p-dock-bottom .p-dock-item-second-prev,\n.p-dock.p-dock-bottom .p-dock-item-second-next {\n margin: 0 0.9rem;\n}\n.p-dock.p-dock-top .p-dock-item-prev,\n.p-dock.p-dock-top .p-dock-item-next, .p-dock.p-dock-bottom .p-dock-item-prev,\n.p-dock.p-dock-bottom .p-dock-item-next {\n margin: 0 1.3rem;\n}\n.p-dock.p-dock-top .p-dock-item-current, .p-dock.p-dock-bottom .p-dock-item-current {\n margin: 0 1.5rem;\n}\n.p-dock.p-dock-left .p-dock-item-second-prev,\n.p-dock.p-dock-left .p-dock-item-second-next, .p-dock.p-dock-right .p-dock-item-second-prev,\n.p-dock.p-dock-right .p-dock-item-second-next {\n margin: 0.9rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-prev,\n.p-dock.p-dock-left .p-dock-item-next, .p-dock.p-dock-right .p-dock-item-prev,\n.p-dock.p-dock-right .p-dock-item-next {\n margin: 1.3rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-current, .p-dock.p-dock-right .p-dock-item-current {\n margin: 1.5rem 0;\n}\n\n@media screen and (max-width: 960px) {\n .p-dock.p-dock-top .p-dock-list-container, .p-dock.p-dock-bottom .p-dock-list-container {\n overflow-x: auto;\n width: 100%;\n }\n .p-dock.p-dock-top .p-dock-list-container .p-dock-list, .p-dock.p-dock-bottom .p-dock-list-container .p-dock-list {\n margin: 0 auto;\n }\n .p-dock.p-dock-left .p-dock-list-container, .p-dock.p-dock-right .p-dock-list-container {\n overflow-y: auto;\n height: 100%;\n }\n .p-dock.p-dock-left .p-dock-list-container .p-dock-list, .p-dock.p-dock-right .p-dock-list-container .p-dock-list {\n margin: auto 0;\n }\n .p-dock .p-dock-list .p-dock-item {\n transform: none;\n margin: 0;\n }\n}\n.p-megamenu {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-megamenu .p-megamenu-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-submenu {\n padding: 0.25rem 0;\n width: 12.5rem;\n}\n.p-megamenu .p-megamenu-submenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu.p-megamenu-vertical {\n width: 12.5rem;\n padding: 0.25rem 0;\n}\n\n.p-menu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-menu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menu.p-menu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-menu .p-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.p-menu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-menubar {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-menubar .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 12.5rem;\n}\n.p-menubar .p-submenu-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-menubar .p-submenu-list .p-submenu-icon {\n font-size: 0.875rem;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n\n@media screen and (max-width: 960px) {\n .p-menubar {\n position: relative;\n }\n .p-menubar .p-menubar-button {\n display: flex;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border-radius: 50%;\n transition: none;\n }\n .p-menubar .p-menubar-button:hover {\n color: #71717A;\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n }\n .p-menubar .p-menubar-root-list {\n position: absolute;\n display: none;\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 100%;\n }\n .p-menubar .p-menubar-root-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n }\n .p-menubar .p-menubar-root-list .p-submenu-icon {\n font-size: 0.875rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {\n margin-left: auto;\n transition: transform 0.2s;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list {\n width: 100%;\n position: static;\n box-shadow: none;\n border: 0 none;\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon {\n transition: transform 0.2s;\n transform: rotate(90deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-90deg);\n }\n .p-menubar .p-menubar-root-list .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list ul li a {\n padding-left: 2.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li a {\n padding-left: 3.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li a {\n padding-left: 5.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li a {\n padding-left: 6.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {\n padding-left: 8.25rem;\n }\n .p-menubar.p-menubar-mobile-active .p-menubar-root-list {\n display: flex;\n flex-direction: column;\n top: 100%;\n left: 0;\n z-index: 1;\n }\n}\n.p-panelmenu .p-panelmenu-header > a {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight > a {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content {\n padding: 0.25rem 0;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n margin-bottom: 0;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) {\n padding: 0 0 0 1rem;\n}\n.p-panelmenu .p-panelmenu-panel {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-steps .p-steps-item .p-menuitem-link {\n background: transparent;\n transition: none;\n border-radius: 0.375rem;\n background: #ffffff;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-number {\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n background: #ffffff;\n min-width: 2rem;\n height: 2rem;\n line-height: 2rem;\n font-size: 1.143rem;\n z-index: 1;\n border-radius: 50%;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-title {\n margin-top: 0.5rem;\n color: #71717A;\n}\n.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-number {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-title {\n font-weight: 600;\n color: #3f3f46;\n}\n.p-steps .p-steps-item:before {\n content: \" \";\n border-top: 1px solid #f3f4f6;\n width: 100%;\n top: 50%;\n left: 0;\n display: block;\n position: absolute;\n margin-top: -1rem;\n}\n\n.p-tabmenu .p-tabmenu-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {\n margin-right: 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n\n.p-tieredmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-tieredmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-tieredmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tieredmenu.p-tieredmenu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-tieredmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-inline-message {\n padding: 0.75rem 0.75rem;\n margin: 0;\n border-radius: 0.375rem;\n}\n.p-inline-message.p-inline-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0px;\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-info .p-inline-message-icon {\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0px;\n color: #059669;\n}\n.p-inline-message.p-inline-message-success .p-inline-message-icon {\n color: #059669;\n}\n.p-inline-message.p-inline-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #D97706;\n}\n.p-inline-message.p-inline-message-warn .p-inline-message-icon {\n color: #D97706;\n}\n.p-inline-message.p-inline-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #DC2626;\n}\n.p-inline-message.p-inline-message-error .p-inline-message-icon {\n color: #DC2626;\n}\n.p-inline-message .p-inline-message-icon {\n font-size: 1rem;\n margin-right: 0.5rem;\n}\n.p-inline-message .p-inline-message-text {\n font-size: 1rem;\n}\n.p-inline-message.p-inline-message-icon-only .p-inline-message-icon {\n margin-right: 0;\n}\n\n.p-message {\n margin: 1rem 0;\n border-radius: 0.375rem;\n}\n.p-message .p-message-wrapper {\n padding: 1.25rem 1.75rem;\n}\n.p-message .p-message-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-message .p-message-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-message .p-message-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-message.p-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-icon {\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-close {\n color: #2563EB;\n}\n.p-message.p-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-message.p-message-success .p-message-icon {\n color: #059669;\n}\n.p-message.p-message-success .p-message-close {\n color: #059669;\n}\n.p-message.p-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-icon {\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-close {\n color: #D97706;\n}\n.p-message.p-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-icon {\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-close {\n color: #DC2626;\n}\n.p-message .p-message-text {\n font-size: 1rem;\n font-weight: 500;\n}\n.p-message .p-message-icon {\n font-size: 1.5rem;\n margin-right: 0.5rem;\n}\n\n.p-toast {\n opacity: 0.9;\n}\n.p-toast .p-toast-message {\n margin: 0 0 1rem 0;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border-radius: 0.375rem;\n}\n.p-toast .p-toast-message .p-toast-message-content {\n padding: 1rem;\n border-width: 0 0 0 6px;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {\n margin: 0 0 0 1rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon {\n font-size: 2rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-summary {\n font-weight: 700;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {\n margin: 0.5rem 0 0 0;\n}\n.p-toast .p-toast-message .p-toast-icon-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-toast .p-toast-message .p-toast-icon-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-toast .p-toast-message .p-toast-icon-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-toast .p-toast-message.p-toast-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close {\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close {\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close {\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close {\n color: #DC2626;\n}\n\n.p-galleria .p-galleria-close {\n margin: 0.5rem;\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-close .p-galleria-close-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-close:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-item-nav {\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 0.375rem;\n margin: 0 0.5rem;\n}\n.p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon,\n.p-galleria .p-galleria-item-nav .p-galleria-item-next-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-caption {\n background: rgba(0, 0, 0, 0.5);\n color: #fafafa;\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators {\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button {\n background-color: #f4f4f5;\n width: 1rem;\n height: 1rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button:hover {\n background: #e5e7eb;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator {\n margin-right: 0.5rem;\n}\n.p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator {\n margin-bottom: 0.5rem;\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators {\n background: rgba(0, 0, 0, 0.5);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button {\n background: rgba(255, 255, 255, 0.4);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover {\n background: rgba(255, 255, 255, 0.6);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria .p-galleria-thumbnail-container {\n background: rgba(0, 0, 0, 0.9);\n padding: 1rem 0.25rem;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next {\n margin: 0.5rem;\n background-color: transparent;\n color: #fafafa;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-galleria-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-preview-indicator {\n background-color: transparent;\n color: #f8f9fa;\n transition: none;\n}\n\n.p-image-preview-container:hover > .p-image-preview-indicator {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.p-image-toolbar {\n padding: 1rem;\n}\n\n.p-image-action.p-link {\n color: #f8f9fa;\n background-color: transparent;\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-image-action.p-link:last-child {\n margin-right: 0;\n}\n.p-image-action.p-link:hover {\n color: #f8f9fa;\n background-color: rgba(255, 255, 255, 0.1);\n}\n.p-image-action.p-link i {\n font-size: 1.5rem;\n}\n\n.p-avatar {\n background-color: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-avatar.p-avatar-lg {\n width: 3rem;\n height: 3rem;\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-lg .p-avatar-icon {\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-xl {\n width: 4rem;\n height: 4rem;\n font-size: 2rem;\n}\n.p-avatar.p-avatar-xl .p-avatar-icon {\n font-size: 2rem;\n}\n\n.p-avatar-group .p-avatar {\n border: 2px solid #ffffff;\n}\n\n.p-badge {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n min-width: 1.5rem;\n height: 1.5rem;\n line-height: 1.5rem;\n}\n.p-badge.p-badge-secondary {\n background-color: #64748B;\n color: #ffffff;\n}\n.p-badge.p-badge-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-badge.p-badge-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-badge.p-badge-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-badge.p-badge-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-badge.p-badge-lg {\n font-size: 1.125rem;\n min-width: 2.25rem;\n height: 2.25rem;\n line-height: 2.25rem;\n}\n.p-badge.p-badge-xl {\n font-size: 1.5rem;\n min-width: 3rem;\n height: 3rem;\n line-height: 3rem;\n}\n\n.p-chip {\n background-color: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n padding: 0 0.75rem;\n}\n.p-chip .p-chip-text {\n line-height: 1.5;\n margin-top: 0.375rem;\n margin-bottom: 0.375rem;\n}\n.p-chip .p-chip-icon {\n margin-right: 0.5rem;\n}\n.p-chip img {\n width: 2.25rem;\n height: 2.25rem;\n margin-left: -0.75rem;\n margin-right: 0.5rem;\n}\n.p-chip .p-chip-remove-icon {\n margin-left: 0.5rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-chip .p-chip-remove-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-inplace .p-inplace-display {\n padding: 0.75rem 0.75rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-inplace .p-inplace-display:not(.p-disabled):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-inplace .p-inplace-display:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-progressbar {\n border: 0 none;\n height: 1.5rem;\n background: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-progressbar .p-progressbar-value {\n border: 0 none;\n margin: 0;\n background: #4F46E5;\n}\n.p-progressbar .p-progressbar-label {\n color: #ffffff;\n line-height: 1.5rem;\n}\n\n.p-scrolltop {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n transition: none;\n}\n.p-scrolltop.p-link {\n background: rgba(0, 0, 0, 0.7);\n}\n.p-scrolltop.p-link:hover {\n background: rgba(0, 0, 0, 0.8);\n}\n.p-scrolltop .p-scrolltop-icon {\n font-size: 1.5rem;\n color: #fafafa;\n}\n\n.p-skeleton {\n background-color: #f4f4f5;\n border-radius: 0.375rem;\n}\n.p-skeleton:after {\n background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));\n}\n\n.p-tag {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n padding: 0.25rem 0.4rem;\n border-radius: 0.375rem;\n}\n.p-tag.p-tag-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-tag.p-tag-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-tag.p-tag-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-tag.p-tag-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-tag .p-tag-icon {\n margin-right: 0.25rem;\n font-size: 0.75rem;\n}\n\n.p-terminal {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n}\n.p-terminal .p-terminal-input {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n\n/* Customizations to the designer theme should be defined here */\n.p-inputtext, .p-togglebutton, .p-selectbutton, .p-inputgroup {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n}\n\n.p-inputgroup .p-inputtext, .p-inputgroup .p-togglebutton, .p-inputgroup .p-selectbutton {\n box-shadow: none;\n}\n\n.p-inputtext.p-invalid.p-component:enabled:focus {\n box-shadow: 0 0 0 1px #f0a9a7;\n}\n\n.p-highlight {\n font-weight: 600;\n}\n\n.p-button-label {\n font-weight: 500;\n}\n\n.p-inputswitch.p-focus .p-inputswitch-slider {\n box-shadow: 0 0 0 2px #6366F1;\n}\n\n.p-paginator .p-paginator-pages .p-paginator-page {\n margin-left: -1px;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n border-color: #4F46E5;\n margin-right: 1px;\n}\n.p-paginator .p-paginator-current {\n border: 0 none;\n}\n\n.p-button:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-secondary:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #64748B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-success:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #22C55E, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-info:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3B82F6, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-warning:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #F59E0B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-help:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #A855F7, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-danger:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #EF4444, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-checkbox .p-checkbox-box {\n border-radius: 0.25rem;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-radiobutton:not(.p-radiobutton-disabled) .p-radiobutton-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #4F46E5;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #4F46E5;\n}\n", ""]);
  21368. // Exports
  21369. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21370. /***/ }),
  21371. /***/ "./node_modules/css-loader/dist/runtime/api.js":
  21372. /*!*****************************************************!*\
  21373. !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  21374. \*****************************************************/
  21375. /***/ ((module) => {
  21376. "use strict";
  21377. /*
  21378. MIT License http://www.opensource.org/licenses/mit-license.php
  21379. Author Tobias Koppers @sokra
  21380. */
  21381. // css base code, injected by the css-loader
  21382. // eslint-disable-next-line func-names
  21383. module.exports = function (cssWithMappingToString) {
  21384. var list = []; // return the list of modules as css string
  21385. list.toString = function toString() {
  21386. return this.map(function (item) {
  21387. var content = cssWithMappingToString(item);
  21388. if (item[2]) {
  21389. return "@media ".concat(item[2], " {").concat(content, "}");
  21390. }
  21391. return content;
  21392. }).join("");
  21393. }; // import a list of modules into the list
  21394. // eslint-disable-next-line func-names
  21395. list.i = function (modules, mediaQuery, dedupe) {
  21396. if (typeof modules === "string") {
  21397. // eslint-disable-next-line no-param-reassign
  21398. modules = [[null, modules, ""]];
  21399. }
  21400. var alreadyImportedModules = {};
  21401. if (dedupe) {
  21402. for (var i = 0; i < this.length; i++) {
  21403. // eslint-disable-next-line prefer-destructuring
  21404. var id = this[i][0];
  21405. if (id != null) {
  21406. alreadyImportedModules[id] = true;
  21407. }
  21408. }
  21409. }
  21410. for (var _i = 0; _i < modules.length; _i++) {
  21411. var item = [].concat(modules[_i]);
  21412. if (dedupe && alreadyImportedModules[item[0]]) {
  21413. // eslint-disable-next-line no-continue
  21414. continue;
  21415. }
  21416. if (mediaQuery) {
  21417. if (!item[2]) {
  21418. item[2] = mediaQuery;
  21419. } else {
  21420. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  21421. }
  21422. }
  21423. list.push(item);
  21424. }
  21425. };
  21426. return list;
  21427. };
  21428. /***/ }),
  21429. /***/ "./node_modules/css-loader/dist/runtime/getUrl.js":
  21430. /*!********************************************************!*\
  21431. !*** ./node_modules/css-loader/dist/runtime/getUrl.js ***!
  21432. \********************************************************/
  21433. /***/ ((module) => {
  21434. "use strict";
  21435. module.exports = function (url, options) {
  21436. if (!options) {
  21437. // eslint-disable-next-line no-param-reassign
  21438. options = {};
  21439. } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
  21440. url = url && url.__esModule ? url.default : url;
  21441. if (typeof url !== "string") {
  21442. return url;
  21443. } // If url is already wrapped in quotes, remove them
  21444. if (/^['"].*['"]$/.test(url)) {
  21445. // eslint-disable-next-line no-param-reassign
  21446. url = url.slice(1, -1);
  21447. }
  21448. if (options.hash) {
  21449. // eslint-disable-next-line no-param-reassign
  21450. url += options.hash;
  21451. } // Should url be wrapped?
  21452. // See https://drafts.csswg.org/css-values-3/#urls
  21453. if (/["'() \t\n]/.test(url) || options.needQuotes) {
  21454. return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, "\\n"), "\"");
  21455. }
  21456. return url;
  21457. };
  21458. /***/ }),
  21459. /***/ "./node_modules/deepmerge/dist/cjs.js":
  21460. /*!********************************************!*\
  21461. !*** ./node_modules/deepmerge/dist/cjs.js ***!
  21462. \********************************************/
  21463. /***/ ((module) => {
  21464. "use strict";
  21465. var isMergeableObject = function isMergeableObject(value) {
  21466. return isNonNullObject(value)
  21467. && !isSpecial(value)
  21468. };
  21469. function isNonNullObject(value) {
  21470. return !!value && typeof value === 'object'
  21471. }
  21472. function isSpecial(value) {
  21473. var stringValue = Object.prototype.toString.call(value);
  21474. return stringValue === '[object RegExp]'
  21475. || stringValue === '[object Date]'
  21476. || isReactElement(value)
  21477. }
  21478. // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
  21479. var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
  21480. var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
  21481. function isReactElement(value) {
  21482. return value.$$typeof === REACT_ELEMENT_TYPE
  21483. }
  21484. function emptyTarget(val) {
  21485. return Array.isArray(val) ? [] : {}
  21486. }
  21487. function cloneUnlessOtherwiseSpecified(value, options) {
  21488. return (options.clone !== false && options.isMergeableObject(value))
  21489. ? deepmerge(emptyTarget(value), value, options)
  21490. : value
  21491. }
  21492. function defaultArrayMerge(target, source, options) {
  21493. return target.concat(source).map(function(element) {
  21494. return cloneUnlessOtherwiseSpecified(element, options)
  21495. })
  21496. }
  21497. function getMergeFunction(key, options) {
  21498. if (!options.customMerge) {
  21499. return deepmerge
  21500. }
  21501. var customMerge = options.customMerge(key);
  21502. return typeof customMerge === 'function' ? customMerge : deepmerge
  21503. }
  21504. function getEnumerableOwnPropertySymbols(target) {
  21505. return Object.getOwnPropertySymbols
  21506. ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
  21507. return target.propertyIsEnumerable(symbol)
  21508. })
  21509. : []
  21510. }
  21511. function getKeys(target) {
  21512. return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
  21513. }
  21514. function propertyIsOnObject(object, property) {
  21515. try {
  21516. return property in object
  21517. } catch(_) {
  21518. return false
  21519. }
  21520. }
  21521. // Protects from prototype poisoning and unexpected merging up the prototype chain.
  21522. function propertyIsUnsafe(target, key) {
  21523. return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
  21524. && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
  21525. && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
  21526. }
  21527. function mergeObject(target, source, options) {
  21528. var destination = {};
  21529. if (options.isMergeableObject(target)) {
  21530. getKeys(target).forEach(function(key) {
  21531. destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
  21532. });
  21533. }
  21534. getKeys(source).forEach(function(key) {
  21535. if (propertyIsUnsafe(target, key)) {
  21536. return
  21537. }
  21538. if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
  21539. destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
  21540. } else {
  21541. destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
  21542. }
  21543. });
  21544. return destination
  21545. }
  21546. function deepmerge(target, source, options) {
  21547. options = options || {};
  21548. options.arrayMerge = options.arrayMerge || defaultArrayMerge;
  21549. options.isMergeableObject = options.isMergeableObject || isMergeableObject;
  21550. // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
  21551. // implementations can use it. The caller may not replace it.
  21552. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
  21553. var sourceIsArray = Array.isArray(source);
  21554. var targetIsArray = Array.isArray(target);
  21555. var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
  21556. if (!sourceAndTargetTypesMatch) {
  21557. return cloneUnlessOtherwiseSpecified(source, options)
  21558. } else if (sourceIsArray) {
  21559. return options.arrayMerge(target, source, options)
  21560. } else {
  21561. return mergeObject(target, source, options)
  21562. }
  21563. }
  21564. deepmerge.all = function deepmergeAll(array, options) {
  21565. if (!Array.isArray(array)) {
  21566. throw new Error('first argument should be an array')
  21567. }
  21568. return array.reduce(function(prev, next) {
  21569. return deepmerge(prev, next, options)
  21570. }, {})
  21571. };
  21572. var deepmerge_1 = deepmerge;
  21573. module.exports = deepmerge_1;
  21574. /***/ }),
  21575. /***/ "./node_modules/primevue/resources/images/color.png":
  21576. /*!**********************************************************!*\
  21577. !*** ./node_modules/primevue/resources/images/color.png ***!
  21578. \**********************************************************/
  21579. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21580. "use strict";
  21581. __webpack_require__.r(__webpack_exports__);
  21582. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21583. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21584. /* harmony export */ });
  21585. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/color.png?6441e63a57ccc5105bad045142bc31eb");
  21586. /***/ }),
  21587. /***/ "./node_modules/primevue/resources/images/hue.png":
  21588. /*!********************************************************!*\
  21589. !*** ./node_modules/primevue/resources/images/hue.png ***!
  21590. \********************************************************/
  21591. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21592. "use strict";
  21593. __webpack_require__.r(__webpack_exports__);
  21594. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21595. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21596. /* harmony export */ });
  21597. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/hue.png?f8505bd4d6f3e3aa435b72d1c045d4a7");
  21598. /***/ }),
  21599. /***/ "./node_modules/primeicons/fonts/primeicons.eot":
  21600. /*!******************************************************!*\
  21601. !*** ./node_modules/primeicons/fonts/primeicons.eot ***!
  21602. \******************************************************/
  21603. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21604. "use strict";
  21605. __webpack_require__.r(__webpack_exports__);
  21606. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21607. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21608. /* harmony export */ });
  21609. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.eot?7fc4d8e224d1ff1b9c6256b15cbe43a7");
  21610. /***/ }),
  21611. /***/ "./node_modules/primeicons/fonts/primeicons.svg":
  21612. /*!******************************************************!*\
  21613. !*** ./node_modules/primeicons/fonts/primeicons.svg ***!
  21614. \******************************************************/
  21615. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21616. "use strict";
  21617. __webpack_require__.r(__webpack_exports__);
  21618. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21619. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21620. /* harmony export */ });
  21621. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.svg?c6e2053303524e39530c36f094129407");
  21622. /***/ }),
  21623. /***/ "./node_modules/primeicons/fonts/primeicons.ttf":
  21624. /*!******************************************************!*\
  21625. !*** ./node_modules/primeicons/fonts/primeicons.ttf ***!
  21626. \******************************************************/
  21627. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21628. "use strict";
  21629. __webpack_require__.r(__webpack_exports__);
  21630. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21631. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21632. /* harmony export */ });
  21633. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.ttf?91bacab1f083f2795272499faf7e83dc");
  21634. /***/ }),
  21635. /***/ "./node_modules/primeicons/fonts/primeicons.woff":
  21636. /*!*******************************************************!*\
  21637. !*** ./node_modules/primeicons/fonts/primeicons.woff ***!
  21638. \*******************************************************/
  21639. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21640. "use strict";
  21641. __webpack_require__.r(__webpack_exports__);
  21642. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21643. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21644. /* harmony export */ });
  21645. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.woff?449aa8c65cdc5c2a868645403b9ea4d3");
  21646. /***/ }),
  21647. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff":
  21648. /*!*************************************************************************************!*\
  21649. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff ***!
  21650. \*************************************************************************************/
  21651. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21652. "use strict";
  21653. __webpack_require__.r(__webpack_exports__);
  21654. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21655. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21656. /* harmony export */ });
  21657. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff?93c1301bd9f486c573b3d9001c6ec0e4");
  21658. /***/ }),
  21659. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2":
  21660. /*!**************************************************************************************!*\
  21661. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 ***!
  21662. \**************************************************************************************/
  21663. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21664. "use strict";
  21665. __webpack_require__.r(__webpack_exports__);
  21666. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21667. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21668. /* harmony export */ });
  21669. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff2?ec64ea577b0349e055ad6646c1d8797a");
  21670. /***/ }),
  21671. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff":
  21672. /*!**************************************************************************************!*\
  21673. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff ***!
  21674. \**************************************************************************************/
  21675. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21676. "use strict";
  21677. __webpack_require__.r(__webpack_exports__);
  21678. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21679. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21680. /* harmony export */ });
  21681. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff?994e34451cc19ede31d30802a480542b");
  21682. /***/ }),
  21683. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2":
  21684. /*!***************************************************************************************!*\
  21685. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2 ***!
  21686. \***************************************************************************************/
  21687. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21688. "use strict";
  21689. __webpack_require__.r(__webpack_exports__);
  21690. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21691. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21692. /* harmony export */ });
  21693. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff2?2d5198822ab091ce430554a436cdf53c");
  21694. /***/ }),
  21695. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff":
  21696. /*!***************************************************************************************!*\
  21697. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff ***!
  21698. \***************************************************************************************/
  21699. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21700. "use strict";
  21701. __webpack_require__.r(__webpack_exports__);
  21702. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21703. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21704. /* harmony export */ });
  21705. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff?9053572c46aeb4b16caafd643a543b8d");
  21706. /***/ }),
  21707. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2":
  21708. /*!****************************************************************************************!*\
  21709. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 ***!
  21710. \****************************************************************************************/
  21711. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21712. "use strict";
  21713. __webpack_require__.r(__webpack_exports__);
  21714. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21715. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21716. /* harmony export */ });
  21717. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff2?293fd13dbca5a3e450ef1ebfb232a299");
  21718. /***/ }),
  21719. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff":
  21720. /*!****************************************************************************************!*\
  21721. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff ***!
  21722. \****************************************************************************************/
  21723. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21724. "use strict";
  21725. __webpack_require__.r(__webpack_exports__);
  21726. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21727. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21728. /* harmony export */ });
  21729. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff?8c206db99195777c67691cbba9d64393");
  21730. /***/ }),
  21731. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2":
  21732. /*!*****************************************************************************************!*\
  21733. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 ***!
  21734. \*****************************************************************************************/
  21735. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21736. "use strict";
  21737. __webpack_require__.r(__webpack_exports__);
  21738. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21739. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21740. /* harmony export */ });
  21741. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff2?c8ba52b05a9ef10f47584d08ece2ec5c");
  21742. /***/ }),
  21743. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff":
  21744. /*!*****************************************************************************************!*\
  21745. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff ***!
  21746. \*****************************************************************************************/
  21747. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21748. "use strict";
  21749. __webpack_require__.r(__webpack_exports__);
  21750. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21751. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21752. /* harmony export */ });
  21753. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff?cca62d21c8c555c392e580a52e0d4426");
  21754. /***/ }),
  21755. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2":
  21756. /*!******************************************************************************************!*\
  21757. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 ***!
  21758. \******************************************************************************************/
  21759. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21760. "use strict";
  21761. __webpack_require__.r(__webpack_exports__);
  21762. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21763. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21764. /* harmony export */ });
  21765. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff2?b5f0f109bc88052d4000c58ca615671d");
  21766. /***/ }),
  21767. /***/ "./node_modules/function-bind/implementation.js":
  21768. /*!******************************************************!*\
  21769. !*** ./node_modules/function-bind/implementation.js ***!
  21770. \******************************************************/
  21771. /***/ ((module) => {
  21772. "use strict";
  21773. /* eslint no-invalid-this: 1 */
  21774. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  21775. var slice = Array.prototype.slice;
  21776. var toStr = Object.prototype.toString;
  21777. var funcType = '[object Function]';
  21778. module.exports = function bind(that) {
  21779. var target = this;
  21780. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  21781. throw new TypeError(ERROR_MESSAGE + target);
  21782. }
  21783. var args = slice.call(arguments, 1);
  21784. var bound;
  21785. var binder = function () {
  21786. if (this instanceof bound) {
  21787. var result = target.apply(
  21788. this,
  21789. args.concat(slice.call(arguments))
  21790. );
  21791. if (Object(result) === result) {
  21792. return result;
  21793. }
  21794. return this;
  21795. } else {
  21796. return target.apply(
  21797. that,
  21798. args.concat(slice.call(arguments))
  21799. );
  21800. }
  21801. };
  21802. var boundLength = Math.max(0, target.length - args.length);
  21803. var boundArgs = [];
  21804. for (var i = 0; i < boundLength; i++) {
  21805. boundArgs.push('$' + i);
  21806. }
  21807. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  21808. if (target.prototype) {
  21809. var Empty = function Empty() {};
  21810. Empty.prototype = target.prototype;
  21811. bound.prototype = new Empty();
  21812. Empty.prototype = null;
  21813. }
  21814. return bound;
  21815. };
  21816. /***/ }),
  21817. /***/ "./node_modules/function-bind/index.js":
  21818. /*!*********************************************!*\
  21819. !*** ./node_modules/function-bind/index.js ***!
  21820. \*********************************************/
  21821. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21822. "use strict";
  21823. var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
  21824. module.exports = Function.prototype.bind || implementation;
  21825. /***/ }),
  21826. /***/ "./node_modules/get-intrinsic/index.js":
  21827. /*!*********************************************!*\
  21828. !*** ./node_modules/get-intrinsic/index.js ***!
  21829. \*********************************************/
  21830. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21831. "use strict";
  21832. var undefined;
  21833. var $SyntaxError = SyntaxError;
  21834. var $Function = Function;
  21835. var $TypeError = TypeError;
  21836. // eslint-disable-next-line consistent-return
  21837. var getEvalledConstructor = function (expressionSyntax) {
  21838. try {
  21839. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  21840. } catch (e) {}
  21841. };
  21842. var $gOPD = Object.getOwnPropertyDescriptor;
  21843. if ($gOPD) {
  21844. try {
  21845. $gOPD({}, '');
  21846. } catch (e) {
  21847. $gOPD = null; // this is IE 8, which has a broken gOPD
  21848. }
  21849. }
  21850. var throwTypeError = function () {
  21851. throw new $TypeError();
  21852. };
  21853. var ThrowTypeError = $gOPD
  21854. ? (function () {
  21855. try {
  21856. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  21857. arguments.callee; // IE 8 does not throw here
  21858. return throwTypeError;
  21859. } catch (calleeThrows) {
  21860. try {
  21861. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  21862. return $gOPD(arguments, 'callee').get;
  21863. } catch (gOPDthrows) {
  21864. return throwTypeError;
  21865. }
  21866. }
  21867. }())
  21868. : throwTypeError;
  21869. var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
  21870. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  21871. var needsEval = {};
  21872. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  21873. var INTRINSICS = {
  21874. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  21875. '%Array%': Array,
  21876. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  21877. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  21878. '%AsyncFromSyncIteratorPrototype%': undefined,
  21879. '%AsyncFunction%': needsEval,
  21880. '%AsyncGenerator%': needsEval,
  21881. '%AsyncGeneratorFunction%': needsEval,
  21882. '%AsyncIteratorPrototype%': needsEval,
  21883. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  21884. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  21885. '%Boolean%': Boolean,
  21886. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  21887. '%Date%': Date,
  21888. '%decodeURI%': decodeURI,
  21889. '%decodeURIComponent%': decodeURIComponent,
  21890. '%encodeURI%': encodeURI,
  21891. '%encodeURIComponent%': encodeURIComponent,
  21892. '%Error%': Error,
  21893. '%eval%': eval, // eslint-disable-line no-eval
  21894. '%EvalError%': EvalError,
  21895. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  21896. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  21897. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  21898. '%Function%': $Function,
  21899. '%GeneratorFunction%': needsEval,
  21900. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  21901. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  21902. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  21903. '%isFinite%': isFinite,
  21904. '%isNaN%': isNaN,
  21905. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  21906. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  21907. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  21908. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  21909. '%Math%': Math,
  21910. '%Number%': Number,
  21911. '%Object%': Object,
  21912. '%parseFloat%': parseFloat,
  21913. '%parseInt%': parseInt,
  21914. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  21915. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  21916. '%RangeError%': RangeError,
  21917. '%ReferenceError%': ReferenceError,
  21918. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  21919. '%RegExp%': RegExp,
  21920. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  21921. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  21922. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  21923. '%String%': String,
  21924. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  21925. '%Symbol%': hasSymbols ? Symbol : undefined,
  21926. '%SyntaxError%': $SyntaxError,
  21927. '%ThrowTypeError%': ThrowTypeError,
  21928. '%TypedArray%': TypedArray,
  21929. '%TypeError%': $TypeError,
  21930. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  21931. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  21932. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  21933. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  21934. '%URIError%': URIError,
  21935. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  21936. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  21937. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  21938. };
  21939. var doEval = function doEval(name) {
  21940. var value;
  21941. if (name === '%AsyncFunction%') {
  21942. value = getEvalledConstructor('async function () {}');
  21943. } else if (name === '%GeneratorFunction%') {
  21944. value = getEvalledConstructor('function* () {}');
  21945. } else if (name === '%AsyncGeneratorFunction%') {
  21946. value = getEvalledConstructor('async function* () {}');
  21947. } else if (name === '%AsyncGenerator%') {
  21948. var fn = doEval('%AsyncGeneratorFunction%');
  21949. if (fn) {
  21950. value = fn.prototype;
  21951. }
  21952. } else if (name === '%AsyncIteratorPrototype%') {
  21953. var gen = doEval('%AsyncGenerator%');
  21954. if (gen) {
  21955. value = getProto(gen.prototype);
  21956. }
  21957. }
  21958. INTRINSICS[name] = value;
  21959. return value;
  21960. };
  21961. var LEGACY_ALIASES = {
  21962. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  21963. '%ArrayPrototype%': ['Array', 'prototype'],
  21964. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  21965. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  21966. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  21967. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  21968. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  21969. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  21970. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  21971. '%BooleanPrototype%': ['Boolean', 'prototype'],
  21972. '%DataViewPrototype%': ['DataView', 'prototype'],
  21973. '%DatePrototype%': ['Date', 'prototype'],
  21974. '%ErrorPrototype%': ['Error', 'prototype'],
  21975. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  21976. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  21977. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  21978. '%FunctionPrototype%': ['Function', 'prototype'],
  21979. '%Generator%': ['GeneratorFunction', 'prototype'],
  21980. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  21981. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  21982. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  21983. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  21984. '%JSONParse%': ['JSON', 'parse'],
  21985. '%JSONStringify%': ['JSON', 'stringify'],
  21986. '%MapPrototype%': ['Map', 'prototype'],
  21987. '%NumberPrototype%': ['Number', 'prototype'],
  21988. '%ObjectPrototype%': ['Object', 'prototype'],
  21989. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  21990. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  21991. '%PromisePrototype%': ['Promise', 'prototype'],
  21992. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  21993. '%Promise_all%': ['Promise', 'all'],
  21994. '%Promise_reject%': ['Promise', 'reject'],
  21995. '%Promise_resolve%': ['Promise', 'resolve'],
  21996. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  21997. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  21998. '%RegExpPrototype%': ['RegExp', 'prototype'],
  21999. '%SetPrototype%': ['Set', 'prototype'],
  22000. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  22001. '%StringPrototype%': ['String', 'prototype'],
  22002. '%SymbolPrototype%': ['Symbol', 'prototype'],
  22003. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  22004. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  22005. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  22006. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  22007. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  22008. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  22009. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  22010. '%URIErrorPrototype%': ['URIError', 'prototype'],
  22011. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  22012. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  22013. };
  22014. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22015. var hasOwn = __webpack_require__(/*! has */ "./node_modules/has/src/index.js");
  22016. var $concat = bind.call(Function.call, Array.prototype.concat);
  22017. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  22018. var $replace = bind.call(Function.call, String.prototype.replace);
  22019. var $strSlice = bind.call(Function.call, String.prototype.slice);
  22020. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  22021. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  22022. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  22023. var stringToPath = function stringToPath(string) {
  22024. var first = $strSlice(string, 0, 1);
  22025. var last = $strSlice(string, -1);
  22026. if (first === '%' && last !== '%') {
  22027. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  22028. } else if (last === '%' && first !== '%') {
  22029. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  22030. }
  22031. var result = [];
  22032. $replace(string, rePropName, function (match, number, quote, subString) {
  22033. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  22034. });
  22035. return result;
  22036. };
  22037. /* end adaptation */
  22038. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  22039. var intrinsicName = name;
  22040. var alias;
  22041. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  22042. alias = LEGACY_ALIASES[intrinsicName];
  22043. intrinsicName = '%' + alias[0] + '%';
  22044. }
  22045. if (hasOwn(INTRINSICS, intrinsicName)) {
  22046. var value = INTRINSICS[intrinsicName];
  22047. if (value === needsEval) {
  22048. value = doEval(intrinsicName);
  22049. }
  22050. if (typeof value === 'undefined' && !allowMissing) {
  22051. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  22052. }
  22053. return {
  22054. alias: alias,
  22055. name: intrinsicName,
  22056. value: value
  22057. };
  22058. }
  22059. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  22060. };
  22061. module.exports = function GetIntrinsic(name, allowMissing) {
  22062. if (typeof name !== 'string' || name.length === 0) {
  22063. throw new $TypeError('intrinsic name must be a non-empty string');
  22064. }
  22065. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  22066. throw new $TypeError('"allowMissing" argument must be a boolean');
  22067. }
  22068. var parts = stringToPath(name);
  22069. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  22070. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  22071. var intrinsicRealName = intrinsic.name;
  22072. var value = intrinsic.value;
  22073. var skipFurtherCaching = false;
  22074. var alias = intrinsic.alias;
  22075. if (alias) {
  22076. intrinsicBaseName = alias[0];
  22077. $spliceApply(parts, $concat([0, 1], alias));
  22078. }
  22079. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  22080. var part = parts[i];
  22081. var first = $strSlice(part, 0, 1);
  22082. var last = $strSlice(part, -1);
  22083. if (
  22084. (
  22085. (first === '"' || first === "'" || first === '`')
  22086. || (last === '"' || last === "'" || last === '`')
  22087. )
  22088. && first !== last
  22089. ) {
  22090. throw new $SyntaxError('property names with quotes must have matching quotes');
  22091. }
  22092. if (part === 'constructor' || !isOwn) {
  22093. skipFurtherCaching = true;
  22094. }
  22095. intrinsicBaseName += '.' + part;
  22096. intrinsicRealName = '%' + intrinsicBaseName + '%';
  22097. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  22098. value = INTRINSICS[intrinsicRealName];
  22099. } else if (value != null) {
  22100. if (!(part in value)) {
  22101. if (!allowMissing) {
  22102. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  22103. }
  22104. return void undefined;
  22105. }
  22106. if ($gOPD && (i + 1) >= parts.length) {
  22107. var desc = $gOPD(value, part);
  22108. isOwn = !!desc;
  22109. // By convention, when a data property is converted to an accessor
  22110. // property to emulate a data property that does not suffer from
  22111. // the override mistake, that accessor's getter is marked with
  22112. // an `originalValue` property. Here, when we detect this, we
  22113. // uphold the illusion by pretending to see that original data
  22114. // property, i.e., returning the value rather than the getter
  22115. // itself.
  22116. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  22117. value = desc.get;
  22118. } else {
  22119. value = value[part];
  22120. }
  22121. } else {
  22122. isOwn = hasOwn(value, part);
  22123. value = value[part];
  22124. }
  22125. if (isOwn && !skipFurtherCaching) {
  22126. INTRINSICS[intrinsicRealName] = value;
  22127. }
  22128. }
  22129. }
  22130. return value;
  22131. };
  22132. /***/ }),
  22133. /***/ "./node_modules/has-symbols/index.js":
  22134. /*!*******************************************!*\
  22135. !*** ./node_modules/has-symbols/index.js ***!
  22136. \*******************************************/
  22137. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22138. "use strict";
  22139. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  22140. var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
  22141. module.exports = function hasNativeSymbols() {
  22142. if (typeof origSymbol !== 'function') { return false; }
  22143. if (typeof Symbol !== 'function') { return false; }
  22144. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  22145. if (typeof Symbol('bar') !== 'symbol') { return false; }
  22146. return hasSymbolSham();
  22147. };
  22148. /***/ }),
  22149. /***/ "./node_modules/has-symbols/shams.js":
  22150. /*!*******************************************!*\
  22151. !*** ./node_modules/has-symbols/shams.js ***!
  22152. \*******************************************/
  22153. /***/ ((module) => {
  22154. "use strict";
  22155. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  22156. module.exports = function hasSymbols() {
  22157. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  22158. if (typeof Symbol.iterator === 'symbol') { return true; }
  22159. var obj = {};
  22160. var sym = Symbol('test');
  22161. var symObj = Object(sym);
  22162. if (typeof sym === 'string') { return false; }
  22163. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  22164. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  22165. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  22166. // if (sym instanceof Symbol) { return false; }
  22167. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  22168. // if (!(symObj instanceof Symbol)) { return false; }
  22169. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  22170. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  22171. var symVal = 42;
  22172. obj[sym] = symVal;
  22173. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  22174. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  22175. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  22176. var syms = Object.getOwnPropertySymbols(obj);
  22177. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  22178. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  22179. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  22180. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  22181. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  22182. }
  22183. return true;
  22184. };
  22185. /***/ }),
  22186. /***/ "./node_modules/has/src/index.js":
  22187. /*!***************************************!*\
  22188. !*** ./node_modules/has/src/index.js ***!
  22189. \***************************************/
  22190. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22191. "use strict";
  22192. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22193. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  22194. /***/ }),
  22195. /***/ "./node_modules/ieee754/index.js":
  22196. /*!***************************************!*\
  22197. !*** ./node_modules/ieee754/index.js ***!
  22198. \***************************************/
  22199. /***/ ((__unused_webpack_module, exports) => {
  22200. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  22201. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  22202. var e, m
  22203. var eLen = (nBytes * 8) - mLen - 1
  22204. var eMax = (1 << eLen) - 1
  22205. var eBias = eMax >> 1
  22206. var nBits = -7
  22207. var i = isLE ? (nBytes - 1) : 0
  22208. var d = isLE ? -1 : 1
  22209. var s = buffer[offset + i]
  22210. i += d
  22211. e = s & ((1 << (-nBits)) - 1)
  22212. s >>= (-nBits)
  22213. nBits += eLen
  22214. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22215. m = e & ((1 << (-nBits)) - 1)
  22216. e >>= (-nBits)
  22217. nBits += mLen
  22218. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22219. if (e === 0) {
  22220. e = 1 - eBias
  22221. } else if (e === eMax) {
  22222. return m ? NaN : ((s ? -1 : 1) * Infinity)
  22223. } else {
  22224. m = m + Math.pow(2, mLen)
  22225. e = e - eBias
  22226. }
  22227. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  22228. }
  22229. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  22230. var e, m, c
  22231. var eLen = (nBytes * 8) - mLen - 1
  22232. var eMax = (1 << eLen) - 1
  22233. var eBias = eMax >> 1
  22234. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  22235. var i = isLE ? 0 : (nBytes - 1)
  22236. var d = isLE ? 1 : -1
  22237. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  22238. value = Math.abs(value)
  22239. if (isNaN(value) || value === Infinity) {
  22240. m = isNaN(value) ? 1 : 0
  22241. e = eMax
  22242. } else {
  22243. e = Math.floor(Math.log(value) / Math.LN2)
  22244. if (value * (c = Math.pow(2, -e)) < 1) {
  22245. e--
  22246. c *= 2
  22247. }
  22248. if (e + eBias >= 1) {
  22249. value += rt / c
  22250. } else {
  22251. value += rt * Math.pow(2, 1 - eBias)
  22252. }
  22253. if (value * c >= 2) {
  22254. e++
  22255. c /= 2
  22256. }
  22257. if (e + eBias >= eMax) {
  22258. m = 0
  22259. e = eMax
  22260. } else if (e + eBias >= 1) {
  22261. m = ((value * c) - 1) * Math.pow(2, mLen)
  22262. e = e + eBias
  22263. } else {
  22264. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  22265. e = 0
  22266. }
  22267. }
  22268. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  22269. e = (e << mLen) | m
  22270. eLen += mLen
  22271. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  22272. buffer[offset + i - d] |= s * 128
  22273. }
  22274. /***/ }),
  22275. /***/ "./node_modules/isarray/index.js":
  22276. /*!***************************************!*\
  22277. !*** ./node_modules/isarray/index.js ***!
  22278. \***************************************/
  22279. /***/ ((module) => {
  22280. var toString = {}.toString;
  22281. module.exports = Array.isArray || function (arr) {
  22282. return toString.call(arr) == '[object Array]';
  22283. };
  22284. /***/ }),
  22285. /***/ "./node_modules/lodash.clonedeep/index.js":
  22286. /*!************************************************!*\
  22287. !*** ./node_modules/lodash.clonedeep/index.js ***!
  22288. \************************************************/
  22289. /***/ ((module, exports, __webpack_require__) => {
  22290. /* module decorator */ module = __webpack_require__.nmd(module);
  22291. /**
  22292. * lodash (Custom Build) <https://lodash.com/>
  22293. * Build: `lodash modularize exports="npm" -o ./`
  22294. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  22295. * Released under MIT license <https://lodash.com/license>
  22296. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  22297. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  22298. */
  22299. /** Used as the size to enable large array optimizations. */
  22300. var LARGE_ARRAY_SIZE = 200;
  22301. /** Used to stand-in for `undefined` hash values. */
  22302. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  22303. /** Used as references for various `Number` constants. */
  22304. var MAX_SAFE_INTEGER = 9007199254740991;
  22305. /** `Object#toString` result references. */
  22306. var argsTag = '[object Arguments]',
  22307. arrayTag = '[object Array]',
  22308. boolTag = '[object Boolean]',
  22309. dateTag = '[object Date]',
  22310. errorTag = '[object Error]',
  22311. funcTag = '[object Function]',
  22312. genTag = '[object GeneratorFunction]',
  22313. mapTag = '[object Map]',
  22314. numberTag = '[object Number]',
  22315. objectTag = '[object Object]',
  22316. promiseTag = '[object Promise]',
  22317. regexpTag = '[object RegExp]',
  22318. setTag = '[object Set]',
  22319. stringTag = '[object String]',
  22320. symbolTag = '[object Symbol]',
  22321. weakMapTag = '[object WeakMap]';
  22322. var arrayBufferTag = '[object ArrayBuffer]',
  22323. dataViewTag = '[object DataView]',
  22324. float32Tag = '[object Float32Array]',
  22325. float64Tag = '[object Float64Array]',
  22326. int8Tag = '[object Int8Array]',
  22327. int16Tag = '[object Int16Array]',
  22328. int32Tag = '[object Int32Array]',
  22329. uint8Tag = '[object Uint8Array]',
  22330. uint8ClampedTag = '[object Uint8ClampedArray]',
  22331. uint16Tag = '[object Uint16Array]',
  22332. uint32Tag = '[object Uint32Array]';
  22333. /**
  22334. * Used to match `RegExp`
  22335. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  22336. */
  22337. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  22338. /** Used to match `RegExp` flags from their coerced string values. */
  22339. var reFlags = /\w*$/;
  22340. /** Used to detect host constructors (Safari). */
  22341. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  22342. /** Used to detect unsigned integer values. */
  22343. var reIsUint = /^(?:0|[1-9]\d*)$/;
  22344. /** Used to identify `toStringTag` values supported by `_.clone`. */
  22345. var cloneableTags = {};
  22346. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  22347. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  22348. cloneableTags[boolTag] = cloneableTags[dateTag] =
  22349. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  22350. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  22351. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  22352. cloneableTags[numberTag] = cloneableTags[objectTag] =
  22353. cloneableTags[regexpTag] = cloneableTags[setTag] =
  22354. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  22355. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  22356. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  22357. cloneableTags[errorTag] = cloneableTags[funcTag] =
  22358. cloneableTags[weakMapTag] = false;
  22359. /** Detect free variable `global` from Node.js. */
  22360. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  22361. /** Detect free variable `self`. */
  22362. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  22363. /** Used as a reference to the global object. */
  22364. var root = freeGlobal || freeSelf || Function('return this')();
  22365. /** Detect free variable `exports`. */
  22366. var freeExports = true && exports && !exports.nodeType && exports;
  22367. /** Detect free variable `module`. */
  22368. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  22369. /** Detect the popular CommonJS extension `module.exports`. */
  22370. var moduleExports = freeModule && freeModule.exports === freeExports;
  22371. /**
  22372. * Adds the key-value `pair` to `map`.
  22373. *
  22374. * @private
  22375. * @param {Object} map The map to modify.
  22376. * @param {Array} pair The key-value pair to add.
  22377. * @returns {Object} Returns `map`.
  22378. */
  22379. function addMapEntry(map, pair) {
  22380. // Don't return `map.set` because it's not chainable in IE 11.
  22381. map.set(pair[0], pair[1]);
  22382. return map;
  22383. }
  22384. /**
  22385. * Adds `value` to `set`.
  22386. *
  22387. * @private
  22388. * @param {Object} set The set to modify.
  22389. * @param {*} value The value to add.
  22390. * @returns {Object} Returns `set`.
  22391. */
  22392. function addSetEntry(set, value) {
  22393. // Don't return `set.add` because it's not chainable in IE 11.
  22394. set.add(value);
  22395. return set;
  22396. }
  22397. /**
  22398. * A specialized version of `_.forEach` for arrays without support for
  22399. * iteratee shorthands.
  22400. *
  22401. * @private
  22402. * @param {Array} [array] The array to iterate over.
  22403. * @param {Function} iteratee The function invoked per iteration.
  22404. * @returns {Array} Returns `array`.
  22405. */
  22406. function arrayEach(array, iteratee) {
  22407. var index = -1,
  22408. length = array ? array.length : 0;
  22409. while (++index < length) {
  22410. if (iteratee(array[index], index, array) === false) {
  22411. break;
  22412. }
  22413. }
  22414. return array;
  22415. }
  22416. /**
  22417. * Appends the elements of `values` to `array`.
  22418. *
  22419. * @private
  22420. * @param {Array} array The array to modify.
  22421. * @param {Array} values The values to append.
  22422. * @returns {Array} Returns `array`.
  22423. */
  22424. function arrayPush(array, values) {
  22425. var index = -1,
  22426. length = values.length,
  22427. offset = array.length;
  22428. while (++index < length) {
  22429. array[offset + index] = values[index];
  22430. }
  22431. return array;
  22432. }
  22433. /**
  22434. * A specialized version of `_.reduce` for arrays without support for
  22435. * iteratee shorthands.
  22436. *
  22437. * @private
  22438. * @param {Array} [array] The array to iterate over.
  22439. * @param {Function} iteratee The function invoked per iteration.
  22440. * @param {*} [accumulator] The initial value.
  22441. * @param {boolean} [initAccum] Specify using the first element of `array` as
  22442. * the initial value.
  22443. * @returns {*} Returns the accumulated value.
  22444. */
  22445. function arrayReduce(array, iteratee, accumulator, initAccum) {
  22446. var index = -1,
  22447. length = array ? array.length : 0;
  22448. if (initAccum && length) {
  22449. accumulator = array[++index];
  22450. }
  22451. while (++index < length) {
  22452. accumulator = iteratee(accumulator, array[index], index, array);
  22453. }
  22454. return accumulator;
  22455. }
  22456. /**
  22457. * The base implementation of `_.times` without support for iteratee shorthands
  22458. * or max array length checks.
  22459. *
  22460. * @private
  22461. * @param {number} n The number of times to invoke `iteratee`.
  22462. * @param {Function} iteratee The function invoked per iteration.
  22463. * @returns {Array} Returns the array of results.
  22464. */
  22465. function baseTimes(n, iteratee) {
  22466. var index = -1,
  22467. result = Array(n);
  22468. while (++index < n) {
  22469. result[index] = iteratee(index);
  22470. }
  22471. return result;
  22472. }
  22473. /**
  22474. * Gets the value at `key` of `object`.
  22475. *
  22476. * @private
  22477. * @param {Object} [object] The object to query.
  22478. * @param {string} key The key of the property to get.
  22479. * @returns {*} Returns the property value.
  22480. */
  22481. function getValue(object, key) {
  22482. return object == null ? undefined : object[key];
  22483. }
  22484. /**
  22485. * Checks if `value` is a host object in IE < 9.
  22486. *
  22487. * @private
  22488. * @param {*} value The value to check.
  22489. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  22490. */
  22491. function isHostObject(value) {
  22492. // Many host objects are `Object` objects that can coerce to strings
  22493. // despite having improperly defined `toString` methods.
  22494. var result = false;
  22495. if (value != null && typeof value.toString != 'function') {
  22496. try {
  22497. result = !!(value + '');
  22498. } catch (e) {}
  22499. }
  22500. return result;
  22501. }
  22502. /**
  22503. * Converts `map` to its key-value pairs.
  22504. *
  22505. * @private
  22506. * @param {Object} map The map to convert.
  22507. * @returns {Array} Returns the key-value pairs.
  22508. */
  22509. function mapToArray(map) {
  22510. var index = -1,
  22511. result = Array(map.size);
  22512. map.forEach(function(value, key) {
  22513. result[++index] = [key, value];
  22514. });
  22515. return result;
  22516. }
  22517. /**
  22518. * Creates a unary function that invokes `func` with its argument transformed.
  22519. *
  22520. * @private
  22521. * @param {Function} func The function to wrap.
  22522. * @param {Function} transform The argument transform.
  22523. * @returns {Function} Returns the new function.
  22524. */
  22525. function overArg(func, transform) {
  22526. return function(arg) {
  22527. return func(transform(arg));
  22528. };
  22529. }
  22530. /**
  22531. * Converts `set` to an array of its values.
  22532. *
  22533. * @private
  22534. * @param {Object} set The set to convert.
  22535. * @returns {Array} Returns the values.
  22536. */
  22537. function setToArray(set) {
  22538. var index = -1,
  22539. result = Array(set.size);
  22540. set.forEach(function(value) {
  22541. result[++index] = value;
  22542. });
  22543. return result;
  22544. }
  22545. /** Used for built-in method references. */
  22546. var arrayProto = Array.prototype,
  22547. funcProto = Function.prototype,
  22548. objectProto = Object.prototype;
  22549. /** Used to detect overreaching core-js shims. */
  22550. var coreJsData = root['__core-js_shared__'];
  22551. /** Used to detect methods masquerading as native. */
  22552. var maskSrcKey = (function() {
  22553. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  22554. return uid ? ('Symbol(src)_1.' + uid) : '';
  22555. }());
  22556. /** Used to resolve the decompiled source of functions. */
  22557. var funcToString = funcProto.toString;
  22558. /** Used to check objects for own properties. */
  22559. var hasOwnProperty = objectProto.hasOwnProperty;
  22560. /**
  22561. * Used to resolve the
  22562. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  22563. * of values.
  22564. */
  22565. var objectToString = objectProto.toString;
  22566. /** Used to detect if a method is native. */
  22567. var reIsNative = RegExp('^' +
  22568. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  22569. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  22570. );
  22571. /** Built-in value references. */
  22572. var Buffer = moduleExports ? root.Buffer : undefined,
  22573. Symbol = root.Symbol,
  22574. Uint8Array = root.Uint8Array,
  22575. getPrototype = overArg(Object.getPrototypeOf, Object),
  22576. objectCreate = Object.create,
  22577. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  22578. splice = arrayProto.splice;
  22579. /* Built-in method references for those with the same name as other `lodash` methods. */
  22580. var nativeGetSymbols = Object.getOwnPropertySymbols,
  22581. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  22582. nativeKeys = overArg(Object.keys, Object);
  22583. /* Built-in method references that are verified to be native. */
  22584. var DataView = getNative(root, 'DataView'),
  22585. Map = getNative(root, 'Map'),
  22586. Promise = getNative(root, 'Promise'),
  22587. Set = getNative(root, 'Set'),
  22588. WeakMap = getNative(root, 'WeakMap'),
  22589. nativeCreate = getNative(Object, 'create');
  22590. /** Used to detect maps, sets, and weakmaps. */
  22591. var dataViewCtorString = toSource(DataView),
  22592. mapCtorString = toSource(Map),
  22593. promiseCtorString = toSource(Promise),
  22594. setCtorString = toSource(Set),
  22595. weakMapCtorString = toSource(WeakMap);
  22596. /** Used to convert symbols to primitives and strings. */
  22597. var symbolProto = Symbol ? Symbol.prototype : undefined,
  22598. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  22599. /**
  22600. * Creates a hash object.
  22601. *
  22602. * @private
  22603. * @constructor
  22604. * @param {Array} [entries] The key-value pairs to cache.
  22605. */
  22606. function Hash(entries) {
  22607. var index = -1,
  22608. length = entries ? entries.length : 0;
  22609. this.clear();
  22610. while (++index < length) {
  22611. var entry = entries[index];
  22612. this.set(entry[0], entry[1]);
  22613. }
  22614. }
  22615. /**
  22616. * Removes all key-value entries from the hash.
  22617. *
  22618. * @private
  22619. * @name clear
  22620. * @memberOf Hash
  22621. */
  22622. function hashClear() {
  22623. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  22624. }
  22625. /**
  22626. * Removes `key` and its value from the hash.
  22627. *
  22628. * @private
  22629. * @name delete
  22630. * @memberOf Hash
  22631. * @param {Object} hash The hash to modify.
  22632. * @param {string} key The key of the value to remove.
  22633. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22634. */
  22635. function hashDelete(key) {
  22636. return this.has(key) && delete this.__data__[key];
  22637. }
  22638. /**
  22639. * Gets the hash value for `key`.
  22640. *
  22641. * @private
  22642. * @name get
  22643. * @memberOf Hash
  22644. * @param {string} key The key of the value to get.
  22645. * @returns {*} Returns the entry value.
  22646. */
  22647. function hashGet(key) {
  22648. var data = this.__data__;
  22649. if (nativeCreate) {
  22650. var result = data[key];
  22651. return result === HASH_UNDEFINED ? undefined : result;
  22652. }
  22653. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  22654. }
  22655. /**
  22656. * Checks if a hash value for `key` exists.
  22657. *
  22658. * @private
  22659. * @name has
  22660. * @memberOf Hash
  22661. * @param {string} key The key of the entry to check.
  22662. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22663. */
  22664. function hashHas(key) {
  22665. var data = this.__data__;
  22666. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  22667. }
  22668. /**
  22669. * Sets the hash `key` to `value`.
  22670. *
  22671. * @private
  22672. * @name set
  22673. * @memberOf Hash
  22674. * @param {string} key The key of the value to set.
  22675. * @param {*} value The value to set.
  22676. * @returns {Object} Returns the hash instance.
  22677. */
  22678. function hashSet(key, value) {
  22679. var data = this.__data__;
  22680. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  22681. return this;
  22682. }
  22683. // Add methods to `Hash`.
  22684. Hash.prototype.clear = hashClear;
  22685. Hash.prototype['delete'] = hashDelete;
  22686. Hash.prototype.get = hashGet;
  22687. Hash.prototype.has = hashHas;
  22688. Hash.prototype.set = hashSet;
  22689. /**
  22690. * Creates an list cache object.
  22691. *
  22692. * @private
  22693. * @constructor
  22694. * @param {Array} [entries] The key-value pairs to cache.
  22695. */
  22696. function ListCache(entries) {
  22697. var index = -1,
  22698. length = entries ? entries.length : 0;
  22699. this.clear();
  22700. while (++index < length) {
  22701. var entry = entries[index];
  22702. this.set(entry[0], entry[1]);
  22703. }
  22704. }
  22705. /**
  22706. * Removes all key-value entries from the list cache.
  22707. *
  22708. * @private
  22709. * @name clear
  22710. * @memberOf ListCache
  22711. */
  22712. function listCacheClear() {
  22713. this.__data__ = [];
  22714. }
  22715. /**
  22716. * Removes `key` and its value from the list cache.
  22717. *
  22718. * @private
  22719. * @name delete
  22720. * @memberOf ListCache
  22721. * @param {string} key The key of the value to remove.
  22722. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22723. */
  22724. function listCacheDelete(key) {
  22725. var data = this.__data__,
  22726. index = assocIndexOf(data, key);
  22727. if (index < 0) {
  22728. return false;
  22729. }
  22730. var lastIndex = data.length - 1;
  22731. if (index == lastIndex) {
  22732. data.pop();
  22733. } else {
  22734. splice.call(data, index, 1);
  22735. }
  22736. return true;
  22737. }
  22738. /**
  22739. * Gets the list cache value for `key`.
  22740. *
  22741. * @private
  22742. * @name get
  22743. * @memberOf ListCache
  22744. * @param {string} key The key of the value to get.
  22745. * @returns {*} Returns the entry value.
  22746. */
  22747. function listCacheGet(key) {
  22748. var data = this.__data__,
  22749. index = assocIndexOf(data, key);
  22750. return index < 0 ? undefined : data[index][1];
  22751. }
  22752. /**
  22753. * Checks if a list cache value for `key` exists.
  22754. *
  22755. * @private
  22756. * @name has
  22757. * @memberOf ListCache
  22758. * @param {string} key The key of the entry to check.
  22759. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22760. */
  22761. function listCacheHas(key) {
  22762. return assocIndexOf(this.__data__, key) > -1;
  22763. }
  22764. /**
  22765. * Sets the list cache `key` to `value`.
  22766. *
  22767. * @private
  22768. * @name set
  22769. * @memberOf ListCache
  22770. * @param {string} key The key of the value to set.
  22771. * @param {*} value The value to set.
  22772. * @returns {Object} Returns the list cache instance.
  22773. */
  22774. function listCacheSet(key, value) {
  22775. var data = this.__data__,
  22776. index = assocIndexOf(data, key);
  22777. if (index < 0) {
  22778. data.push([key, value]);
  22779. } else {
  22780. data[index][1] = value;
  22781. }
  22782. return this;
  22783. }
  22784. // Add methods to `ListCache`.
  22785. ListCache.prototype.clear = listCacheClear;
  22786. ListCache.prototype['delete'] = listCacheDelete;
  22787. ListCache.prototype.get = listCacheGet;
  22788. ListCache.prototype.has = listCacheHas;
  22789. ListCache.prototype.set = listCacheSet;
  22790. /**
  22791. * Creates a map cache object to store key-value pairs.
  22792. *
  22793. * @private
  22794. * @constructor
  22795. * @param {Array} [entries] The key-value pairs to cache.
  22796. */
  22797. function MapCache(entries) {
  22798. var index = -1,
  22799. length = entries ? entries.length : 0;
  22800. this.clear();
  22801. while (++index < length) {
  22802. var entry = entries[index];
  22803. this.set(entry[0], entry[1]);
  22804. }
  22805. }
  22806. /**
  22807. * Removes all key-value entries from the map.
  22808. *
  22809. * @private
  22810. * @name clear
  22811. * @memberOf MapCache
  22812. */
  22813. function mapCacheClear() {
  22814. this.__data__ = {
  22815. 'hash': new Hash,
  22816. 'map': new (Map || ListCache),
  22817. 'string': new Hash
  22818. };
  22819. }
  22820. /**
  22821. * Removes `key` and its value from the map.
  22822. *
  22823. * @private
  22824. * @name delete
  22825. * @memberOf MapCache
  22826. * @param {string} key The key of the value to remove.
  22827. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22828. */
  22829. function mapCacheDelete(key) {
  22830. return getMapData(this, key)['delete'](key);
  22831. }
  22832. /**
  22833. * Gets the map value for `key`.
  22834. *
  22835. * @private
  22836. * @name get
  22837. * @memberOf MapCache
  22838. * @param {string} key The key of the value to get.
  22839. * @returns {*} Returns the entry value.
  22840. */
  22841. function mapCacheGet(key) {
  22842. return getMapData(this, key).get(key);
  22843. }
  22844. /**
  22845. * Checks if a map value for `key` exists.
  22846. *
  22847. * @private
  22848. * @name has
  22849. * @memberOf MapCache
  22850. * @param {string} key The key of the entry to check.
  22851. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22852. */
  22853. function mapCacheHas(key) {
  22854. return getMapData(this, key).has(key);
  22855. }
  22856. /**
  22857. * Sets the map `key` to `value`.
  22858. *
  22859. * @private
  22860. * @name set
  22861. * @memberOf MapCache
  22862. * @param {string} key The key of the value to set.
  22863. * @param {*} value The value to set.
  22864. * @returns {Object} Returns the map cache instance.
  22865. */
  22866. function mapCacheSet(key, value) {
  22867. getMapData(this, key).set(key, value);
  22868. return this;
  22869. }
  22870. // Add methods to `MapCache`.
  22871. MapCache.prototype.clear = mapCacheClear;
  22872. MapCache.prototype['delete'] = mapCacheDelete;
  22873. MapCache.prototype.get = mapCacheGet;
  22874. MapCache.prototype.has = mapCacheHas;
  22875. MapCache.prototype.set = mapCacheSet;
  22876. /**
  22877. * Creates a stack cache object to store key-value pairs.
  22878. *
  22879. * @private
  22880. * @constructor
  22881. * @param {Array} [entries] The key-value pairs to cache.
  22882. */
  22883. function Stack(entries) {
  22884. this.__data__ = new ListCache(entries);
  22885. }
  22886. /**
  22887. * Removes all key-value entries from the stack.
  22888. *
  22889. * @private
  22890. * @name clear
  22891. * @memberOf Stack
  22892. */
  22893. function stackClear() {
  22894. this.__data__ = new ListCache;
  22895. }
  22896. /**
  22897. * Removes `key` and its value from the stack.
  22898. *
  22899. * @private
  22900. * @name delete
  22901. * @memberOf Stack
  22902. * @param {string} key The key of the value to remove.
  22903. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22904. */
  22905. function stackDelete(key) {
  22906. return this.__data__['delete'](key);
  22907. }
  22908. /**
  22909. * Gets the stack value for `key`.
  22910. *
  22911. * @private
  22912. * @name get
  22913. * @memberOf Stack
  22914. * @param {string} key The key of the value to get.
  22915. * @returns {*} Returns the entry value.
  22916. */
  22917. function stackGet(key) {
  22918. return this.__data__.get(key);
  22919. }
  22920. /**
  22921. * Checks if a stack value for `key` exists.
  22922. *
  22923. * @private
  22924. * @name has
  22925. * @memberOf Stack
  22926. * @param {string} key The key of the entry to check.
  22927. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22928. */
  22929. function stackHas(key) {
  22930. return this.__data__.has(key);
  22931. }
  22932. /**
  22933. * Sets the stack `key` to `value`.
  22934. *
  22935. * @private
  22936. * @name set
  22937. * @memberOf Stack
  22938. * @param {string} key The key of the value to set.
  22939. * @param {*} value The value to set.
  22940. * @returns {Object} Returns the stack cache instance.
  22941. */
  22942. function stackSet(key, value) {
  22943. var cache = this.__data__;
  22944. if (cache instanceof ListCache) {
  22945. var pairs = cache.__data__;
  22946. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  22947. pairs.push([key, value]);
  22948. return this;
  22949. }
  22950. cache = this.__data__ = new MapCache(pairs);
  22951. }
  22952. cache.set(key, value);
  22953. return this;
  22954. }
  22955. // Add methods to `Stack`.
  22956. Stack.prototype.clear = stackClear;
  22957. Stack.prototype['delete'] = stackDelete;
  22958. Stack.prototype.get = stackGet;
  22959. Stack.prototype.has = stackHas;
  22960. Stack.prototype.set = stackSet;
  22961. /**
  22962. * Creates an array of the enumerable property names of the array-like `value`.
  22963. *
  22964. * @private
  22965. * @param {*} value The value to query.
  22966. * @param {boolean} inherited Specify returning inherited property names.
  22967. * @returns {Array} Returns the array of property names.
  22968. */
  22969. function arrayLikeKeys(value, inherited) {
  22970. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  22971. // Safari 9 makes `arguments.length` enumerable in strict mode.
  22972. var result = (isArray(value) || isArguments(value))
  22973. ? baseTimes(value.length, String)
  22974. : [];
  22975. var length = result.length,
  22976. skipIndexes = !!length;
  22977. for (var key in value) {
  22978. if ((inherited || hasOwnProperty.call(value, key)) &&
  22979. !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
  22980. result.push(key);
  22981. }
  22982. }
  22983. return result;
  22984. }
  22985. /**
  22986. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  22987. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22988. * for equality comparisons.
  22989. *
  22990. * @private
  22991. * @param {Object} object The object to modify.
  22992. * @param {string} key The key of the property to assign.
  22993. * @param {*} value The value to assign.
  22994. */
  22995. function assignValue(object, key, value) {
  22996. var objValue = object[key];
  22997. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  22998. (value === undefined && !(key in object))) {
  22999. object[key] = value;
  23000. }
  23001. }
  23002. /**
  23003. * Gets the index at which the `key` is found in `array` of key-value pairs.
  23004. *
  23005. * @private
  23006. * @param {Array} array The array to inspect.
  23007. * @param {*} key The key to search for.
  23008. * @returns {number} Returns the index of the matched value, else `-1`.
  23009. */
  23010. function assocIndexOf(array, key) {
  23011. var length = array.length;
  23012. while (length--) {
  23013. if (eq(array[length][0], key)) {
  23014. return length;
  23015. }
  23016. }
  23017. return -1;
  23018. }
  23019. /**
  23020. * The base implementation of `_.assign` without support for multiple sources
  23021. * or `customizer` functions.
  23022. *
  23023. * @private
  23024. * @param {Object} object The destination object.
  23025. * @param {Object} source The source object.
  23026. * @returns {Object} Returns `object`.
  23027. */
  23028. function baseAssign(object, source) {
  23029. return object && copyObject(source, keys(source), object);
  23030. }
  23031. /**
  23032. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  23033. * traversed objects.
  23034. *
  23035. * @private
  23036. * @param {*} value The value to clone.
  23037. * @param {boolean} [isDeep] Specify a deep clone.
  23038. * @param {boolean} [isFull] Specify a clone including symbols.
  23039. * @param {Function} [customizer] The function to customize cloning.
  23040. * @param {string} [key] The key of `value`.
  23041. * @param {Object} [object] The parent object of `value`.
  23042. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  23043. * @returns {*} Returns the cloned value.
  23044. */
  23045. function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
  23046. var result;
  23047. if (customizer) {
  23048. result = object ? customizer(value, key, object, stack) : customizer(value);
  23049. }
  23050. if (result !== undefined) {
  23051. return result;
  23052. }
  23053. if (!isObject(value)) {
  23054. return value;
  23055. }
  23056. var isArr = isArray(value);
  23057. if (isArr) {
  23058. result = initCloneArray(value);
  23059. if (!isDeep) {
  23060. return copyArray(value, result);
  23061. }
  23062. } else {
  23063. var tag = getTag(value),
  23064. isFunc = tag == funcTag || tag == genTag;
  23065. if (isBuffer(value)) {
  23066. return cloneBuffer(value, isDeep);
  23067. }
  23068. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  23069. if (isHostObject(value)) {
  23070. return object ? value : {};
  23071. }
  23072. result = initCloneObject(isFunc ? {} : value);
  23073. if (!isDeep) {
  23074. return copySymbols(value, baseAssign(result, value));
  23075. }
  23076. } else {
  23077. if (!cloneableTags[tag]) {
  23078. return object ? value : {};
  23079. }
  23080. result = initCloneByTag(value, tag, baseClone, isDeep);
  23081. }
  23082. }
  23083. // Check for circular references and return its corresponding clone.
  23084. stack || (stack = new Stack);
  23085. var stacked = stack.get(value);
  23086. if (stacked) {
  23087. return stacked;
  23088. }
  23089. stack.set(value, result);
  23090. if (!isArr) {
  23091. var props = isFull ? getAllKeys(value) : keys(value);
  23092. }
  23093. arrayEach(props || value, function(subValue, key) {
  23094. if (props) {
  23095. key = subValue;
  23096. subValue = value[key];
  23097. }
  23098. // Recursively populate clone (susceptible to call stack limits).
  23099. assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
  23100. });
  23101. return result;
  23102. }
  23103. /**
  23104. * The base implementation of `_.create` without support for assigning
  23105. * properties to the created object.
  23106. *
  23107. * @private
  23108. * @param {Object} prototype The object to inherit from.
  23109. * @returns {Object} Returns the new object.
  23110. */
  23111. function baseCreate(proto) {
  23112. return isObject(proto) ? objectCreate(proto) : {};
  23113. }
  23114. /**
  23115. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  23116. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  23117. * symbols of `object`.
  23118. *
  23119. * @private
  23120. * @param {Object} object The object to query.
  23121. * @param {Function} keysFunc The function to get the keys of `object`.
  23122. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  23123. * @returns {Array} Returns the array of property names and symbols.
  23124. */
  23125. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  23126. var result = keysFunc(object);
  23127. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  23128. }
  23129. /**
  23130. * The base implementation of `getTag`.
  23131. *
  23132. * @private
  23133. * @param {*} value The value to query.
  23134. * @returns {string} Returns the `toStringTag`.
  23135. */
  23136. function baseGetTag(value) {
  23137. return objectToString.call(value);
  23138. }
  23139. /**
  23140. * The base implementation of `_.isNative` without bad shim checks.
  23141. *
  23142. * @private
  23143. * @param {*} value The value to check.
  23144. * @returns {boolean} Returns `true` if `value` is a native function,
  23145. * else `false`.
  23146. */
  23147. function baseIsNative(value) {
  23148. if (!isObject(value) || isMasked(value)) {
  23149. return false;
  23150. }
  23151. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  23152. return pattern.test(toSource(value));
  23153. }
  23154. /**
  23155. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  23156. *
  23157. * @private
  23158. * @param {Object} object The object to query.
  23159. * @returns {Array} Returns the array of property names.
  23160. */
  23161. function baseKeys(object) {
  23162. if (!isPrototype(object)) {
  23163. return nativeKeys(object);
  23164. }
  23165. var result = [];
  23166. for (var key in Object(object)) {
  23167. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  23168. result.push(key);
  23169. }
  23170. }
  23171. return result;
  23172. }
  23173. /**
  23174. * Creates a clone of `buffer`.
  23175. *
  23176. * @private
  23177. * @param {Buffer} buffer The buffer to clone.
  23178. * @param {boolean} [isDeep] Specify a deep clone.
  23179. * @returns {Buffer} Returns the cloned buffer.
  23180. */
  23181. function cloneBuffer(buffer, isDeep) {
  23182. if (isDeep) {
  23183. return buffer.slice();
  23184. }
  23185. var result = new buffer.constructor(buffer.length);
  23186. buffer.copy(result);
  23187. return result;
  23188. }
  23189. /**
  23190. * Creates a clone of `arrayBuffer`.
  23191. *
  23192. * @private
  23193. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  23194. * @returns {ArrayBuffer} Returns the cloned array buffer.
  23195. */
  23196. function cloneArrayBuffer(arrayBuffer) {
  23197. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  23198. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  23199. return result;
  23200. }
  23201. /**
  23202. * Creates a clone of `dataView`.
  23203. *
  23204. * @private
  23205. * @param {Object} dataView The data view to clone.
  23206. * @param {boolean} [isDeep] Specify a deep clone.
  23207. * @returns {Object} Returns the cloned data view.
  23208. */
  23209. function cloneDataView(dataView, isDeep) {
  23210. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  23211. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  23212. }
  23213. /**
  23214. * Creates a clone of `map`.
  23215. *
  23216. * @private
  23217. * @param {Object} map The map to clone.
  23218. * @param {Function} cloneFunc The function to clone values.
  23219. * @param {boolean} [isDeep] Specify a deep clone.
  23220. * @returns {Object} Returns the cloned map.
  23221. */
  23222. function cloneMap(map, isDeep, cloneFunc) {
  23223. var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
  23224. return arrayReduce(array, addMapEntry, new map.constructor);
  23225. }
  23226. /**
  23227. * Creates a clone of `regexp`.
  23228. *
  23229. * @private
  23230. * @param {Object} regexp The regexp to clone.
  23231. * @returns {Object} Returns the cloned regexp.
  23232. */
  23233. function cloneRegExp(regexp) {
  23234. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  23235. result.lastIndex = regexp.lastIndex;
  23236. return result;
  23237. }
  23238. /**
  23239. * Creates a clone of `set`.
  23240. *
  23241. * @private
  23242. * @param {Object} set The set to clone.
  23243. * @param {Function} cloneFunc The function to clone values.
  23244. * @param {boolean} [isDeep] Specify a deep clone.
  23245. * @returns {Object} Returns the cloned set.
  23246. */
  23247. function cloneSet(set, isDeep, cloneFunc) {
  23248. var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
  23249. return arrayReduce(array, addSetEntry, new set.constructor);
  23250. }
  23251. /**
  23252. * Creates a clone of the `symbol` object.
  23253. *
  23254. * @private
  23255. * @param {Object} symbol The symbol object to clone.
  23256. * @returns {Object} Returns the cloned symbol object.
  23257. */
  23258. function cloneSymbol(symbol) {
  23259. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  23260. }
  23261. /**
  23262. * Creates a clone of `typedArray`.
  23263. *
  23264. * @private
  23265. * @param {Object} typedArray The typed array to clone.
  23266. * @param {boolean} [isDeep] Specify a deep clone.
  23267. * @returns {Object} Returns the cloned typed array.
  23268. */
  23269. function cloneTypedArray(typedArray, isDeep) {
  23270. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  23271. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  23272. }
  23273. /**
  23274. * Copies the values of `source` to `array`.
  23275. *
  23276. * @private
  23277. * @param {Array} source The array to copy values from.
  23278. * @param {Array} [array=[]] The array to copy values to.
  23279. * @returns {Array} Returns `array`.
  23280. */
  23281. function copyArray(source, array) {
  23282. var index = -1,
  23283. length = source.length;
  23284. array || (array = Array(length));
  23285. while (++index < length) {
  23286. array[index] = source[index];
  23287. }
  23288. return array;
  23289. }
  23290. /**
  23291. * Copies properties of `source` to `object`.
  23292. *
  23293. * @private
  23294. * @param {Object} source The object to copy properties from.
  23295. * @param {Array} props The property identifiers to copy.
  23296. * @param {Object} [object={}] The object to copy properties to.
  23297. * @param {Function} [customizer] The function to customize copied values.
  23298. * @returns {Object} Returns `object`.
  23299. */
  23300. function copyObject(source, props, object, customizer) {
  23301. object || (object = {});
  23302. var index = -1,
  23303. length = props.length;
  23304. while (++index < length) {
  23305. var key = props[index];
  23306. var newValue = customizer
  23307. ? customizer(object[key], source[key], key, object, source)
  23308. : undefined;
  23309. assignValue(object, key, newValue === undefined ? source[key] : newValue);
  23310. }
  23311. return object;
  23312. }
  23313. /**
  23314. * Copies own symbol properties of `source` to `object`.
  23315. *
  23316. * @private
  23317. * @param {Object} source The object to copy symbols from.
  23318. * @param {Object} [object={}] The object to copy symbols to.
  23319. * @returns {Object} Returns `object`.
  23320. */
  23321. function copySymbols(source, object) {
  23322. return copyObject(source, getSymbols(source), object);
  23323. }
  23324. /**
  23325. * Creates an array of own enumerable property names and symbols of `object`.
  23326. *
  23327. * @private
  23328. * @param {Object} object The object to query.
  23329. * @returns {Array} Returns the array of property names and symbols.
  23330. */
  23331. function getAllKeys(object) {
  23332. return baseGetAllKeys(object, keys, getSymbols);
  23333. }
  23334. /**
  23335. * Gets the data for `map`.
  23336. *
  23337. * @private
  23338. * @param {Object} map The map to query.
  23339. * @param {string} key The reference key.
  23340. * @returns {*} Returns the map data.
  23341. */
  23342. function getMapData(map, key) {
  23343. var data = map.__data__;
  23344. return isKeyable(key)
  23345. ? data[typeof key == 'string' ? 'string' : 'hash']
  23346. : data.map;
  23347. }
  23348. /**
  23349. * Gets the native function at `key` of `object`.
  23350. *
  23351. * @private
  23352. * @param {Object} object The object to query.
  23353. * @param {string} key The key of the method to get.
  23354. * @returns {*} Returns the function if it's native, else `undefined`.
  23355. */
  23356. function getNative(object, key) {
  23357. var value = getValue(object, key);
  23358. return baseIsNative(value) ? value : undefined;
  23359. }
  23360. /**
  23361. * Creates an array of the own enumerable symbol properties of `object`.
  23362. *
  23363. * @private
  23364. * @param {Object} object The object to query.
  23365. * @returns {Array} Returns the array of symbols.
  23366. */
  23367. var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
  23368. /**
  23369. * Gets the `toStringTag` of `value`.
  23370. *
  23371. * @private
  23372. * @param {*} value The value to query.
  23373. * @returns {string} Returns the `toStringTag`.
  23374. */
  23375. var getTag = baseGetTag;
  23376. // Fallback for data views, maps, sets, and weak maps in IE 11,
  23377. // for data views in Edge < 14, and promises in Node.js.
  23378. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  23379. (Map && getTag(new Map) != mapTag) ||
  23380. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  23381. (Set && getTag(new Set) != setTag) ||
  23382. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  23383. getTag = function(value) {
  23384. var result = objectToString.call(value),
  23385. Ctor = result == objectTag ? value.constructor : undefined,
  23386. ctorString = Ctor ? toSource(Ctor) : undefined;
  23387. if (ctorString) {
  23388. switch (ctorString) {
  23389. case dataViewCtorString: return dataViewTag;
  23390. case mapCtorString: return mapTag;
  23391. case promiseCtorString: return promiseTag;
  23392. case setCtorString: return setTag;
  23393. case weakMapCtorString: return weakMapTag;
  23394. }
  23395. }
  23396. return result;
  23397. };
  23398. }
  23399. /**
  23400. * Initializes an array clone.
  23401. *
  23402. * @private
  23403. * @param {Array} array The array to clone.
  23404. * @returns {Array} Returns the initialized clone.
  23405. */
  23406. function initCloneArray(array) {
  23407. var length = array.length,
  23408. result = array.constructor(length);
  23409. // Add properties assigned by `RegExp#exec`.
  23410. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  23411. result.index = array.index;
  23412. result.input = array.input;
  23413. }
  23414. return result;
  23415. }
  23416. /**
  23417. * Initializes an object clone.
  23418. *
  23419. * @private
  23420. * @param {Object} object The object to clone.
  23421. * @returns {Object} Returns the initialized clone.
  23422. */
  23423. function initCloneObject(object) {
  23424. return (typeof object.constructor == 'function' && !isPrototype(object))
  23425. ? baseCreate(getPrototype(object))
  23426. : {};
  23427. }
  23428. /**
  23429. * Initializes an object clone based on its `toStringTag`.
  23430. *
  23431. * **Note:** This function only supports cloning values with tags of
  23432. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  23433. *
  23434. * @private
  23435. * @param {Object} object The object to clone.
  23436. * @param {string} tag The `toStringTag` of the object to clone.
  23437. * @param {Function} cloneFunc The function to clone values.
  23438. * @param {boolean} [isDeep] Specify a deep clone.
  23439. * @returns {Object} Returns the initialized clone.
  23440. */
  23441. function initCloneByTag(object, tag, cloneFunc, isDeep) {
  23442. var Ctor = object.constructor;
  23443. switch (tag) {
  23444. case arrayBufferTag:
  23445. return cloneArrayBuffer(object);
  23446. case boolTag:
  23447. case dateTag:
  23448. return new Ctor(+object);
  23449. case dataViewTag:
  23450. return cloneDataView(object, isDeep);
  23451. case float32Tag: case float64Tag:
  23452. case int8Tag: case int16Tag: case int32Tag:
  23453. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  23454. return cloneTypedArray(object, isDeep);
  23455. case mapTag:
  23456. return cloneMap(object, isDeep, cloneFunc);
  23457. case numberTag:
  23458. case stringTag:
  23459. return new Ctor(object);
  23460. case regexpTag:
  23461. return cloneRegExp(object);
  23462. case setTag:
  23463. return cloneSet(object, isDeep, cloneFunc);
  23464. case symbolTag:
  23465. return cloneSymbol(object);
  23466. }
  23467. }
  23468. /**
  23469. * Checks if `value` is a valid array-like index.
  23470. *
  23471. * @private
  23472. * @param {*} value The value to check.
  23473. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  23474. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  23475. */
  23476. function isIndex(value, length) {
  23477. length = length == null ? MAX_SAFE_INTEGER : length;
  23478. return !!length &&
  23479. (typeof value == 'number' || reIsUint.test(value)) &&
  23480. (value > -1 && value % 1 == 0 && value < length);
  23481. }
  23482. /**
  23483. * Checks if `value` is suitable for use as unique object key.
  23484. *
  23485. * @private
  23486. * @param {*} value The value to check.
  23487. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  23488. */
  23489. function isKeyable(value) {
  23490. var type = typeof value;
  23491. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  23492. ? (value !== '__proto__')
  23493. : (value === null);
  23494. }
  23495. /**
  23496. * Checks if `func` has its source masked.
  23497. *
  23498. * @private
  23499. * @param {Function} func The function to check.
  23500. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  23501. */
  23502. function isMasked(func) {
  23503. return !!maskSrcKey && (maskSrcKey in func);
  23504. }
  23505. /**
  23506. * Checks if `value` is likely a prototype object.
  23507. *
  23508. * @private
  23509. * @param {*} value The value to check.
  23510. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  23511. */
  23512. function isPrototype(value) {
  23513. var Ctor = value && value.constructor,
  23514. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  23515. return value === proto;
  23516. }
  23517. /**
  23518. * Converts `func` to its source code.
  23519. *
  23520. * @private
  23521. * @param {Function} func The function to process.
  23522. * @returns {string} Returns the source code.
  23523. */
  23524. function toSource(func) {
  23525. if (func != null) {
  23526. try {
  23527. return funcToString.call(func);
  23528. } catch (e) {}
  23529. try {
  23530. return (func + '');
  23531. } catch (e) {}
  23532. }
  23533. return '';
  23534. }
  23535. /**
  23536. * This method is like `_.clone` except that it recursively clones `value`.
  23537. *
  23538. * @static
  23539. * @memberOf _
  23540. * @since 1.0.0
  23541. * @category Lang
  23542. * @param {*} value The value to recursively clone.
  23543. * @returns {*} Returns the deep cloned value.
  23544. * @see _.clone
  23545. * @example
  23546. *
  23547. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  23548. *
  23549. * var deep = _.cloneDeep(objects);
  23550. * console.log(deep[0] === objects[0]);
  23551. * // => false
  23552. */
  23553. function cloneDeep(value) {
  23554. return baseClone(value, true, true);
  23555. }
  23556. /**
  23557. * Performs a
  23558. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23559. * comparison between two values to determine if they are equivalent.
  23560. *
  23561. * @static
  23562. * @memberOf _
  23563. * @since 4.0.0
  23564. * @category Lang
  23565. * @param {*} value The value to compare.
  23566. * @param {*} other The other value to compare.
  23567. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  23568. * @example
  23569. *
  23570. * var object = { 'a': 1 };
  23571. * var other = { 'a': 1 };
  23572. *
  23573. * _.eq(object, object);
  23574. * // => true
  23575. *
  23576. * _.eq(object, other);
  23577. * // => false
  23578. *
  23579. * _.eq('a', 'a');
  23580. * // => true
  23581. *
  23582. * _.eq('a', Object('a'));
  23583. * // => false
  23584. *
  23585. * _.eq(NaN, NaN);
  23586. * // => true
  23587. */
  23588. function eq(value, other) {
  23589. return value === other || (value !== value && other !== other);
  23590. }
  23591. /**
  23592. * Checks if `value` is likely an `arguments` object.
  23593. *
  23594. * @static
  23595. * @memberOf _
  23596. * @since 0.1.0
  23597. * @category Lang
  23598. * @param {*} value The value to check.
  23599. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  23600. * else `false`.
  23601. * @example
  23602. *
  23603. * _.isArguments(function() { return arguments; }());
  23604. * // => true
  23605. *
  23606. * _.isArguments([1, 2, 3]);
  23607. * // => false
  23608. */
  23609. function isArguments(value) {
  23610. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  23611. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
  23612. (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
  23613. }
  23614. /**
  23615. * Checks if `value` is classified as an `Array` object.
  23616. *
  23617. * @static
  23618. * @memberOf _
  23619. * @since 0.1.0
  23620. * @category Lang
  23621. * @param {*} value The value to check.
  23622. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  23623. * @example
  23624. *
  23625. * _.isArray([1, 2, 3]);
  23626. * // => true
  23627. *
  23628. * _.isArray(document.body.children);
  23629. * // => false
  23630. *
  23631. * _.isArray('abc');
  23632. * // => false
  23633. *
  23634. * _.isArray(_.noop);
  23635. * // => false
  23636. */
  23637. var isArray = Array.isArray;
  23638. /**
  23639. * Checks if `value` is array-like. A value is considered array-like if it's
  23640. * not a function and has a `value.length` that's an integer greater than or
  23641. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  23642. *
  23643. * @static
  23644. * @memberOf _
  23645. * @since 4.0.0
  23646. * @category Lang
  23647. * @param {*} value The value to check.
  23648. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  23649. * @example
  23650. *
  23651. * _.isArrayLike([1, 2, 3]);
  23652. * // => true
  23653. *
  23654. * _.isArrayLike(document.body.children);
  23655. * // => true
  23656. *
  23657. * _.isArrayLike('abc');
  23658. * // => true
  23659. *
  23660. * _.isArrayLike(_.noop);
  23661. * // => false
  23662. */
  23663. function isArrayLike(value) {
  23664. return value != null && isLength(value.length) && !isFunction(value);
  23665. }
  23666. /**
  23667. * This method is like `_.isArrayLike` except that it also checks if `value`
  23668. * is an object.
  23669. *
  23670. * @static
  23671. * @memberOf _
  23672. * @since 4.0.0
  23673. * @category Lang
  23674. * @param {*} value The value to check.
  23675. * @returns {boolean} Returns `true` if `value` is an array-like object,
  23676. * else `false`.
  23677. * @example
  23678. *
  23679. * _.isArrayLikeObject([1, 2, 3]);
  23680. * // => true
  23681. *
  23682. * _.isArrayLikeObject(document.body.children);
  23683. * // => true
  23684. *
  23685. * _.isArrayLikeObject('abc');
  23686. * // => false
  23687. *
  23688. * _.isArrayLikeObject(_.noop);
  23689. * // => false
  23690. */
  23691. function isArrayLikeObject(value) {
  23692. return isObjectLike(value) && isArrayLike(value);
  23693. }
  23694. /**
  23695. * Checks if `value` is a buffer.
  23696. *
  23697. * @static
  23698. * @memberOf _
  23699. * @since 4.3.0
  23700. * @category Lang
  23701. * @param {*} value The value to check.
  23702. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  23703. * @example
  23704. *
  23705. * _.isBuffer(new Buffer(2));
  23706. * // => true
  23707. *
  23708. * _.isBuffer(new Uint8Array(2));
  23709. * // => false
  23710. */
  23711. var isBuffer = nativeIsBuffer || stubFalse;
  23712. /**
  23713. * Checks if `value` is classified as a `Function` object.
  23714. *
  23715. * @static
  23716. * @memberOf _
  23717. * @since 0.1.0
  23718. * @category Lang
  23719. * @param {*} value The value to check.
  23720. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  23721. * @example
  23722. *
  23723. * _.isFunction(_);
  23724. * // => true
  23725. *
  23726. * _.isFunction(/abc/);
  23727. * // => false
  23728. */
  23729. function isFunction(value) {
  23730. // The use of `Object#toString` avoids issues with the `typeof` operator
  23731. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  23732. var tag = isObject(value) ? objectToString.call(value) : '';
  23733. return tag == funcTag || tag == genTag;
  23734. }
  23735. /**
  23736. * Checks if `value` is a valid array-like length.
  23737. *
  23738. * **Note:** This method is loosely based on
  23739. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  23740. *
  23741. * @static
  23742. * @memberOf _
  23743. * @since 4.0.0
  23744. * @category Lang
  23745. * @param {*} value The value to check.
  23746. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  23747. * @example
  23748. *
  23749. * _.isLength(3);
  23750. * // => true
  23751. *
  23752. * _.isLength(Number.MIN_VALUE);
  23753. * // => false
  23754. *
  23755. * _.isLength(Infinity);
  23756. * // => false
  23757. *
  23758. * _.isLength('3');
  23759. * // => false
  23760. */
  23761. function isLength(value) {
  23762. return typeof value == 'number' &&
  23763. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  23764. }
  23765. /**
  23766. * Checks if `value` is the
  23767. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  23768. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  23769. *
  23770. * @static
  23771. * @memberOf _
  23772. * @since 0.1.0
  23773. * @category Lang
  23774. * @param {*} value The value to check.
  23775. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  23776. * @example
  23777. *
  23778. * _.isObject({});
  23779. * // => true
  23780. *
  23781. * _.isObject([1, 2, 3]);
  23782. * // => true
  23783. *
  23784. * _.isObject(_.noop);
  23785. * // => true
  23786. *
  23787. * _.isObject(null);
  23788. * // => false
  23789. */
  23790. function isObject(value) {
  23791. var type = typeof value;
  23792. return !!value && (type == 'object' || type == 'function');
  23793. }
  23794. /**
  23795. * Checks if `value` is object-like. A value is object-like if it's not `null`
  23796. * and has a `typeof` result of "object".
  23797. *
  23798. * @static
  23799. * @memberOf _
  23800. * @since 4.0.0
  23801. * @category Lang
  23802. * @param {*} value The value to check.
  23803. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  23804. * @example
  23805. *
  23806. * _.isObjectLike({});
  23807. * // => true
  23808. *
  23809. * _.isObjectLike([1, 2, 3]);
  23810. * // => true
  23811. *
  23812. * _.isObjectLike(_.noop);
  23813. * // => false
  23814. *
  23815. * _.isObjectLike(null);
  23816. * // => false
  23817. */
  23818. function isObjectLike(value) {
  23819. return !!value && typeof value == 'object';
  23820. }
  23821. /**
  23822. * Creates an array of the own enumerable property names of `object`.
  23823. *
  23824. * **Note:** Non-object values are coerced to objects. See the
  23825. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  23826. * for more details.
  23827. *
  23828. * @static
  23829. * @since 0.1.0
  23830. * @memberOf _
  23831. * @category Object
  23832. * @param {Object} object The object to query.
  23833. * @returns {Array} Returns the array of property names.
  23834. * @example
  23835. *
  23836. * function Foo() {
  23837. * this.a = 1;
  23838. * this.b = 2;
  23839. * }
  23840. *
  23841. * Foo.prototype.c = 3;
  23842. *
  23843. * _.keys(new Foo);
  23844. * // => ['a', 'b'] (iteration order is not guaranteed)
  23845. *
  23846. * _.keys('hi');
  23847. * // => ['0', '1']
  23848. */
  23849. function keys(object) {
  23850. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  23851. }
  23852. /**
  23853. * This method returns a new empty array.
  23854. *
  23855. * @static
  23856. * @memberOf _
  23857. * @since 4.13.0
  23858. * @category Util
  23859. * @returns {Array} Returns the new empty array.
  23860. * @example
  23861. *
  23862. * var arrays = _.times(2, _.stubArray);
  23863. *
  23864. * console.log(arrays);
  23865. * // => [[], []]
  23866. *
  23867. * console.log(arrays[0] === arrays[1]);
  23868. * // => false
  23869. */
  23870. function stubArray() {
  23871. return [];
  23872. }
  23873. /**
  23874. * This method returns `false`.
  23875. *
  23876. * @static
  23877. * @memberOf _
  23878. * @since 4.13.0
  23879. * @category Util
  23880. * @returns {boolean} Returns `false`.
  23881. * @example
  23882. *
  23883. * _.times(2, _.stubFalse);
  23884. * // => [false, false]
  23885. */
  23886. function stubFalse() {
  23887. return false;
  23888. }
  23889. module.exports = cloneDeep;
  23890. /***/ }),
  23891. /***/ "./node_modules/lodash.isequal/index.js":
  23892. /*!**********************************************!*\
  23893. !*** ./node_modules/lodash.isequal/index.js ***!
  23894. \**********************************************/
  23895. /***/ ((module, exports, __webpack_require__) => {
  23896. /* module decorator */ module = __webpack_require__.nmd(module);
  23897. /**
  23898. * Lodash (Custom Build) <https://lodash.com/>
  23899. * Build: `lodash modularize exports="npm" -o ./`
  23900. * Copyright JS Foundation and other contributors <https://js.foundation/>
  23901. * Released under MIT license <https://lodash.com/license>
  23902. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  23903. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  23904. */
  23905. /** Used as the size to enable large array optimizations. */
  23906. var LARGE_ARRAY_SIZE = 200;
  23907. /** Used to stand-in for `undefined` hash values. */
  23908. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  23909. /** Used to compose bitmasks for value comparisons. */
  23910. var COMPARE_PARTIAL_FLAG = 1,
  23911. COMPARE_UNORDERED_FLAG = 2;
  23912. /** Used as references for various `Number` constants. */
  23913. var MAX_SAFE_INTEGER = 9007199254740991;
  23914. /** `Object#toString` result references. */
  23915. var argsTag = '[object Arguments]',
  23916. arrayTag = '[object Array]',
  23917. asyncTag = '[object AsyncFunction]',
  23918. boolTag = '[object Boolean]',
  23919. dateTag = '[object Date]',
  23920. errorTag = '[object Error]',
  23921. funcTag = '[object Function]',
  23922. genTag = '[object GeneratorFunction]',
  23923. mapTag = '[object Map]',
  23924. numberTag = '[object Number]',
  23925. nullTag = '[object Null]',
  23926. objectTag = '[object Object]',
  23927. promiseTag = '[object Promise]',
  23928. proxyTag = '[object Proxy]',
  23929. regexpTag = '[object RegExp]',
  23930. setTag = '[object Set]',
  23931. stringTag = '[object String]',
  23932. symbolTag = '[object Symbol]',
  23933. undefinedTag = '[object Undefined]',
  23934. weakMapTag = '[object WeakMap]';
  23935. var arrayBufferTag = '[object ArrayBuffer]',
  23936. dataViewTag = '[object DataView]',
  23937. float32Tag = '[object Float32Array]',
  23938. float64Tag = '[object Float64Array]',
  23939. int8Tag = '[object Int8Array]',
  23940. int16Tag = '[object Int16Array]',
  23941. int32Tag = '[object Int32Array]',
  23942. uint8Tag = '[object Uint8Array]',
  23943. uint8ClampedTag = '[object Uint8ClampedArray]',
  23944. uint16Tag = '[object Uint16Array]',
  23945. uint32Tag = '[object Uint32Array]';
  23946. /**
  23947. * Used to match `RegExp`
  23948. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  23949. */
  23950. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  23951. /** Used to detect host constructors (Safari). */
  23952. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  23953. /** Used to detect unsigned integer values. */
  23954. var reIsUint = /^(?:0|[1-9]\d*)$/;
  23955. /** Used to identify `toStringTag` values of typed arrays. */
  23956. var typedArrayTags = {};
  23957. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  23958. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  23959. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  23960. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  23961. typedArrayTags[uint32Tag] = true;
  23962. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  23963. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  23964. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  23965. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  23966. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  23967. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  23968. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  23969. typedArrayTags[weakMapTag] = false;
  23970. /** Detect free variable `global` from Node.js. */
  23971. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  23972. /** Detect free variable `self`. */
  23973. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  23974. /** Used as a reference to the global object. */
  23975. var root = freeGlobal || freeSelf || Function('return this')();
  23976. /** Detect free variable `exports`. */
  23977. var freeExports = true && exports && !exports.nodeType && exports;
  23978. /** Detect free variable `module`. */
  23979. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  23980. /** Detect the popular CommonJS extension `module.exports`. */
  23981. var moduleExports = freeModule && freeModule.exports === freeExports;
  23982. /** Detect free variable `process` from Node.js. */
  23983. var freeProcess = moduleExports && freeGlobal.process;
  23984. /** Used to access faster Node.js helpers. */
  23985. var nodeUtil = (function() {
  23986. try {
  23987. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  23988. } catch (e) {}
  23989. }());
  23990. /* Node.js helper references. */
  23991. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  23992. /**
  23993. * A specialized version of `_.filter` for arrays without support for
  23994. * iteratee shorthands.
  23995. *
  23996. * @private
  23997. * @param {Array} [array] The array to iterate over.
  23998. * @param {Function} predicate The function invoked per iteration.
  23999. * @returns {Array} Returns the new filtered array.
  24000. */
  24001. function arrayFilter(array, predicate) {
  24002. var index = -1,
  24003. length = array == null ? 0 : array.length,
  24004. resIndex = 0,
  24005. result = [];
  24006. while (++index < length) {
  24007. var value = array[index];
  24008. if (predicate(value, index, array)) {
  24009. result[resIndex++] = value;
  24010. }
  24011. }
  24012. return result;
  24013. }
  24014. /**
  24015. * Appends the elements of `values` to `array`.
  24016. *
  24017. * @private
  24018. * @param {Array} array The array to modify.
  24019. * @param {Array} values The values to append.
  24020. * @returns {Array} Returns `array`.
  24021. */
  24022. function arrayPush(array, values) {
  24023. var index = -1,
  24024. length = values.length,
  24025. offset = array.length;
  24026. while (++index < length) {
  24027. array[offset + index] = values[index];
  24028. }
  24029. return array;
  24030. }
  24031. /**
  24032. * A specialized version of `_.some` for arrays without support for iteratee
  24033. * shorthands.
  24034. *
  24035. * @private
  24036. * @param {Array} [array] The array to iterate over.
  24037. * @param {Function} predicate The function invoked per iteration.
  24038. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24039. * else `false`.
  24040. */
  24041. function arraySome(array, predicate) {
  24042. var index = -1,
  24043. length = array == null ? 0 : array.length;
  24044. while (++index < length) {
  24045. if (predicate(array[index], index, array)) {
  24046. return true;
  24047. }
  24048. }
  24049. return false;
  24050. }
  24051. /**
  24052. * The base implementation of `_.times` without support for iteratee shorthands
  24053. * or max array length checks.
  24054. *
  24055. * @private
  24056. * @param {number} n The number of times to invoke `iteratee`.
  24057. * @param {Function} iteratee The function invoked per iteration.
  24058. * @returns {Array} Returns the array of results.
  24059. */
  24060. function baseTimes(n, iteratee) {
  24061. var index = -1,
  24062. result = Array(n);
  24063. while (++index < n) {
  24064. result[index] = iteratee(index);
  24065. }
  24066. return result;
  24067. }
  24068. /**
  24069. * The base implementation of `_.unary` without support for storing metadata.
  24070. *
  24071. * @private
  24072. * @param {Function} func The function to cap arguments for.
  24073. * @returns {Function} Returns the new capped function.
  24074. */
  24075. function baseUnary(func) {
  24076. return function(value) {
  24077. return func(value);
  24078. };
  24079. }
  24080. /**
  24081. * Checks if a `cache` value for `key` exists.
  24082. *
  24083. * @private
  24084. * @param {Object} cache The cache to query.
  24085. * @param {string} key The key of the entry to check.
  24086. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24087. */
  24088. function cacheHas(cache, key) {
  24089. return cache.has(key);
  24090. }
  24091. /**
  24092. * Gets the value at `key` of `object`.
  24093. *
  24094. * @private
  24095. * @param {Object} [object] The object to query.
  24096. * @param {string} key The key of the property to get.
  24097. * @returns {*} Returns the property value.
  24098. */
  24099. function getValue(object, key) {
  24100. return object == null ? undefined : object[key];
  24101. }
  24102. /**
  24103. * Converts `map` to its key-value pairs.
  24104. *
  24105. * @private
  24106. * @param {Object} map The map to convert.
  24107. * @returns {Array} Returns the key-value pairs.
  24108. */
  24109. function mapToArray(map) {
  24110. var index = -1,
  24111. result = Array(map.size);
  24112. map.forEach(function(value, key) {
  24113. result[++index] = [key, value];
  24114. });
  24115. return result;
  24116. }
  24117. /**
  24118. * Creates a unary function that invokes `func` with its argument transformed.
  24119. *
  24120. * @private
  24121. * @param {Function} func The function to wrap.
  24122. * @param {Function} transform The argument transform.
  24123. * @returns {Function} Returns the new function.
  24124. */
  24125. function overArg(func, transform) {
  24126. return function(arg) {
  24127. return func(transform(arg));
  24128. };
  24129. }
  24130. /**
  24131. * Converts `set` to an array of its values.
  24132. *
  24133. * @private
  24134. * @param {Object} set The set to convert.
  24135. * @returns {Array} Returns the values.
  24136. */
  24137. function setToArray(set) {
  24138. var index = -1,
  24139. result = Array(set.size);
  24140. set.forEach(function(value) {
  24141. result[++index] = value;
  24142. });
  24143. return result;
  24144. }
  24145. /** Used for built-in method references. */
  24146. var arrayProto = Array.prototype,
  24147. funcProto = Function.prototype,
  24148. objectProto = Object.prototype;
  24149. /** Used to detect overreaching core-js shims. */
  24150. var coreJsData = root['__core-js_shared__'];
  24151. /** Used to resolve the decompiled source of functions. */
  24152. var funcToString = funcProto.toString;
  24153. /** Used to check objects for own properties. */
  24154. var hasOwnProperty = objectProto.hasOwnProperty;
  24155. /** Used to detect methods masquerading as native. */
  24156. var maskSrcKey = (function() {
  24157. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  24158. return uid ? ('Symbol(src)_1.' + uid) : '';
  24159. }());
  24160. /**
  24161. * Used to resolve the
  24162. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  24163. * of values.
  24164. */
  24165. var nativeObjectToString = objectProto.toString;
  24166. /** Used to detect if a method is native. */
  24167. var reIsNative = RegExp('^' +
  24168. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  24169. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  24170. );
  24171. /** Built-in value references. */
  24172. var Buffer = moduleExports ? root.Buffer : undefined,
  24173. Symbol = root.Symbol,
  24174. Uint8Array = root.Uint8Array,
  24175. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  24176. splice = arrayProto.splice,
  24177. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  24178. /* Built-in method references for those with the same name as other `lodash` methods. */
  24179. var nativeGetSymbols = Object.getOwnPropertySymbols,
  24180. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  24181. nativeKeys = overArg(Object.keys, Object);
  24182. /* Built-in method references that are verified to be native. */
  24183. var DataView = getNative(root, 'DataView'),
  24184. Map = getNative(root, 'Map'),
  24185. Promise = getNative(root, 'Promise'),
  24186. Set = getNative(root, 'Set'),
  24187. WeakMap = getNative(root, 'WeakMap'),
  24188. nativeCreate = getNative(Object, 'create');
  24189. /** Used to detect maps, sets, and weakmaps. */
  24190. var dataViewCtorString = toSource(DataView),
  24191. mapCtorString = toSource(Map),
  24192. promiseCtorString = toSource(Promise),
  24193. setCtorString = toSource(Set),
  24194. weakMapCtorString = toSource(WeakMap);
  24195. /** Used to convert symbols to primitives and strings. */
  24196. var symbolProto = Symbol ? Symbol.prototype : undefined,
  24197. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  24198. /**
  24199. * Creates a hash object.
  24200. *
  24201. * @private
  24202. * @constructor
  24203. * @param {Array} [entries] The key-value pairs to cache.
  24204. */
  24205. function Hash(entries) {
  24206. var index = -1,
  24207. length = entries == null ? 0 : entries.length;
  24208. this.clear();
  24209. while (++index < length) {
  24210. var entry = entries[index];
  24211. this.set(entry[0], entry[1]);
  24212. }
  24213. }
  24214. /**
  24215. * Removes all key-value entries from the hash.
  24216. *
  24217. * @private
  24218. * @name clear
  24219. * @memberOf Hash
  24220. */
  24221. function hashClear() {
  24222. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  24223. this.size = 0;
  24224. }
  24225. /**
  24226. * Removes `key` and its value from the hash.
  24227. *
  24228. * @private
  24229. * @name delete
  24230. * @memberOf Hash
  24231. * @param {Object} hash The hash to modify.
  24232. * @param {string} key The key of the value to remove.
  24233. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24234. */
  24235. function hashDelete(key) {
  24236. var result = this.has(key) && delete this.__data__[key];
  24237. this.size -= result ? 1 : 0;
  24238. return result;
  24239. }
  24240. /**
  24241. * Gets the hash value for `key`.
  24242. *
  24243. * @private
  24244. * @name get
  24245. * @memberOf Hash
  24246. * @param {string} key The key of the value to get.
  24247. * @returns {*} Returns the entry value.
  24248. */
  24249. function hashGet(key) {
  24250. var data = this.__data__;
  24251. if (nativeCreate) {
  24252. var result = data[key];
  24253. return result === HASH_UNDEFINED ? undefined : result;
  24254. }
  24255. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  24256. }
  24257. /**
  24258. * Checks if a hash value for `key` exists.
  24259. *
  24260. * @private
  24261. * @name has
  24262. * @memberOf Hash
  24263. * @param {string} key The key of the entry to check.
  24264. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24265. */
  24266. function hashHas(key) {
  24267. var data = this.__data__;
  24268. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  24269. }
  24270. /**
  24271. * Sets the hash `key` to `value`.
  24272. *
  24273. * @private
  24274. * @name set
  24275. * @memberOf Hash
  24276. * @param {string} key The key of the value to set.
  24277. * @param {*} value The value to set.
  24278. * @returns {Object} Returns the hash instance.
  24279. */
  24280. function hashSet(key, value) {
  24281. var data = this.__data__;
  24282. this.size += this.has(key) ? 0 : 1;
  24283. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  24284. return this;
  24285. }
  24286. // Add methods to `Hash`.
  24287. Hash.prototype.clear = hashClear;
  24288. Hash.prototype['delete'] = hashDelete;
  24289. Hash.prototype.get = hashGet;
  24290. Hash.prototype.has = hashHas;
  24291. Hash.prototype.set = hashSet;
  24292. /**
  24293. * Creates an list cache object.
  24294. *
  24295. * @private
  24296. * @constructor
  24297. * @param {Array} [entries] The key-value pairs to cache.
  24298. */
  24299. function ListCache(entries) {
  24300. var index = -1,
  24301. length = entries == null ? 0 : entries.length;
  24302. this.clear();
  24303. while (++index < length) {
  24304. var entry = entries[index];
  24305. this.set(entry[0], entry[1]);
  24306. }
  24307. }
  24308. /**
  24309. * Removes all key-value entries from the list cache.
  24310. *
  24311. * @private
  24312. * @name clear
  24313. * @memberOf ListCache
  24314. */
  24315. function listCacheClear() {
  24316. this.__data__ = [];
  24317. this.size = 0;
  24318. }
  24319. /**
  24320. * Removes `key` and its value from the list cache.
  24321. *
  24322. * @private
  24323. * @name delete
  24324. * @memberOf ListCache
  24325. * @param {string} key The key of the value to remove.
  24326. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24327. */
  24328. function listCacheDelete(key) {
  24329. var data = this.__data__,
  24330. index = assocIndexOf(data, key);
  24331. if (index < 0) {
  24332. return false;
  24333. }
  24334. var lastIndex = data.length - 1;
  24335. if (index == lastIndex) {
  24336. data.pop();
  24337. } else {
  24338. splice.call(data, index, 1);
  24339. }
  24340. --this.size;
  24341. return true;
  24342. }
  24343. /**
  24344. * Gets the list cache value for `key`.
  24345. *
  24346. * @private
  24347. * @name get
  24348. * @memberOf ListCache
  24349. * @param {string} key The key of the value to get.
  24350. * @returns {*} Returns the entry value.
  24351. */
  24352. function listCacheGet(key) {
  24353. var data = this.__data__,
  24354. index = assocIndexOf(data, key);
  24355. return index < 0 ? undefined : data[index][1];
  24356. }
  24357. /**
  24358. * Checks if a list cache value for `key` exists.
  24359. *
  24360. * @private
  24361. * @name has
  24362. * @memberOf ListCache
  24363. * @param {string} key The key of the entry to check.
  24364. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24365. */
  24366. function listCacheHas(key) {
  24367. return assocIndexOf(this.__data__, key) > -1;
  24368. }
  24369. /**
  24370. * Sets the list cache `key` to `value`.
  24371. *
  24372. * @private
  24373. * @name set
  24374. * @memberOf ListCache
  24375. * @param {string} key The key of the value to set.
  24376. * @param {*} value The value to set.
  24377. * @returns {Object} Returns the list cache instance.
  24378. */
  24379. function listCacheSet(key, value) {
  24380. var data = this.__data__,
  24381. index = assocIndexOf(data, key);
  24382. if (index < 0) {
  24383. ++this.size;
  24384. data.push([key, value]);
  24385. } else {
  24386. data[index][1] = value;
  24387. }
  24388. return this;
  24389. }
  24390. // Add methods to `ListCache`.
  24391. ListCache.prototype.clear = listCacheClear;
  24392. ListCache.prototype['delete'] = listCacheDelete;
  24393. ListCache.prototype.get = listCacheGet;
  24394. ListCache.prototype.has = listCacheHas;
  24395. ListCache.prototype.set = listCacheSet;
  24396. /**
  24397. * Creates a map cache object to store key-value pairs.
  24398. *
  24399. * @private
  24400. * @constructor
  24401. * @param {Array} [entries] The key-value pairs to cache.
  24402. */
  24403. function MapCache(entries) {
  24404. var index = -1,
  24405. length = entries == null ? 0 : entries.length;
  24406. this.clear();
  24407. while (++index < length) {
  24408. var entry = entries[index];
  24409. this.set(entry[0], entry[1]);
  24410. }
  24411. }
  24412. /**
  24413. * Removes all key-value entries from the map.
  24414. *
  24415. * @private
  24416. * @name clear
  24417. * @memberOf MapCache
  24418. */
  24419. function mapCacheClear() {
  24420. this.size = 0;
  24421. this.__data__ = {
  24422. 'hash': new Hash,
  24423. 'map': new (Map || ListCache),
  24424. 'string': new Hash
  24425. };
  24426. }
  24427. /**
  24428. * Removes `key` and its value from the map.
  24429. *
  24430. * @private
  24431. * @name delete
  24432. * @memberOf MapCache
  24433. * @param {string} key The key of the value to remove.
  24434. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24435. */
  24436. function mapCacheDelete(key) {
  24437. var result = getMapData(this, key)['delete'](key);
  24438. this.size -= result ? 1 : 0;
  24439. return result;
  24440. }
  24441. /**
  24442. * Gets the map value for `key`.
  24443. *
  24444. * @private
  24445. * @name get
  24446. * @memberOf MapCache
  24447. * @param {string} key The key of the value to get.
  24448. * @returns {*} Returns the entry value.
  24449. */
  24450. function mapCacheGet(key) {
  24451. return getMapData(this, key).get(key);
  24452. }
  24453. /**
  24454. * Checks if a map value for `key` exists.
  24455. *
  24456. * @private
  24457. * @name has
  24458. * @memberOf MapCache
  24459. * @param {string} key The key of the entry to check.
  24460. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24461. */
  24462. function mapCacheHas(key) {
  24463. return getMapData(this, key).has(key);
  24464. }
  24465. /**
  24466. * Sets the map `key` to `value`.
  24467. *
  24468. * @private
  24469. * @name set
  24470. * @memberOf MapCache
  24471. * @param {string} key The key of the value to set.
  24472. * @param {*} value The value to set.
  24473. * @returns {Object} Returns the map cache instance.
  24474. */
  24475. function mapCacheSet(key, value) {
  24476. var data = getMapData(this, key),
  24477. size = data.size;
  24478. data.set(key, value);
  24479. this.size += data.size == size ? 0 : 1;
  24480. return this;
  24481. }
  24482. // Add methods to `MapCache`.
  24483. MapCache.prototype.clear = mapCacheClear;
  24484. MapCache.prototype['delete'] = mapCacheDelete;
  24485. MapCache.prototype.get = mapCacheGet;
  24486. MapCache.prototype.has = mapCacheHas;
  24487. MapCache.prototype.set = mapCacheSet;
  24488. /**
  24489. *
  24490. * Creates an array cache object to store unique values.
  24491. *
  24492. * @private
  24493. * @constructor
  24494. * @param {Array} [values] The values to cache.
  24495. */
  24496. function SetCache(values) {
  24497. var index = -1,
  24498. length = values == null ? 0 : values.length;
  24499. this.__data__ = new MapCache;
  24500. while (++index < length) {
  24501. this.add(values[index]);
  24502. }
  24503. }
  24504. /**
  24505. * Adds `value` to the array cache.
  24506. *
  24507. * @private
  24508. * @name add
  24509. * @memberOf SetCache
  24510. * @alias push
  24511. * @param {*} value The value to cache.
  24512. * @returns {Object} Returns the cache instance.
  24513. */
  24514. function setCacheAdd(value) {
  24515. this.__data__.set(value, HASH_UNDEFINED);
  24516. return this;
  24517. }
  24518. /**
  24519. * Checks if `value` is in the array cache.
  24520. *
  24521. * @private
  24522. * @name has
  24523. * @memberOf SetCache
  24524. * @param {*} value The value to search for.
  24525. * @returns {number} Returns `true` if `value` is found, else `false`.
  24526. */
  24527. function setCacheHas(value) {
  24528. return this.__data__.has(value);
  24529. }
  24530. // Add methods to `SetCache`.
  24531. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  24532. SetCache.prototype.has = setCacheHas;
  24533. /**
  24534. * Creates a stack cache object to store key-value pairs.
  24535. *
  24536. * @private
  24537. * @constructor
  24538. * @param {Array} [entries] The key-value pairs to cache.
  24539. */
  24540. function Stack(entries) {
  24541. var data = this.__data__ = new ListCache(entries);
  24542. this.size = data.size;
  24543. }
  24544. /**
  24545. * Removes all key-value entries from the stack.
  24546. *
  24547. * @private
  24548. * @name clear
  24549. * @memberOf Stack
  24550. */
  24551. function stackClear() {
  24552. this.__data__ = new ListCache;
  24553. this.size = 0;
  24554. }
  24555. /**
  24556. * Removes `key` and its value from the stack.
  24557. *
  24558. * @private
  24559. * @name delete
  24560. * @memberOf Stack
  24561. * @param {string} key The key of the value to remove.
  24562. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24563. */
  24564. function stackDelete(key) {
  24565. var data = this.__data__,
  24566. result = data['delete'](key);
  24567. this.size = data.size;
  24568. return result;
  24569. }
  24570. /**
  24571. * Gets the stack value for `key`.
  24572. *
  24573. * @private
  24574. * @name get
  24575. * @memberOf Stack
  24576. * @param {string} key The key of the value to get.
  24577. * @returns {*} Returns the entry value.
  24578. */
  24579. function stackGet(key) {
  24580. return this.__data__.get(key);
  24581. }
  24582. /**
  24583. * Checks if a stack value for `key` exists.
  24584. *
  24585. * @private
  24586. * @name has
  24587. * @memberOf Stack
  24588. * @param {string} key The key of the entry to check.
  24589. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24590. */
  24591. function stackHas(key) {
  24592. return this.__data__.has(key);
  24593. }
  24594. /**
  24595. * Sets the stack `key` to `value`.
  24596. *
  24597. * @private
  24598. * @name set
  24599. * @memberOf Stack
  24600. * @param {string} key The key of the value to set.
  24601. * @param {*} value The value to set.
  24602. * @returns {Object} Returns the stack cache instance.
  24603. */
  24604. function stackSet(key, value) {
  24605. var data = this.__data__;
  24606. if (data instanceof ListCache) {
  24607. var pairs = data.__data__;
  24608. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  24609. pairs.push([key, value]);
  24610. this.size = ++data.size;
  24611. return this;
  24612. }
  24613. data = this.__data__ = new MapCache(pairs);
  24614. }
  24615. data.set(key, value);
  24616. this.size = data.size;
  24617. return this;
  24618. }
  24619. // Add methods to `Stack`.
  24620. Stack.prototype.clear = stackClear;
  24621. Stack.prototype['delete'] = stackDelete;
  24622. Stack.prototype.get = stackGet;
  24623. Stack.prototype.has = stackHas;
  24624. Stack.prototype.set = stackSet;
  24625. /**
  24626. * Creates an array of the enumerable property names of the array-like `value`.
  24627. *
  24628. * @private
  24629. * @param {*} value The value to query.
  24630. * @param {boolean} inherited Specify returning inherited property names.
  24631. * @returns {Array} Returns the array of property names.
  24632. */
  24633. function arrayLikeKeys(value, inherited) {
  24634. var isArr = isArray(value),
  24635. isArg = !isArr && isArguments(value),
  24636. isBuff = !isArr && !isArg && isBuffer(value),
  24637. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  24638. skipIndexes = isArr || isArg || isBuff || isType,
  24639. result = skipIndexes ? baseTimes(value.length, String) : [],
  24640. length = result.length;
  24641. for (var key in value) {
  24642. if ((inherited || hasOwnProperty.call(value, key)) &&
  24643. !(skipIndexes && (
  24644. // Safari 9 has enumerable `arguments.length` in strict mode.
  24645. key == 'length' ||
  24646. // Node.js 0.10 has enumerable non-index properties on buffers.
  24647. (isBuff && (key == 'offset' || key == 'parent')) ||
  24648. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  24649. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  24650. // Skip index properties.
  24651. isIndex(key, length)
  24652. ))) {
  24653. result.push(key);
  24654. }
  24655. }
  24656. return result;
  24657. }
  24658. /**
  24659. * Gets the index at which the `key` is found in `array` of key-value pairs.
  24660. *
  24661. * @private
  24662. * @param {Array} array The array to inspect.
  24663. * @param {*} key The key to search for.
  24664. * @returns {number} Returns the index of the matched value, else `-1`.
  24665. */
  24666. function assocIndexOf(array, key) {
  24667. var length = array.length;
  24668. while (length--) {
  24669. if (eq(array[length][0], key)) {
  24670. return length;
  24671. }
  24672. }
  24673. return -1;
  24674. }
  24675. /**
  24676. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  24677. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  24678. * symbols of `object`.
  24679. *
  24680. * @private
  24681. * @param {Object} object The object to query.
  24682. * @param {Function} keysFunc The function to get the keys of `object`.
  24683. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  24684. * @returns {Array} Returns the array of property names and symbols.
  24685. */
  24686. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  24687. var result = keysFunc(object);
  24688. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  24689. }
  24690. /**
  24691. * The base implementation of `getTag` without fallbacks for buggy environments.
  24692. *
  24693. * @private
  24694. * @param {*} value The value to query.
  24695. * @returns {string} Returns the `toStringTag`.
  24696. */
  24697. function baseGetTag(value) {
  24698. if (value == null) {
  24699. return value === undefined ? undefinedTag : nullTag;
  24700. }
  24701. return (symToStringTag && symToStringTag in Object(value))
  24702. ? getRawTag(value)
  24703. : objectToString(value);
  24704. }
  24705. /**
  24706. * The base implementation of `_.isArguments`.
  24707. *
  24708. * @private
  24709. * @param {*} value The value to check.
  24710. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  24711. */
  24712. function baseIsArguments(value) {
  24713. return isObjectLike(value) && baseGetTag(value) == argsTag;
  24714. }
  24715. /**
  24716. * The base implementation of `_.isEqual` which supports partial comparisons
  24717. * and tracks traversed objects.
  24718. *
  24719. * @private
  24720. * @param {*} value The value to compare.
  24721. * @param {*} other The other value to compare.
  24722. * @param {boolean} bitmask The bitmask flags.
  24723. * 1 - Unordered comparison
  24724. * 2 - Partial comparison
  24725. * @param {Function} [customizer] The function to customize comparisons.
  24726. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  24727. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  24728. */
  24729. function baseIsEqual(value, other, bitmask, customizer, stack) {
  24730. if (value === other) {
  24731. return true;
  24732. }
  24733. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  24734. return value !== value && other !== other;
  24735. }
  24736. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  24737. }
  24738. /**
  24739. * A specialized version of `baseIsEqual` for arrays and objects which performs
  24740. * deep comparisons and tracks traversed objects enabling objects with circular
  24741. * references to be compared.
  24742. *
  24743. * @private
  24744. * @param {Object} object The object to compare.
  24745. * @param {Object} other The other object to compare.
  24746. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24747. * @param {Function} customizer The function to customize comparisons.
  24748. * @param {Function} equalFunc The function to determine equivalents of values.
  24749. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  24750. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24751. */
  24752. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  24753. var objIsArr = isArray(object),
  24754. othIsArr = isArray(other),
  24755. objTag = objIsArr ? arrayTag : getTag(object),
  24756. othTag = othIsArr ? arrayTag : getTag(other);
  24757. objTag = objTag == argsTag ? objectTag : objTag;
  24758. othTag = othTag == argsTag ? objectTag : othTag;
  24759. var objIsObj = objTag == objectTag,
  24760. othIsObj = othTag == objectTag,
  24761. isSameTag = objTag == othTag;
  24762. if (isSameTag && isBuffer(object)) {
  24763. if (!isBuffer(other)) {
  24764. return false;
  24765. }
  24766. objIsArr = true;
  24767. objIsObj = false;
  24768. }
  24769. if (isSameTag && !objIsObj) {
  24770. stack || (stack = new Stack);
  24771. return (objIsArr || isTypedArray(object))
  24772. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  24773. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  24774. }
  24775. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  24776. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  24777. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  24778. if (objIsWrapped || othIsWrapped) {
  24779. var objUnwrapped = objIsWrapped ? object.value() : object,
  24780. othUnwrapped = othIsWrapped ? other.value() : other;
  24781. stack || (stack = new Stack);
  24782. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  24783. }
  24784. }
  24785. if (!isSameTag) {
  24786. return false;
  24787. }
  24788. stack || (stack = new Stack);
  24789. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  24790. }
  24791. /**
  24792. * The base implementation of `_.isNative` without bad shim checks.
  24793. *
  24794. * @private
  24795. * @param {*} value The value to check.
  24796. * @returns {boolean} Returns `true` if `value` is a native function,
  24797. * else `false`.
  24798. */
  24799. function baseIsNative(value) {
  24800. if (!isObject(value) || isMasked(value)) {
  24801. return false;
  24802. }
  24803. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  24804. return pattern.test(toSource(value));
  24805. }
  24806. /**
  24807. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  24808. *
  24809. * @private
  24810. * @param {*} value The value to check.
  24811. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  24812. */
  24813. function baseIsTypedArray(value) {
  24814. return isObjectLike(value) &&
  24815. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  24816. }
  24817. /**
  24818. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  24819. *
  24820. * @private
  24821. * @param {Object} object The object to query.
  24822. * @returns {Array} Returns the array of property names.
  24823. */
  24824. function baseKeys(object) {
  24825. if (!isPrototype(object)) {
  24826. return nativeKeys(object);
  24827. }
  24828. var result = [];
  24829. for (var key in Object(object)) {
  24830. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  24831. result.push(key);
  24832. }
  24833. }
  24834. return result;
  24835. }
  24836. /**
  24837. * A specialized version of `baseIsEqualDeep` for arrays with support for
  24838. * partial deep comparisons.
  24839. *
  24840. * @private
  24841. * @param {Array} array The array to compare.
  24842. * @param {Array} other The other array to compare.
  24843. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24844. * @param {Function} customizer The function to customize comparisons.
  24845. * @param {Function} equalFunc The function to determine equivalents of values.
  24846. * @param {Object} stack Tracks traversed `array` and `other` objects.
  24847. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  24848. */
  24849. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  24850. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  24851. arrLength = array.length,
  24852. othLength = other.length;
  24853. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  24854. return false;
  24855. }
  24856. // Assume cyclic values are equal.
  24857. var stacked = stack.get(array);
  24858. if (stacked && stack.get(other)) {
  24859. return stacked == other;
  24860. }
  24861. var index = -1,
  24862. result = true,
  24863. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  24864. stack.set(array, other);
  24865. stack.set(other, array);
  24866. // Ignore non-index properties.
  24867. while (++index < arrLength) {
  24868. var arrValue = array[index],
  24869. othValue = other[index];
  24870. if (customizer) {
  24871. var compared = isPartial
  24872. ? customizer(othValue, arrValue, index, other, array, stack)
  24873. : customizer(arrValue, othValue, index, array, other, stack);
  24874. }
  24875. if (compared !== undefined) {
  24876. if (compared) {
  24877. continue;
  24878. }
  24879. result = false;
  24880. break;
  24881. }
  24882. // Recursively compare arrays (susceptible to call stack limits).
  24883. if (seen) {
  24884. if (!arraySome(other, function(othValue, othIndex) {
  24885. if (!cacheHas(seen, othIndex) &&
  24886. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  24887. return seen.push(othIndex);
  24888. }
  24889. })) {
  24890. result = false;
  24891. break;
  24892. }
  24893. } else if (!(
  24894. arrValue === othValue ||
  24895. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  24896. )) {
  24897. result = false;
  24898. break;
  24899. }
  24900. }
  24901. stack['delete'](array);
  24902. stack['delete'](other);
  24903. return result;
  24904. }
  24905. /**
  24906. * A specialized version of `baseIsEqualDeep` for comparing objects of
  24907. * the same `toStringTag`.
  24908. *
  24909. * **Note:** This function only supports comparing values with tags of
  24910. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  24911. *
  24912. * @private
  24913. * @param {Object} object The object to compare.
  24914. * @param {Object} other The other object to compare.
  24915. * @param {string} tag The `toStringTag` of the objects to compare.
  24916. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24917. * @param {Function} customizer The function to customize comparisons.
  24918. * @param {Function} equalFunc The function to determine equivalents of values.
  24919. * @param {Object} stack Tracks traversed `object` and `other` objects.
  24920. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24921. */
  24922. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  24923. switch (tag) {
  24924. case dataViewTag:
  24925. if ((object.byteLength != other.byteLength) ||
  24926. (object.byteOffset != other.byteOffset)) {
  24927. return false;
  24928. }
  24929. object = object.buffer;
  24930. other = other.buffer;
  24931. case arrayBufferTag:
  24932. if ((object.byteLength != other.byteLength) ||
  24933. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  24934. return false;
  24935. }
  24936. return true;
  24937. case boolTag:
  24938. case dateTag:
  24939. case numberTag:
  24940. // Coerce booleans to `1` or `0` and dates to milliseconds.
  24941. // Invalid dates are coerced to `NaN`.
  24942. return eq(+object, +other);
  24943. case errorTag:
  24944. return object.name == other.name && object.message == other.message;
  24945. case regexpTag:
  24946. case stringTag:
  24947. // Coerce regexes to strings and treat strings, primitives and objects,
  24948. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  24949. // for more details.
  24950. return object == (other + '');
  24951. case mapTag:
  24952. var convert = mapToArray;
  24953. case setTag:
  24954. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  24955. convert || (convert = setToArray);
  24956. if (object.size != other.size && !isPartial) {
  24957. return false;
  24958. }
  24959. // Assume cyclic values are equal.
  24960. var stacked = stack.get(object);
  24961. if (stacked) {
  24962. return stacked == other;
  24963. }
  24964. bitmask |= COMPARE_UNORDERED_FLAG;
  24965. // Recursively compare objects (susceptible to call stack limits).
  24966. stack.set(object, other);
  24967. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  24968. stack['delete'](object);
  24969. return result;
  24970. case symbolTag:
  24971. if (symbolValueOf) {
  24972. return symbolValueOf.call(object) == symbolValueOf.call(other);
  24973. }
  24974. }
  24975. return false;
  24976. }
  24977. /**
  24978. * A specialized version of `baseIsEqualDeep` for objects with support for
  24979. * partial deep comparisons.
  24980. *
  24981. * @private
  24982. * @param {Object} object The object to compare.
  24983. * @param {Object} other The other object to compare.
  24984. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24985. * @param {Function} customizer The function to customize comparisons.
  24986. * @param {Function} equalFunc The function to determine equivalents of values.
  24987. * @param {Object} stack Tracks traversed `object` and `other` objects.
  24988. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24989. */
  24990. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  24991. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  24992. objProps = getAllKeys(object),
  24993. objLength = objProps.length,
  24994. othProps = getAllKeys(other),
  24995. othLength = othProps.length;
  24996. if (objLength != othLength && !isPartial) {
  24997. return false;
  24998. }
  24999. var index = objLength;
  25000. while (index--) {
  25001. var key = objProps[index];
  25002. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  25003. return false;
  25004. }
  25005. }
  25006. // Assume cyclic values are equal.
  25007. var stacked = stack.get(object);
  25008. if (stacked && stack.get(other)) {
  25009. return stacked == other;
  25010. }
  25011. var result = true;
  25012. stack.set(object, other);
  25013. stack.set(other, object);
  25014. var skipCtor = isPartial;
  25015. while (++index < objLength) {
  25016. key = objProps[index];
  25017. var objValue = object[key],
  25018. othValue = other[key];
  25019. if (customizer) {
  25020. var compared = isPartial
  25021. ? customizer(othValue, objValue, key, other, object, stack)
  25022. : customizer(objValue, othValue, key, object, other, stack);
  25023. }
  25024. // Recursively compare objects (susceptible to call stack limits).
  25025. if (!(compared === undefined
  25026. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  25027. : compared
  25028. )) {
  25029. result = false;
  25030. break;
  25031. }
  25032. skipCtor || (skipCtor = key == 'constructor');
  25033. }
  25034. if (result && !skipCtor) {
  25035. var objCtor = object.constructor,
  25036. othCtor = other.constructor;
  25037. // Non `Object` object instances with different constructors are not equal.
  25038. if (objCtor != othCtor &&
  25039. ('constructor' in object && 'constructor' in other) &&
  25040. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  25041. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  25042. result = false;
  25043. }
  25044. }
  25045. stack['delete'](object);
  25046. stack['delete'](other);
  25047. return result;
  25048. }
  25049. /**
  25050. * Creates an array of own enumerable property names and symbols of `object`.
  25051. *
  25052. * @private
  25053. * @param {Object} object The object to query.
  25054. * @returns {Array} Returns the array of property names and symbols.
  25055. */
  25056. function getAllKeys(object) {
  25057. return baseGetAllKeys(object, keys, getSymbols);
  25058. }
  25059. /**
  25060. * Gets the data for `map`.
  25061. *
  25062. * @private
  25063. * @param {Object} map The map to query.
  25064. * @param {string} key The reference key.
  25065. * @returns {*} Returns the map data.
  25066. */
  25067. function getMapData(map, key) {
  25068. var data = map.__data__;
  25069. return isKeyable(key)
  25070. ? data[typeof key == 'string' ? 'string' : 'hash']
  25071. : data.map;
  25072. }
  25073. /**
  25074. * Gets the native function at `key` of `object`.
  25075. *
  25076. * @private
  25077. * @param {Object} object The object to query.
  25078. * @param {string} key The key of the method to get.
  25079. * @returns {*} Returns the function if it's native, else `undefined`.
  25080. */
  25081. function getNative(object, key) {
  25082. var value = getValue(object, key);
  25083. return baseIsNative(value) ? value : undefined;
  25084. }
  25085. /**
  25086. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  25087. *
  25088. * @private
  25089. * @param {*} value The value to query.
  25090. * @returns {string} Returns the raw `toStringTag`.
  25091. */
  25092. function getRawTag(value) {
  25093. var isOwn = hasOwnProperty.call(value, symToStringTag),
  25094. tag = value[symToStringTag];
  25095. try {
  25096. value[symToStringTag] = undefined;
  25097. var unmasked = true;
  25098. } catch (e) {}
  25099. var result = nativeObjectToString.call(value);
  25100. if (unmasked) {
  25101. if (isOwn) {
  25102. value[symToStringTag] = tag;
  25103. } else {
  25104. delete value[symToStringTag];
  25105. }
  25106. }
  25107. return result;
  25108. }
  25109. /**
  25110. * Creates an array of the own enumerable symbols of `object`.
  25111. *
  25112. * @private
  25113. * @param {Object} object The object to query.
  25114. * @returns {Array} Returns the array of symbols.
  25115. */
  25116. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  25117. if (object == null) {
  25118. return [];
  25119. }
  25120. object = Object(object);
  25121. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  25122. return propertyIsEnumerable.call(object, symbol);
  25123. });
  25124. };
  25125. /**
  25126. * Gets the `toStringTag` of `value`.
  25127. *
  25128. * @private
  25129. * @param {*} value The value to query.
  25130. * @returns {string} Returns the `toStringTag`.
  25131. */
  25132. var getTag = baseGetTag;
  25133. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  25134. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  25135. (Map && getTag(new Map) != mapTag) ||
  25136. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  25137. (Set && getTag(new Set) != setTag) ||
  25138. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  25139. getTag = function(value) {
  25140. var result = baseGetTag(value),
  25141. Ctor = result == objectTag ? value.constructor : undefined,
  25142. ctorString = Ctor ? toSource(Ctor) : '';
  25143. if (ctorString) {
  25144. switch (ctorString) {
  25145. case dataViewCtorString: return dataViewTag;
  25146. case mapCtorString: return mapTag;
  25147. case promiseCtorString: return promiseTag;
  25148. case setCtorString: return setTag;
  25149. case weakMapCtorString: return weakMapTag;
  25150. }
  25151. }
  25152. return result;
  25153. };
  25154. }
  25155. /**
  25156. * Checks if `value` is a valid array-like index.
  25157. *
  25158. * @private
  25159. * @param {*} value The value to check.
  25160. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  25161. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  25162. */
  25163. function isIndex(value, length) {
  25164. length = length == null ? MAX_SAFE_INTEGER : length;
  25165. return !!length &&
  25166. (typeof value == 'number' || reIsUint.test(value)) &&
  25167. (value > -1 && value % 1 == 0 && value < length);
  25168. }
  25169. /**
  25170. * Checks if `value` is suitable for use as unique object key.
  25171. *
  25172. * @private
  25173. * @param {*} value The value to check.
  25174. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  25175. */
  25176. function isKeyable(value) {
  25177. var type = typeof value;
  25178. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  25179. ? (value !== '__proto__')
  25180. : (value === null);
  25181. }
  25182. /**
  25183. * Checks if `func` has its source masked.
  25184. *
  25185. * @private
  25186. * @param {Function} func The function to check.
  25187. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  25188. */
  25189. function isMasked(func) {
  25190. return !!maskSrcKey && (maskSrcKey in func);
  25191. }
  25192. /**
  25193. * Checks if `value` is likely a prototype object.
  25194. *
  25195. * @private
  25196. * @param {*} value The value to check.
  25197. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  25198. */
  25199. function isPrototype(value) {
  25200. var Ctor = value && value.constructor,
  25201. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  25202. return value === proto;
  25203. }
  25204. /**
  25205. * Converts `value` to a string using `Object.prototype.toString`.
  25206. *
  25207. * @private
  25208. * @param {*} value The value to convert.
  25209. * @returns {string} Returns the converted string.
  25210. */
  25211. function objectToString(value) {
  25212. return nativeObjectToString.call(value);
  25213. }
  25214. /**
  25215. * Converts `func` to its source code.
  25216. *
  25217. * @private
  25218. * @param {Function} func The function to convert.
  25219. * @returns {string} Returns the source code.
  25220. */
  25221. function toSource(func) {
  25222. if (func != null) {
  25223. try {
  25224. return funcToString.call(func);
  25225. } catch (e) {}
  25226. try {
  25227. return (func + '');
  25228. } catch (e) {}
  25229. }
  25230. return '';
  25231. }
  25232. /**
  25233. * Performs a
  25234. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  25235. * comparison between two values to determine if they are equivalent.
  25236. *
  25237. * @static
  25238. * @memberOf _
  25239. * @since 4.0.0
  25240. * @category Lang
  25241. * @param {*} value The value to compare.
  25242. * @param {*} other The other value to compare.
  25243. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25244. * @example
  25245. *
  25246. * var object = { 'a': 1 };
  25247. * var other = { 'a': 1 };
  25248. *
  25249. * _.eq(object, object);
  25250. * // => true
  25251. *
  25252. * _.eq(object, other);
  25253. * // => false
  25254. *
  25255. * _.eq('a', 'a');
  25256. * // => true
  25257. *
  25258. * _.eq('a', Object('a'));
  25259. * // => false
  25260. *
  25261. * _.eq(NaN, NaN);
  25262. * // => true
  25263. */
  25264. function eq(value, other) {
  25265. return value === other || (value !== value && other !== other);
  25266. }
  25267. /**
  25268. * Checks if `value` is likely an `arguments` object.
  25269. *
  25270. * @static
  25271. * @memberOf _
  25272. * @since 0.1.0
  25273. * @category Lang
  25274. * @param {*} value The value to check.
  25275. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  25276. * else `false`.
  25277. * @example
  25278. *
  25279. * _.isArguments(function() { return arguments; }());
  25280. * // => true
  25281. *
  25282. * _.isArguments([1, 2, 3]);
  25283. * // => false
  25284. */
  25285. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  25286. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  25287. !propertyIsEnumerable.call(value, 'callee');
  25288. };
  25289. /**
  25290. * Checks if `value` is classified as an `Array` object.
  25291. *
  25292. * @static
  25293. * @memberOf _
  25294. * @since 0.1.0
  25295. * @category Lang
  25296. * @param {*} value The value to check.
  25297. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  25298. * @example
  25299. *
  25300. * _.isArray([1, 2, 3]);
  25301. * // => true
  25302. *
  25303. * _.isArray(document.body.children);
  25304. * // => false
  25305. *
  25306. * _.isArray('abc');
  25307. * // => false
  25308. *
  25309. * _.isArray(_.noop);
  25310. * // => false
  25311. */
  25312. var isArray = Array.isArray;
  25313. /**
  25314. * Checks if `value` is array-like. A value is considered array-like if it's
  25315. * not a function and has a `value.length` that's an integer greater than or
  25316. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  25317. *
  25318. * @static
  25319. * @memberOf _
  25320. * @since 4.0.0
  25321. * @category Lang
  25322. * @param {*} value The value to check.
  25323. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  25324. * @example
  25325. *
  25326. * _.isArrayLike([1, 2, 3]);
  25327. * // => true
  25328. *
  25329. * _.isArrayLike(document.body.children);
  25330. * // => true
  25331. *
  25332. * _.isArrayLike('abc');
  25333. * // => true
  25334. *
  25335. * _.isArrayLike(_.noop);
  25336. * // => false
  25337. */
  25338. function isArrayLike(value) {
  25339. return value != null && isLength(value.length) && !isFunction(value);
  25340. }
  25341. /**
  25342. * Checks if `value` is a buffer.
  25343. *
  25344. * @static
  25345. * @memberOf _
  25346. * @since 4.3.0
  25347. * @category Lang
  25348. * @param {*} value The value to check.
  25349. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  25350. * @example
  25351. *
  25352. * _.isBuffer(new Buffer(2));
  25353. * // => true
  25354. *
  25355. * _.isBuffer(new Uint8Array(2));
  25356. * // => false
  25357. */
  25358. var isBuffer = nativeIsBuffer || stubFalse;
  25359. /**
  25360. * Performs a deep comparison between two values to determine if they are
  25361. * equivalent.
  25362. *
  25363. * **Note:** This method supports comparing arrays, array buffers, booleans,
  25364. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  25365. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  25366. * by their own, not inherited, enumerable properties. Functions and DOM
  25367. * nodes are compared by strict equality, i.e. `===`.
  25368. *
  25369. * @static
  25370. * @memberOf _
  25371. * @since 0.1.0
  25372. * @category Lang
  25373. * @param {*} value The value to compare.
  25374. * @param {*} other The other value to compare.
  25375. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25376. * @example
  25377. *
  25378. * var object = { 'a': 1 };
  25379. * var other = { 'a': 1 };
  25380. *
  25381. * _.isEqual(object, other);
  25382. * // => true
  25383. *
  25384. * object === other;
  25385. * // => false
  25386. */
  25387. function isEqual(value, other) {
  25388. return baseIsEqual(value, other);
  25389. }
  25390. /**
  25391. * Checks if `value` is classified as a `Function` object.
  25392. *
  25393. * @static
  25394. * @memberOf _
  25395. * @since 0.1.0
  25396. * @category Lang
  25397. * @param {*} value The value to check.
  25398. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  25399. * @example
  25400. *
  25401. * _.isFunction(_);
  25402. * // => true
  25403. *
  25404. * _.isFunction(/abc/);
  25405. * // => false
  25406. */
  25407. function isFunction(value) {
  25408. if (!isObject(value)) {
  25409. return false;
  25410. }
  25411. // The use of `Object#toString` avoids issues with the `typeof` operator
  25412. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  25413. var tag = baseGetTag(value);
  25414. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  25415. }
  25416. /**
  25417. * Checks if `value` is a valid array-like length.
  25418. *
  25419. * **Note:** This method is loosely based on
  25420. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  25421. *
  25422. * @static
  25423. * @memberOf _
  25424. * @since 4.0.0
  25425. * @category Lang
  25426. * @param {*} value The value to check.
  25427. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  25428. * @example
  25429. *
  25430. * _.isLength(3);
  25431. * // => true
  25432. *
  25433. * _.isLength(Number.MIN_VALUE);
  25434. * // => false
  25435. *
  25436. * _.isLength(Infinity);
  25437. * // => false
  25438. *
  25439. * _.isLength('3');
  25440. * // => false
  25441. */
  25442. function isLength(value) {
  25443. return typeof value == 'number' &&
  25444. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  25445. }
  25446. /**
  25447. * Checks if `value` is the
  25448. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  25449. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  25450. *
  25451. * @static
  25452. * @memberOf _
  25453. * @since 0.1.0
  25454. * @category Lang
  25455. * @param {*} value The value to check.
  25456. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  25457. * @example
  25458. *
  25459. * _.isObject({});
  25460. * // => true
  25461. *
  25462. * _.isObject([1, 2, 3]);
  25463. * // => true
  25464. *
  25465. * _.isObject(_.noop);
  25466. * // => true
  25467. *
  25468. * _.isObject(null);
  25469. * // => false
  25470. */
  25471. function isObject(value) {
  25472. var type = typeof value;
  25473. return value != null && (type == 'object' || type == 'function');
  25474. }
  25475. /**
  25476. * Checks if `value` is object-like. A value is object-like if it's not `null`
  25477. * and has a `typeof` result of "object".
  25478. *
  25479. * @static
  25480. * @memberOf _
  25481. * @since 4.0.0
  25482. * @category Lang
  25483. * @param {*} value The value to check.
  25484. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  25485. * @example
  25486. *
  25487. * _.isObjectLike({});
  25488. * // => true
  25489. *
  25490. * _.isObjectLike([1, 2, 3]);
  25491. * // => true
  25492. *
  25493. * _.isObjectLike(_.noop);
  25494. * // => false
  25495. *
  25496. * _.isObjectLike(null);
  25497. * // => false
  25498. */
  25499. function isObjectLike(value) {
  25500. return value != null && typeof value == 'object';
  25501. }
  25502. /**
  25503. * Checks if `value` is classified as a typed array.
  25504. *
  25505. * @static
  25506. * @memberOf _
  25507. * @since 3.0.0
  25508. * @category Lang
  25509. * @param {*} value The value to check.
  25510. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  25511. * @example
  25512. *
  25513. * _.isTypedArray(new Uint8Array);
  25514. * // => true
  25515. *
  25516. * _.isTypedArray([]);
  25517. * // => false
  25518. */
  25519. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  25520. /**
  25521. * Creates an array of the own enumerable property names of `object`.
  25522. *
  25523. * **Note:** Non-object values are coerced to objects. See the
  25524. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  25525. * for more details.
  25526. *
  25527. * @static
  25528. * @since 0.1.0
  25529. * @memberOf _
  25530. * @category Object
  25531. * @param {Object} object The object to query.
  25532. * @returns {Array} Returns the array of property names.
  25533. * @example
  25534. *
  25535. * function Foo() {
  25536. * this.a = 1;
  25537. * this.b = 2;
  25538. * }
  25539. *
  25540. * Foo.prototype.c = 3;
  25541. *
  25542. * _.keys(new Foo);
  25543. * // => ['a', 'b'] (iteration order is not guaranteed)
  25544. *
  25545. * _.keys('hi');
  25546. * // => ['0', '1']
  25547. */
  25548. function keys(object) {
  25549. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  25550. }
  25551. /**
  25552. * This method returns a new empty array.
  25553. *
  25554. * @static
  25555. * @memberOf _
  25556. * @since 4.13.0
  25557. * @category Util
  25558. * @returns {Array} Returns the new empty array.
  25559. * @example
  25560. *
  25561. * var arrays = _.times(2, _.stubArray);
  25562. *
  25563. * console.log(arrays);
  25564. * // => [[], []]
  25565. *
  25566. * console.log(arrays[0] === arrays[1]);
  25567. * // => false
  25568. */
  25569. function stubArray() {
  25570. return [];
  25571. }
  25572. /**
  25573. * This method returns `false`.
  25574. *
  25575. * @static
  25576. * @memberOf _
  25577. * @since 4.13.0
  25578. * @category Util
  25579. * @returns {boolean} Returns `false`.
  25580. * @example
  25581. *
  25582. * _.times(2, _.stubFalse);
  25583. * // => [false, false]
  25584. */
  25585. function stubFalse() {
  25586. return false;
  25587. }
  25588. module.exports = isEqual;
  25589. /***/ }),
  25590. /***/ "./node_modules/nprogress/nprogress.js":
  25591. /*!*********************************************!*\
  25592. !*** ./node_modules/nprogress/nprogress.js ***!
  25593. \*********************************************/
  25594. /***/ (function(module, exports, __webpack_require__) {
  25595. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  25596. * @license MIT */
  25597. ;(function(root, factory) {
  25598. if (true) {
  25599. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25600. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25601. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  25602. __WEBPACK_AMD_DEFINE_FACTORY__),
  25603. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25604. } else {}
  25605. })(this, function() {
  25606. var NProgress = {};
  25607. NProgress.version = '0.2.0';
  25608. var Settings = NProgress.settings = {
  25609. minimum: 0.08,
  25610. easing: 'ease',
  25611. positionUsing: '',
  25612. speed: 200,
  25613. trickle: true,
  25614. trickleRate: 0.02,
  25615. trickleSpeed: 800,
  25616. showSpinner: true,
  25617. barSelector: '[role="bar"]',
  25618. spinnerSelector: '[role="spinner"]',
  25619. parent: 'body',
  25620. template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
  25621. };
  25622. /**
  25623. * Updates configuration.
  25624. *
  25625. * NProgress.configure({
  25626. * minimum: 0.1
  25627. * });
  25628. */
  25629. NProgress.configure = function(options) {
  25630. var key, value;
  25631. for (key in options) {
  25632. value = options[key];
  25633. if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
  25634. }
  25635. return this;
  25636. };
  25637. /**
  25638. * Last number.
  25639. */
  25640. NProgress.status = null;
  25641. /**
  25642. * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
  25643. *
  25644. * NProgress.set(0.4);
  25645. * NProgress.set(1.0);
  25646. */
  25647. NProgress.set = function(n) {
  25648. var started = NProgress.isStarted();
  25649. n = clamp(n, Settings.minimum, 1);
  25650. NProgress.status = (n === 1 ? null : n);
  25651. var progress = NProgress.render(!started),
  25652. bar = progress.querySelector(Settings.barSelector),
  25653. speed = Settings.speed,
  25654. ease = Settings.easing;
  25655. progress.offsetWidth; /* Repaint */
  25656. queue(function(next) {
  25657. // Set positionUsing if it hasn't already been set
  25658. if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();
  25659. // Add transition
  25660. css(bar, barPositionCSS(n, speed, ease));
  25661. if (n === 1) {
  25662. // Fade out
  25663. css(progress, {
  25664. transition: 'none',
  25665. opacity: 1
  25666. });
  25667. progress.offsetWidth; /* Repaint */
  25668. setTimeout(function() {
  25669. css(progress, {
  25670. transition: 'all ' + speed + 'ms linear',
  25671. opacity: 0
  25672. });
  25673. setTimeout(function() {
  25674. NProgress.remove();
  25675. next();
  25676. }, speed);
  25677. }, speed);
  25678. } else {
  25679. setTimeout(next, speed);
  25680. }
  25681. });
  25682. return this;
  25683. };
  25684. NProgress.isStarted = function() {
  25685. return typeof NProgress.status === 'number';
  25686. };
  25687. /**
  25688. * Shows the progress bar.
  25689. * This is the same as setting the status to 0%, except that it doesn't go backwards.
  25690. *
  25691. * NProgress.start();
  25692. *
  25693. */
  25694. NProgress.start = function() {
  25695. if (!NProgress.status) NProgress.set(0);
  25696. var work = function() {
  25697. setTimeout(function() {
  25698. if (!NProgress.status) return;
  25699. NProgress.trickle();
  25700. work();
  25701. }, Settings.trickleSpeed);
  25702. };
  25703. if (Settings.trickle) work();
  25704. return this;
  25705. };
  25706. /**
  25707. * Hides the progress bar.
  25708. * This is the *sort of* the same as setting the status to 100%, with the
  25709. * difference being `done()` makes some placebo effect of some realistic motion.
  25710. *
  25711. * NProgress.done();
  25712. *
  25713. * If `true` is passed, it will show the progress bar even if its hidden.
  25714. *
  25715. * NProgress.done(true);
  25716. */
  25717. NProgress.done = function(force) {
  25718. if (!force && !NProgress.status) return this;
  25719. return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
  25720. };
  25721. /**
  25722. * Increments by a random amount.
  25723. */
  25724. NProgress.inc = function(amount) {
  25725. var n = NProgress.status;
  25726. if (!n) {
  25727. return NProgress.start();
  25728. } else {
  25729. if (typeof amount !== 'number') {
  25730. amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
  25731. }
  25732. n = clamp(n + amount, 0, 0.994);
  25733. return NProgress.set(n);
  25734. }
  25735. };
  25736. NProgress.trickle = function() {
  25737. return NProgress.inc(Math.random() * Settings.trickleRate);
  25738. };
  25739. /**
  25740. * Waits for all supplied jQuery promises and
  25741. * increases the progress as the promises resolve.
  25742. *
  25743. * @param $promise jQUery Promise
  25744. */
  25745. (function() {
  25746. var initial = 0, current = 0;
  25747. NProgress.promise = function($promise) {
  25748. if (!$promise || $promise.state() === "resolved") {
  25749. return this;
  25750. }
  25751. if (current === 0) {
  25752. NProgress.start();
  25753. }
  25754. initial++;
  25755. current++;
  25756. $promise.always(function() {
  25757. current--;
  25758. if (current === 0) {
  25759. initial = 0;
  25760. NProgress.done();
  25761. } else {
  25762. NProgress.set((initial - current) / initial);
  25763. }
  25764. });
  25765. return this;
  25766. };
  25767. })();
  25768. /**
  25769. * (Internal) renders the progress bar markup based on the `template`
  25770. * setting.
  25771. */
  25772. NProgress.render = function(fromStart) {
  25773. if (NProgress.isRendered()) return document.getElementById('nprogress');
  25774. addClass(document.documentElement, 'nprogress-busy');
  25775. var progress = document.createElement('div');
  25776. progress.id = 'nprogress';
  25777. progress.innerHTML = Settings.template;
  25778. var bar = progress.querySelector(Settings.barSelector),
  25779. perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
  25780. parent = document.querySelector(Settings.parent),
  25781. spinner;
  25782. css(bar, {
  25783. transition: 'all 0 linear',
  25784. transform: 'translate3d(' + perc + '%,0,0)'
  25785. });
  25786. if (!Settings.showSpinner) {
  25787. spinner = progress.querySelector(Settings.spinnerSelector);
  25788. spinner && removeElement(spinner);
  25789. }
  25790. if (parent != document.body) {
  25791. addClass(parent, 'nprogress-custom-parent');
  25792. }
  25793. parent.appendChild(progress);
  25794. return progress;
  25795. };
  25796. /**
  25797. * Removes the element. Opposite of render().
  25798. */
  25799. NProgress.remove = function() {
  25800. removeClass(document.documentElement, 'nprogress-busy');
  25801. removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');
  25802. var progress = document.getElementById('nprogress');
  25803. progress && removeElement(progress);
  25804. };
  25805. /**
  25806. * Checks if the progress bar is rendered.
  25807. */
  25808. NProgress.isRendered = function() {
  25809. return !!document.getElementById('nprogress');
  25810. };
  25811. /**
  25812. * Determine which positioning CSS rule to use.
  25813. */
  25814. NProgress.getPositioningCSS = function() {
  25815. // Sniff on document.body.style
  25816. var bodyStyle = document.body.style;
  25817. // Sniff prefixes
  25818. var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :
  25819. ('MozTransform' in bodyStyle) ? 'Moz' :
  25820. ('msTransform' in bodyStyle) ? 'ms' :
  25821. ('OTransform' in bodyStyle) ? 'O' : '';
  25822. if (vendorPrefix + 'Perspective' in bodyStyle) {
  25823. // Modern browsers with 3D support, e.g. Webkit, IE10
  25824. return 'translate3d';
  25825. } else if (vendorPrefix + 'Transform' in bodyStyle) {
  25826. // Browsers without 3D support, e.g. IE9
  25827. return 'translate';
  25828. } else {
  25829. // Browsers without translate() support, e.g. IE7-8
  25830. return 'margin';
  25831. }
  25832. };
  25833. /**
  25834. * Helpers
  25835. */
  25836. function clamp(n, min, max) {
  25837. if (n < min) return min;
  25838. if (n > max) return max;
  25839. return n;
  25840. }
  25841. /**
  25842. * (Internal) converts a percentage (`0..1`) to a bar translateX
  25843. * percentage (`-100%..0%`).
  25844. */
  25845. function toBarPerc(n) {
  25846. return (-1 + n) * 100;
  25847. }
  25848. /**
  25849. * (Internal) returns the correct CSS for changing the bar's
  25850. * position given an n percentage, and speed and ease from Settings
  25851. */
  25852. function barPositionCSS(n, speed, ease) {
  25853. var barCSS;
  25854. if (Settings.positionUsing === 'translate3d') {
  25855. barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };
  25856. } else if (Settings.positionUsing === 'translate') {
  25857. barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };
  25858. } else {
  25859. barCSS = { 'margin-left': toBarPerc(n)+'%' };
  25860. }
  25861. barCSS.transition = 'all '+speed+'ms '+ease;
  25862. return barCSS;
  25863. }
  25864. /**
  25865. * (Internal) Queues a function to be executed.
  25866. */
  25867. var queue = (function() {
  25868. var pending = [];
  25869. function next() {
  25870. var fn = pending.shift();
  25871. if (fn) {
  25872. fn(next);
  25873. }
  25874. }
  25875. return function(fn) {
  25876. pending.push(fn);
  25877. if (pending.length == 1) next();
  25878. };
  25879. })();
  25880. /**
  25881. * (Internal) Applies css properties to an element, similar to the jQuery
  25882. * css method.
  25883. *
  25884. * While this helper does assist with vendor prefixed property names, it
  25885. * does not perform any manipulation of values prior to setting styles.
  25886. */
  25887. var css = (function() {
  25888. var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],
  25889. cssProps = {};
  25890. function camelCase(string) {
  25891. return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) {
  25892. return letter.toUpperCase();
  25893. });
  25894. }
  25895. function getVendorProp(name) {
  25896. var style = document.body.style;
  25897. if (name in style) return name;
  25898. var i = cssPrefixes.length,
  25899. capName = name.charAt(0).toUpperCase() + name.slice(1),
  25900. vendorName;
  25901. while (i--) {
  25902. vendorName = cssPrefixes[i] + capName;
  25903. if (vendorName in style) return vendorName;
  25904. }
  25905. return name;
  25906. }
  25907. function getStyleProp(name) {
  25908. name = camelCase(name);
  25909. return cssProps[name] || (cssProps[name] = getVendorProp(name));
  25910. }
  25911. function applyCss(element, prop, value) {
  25912. prop = getStyleProp(prop);
  25913. element.style[prop] = value;
  25914. }
  25915. return function(element, properties) {
  25916. var args = arguments,
  25917. prop,
  25918. value;
  25919. if (args.length == 2) {
  25920. for (prop in properties) {
  25921. value = properties[prop];
  25922. if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);
  25923. }
  25924. } else {
  25925. applyCss(element, args[1], args[2]);
  25926. }
  25927. }
  25928. })();
  25929. /**
  25930. * (Internal) Determines if an element or space separated list of class names contains a class name.
  25931. */
  25932. function hasClass(element, name) {
  25933. var list = typeof element == 'string' ? element : classList(element);
  25934. return list.indexOf(' ' + name + ' ') >= 0;
  25935. }
  25936. /**
  25937. * (Internal) Adds a class to an element.
  25938. */
  25939. function addClass(element, name) {
  25940. var oldList = classList(element),
  25941. newList = oldList + name;
  25942. if (hasClass(oldList, name)) return;
  25943. // Trim the opening space.
  25944. element.className = newList.substring(1);
  25945. }
  25946. /**
  25947. * (Internal) Removes a class from an element.
  25948. */
  25949. function removeClass(element, name) {
  25950. var oldList = classList(element),
  25951. newList;
  25952. if (!hasClass(element, name)) return;
  25953. // Replace the class name.
  25954. newList = oldList.replace(' ' + name + ' ', ' ');
  25955. // Trim the opening and closing spaces.
  25956. element.className = newList.substring(1, newList.length - 1);
  25957. }
  25958. /**
  25959. * (Internal) Gets a space separated list of the class names on the element.
  25960. * The list is wrapped with a single space on each end to facilitate finding
  25961. * matches within the list.
  25962. */
  25963. function classList(element) {
  25964. return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
  25965. }
  25966. /**
  25967. * (Internal) Removes an element from the DOM.
  25968. */
  25969. function removeElement(element) {
  25970. element && element.parentNode && element.parentNode.removeChild(element);
  25971. }
  25972. return NProgress;
  25973. });
  25974. /***/ }),
  25975. /***/ "./node_modules/object-inspect/index.js":
  25976. /*!**********************************************!*\
  25977. !*** ./node_modules/object-inspect/index.js ***!
  25978. \**********************************************/
  25979. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  25980. var hasMap = typeof Map === 'function' && Map.prototype;
  25981. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  25982. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  25983. var mapForEach = hasMap && Map.prototype.forEach;
  25984. var hasSet = typeof Set === 'function' && Set.prototype;
  25985. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  25986. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  25987. var setForEach = hasSet && Set.prototype.forEach;
  25988. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  25989. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  25990. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  25991. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  25992. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  25993. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  25994. var booleanValueOf = Boolean.prototype.valueOf;
  25995. var objectToString = Object.prototype.toString;
  25996. var functionToString = Function.prototype.toString;
  25997. var $match = String.prototype.match;
  25998. var $slice = String.prototype.slice;
  25999. var $replace = String.prototype.replace;
  26000. var $toUpperCase = String.prototype.toUpperCase;
  26001. var $toLowerCase = String.prototype.toLowerCase;
  26002. var $test = RegExp.prototype.test;
  26003. var $concat = Array.prototype.concat;
  26004. var $join = Array.prototype.join;
  26005. var $arrSlice = Array.prototype.slice;
  26006. var $floor = Math.floor;
  26007. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  26008. var gOPS = Object.getOwnPropertySymbols;
  26009. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  26010. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  26011. // ie, `has-tostringtag/shams
  26012. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  26013. ? Symbol.toStringTag
  26014. : null;
  26015. var isEnumerable = Object.prototype.propertyIsEnumerable;
  26016. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  26017. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  26018. ? function (O) {
  26019. return O.__proto__; // eslint-disable-line no-proto
  26020. }
  26021. : null
  26022. );
  26023. function addNumericSeparator(num, str) {
  26024. if (
  26025. num === Infinity
  26026. || num === -Infinity
  26027. || num !== num
  26028. || (num && num > -1000 && num < 1000)
  26029. || $test.call(/e/, str)
  26030. ) {
  26031. return str;
  26032. }
  26033. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  26034. if (typeof num === 'number') {
  26035. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  26036. if (int !== num) {
  26037. var intStr = String(int);
  26038. var dec = $slice.call(str, intStr.length + 1);
  26039. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  26040. }
  26041. }
  26042. return $replace.call(str, sepRegex, '$&_');
  26043. }
  26044. var inspectCustom = (__webpack_require__(/*! ./util.inspect */ "?2128").custom);
  26045. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  26046. module.exports = function inspect_(obj, options, depth, seen) {
  26047. var opts = options || {};
  26048. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  26049. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  26050. }
  26051. if (
  26052. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  26053. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  26054. : opts.maxStringLength !== null
  26055. )
  26056. ) {
  26057. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  26058. }
  26059. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  26060. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  26061. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  26062. }
  26063. if (
  26064. has(opts, 'indent')
  26065. && opts.indent !== null
  26066. && opts.indent !== '\t'
  26067. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  26068. ) {
  26069. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  26070. }
  26071. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  26072. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  26073. }
  26074. var numericSeparator = opts.numericSeparator;
  26075. if (typeof obj === 'undefined') {
  26076. return 'undefined';
  26077. }
  26078. if (obj === null) {
  26079. return 'null';
  26080. }
  26081. if (typeof obj === 'boolean') {
  26082. return obj ? 'true' : 'false';
  26083. }
  26084. if (typeof obj === 'string') {
  26085. return inspectString(obj, opts);
  26086. }
  26087. if (typeof obj === 'number') {
  26088. if (obj === 0) {
  26089. return Infinity / obj > 0 ? '0' : '-0';
  26090. }
  26091. var str = String(obj);
  26092. return numericSeparator ? addNumericSeparator(obj, str) : str;
  26093. }
  26094. if (typeof obj === 'bigint') {
  26095. var bigIntStr = String(obj) + 'n';
  26096. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  26097. }
  26098. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  26099. if (typeof depth === 'undefined') { depth = 0; }
  26100. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  26101. return isArray(obj) ? '[Array]' : '[Object]';
  26102. }
  26103. var indent = getIndent(opts, depth);
  26104. if (typeof seen === 'undefined') {
  26105. seen = [];
  26106. } else if (indexOf(seen, obj) >= 0) {
  26107. return '[Circular]';
  26108. }
  26109. function inspect(value, from, noIndent) {
  26110. if (from) {
  26111. seen = $arrSlice.call(seen);
  26112. seen.push(from);
  26113. }
  26114. if (noIndent) {
  26115. var newOpts = {
  26116. depth: opts.depth
  26117. };
  26118. if (has(opts, 'quoteStyle')) {
  26119. newOpts.quoteStyle = opts.quoteStyle;
  26120. }
  26121. return inspect_(value, newOpts, depth + 1, seen);
  26122. }
  26123. return inspect_(value, opts, depth + 1, seen);
  26124. }
  26125. if (typeof obj === 'function') {
  26126. var name = nameOf(obj);
  26127. var keys = arrObjKeys(obj, inspect);
  26128. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  26129. }
  26130. if (isSymbol(obj)) {
  26131. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  26132. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  26133. }
  26134. if (isElement(obj)) {
  26135. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  26136. var attrs = obj.attributes || [];
  26137. for (var i = 0; i < attrs.length; i++) {
  26138. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  26139. }
  26140. s += '>';
  26141. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  26142. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  26143. return s;
  26144. }
  26145. if (isArray(obj)) {
  26146. if (obj.length === 0) { return '[]'; }
  26147. var xs = arrObjKeys(obj, inspect);
  26148. if (indent && !singleLineValues(xs)) {
  26149. return '[' + indentedJoin(xs, indent) + ']';
  26150. }
  26151. return '[ ' + $join.call(xs, ', ') + ' ]';
  26152. }
  26153. if (isError(obj)) {
  26154. var parts = arrObjKeys(obj, inspect);
  26155. if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
  26156. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  26157. }
  26158. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  26159. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  26160. }
  26161. if (typeof obj === 'object' && customInspect) {
  26162. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  26163. return obj[inspectSymbol]();
  26164. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  26165. return obj.inspect();
  26166. }
  26167. }
  26168. if (isMap(obj)) {
  26169. var mapParts = [];
  26170. mapForEach.call(obj, function (value, key) {
  26171. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  26172. });
  26173. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  26174. }
  26175. if (isSet(obj)) {
  26176. var setParts = [];
  26177. setForEach.call(obj, function (value) {
  26178. setParts.push(inspect(value, obj));
  26179. });
  26180. return collectionOf('Set', setSize.call(obj), setParts, indent);
  26181. }
  26182. if (isWeakMap(obj)) {
  26183. return weakCollectionOf('WeakMap');
  26184. }
  26185. if (isWeakSet(obj)) {
  26186. return weakCollectionOf('WeakSet');
  26187. }
  26188. if (isWeakRef(obj)) {
  26189. return weakCollectionOf('WeakRef');
  26190. }
  26191. if (isNumber(obj)) {
  26192. return markBoxed(inspect(Number(obj)));
  26193. }
  26194. if (isBigInt(obj)) {
  26195. return markBoxed(inspect(bigIntValueOf.call(obj)));
  26196. }
  26197. if (isBoolean(obj)) {
  26198. return markBoxed(booleanValueOf.call(obj));
  26199. }
  26200. if (isString(obj)) {
  26201. return markBoxed(inspect(String(obj)));
  26202. }
  26203. if (!isDate(obj) && !isRegExp(obj)) {
  26204. var ys = arrObjKeys(obj, inspect);
  26205. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  26206. var protoTag = obj instanceof Object ? '' : 'null prototype';
  26207. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  26208. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  26209. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  26210. if (ys.length === 0) { return tag + '{}'; }
  26211. if (indent) {
  26212. return tag + '{' + indentedJoin(ys, indent) + '}';
  26213. }
  26214. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  26215. }
  26216. return String(obj);
  26217. };
  26218. function wrapQuotes(s, defaultStyle, opts) {
  26219. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  26220. return quoteChar + s + quoteChar;
  26221. }
  26222. function quote(s) {
  26223. return $replace.call(String(s), /"/g, '&quot;');
  26224. }
  26225. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26226. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26227. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26228. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26229. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26230. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26231. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26232. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  26233. function isSymbol(obj) {
  26234. if (hasShammedSymbols) {
  26235. return obj && typeof obj === 'object' && obj instanceof Symbol;
  26236. }
  26237. if (typeof obj === 'symbol') {
  26238. return true;
  26239. }
  26240. if (!obj || typeof obj !== 'object' || !symToString) {
  26241. return false;
  26242. }
  26243. try {
  26244. symToString.call(obj);
  26245. return true;
  26246. } catch (e) {}
  26247. return false;
  26248. }
  26249. function isBigInt(obj) {
  26250. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  26251. return false;
  26252. }
  26253. try {
  26254. bigIntValueOf.call(obj);
  26255. return true;
  26256. } catch (e) {}
  26257. return false;
  26258. }
  26259. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  26260. function has(obj, key) {
  26261. return hasOwn.call(obj, key);
  26262. }
  26263. function toStr(obj) {
  26264. return objectToString.call(obj);
  26265. }
  26266. function nameOf(f) {
  26267. if (f.name) { return f.name; }
  26268. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  26269. if (m) { return m[1]; }
  26270. return null;
  26271. }
  26272. function indexOf(xs, x) {
  26273. if (xs.indexOf) { return xs.indexOf(x); }
  26274. for (var i = 0, l = xs.length; i < l; i++) {
  26275. if (xs[i] === x) { return i; }
  26276. }
  26277. return -1;
  26278. }
  26279. function isMap(x) {
  26280. if (!mapSize || !x || typeof x !== 'object') {
  26281. return false;
  26282. }
  26283. try {
  26284. mapSize.call(x);
  26285. try {
  26286. setSize.call(x);
  26287. } catch (s) {
  26288. return true;
  26289. }
  26290. return x instanceof Map; // core-js workaround, pre-v2.5.0
  26291. } catch (e) {}
  26292. return false;
  26293. }
  26294. function isWeakMap(x) {
  26295. if (!weakMapHas || !x || typeof x !== 'object') {
  26296. return false;
  26297. }
  26298. try {
  26299. weakMapHas.call(x, weakMapHas);
  26300. try {
  26301. weakSetHas.call(x, weakSetHas);
  26302. } catch (s) {
  26303. return true;
  26304. }
  26305. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  26306. } catch (e) {}
  26307. return false;
  26308. }
  26309. function isWeakRef(x) {
  26310. if (!weakRefDeref || !x || typeof x !== 'object') {
  26311. return false;
  26312. }
  26313. try {
  26314. weakRefDeref.call(x);
  26315. return true;
  26316. } catch (e) {}
  26317. return false;
  26318. }
  26319. function isSet(x) {
  26320. if (!setSize || !x || typeof x !== 'object') {
  26321. return false;
  26322. }
  26323. try {
  26324. setSize.call(x);
  26325. try {
  26326. mapSize.call(x);
  26327. } catch (m) {
  26328. return true;
  26329. }
  26330. return x instanceof Set; // core-js workaround, pre-v2.5.0
  26331. } catch (e) {}
  26332. return false;
  26333. }
  26334. function isWeakSet(x) {
  26335. if (!weakSetHas || !x || typeof x !== 'object') {
  26336. return false;
  26337. }
  26338. try {
  26339. weakSetHas.call(x, weakSetHas);
  26340. try {
  26341. weakMapHas.call(x, weakMapHas);
  26342. } catch (s) {
  26343. return true;
  26344. }
  26345. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  26346. } catch (e) {}
  26347. return false;
  26348. }
  26349. function isElement(x) {
  26350. if (!x || typeof x !== 'object') { return false; }
  26351. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  26352. return true;
  26353. }
  26354. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  26355. }
  26356. function inspectString(str, opts) {
  26357. if (str.length > opts.maxStringLength) {
  26358. var remaining = str.length - opts.maxStringLength;
  26359. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  26360. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  26361. }
  26362. // eslint-disable-next-line no-control-regex
  26363. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  26364. return wrapQuotes(s, 'single', opts);
  26365. }
  26366. function lowbyte(c) {
  26367. var n = c.charCodeAt(0);
  26368. var x = {
  26369. 8: 'b',
  26370. 9: 't',
  26371. 10: 'n',
  26372. 12: 'f',
  26373. 13: 'r'
  26374. }[n];
  26375. if (x) { return '\\' + x; }
  26376. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  26377. }
  26378. function markBoxed(str) {
  26379. return 'Object(' + str + ')';
  26380. }
  26381. function weakCollectionOf(type) {
  26382. return type + ' { ? }';
  26383. }
  26384. function collectionOf(type, size, entries, indent) {
  26385. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  26386. return type + ' (' + size + ') {' + joinedEntries + '}';
  26387. }
  26388. function singleLineValues(xs) {
  26389. for (var i = 0; i < xs.length; i++) {
  26390. if (indexOf(xs[i], '\n') >= 0) {
  26391. return false;
  26392. }
  26393. }
  26394. return true;
  26395. }
  26396. function getIndent(opts, depth) {
  26397. var baseIndent;
  26398. if (opts.indent === '\t') {
  26399. baseIndent = '\t';
  26400. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  26401. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  26402. } else {
  26403. return null;
  26404. }
  26405. return {
  26406. base: baseIndent,
  26407. prev: $join.call(Array(depth + 1), baseIndent)
  26408. };
  26409. }
  26410. function indentedJoin(xs, indent) {
  26411. if (xs.length === 0) { return ''; }
  26412. var lineJoiner = '\n' + indent.prev + indent.base;
  26413. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  26414. }
  26415. function arrObjKeys(obj, inspect) {
  26416. var isArr = isArray(obj);
  26417. var xs = [];
  26418. if (isArr) {
  26419. xs.length = obj.length;
  26420. for (var i = 0; i < obj.length; i++) {
  26421. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  26422. }
  26423. }
  26424. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  26425. var symMap;
  26426. if (hasShammedSymbols) {
  26427. symMap = {};
  26428. for (var k = 0; k < syms.length; k++) {
  26429. symMap['$' + syms[k]] = syms[k];
  26430. }
  26431. }
  26432. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  26433. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26434. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26435. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  26436. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  26437. continue; // eslint-disable-line no-restricted-syntax, no-continue
  26438. } else if ($test.call(/[^\w$]/, key)) {
  26439. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  26440. } else {
  26441. xs.push(key + ': ' + inspect(obj[key], obj));
  26442. }
  26443. }
  26444. if (typeof gOPS === 'function') {
  26445. for (var j = 0; j < syms.length; j++) {
  26446. if (isEnumerable.call(obj, syms[j])) {
  26447. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  26448. }
  26449. }
  26450. }
  26451. return xs;
  26452. }
  26453. /***/ }),
  26454. /***/ "./node_modules/primevue/api/api.esm.js":
  26455. /*!**********************************************!*\
  26456. !*** ./node_modules/primevue/api/api.esm.js ***!
  26457. \**********************************************/
  26458. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26459. "use strict";
  26460. __webpack_require__.r(__webpack_exports__);
  26461. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  26462. /* harmony export */ "FilterMatchMode": () => (/* binding */ FilterMatchMode),
  26463. /* harmony export */ "FilterOperator": () => (/* binding */ FilterOperator),
  26464. /* harmony export */ "FilterService": () => (/* binding */ FilterService),
  26465. /* harmony export */ "PrimeIcons": () => (/* binding */ PrimeIcons),
  26466. /* harmony export */ "ToastSeverity": () => (/* binding */ ToastSeverities)
  26467. /* harmony export */ });
  26468. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  26469. const FilterMatchMode = {
  26470. STARTS_WITH : 'startsWith',
  26471. CONTAINS : 'contains',
  26472. NOT_CONTAINS : 'notContains',
  26473. ENDS_WITH : 'endsWith',
  26474. EQUALS : 'equals',
  26475. NOT_EQUALS : 'notEquals',
  26476. IN : 'in',
  26477. LESS_THAN : 'lt',
  26478. LESS_THAN_OR_EQUAL_TO : 'lte',
  26479. GREATER_THAN : 'gt',
  26480. GREATER_THAN_OR_EQUAL_TO : 'gte',
  26481. BETWEEN : 'between',
  26482. DATE_IS : 'dateIs',
  26483. DATE_IS_NOT : 'dateIsNot',
  26484. DATE_BEFORE : 'dateBefore',
  26485. DATE_AFTER : 'dateAfter'
  26486. };
  26487. const FilterOperator = {
  26488. AND: 'and',
  26489. OR: 'or'
  26490. };
  26491. const FilterService = {
  26492. filter(value, fields, filterValue, filterMatchMode, filterLocale) {
  26493. let filteredItems = [];
  26494. if (value) {
  26495. for (let item of value) {
  26496. for (let field of fields) {
  26497. let fieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, field);
  26498. if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {
  26499. filteredItems.push(item);
  26500. break;
  26501. }
  26502. }
  26503. }
  26504. }
  26505. return filteredItems;
  26506. },
  26507. filters: {
  26508. startsWith(value, filter, filterLocale) {
  26509. if (filter === undefined || filter === null || filter.trim() === '') {
  26510. return true;
  26511. }
  26512. if (value === undefined || value === null) {
  26513. return false;
  26514. }
  26515. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26516. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26517. return stringValue.slice(0, filterValue.length) === filterValue;
  26518. },
  26519. contains(value, filter, filterLocale) {
  26520. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26521. return true;
  26522. }
  26523. if (value === undefined || value === null) {
  26524. return false;
  26525. }
  26526. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26527. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26528. return stringValue.indexOf(filterValue) !== -1;
  26529. },
  26530. notContains(value, filter, filterLocale) {
  26531. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26532. return true;
  26533. }
  26534. if (value === undefined || value === null) {
  26535. return false;
  26536. }
  26537. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26538. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26539. return stringValue.indexOf(filterValue) === -1;
  26540. },
  26541. endsWith(value, filter, filterLocale) {
  26542. if (filter === undefined || filter === null || filter.trim() === '') {
  26543. return true;
  26544. }
  26545. if (value === undefined || value === null) {
  26546. return false;
  26547. }
  26548. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26549. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26550. return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;
  26551. },
  26552. equals(value, filter, filterLocale) {
  26553. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26554. return true;
  26555. }
  26556. if (value === undefined || value === null) {
  26557. return false;
  26558. }
  26559. if (value.getTime && filter.getTime)
  26560. return value.getTime() === filter.getTime();
  26561. else
  26562. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26563. },
  26564. notEquals(value, filter, filterLocale) {
  26565. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26566. return false;
  26567. }
  26568. if (value === undefined || value === null) {
  26569. return true;
  26570. }
  26571. if (value.getTime && filter.getTime)
  26572. return value.getTime() !== filter.getTime();
  26573. else
  26574. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26575. },
  26576. in(value, filter) {
  26577. if (filter === undefined || filter === null || filter.length === 0) {
  26578. return true;
  26579. }
  26580. for (let i = 0; i < filter.length; i++) {
  26581. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, filter[i])) {
  26582. return true;
  26583. }
  26584. }
  26585. return false;
  26586. },
  26587. between(value, filter) {
  26588. if (filter == null || filter[0] == null || filter[1] == null) {
  26589. return true;
  26590. }
  26591. if (value === undefined || value === null) {
  26592. return false;
  26593. }
  26594. if (value.getTime)
  26595. return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();
  26596. else
  26597. return filter[0] <= value && value <= filter[1];
  26598. },
  26599. lt(value, filter) {
  26600. if (filter === undefined || filter === null) {
  26601. return true;
  26602. }
  26603. if (value === undefined || value === null) {
  26604. return false;
  26605. }
  26606. if (value.getTime && filter.getTime)
  26607. return value.getTime() < filter.getTime();
  26608. else
  26609. return value < filter;
  26610. },
  26611. lte(value, filter) {
  26612. if (filter === undefined || filter === null) {
  26613. return true;
  26614. }
  26615. if (value === undefined || value === null) {
  26616. return false;
  26617. }
  26618. if (value.getTime && filter.getTime)
  26619. return value.getTime() <= filter.getTime();
  26620. else
  26621. return value <= filter;
  26622. },
  26623. gt(value, filter) {
  26624. if (filter === undefined || filter === null) {
  26625. return true;
  26626. }
  26627. if (value === undefined || value === null) {
  26628. return false;
  26629. }
  26630. if (value.getTime && filter.getTime)
  26631. return value.getTime() > filter.getTime();
  26632. else
  26633. return value > filter;
  26634. },
  26635. gte(value, filter) {
  26636. if (filter === undefined || filter === null) {
  26637. return true;
  26638. }
  26639. if (value === undefined || value === null) {
  26640. return false;
  26641. }
  26642. if (value.getTime && filter.getTime)
  26643. return value.getTime() >= filter.getTime();
  26644. else
  26645. return value >= filter;
  26646. },
  26647. dateIs(value, filter) {
  26648. if (filter === undefined || filter === null) {
  26649. return true;
  26650. }
  26651. if (value === undefined || value === null) {
  26652. return false;
  26653. }
  26654. return value.toDateString() === filter.toDateString();
  26655. },
  26656. dateIsNot(value, filter) {
  26657. if (filter === undefined || filter === null) {
  26658. return true;
  26659. }
  26660. if (value === undefined || value === null) {
  26661. return false;
  26662. }
  26663. return value.toDateString() !== filter.toDateString();
  26664. },
  26665. dateBefore(value, filter) {
  26666. if (filter === undefined || filter === null) {
  26667. return true;
  26668. }
  26669. if (value === undefined || value === null) {
  26670. return false;
  26671. }
  26672. return value.getTime() < filter.getTime();
  26673. },
  26674. dateAfter(value, filter) {
  26675. if (filter === undefined || filter === null) {
  26676. return true;
  26677. }
  26678. if (value === undefined || value === null) {
  26679. return false;
  26680. }
  26681. return value.getTime() > filter.getTime();
  26682. }
  26683. },
  26684. register(rule, fn) {
  26685. this.filters[rule] = fn;
  26686. }
  26687. };
  26688. const PrimeIcons = {
  26689. ALIGN_CENTER:'pi pi-align-center',
  26690. ALIGN_JUSTIFY:'pi pi-align-justify',
  26691. ALIGN_LEFT:'pi pi-align-left',
  26692. ALIGN_RIGHT:'pi pi-align-right',
  26693. AMAZON:'pi pi-amazon',
  26694. ANDROID:'pi pi-android',
  26695. ANGLE_DOUBLE_DOWN:'pi pi-angle-double-down',
  26696. ANGLE_DOUBLE_LEFT:'pi pi-angle-double-left',
  26697. ANGLE_DOUBLE_RIGHT:'pi pi-angle-double-right',
  26698. ANGLE_DOUBLE_UP:'pi pi-angle-double-up',
  26699. ANGLE_DOWN:'pi pi-angle-down',
  26700. ANGLE_LEFT:'pi pi-angle-left',
  26701. ANGLE_RIGHT:'pi pi-angle-right',
  26702. ANGLE_UP:'pi pi-angle-up',
  26703. APPLE:'pi pi-apple',
  26704. ARROW_CIRCLE_DOWN:'pi pi-arrow-circle-down',
  26705. ARROW_CIRCLE_LEFT:'pi pi-arrow-circle-left',
  26706. ARROW_CIRCLE_RIGHT:'pi pi-arrow-circle-right',
  26707. ARROW_CIRCLE_UP:'pi pi-arrow-circle-up',
  26708. ARROW_DOWN:'pi pi-arrow-down',
  26709. ARROW_DOWN_LEFT:'pi pi-arrow-down-left',
  26710. ARROW_DOWN_RIGHT:'pi pi-arrow-down-right',
  26711. ARROW_LEFT:'pi pi-arrow-left',
  26712. ARROW_RIGHT:'pi pi-arrow-right',
  26713. ARROW_UP:'pi pi-arrow-up',
  26714. ARROW_UP_LEFT:'pi pi-arrow-up-left',
  26715. ARROW_UP_RIGHT:'pi pi-arrow-up-right',
  26716. ARROW_H:'pi pi-arrow-h',
  26717. ARROW_V:'pi pi-arrow-v',
  26718. AT:'pi pi-at',
  26719. BACKWARD:'pi pi-backward',
  26720. BAN:'pi pi-ban',
  26721. BARS:'pi pi-bars',
  26722. BELL:'pi pi-bell',
  26723. BOLT:'pi pi-bolt',
  26724. BOOK:'pi pi-book',
  26725. BOOKMARK:'pi pi-bookmark',
  26726. BOOKMARK_FILL:'pi pi-bookmark-fill',
  26727. BOX:'pi pi-box',
  26728. BRIEFCASE:'pi pi-briefcase',
  26729. BUILDING:'pi pi-building',
  26730. CALENDAR:'pi pi-calendar',
  26731. CALENDAR_MINUS:'pi pi-calendar-minus',
  26732. CALENDAR_PLUS:'pi pi-calendar-plus',
  26733. CALENDAR_TIMES:'pi pi-calendar-times',
  26734. CAMERA:'pi pi-camera',
  26735. CAR:'pi pi-car',
  26736. CARET_DOWN:'pi pi-caret-down',
  26737. CARET_LEFT:'pi pi-caret-left',
  26738. CARET_RIGHT:'pi pi-caret-right',
  26739. CARET_UP:'pi pi-caret-up',
  26740. CHART_BAR:'pi pi-chart-bar',
  26741. CHART_LINE:'pi pi-chart-line',
  26742. CHART_PIE:'pi pi-chart-pie',
  26743. CHECK:'pi pi-check',
  26744. CHECK_CIRCLE:'pi pi-check-circle',
  26745. CHECK_SQUARE:'pi pi-check-square',
  26746. CHEVRON_CIRCLE_DOWN:'pi pi-chevron-circle-down',
  26747. CHEVRON_CIRCLE_LEFT:'pi pi-chevron-circle-left',
  26748. CHEVRON_CIRCLE_RIGHT:'pi pi-chevron-circle-right',
  26749. CHEVRON_CIRCLE_UP:'pi pi-chevron-circle-up',
  26750. CHEVRON_DOWN:'pi pi-chevron-down',
  26751. CHEVRON_LEFT:'pi pi-chevron-left',
  26752. CHEVRON_RIGHT:'pi pi-chevron-right',
  26753. CHEVRON_UP:'pi pi-chevron-up',
  26754. CIRCLE:'pi pi-circle',
  26755. CIRCLE_FILL:'pi pi-circle-fill',
  26756. CLOCK:'pi pi-clock',
  26757. CLONE:'pi pi-clone',
  26758. CLOUD:'pi pi-cloud',
  26759. CLOUD_DOWNLOAD:'pi pi-cloud-download',
  26760. CLOUD_UPLOAD:'pi pi-cloud-upload',
  26761. CODE:'pi pi-code',
  26762. COG:'pi pi-cog',
  26763. COMMENT:'pi pi-comment',
  26764. COMMENTS:'pi pi-comments',
  26765. COMPASS:'pi pi-compass',
  26766. COPY:'pi pi-copy',
  26767. CREDIT_CARD:'pi pi-credit-card',
  26768. DATABASE:'pi pi-database',
  26769. DESKTOP:'pi pi-desktop',
  26770. DIRECTIONS:'pi pi-directions',
  26771. DIRECTIONS_ALT:'pi pi-directions-alt',
  26772. DISCORD:'pi pi-discord',
  26773. DOLLAR:'pi pi-dollar',
  26774. DOWNLOAD:'pi pi-download',
  26775. EJECT:'pi pi-eject',
  26776. ELLIPSIS_H:'pi pi-ellipsis-h',
  26777. ELLIPSIS_V:'pi pi-ellipsis-v',
  26778. ENVELOPE:'pi pi-envelope',
  26779. EURO:'pi pi-euro',
  26780. EXCLAMATION_CIRCLE:'pi pi-exclamation-circle',
  26781. EXCLAMATION_TRIANGLE :'pi pi-exclamation-triangle',
  26782. EXTERNAL_LINK:'pi pi-external-link',
  26783. EYE:'pi pi-eye',
  26784. EYE_SLASH:'pi pi-eye-slash',
  26785. FACEBOOK:'pi pi-facebook',
  26786. FAST_BACKWARD:'pi pi-fast-backward',
  26787. FAST_FORWARD:'pi pi-fast-forward',
  26788. FILE:'pi pi-file',
  26789. FILE_EXCEL:'pi pi-file-excel',
  26790. FILE_PDF:'pi pi-file-pdf',
  26791. FILTER:'pi pi-filter',
  26792. FILTER_FILL:'pi pi-filter-fill',
  26793. FILTER_SLASH:'pi pi-filter-slash',
  26794. FLAG:'pi pi-flag',
  26795. FLAG_FILL:'pi pi-flag-fill',
  26796. FOLDER:'pi pi-folder',
  26797. FOLDER_OPEN:'pi pi-folder-open',
  26798. FORWARD:'pi pi-forward',
  26799. GITHUB:'pi pi-github',
  26800. GLOBE:'pi pi-globe',
  26801. GOOGLE:'pi pi-google',
  26802. HASHTAG:'pi pi-hashtag',
  26803. HEART:'pi pi-heart',
  26804. HEART_FILL:'pi pi-heart-fill',
  26805. HISTORY:'pi pi-history',
  26806. HOME:'pi pi-home',
  26807. ID_CARD:'pi pi-id-card',
  26808. IMAGE:'pi pi-image',
  26809. IMAGES:'pi pi-images',
  26810. INBOX:'pi pi-inbox',
  26811. INFO:'pi pi-info',
  26812. INFO_CIRCLE:'pi pi-info-circle',
  26813. INSTAGRAM:'pi pi-instagram',
  26814. KEY:'pi pi-key',
  26815. LINK:'pi pi-link',
  26816. LINKEDIN:'pi pi-linkedin',
  26817. LIST:'pi pi-list',
  26818. LOCK:'pi pi-lock',
  26819. LOCK_OPEN:'pi pi-lock-open',
  26820. MAP:'pi pi-map',
  26821. MAP_MARKER:'pi pi-map-marker',
  26822. MICROSOFT:'pi pi-microsoft',
  26823. MINUS:'pi pi-minus',
  26824. MINUS_CIRCLE:'pi pi-minus-circle',
  26825. MOBILE:'pi pi-mobile',
  26826. MONEY_BILL:'pi pi-money-bill',
  26827. MOON:'pi pi-moon',
  26828. PALETTE:'pi pi-palette',
  26829. PAPERCLIP:'pi pi-paperclip',
  26830. PAUSE:'pi pi-pause',
  26831. PAYPAL:'pi pi-paypal',
  26832. PENCIL:'pi pi-pencil',
  26833. PERCENTAGE:'pi pi-percentage',
  26834. PHONE:'pi pi-phone',
  26835. PLAY:'pi pi-play',
  26836. PLUS:'pi pi-plus',
  26837. PLUS_CIRCLE:'pi pi-plus-circle',
  26838. POUND:'pi pi-pound',
  26839. POWER_OFF:'pi pi-power-off',
  26840. PRIME:'pi pi-prime',
  26841. PRINT:'pi pi-print',
  26842. QRCODE:'pi pi-qrcode',
  26843. QUESTION:'pi pi-question',
  26844. QUESTION_CIRCLE:'pi pi-question-circle',
  26845. REDDIT:'pi pi-reddit',
  26846. REFRESH:'pi pi-refresh',
  26847. REPLAY:'pi pi-replay',
  26848. REPLY:'pi pi-reply',
  26849. SAVE:'pi pi-save',
  26850. SEARCH:'pi pi-search',
  26851. SEARCH_MINUS:'pi pi-search-minus',
  26852. SEARCH_PLUS:'pi pi-search-plus',
  26853. SEND:'pi pi-send',
  26854. SERVER:'pi pi-server',
  26855. SHARE_ALT:'pi pi-share-alt',
  26856. SHIELD:'pi pi-shield',
  26857. SHOPPING_BAG:'pi pi-shopping-bag',
  26858. SHOPPING_CART:'pi pi-shopping-cart',
  26859. SIGN_IN:'pi pi-sign-in',
  26860. SIGN_OUT:'pi pi-sign-out',
  26861. SITEMAP:'pi pi-sitemap',
  26862. SLACK:'pi pi-slack',
  26863. SLIDERS_H:'pi pi-sliders-h',
  26864. SLIDERS_V:'pi pi-sliders-v',
  26865. SORT:'pi pi-sort',
  26866. SORT_ALPHA_DOWN:'pi pi-sort-alpha-down',
  26867. SORT_ALPHA_ALT_DOWN:'pi pi-sort-alpha-alt-down',
  26868. SORT_ALPHA_UP:'pi pi-sort-alpha-up',
  26869. SORT_ALPHA_ALT_UP:'pi pi-sort-alpha-alt-up',
  26870. SORT_ALT:'pi pi-sort-alt',
  26871. SORT_ALT_SLASH:'pi pi-sort-slash',
  26872. SORT_AMOUNT_DOWN:'pi pi-sort-amount-down',
  26873. SORT_AMOUNT_DOWN_ALT:'pi pi-sort-amount-down-alt',
  26874. SORT_AMOUNT_UP:'pi pi-sort-amount-up',
  26875. SORT_AMOUNT_UP_ALT:'pi pi-sort-amount-up-alt',
  26876. SORT_DOWN:'pi pi-sort-down',
  26877. SORT_NUMERIC_DOWN:'pi pi-sort-numeric-down',
  26878. SORT_NUMERIC_ALT_DOWN:'pi pi-sort-numeric-alt-down',
  26879. SORT_NUMERIC_UP:'pi pi-sort-numeric-up',
  26880. SORT_NUMERIC_ALT_UP:'pi pi-sort-numeric-alt-up',
  26881. SORT_UP:'pi pi-sort-up',
  26882. SPINNER:'pi pi-spinner',
  26883. STAR:'pi pi-star',
  26884. STAR_FILL:'pi pi-star-fill',
  26885. STEP_BACKWARD:'pi pi-step-backward',
  26886. STEP_BACKWARD_ALT:'pi pi-step-backward-alt',
  26887. STEP_FORWARD:'pi pi-step-forward',
  26888. STEP_FORWARD_ALT:'pi pi-step-forward-alt',
  26889. STOP:'pi pi-stop',
  26890. STOP_CIRCLE:'pi pi-stop-circle',
  26891. SUN:'pi pi-sun',
  26892. SYNC:'pi pi-sync',
  26893. TABLE:'pi pi-table',
  26894. TABLET:'pi pi-tablet',
  26895. TAG:'pi pi-tag',
  26896. TAGS:'pi pi-tags',
  26897. TELEGRAM:'pi pi-telegram',
  26898. TH_LARGE:'pi pi-th-large',
  26899. THUMBS_DOWN:'pi pi-thumbs-down',
  26900. THUMBS_UP:'pi pi-thumbs-up',
  26901. TICKET:'pi pi-ticket',
  26902. TIMES:'pi pi-times',
  26903. TIMES_CIRCLE:'pi pi-times-circle',
  26904. TRASH:'pi pi-trash',
  26905. TWITTER:'pi pi-twitter',
  26906. UNDO:'pi pi-undo',
  26907. UNLOCK:'pi pi-unlock',
  26908. UPLOAD:'pi pi-upload',
  26909. USER:'pi pi-user',
  26910. USER_EDIT:'pi pi-user-edit',
  26911. USER_MINUS:'pi pi-user-minus',
  26912. USER_PLUS:'pi pi-user-plus',
  26913. USERS:'pi pi-users',
  26914. VIDEO:'pi pi-video',
  26915. VIMEO:'pi pi-vimeo',
  26916. VOLUME_DOWN:'pi pi-volume-down',
  26917. VOLUME_OFF:'pi pi-volume-off',
  26918. VOLUME_UP:'pi pi-volume-up',
  26919. WALLET:'pi pi-wallet',
  26920. WHATSAPP:'pi pi-whatsapp',
  26921. WIFI:'pi pi-wifi',
  26922. WINDOW_MAXIMIZE:'pi pi-window-maximize',
  26923. WINDOW_MINIMIZE:'pi pi-window-minimize',
  26924. YOUTUBE:'pi pi-youtube'
  26925. };
  26926. const ToastSeverities = {
  26927. INFO: 'info',
  26928. WARN: 'warn',
  26929. ERROR: 'error',
  26930. SUCCESS: 'success'
  26931. };
  26932. /***/ }),
  26933. /***/ "./node_modules/primevue/autocomplete/autocomplete.esm.js":
  26934. /*!****************************************************************!*\
  26935. !*** ./node_modules/primevue/autocomplete/autocomplete.esm.js ***!
  26936. \****************************************************************/
  26937. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26938. "use strict";
  26939. __webpack_require__.r(__webpack_exports__);
  26940. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  26941. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  26942. /* harmony export */ });
  26943. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  26944. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  26945. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  26946. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  26947. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  26948. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  26949. var script = {
  26950. name: 'AutoComplete',
  26951. inheritAttrs: false,
  26952. emits: ['update:modelValue', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete'],
  26953. props: {
  26954. modelValue: null,
  26955. suggestions: {
  26956. type: Array,
  26957. default: null
  26958. },
  26959. field: {
  26960. type: [String,Function],
  26961. default: null
  26962. },
  26963. optionGroupLabel: null,
  26964. optionGroupChildren: null,
  26965. scrollHeight: {
  26966. type: String,
  26967. default: '200px'
  26968. },
  26969. dropdown: {
  26970. type: Boolean,
  26971. default: false
  26972. },
  26973. dropdownMode: {
  26974. type: String,
  26975. default: 'blank'
  26976. },
  26977. autoHighlight: {
  26978. type: Boolean,
  26979. default: false
  26980. },
  26981. multiple: {
  26982. type: Boolean,
  26983. default: false
  26984. },
  26985. minLength: {
  26986. type: Number,
  26987. default: 1
  26988. },
  26989. delay: {
  26990. type: Number,
  26991. default: 300
  26992. },
  26993. appendTo: {
  26994. type: String,
  26995. default: 'body'
  26996. },
  26997. forceSelection: {
  26998. type: Boolean,
  26999. default: false
  27000. },
  27001. completeOnFocus: {
  27002. type: Boolean,
  27003. default: false
  27004. },
  27005. inputClass: null,
  27006. inputStyle: null,
  27007. class: null,
  27008. style: null,
  27009. panelClass: null,
  27010. virtualScrollerOptions: {
  27011. type: Object,
  27012. default: null
  27013. }
  27014. },
  27015. timeout: null,
  27016. outsideClickListener: null,
  27017. resizeListener: null,
  27018. scrollHandler: null,
  27019. overlay: null,
  27020. virtualScroller: null,
  27021. data() {
  27022. return {
  27023. searching: false,
  27024. focused: false,
  27025. overlayVisible: false,
  27026. inputTextValue: null,
  27027. highlightItem: null
  27028. };
  27029. },
  27030. watch: {
  27031. suggestions() {
  27032. if (this.searching) {
  27033. if (this.suggestions && this.suggestions.length)
  27034. this.showOverlay();
  27035. else
  27036. this.hideOverlay();
  27037. this.searching = false;
  27038. }
  27039. }
  27040. },
  27041. beforeUnmount() {
  27042. this.unbindOutsideClickListener();
  27043. this.unbindResizeListener();
  27044. if (this.scrollHandler) {
  27045. this.scrollHandler.destroy();
  27046. this.scrollHandler = null;
  27047. }
  27048. if (this.overlay) {
  27049. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  27050. this.overlay = null;
  27051. }
  27052. },
  27053. updated() {
  27054. if (this.overlayVisible) {
  27055. this.alignOverlay();
  27056. }
  27057. },
  27058. methods: {
  27059. getOptionIndex(index, fn) {
  27060. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  27061. },
  27062. getOptionRenderKey(option) {
  27063. return this.getItemContent(option);
  27064. },
  27065. getOptionGroupRenderKey(optionGroup) {
  27066. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27067. },
  27068. getOptionGroupLabel(optionGroup) {
  27069. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27070. },
  27071. getOptionGroupChildren(optionGroup) {
  27072. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  27073. },
  27074. onOverlayEnter(el) {
  27075. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  27076. this.alignOverlay();
  27077. this.bindOutsideClickListener();
  27078. this.bindScrollListener();
  27079. this.bindResizeListener();
  27080. if (this.autoHighlight && this.suggestions && this.suggestions.length) {
  27081. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.list.firstElementChild, 'p-highlight');
  27082. }
  27083. },
  27084. onOverlayLeave() {
  27085. this.unbindOutsideClickListener();
  27086. this.unbindScrollListener();
  27087. this.unbindResizeListener();
  27088. this.overlay = null;
  27089. },
  27090. onOverlayAfterLeave(el) {
  27091. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  27092. },
  27093. alignOverlay() {
  27094. let target = this.multiple ? this.$refs.multiContainer : this.$refs.input;
  27095. if (this.appendDisabled) {
  27096. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, target);
  27097. }
  27098. else {
  27099. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target) + 'px';
  27100. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, target);
  27101. }
  27102. },
  27103. bindOutsideClickListener() {
  27104. if (!this.outsideClickListener) {
  27105. this.outsideClickListener = (event) => {
  27106. if (this.overlayVisible && this.overlay && this.isOutsideClicked(event)) {
  27107. this.hideOverlay();
  27108. }
  27109. };
  27110. document.addEventListener('click', this.outsideClickListener);
  27111. }
  27112. },
  27113. bindScrollListener() {
  27114. if (!this.scrollHandler) {
  27115. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  27116. if (this.overlayVisible) {
  27117. this.hideOverlay();
  27118. }
  27119. });
  27120. }
  27121. this.scrollHandler.bindScrollListener();
  27122. },
  27123. unbindScrollListener() {
  27124. if (this.scrollHandler) {
  27125. this.scrollHandler.unbindScrollListener();
  27126. }
  27127. },
  27128. bindResizeListener() {
  27129. if (!this.resizeListener) {
  27130. this.resizeListener = () => {
  27131. if (this.overlayVisible) {
  27132. this.hideOverlay();
  27133. }
  27134. };
  27135. window.addEventListener('resize', this.resizeListener);
  27136. }
  27137. },
  27138. unbindResizeListener() {
  27139. if (this.resizeListener) {
  27140. window.removeEventListener('resize', this.resizeListener);
  27141. this.resizeListener = null;
  27142. }
  27143. },
  27144. isOutsideClicked(event) {
  27145. return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
  27146. },
  27147. isInputClicked(event) {
  27148. if (this.multiple)
  27149. return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);
  27150. else
  27151. return event.target === this.$refs.input;
  27152. },
  27153. isDropdownClicked(event) {
  27154. return this.$refs.dropdownButton ? (event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target)) : false;
  27155. },
  27156. unbindOutsideClickListener() {
  27157. if (this.outsideClickListener) {
  27158. document.removeEventListener('click', this.outsideClickListener);
  27159. this.outsideClickListener = null;
  27160. }
  27161. },
  27162. selectItem(event, item) {
  27163. if (this.multiple) {
  27164. this.$refs.input.value = '';
  27165. this.inputTextValue = '';
  27166. if (!this.isSelected(item)) {
  27167. let newValue = this.modelValue ? [...this.modelValue, item] : [item];
  27168. this.$emit('update:modelValue', newValue);
  27169. }
  27170. }
  27171. else {
  27172. this.$emit('update:modelValue', item);
  27173. }
  27174. this.$emit('item-select', {
  27175. originalEvent: event,
  27176. value: item
  27177. });
  27178. this.focus();
  27179. this.hideOverlay();
  27180. },
  27181. onMultiContainerClick(event) {
  27182. this.focus();
  27183. if(this.completeOnFocus) {
  27184. this.search(event, '', 'click');
  27185. }
  27186. },
  27187. removeItem(event, index) {
  27188. let removedValue = this.modelValue[index];
  27189. let newValue = this.modelValue.filter((val, i) => (index !== i));
  27190. this.$emit('update:modelValue', newValue);
  27191. this.$emit('item-unselect', {
  27192. originalEvent: event,
  27193. value: removedValue
  27194. });
  27195. },
  27196. onDropdownClick(event) {
  27197. this.focus();
  27198. const query = this.$refs.input.value;
  27199. if (this.dropdownMode === 'blank')
  27200. this.search(event, '', 'dropdown');
  27201. else if (this.dropdownMode === 'current')
  27202. this.search(event, query, 'dropdown');
  27203. this.$emit('dropdown-click', {
  27204. originalEvent: event,
  27205. query: query
  27206. });
  27207. },
  27208. getItemContent(item) {
  27209. return this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27210. },
  27211. showOverlay() {
  27212. this.overlayVisible = true;
  27213. },
  27214. hideOverlay() {
  27215. this.overlayVisible = false;
  27216. },
  27217. focus() {
  27218. this.$refs.input.focus();
  27219. },
  27220. search(event, query, source) {
  27221. //allow empty string but not undefined or null
  27222. if (query === undefined || query === null) {
  27223. return;
  27224. }
  27225. //do not search blank values on input change
  27226. if (source === 'input' && query.trim().length === 0) {
  27227. return;
  27228. }
  27229. this.searching = true;
  27230. this.$emit('complete', {
  27231. originalEvent: event,
  27232. query: query
  27233. });
  27234. },
  27235. onInputClicked(event) {
  27236. if(this.completeOnFocus) {
  27237. this.search(event, '', 'click');
  27238. }
  27239. },
  27240. onInput(event) {
  27241. this.inputTextValue = event.target.value;
  27242. if (this.timeout) {
  27243. clearTimeout(this.timeout);
  27244. }
  27245. let query = event.target.value;
  27246. if (!this.multiple) {
  27247. this.$emit('update:modelValue', query);
  27248. }
  27249. if (query.length === 0) {
  27250. this.hideOverlay();
  27251. this.$emit('clear');
  27252. }
  27253. else {
  27254. if (query.length >= this.minLength) {
  27255. this.timeout = setTimeout(() => {
  27256. this.search(event, query, 'input');
  27257. }, this.delay);
  27258. }
  27259. else {
  27260. this.hideOverlay();
  27261. }
  27262. }
  27263. },
  27264. onFocus() {
  27265. this.focused = true;
  27266. },
  27267. onBlur() {
  27268. this.focused = false;
  27269. },
  27270. onKeyDown(event) {
  27271. if (this.overlayVisible) {
  27272. let highlightItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.list, 'li.p-highlight');
  27273. switch(event.which) {
  27274. //down
  27275. case 40:
  27276. if (highlightItem) {
  27277. let nextElement = this.findNextItem(highlightItem);
  27278. if (nextElement) {
  27279. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(nextElement, 'p-highlight');
  27280. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27281. nextElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27282. }
  27283. }
  27284. else {
  27285. highlightItem = this.list.firstElementChild;
  27286. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(highlightItem, 'p-autocomplete-item-group')) {
  27287. highlightItem = this.findNextItem(highlightItem);
  27288. }
  27289. if (highlightItem) {
  27290. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(highlightItem, 'p-highlight');
  27291. }
  27292. }
  27293. event.preventDefault();
  27294. break;
  27295. //up
  27296. case 38:
  27297. if (highlightItem) {
  27298. let previousElement = this.findPrevItem(highlightItem);
  27299. if (previousElement) {
  27300. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(previousElement, 'p-highlight');
  27301. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27302. previousElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27303. }
  27304. }
  27305. event.preventDefault();
  27306. break;
  27307. //enter
  27308. case 13:
  27309. if (highlightItem) {
  27310. this.selectHighlightItem(event, highlightItem);
  27311. this.hideOverlay();
  27312. }
  27313. event.preventDefault();
  27314. break;
  27315. //escape
  27316. case 27:
  27317. this.hideOverlay();
  27318. event.preventDefault();
  27319. break;
  27320. //tab
  27321. case 9:
  27322. if (highlightItem) {
  27323. this.selectHighlightItem(event, highlightItem);
  27324. }
  27325. this.hideOverlay();
  27326. break;
  27327. }
  27328. }
  27329. if (this.multiple) {
  27330. switch(event.which) {
  27331. //backspace
  27332. case 8:
  27333. if (this.modelValue && this.modelValue.length && !this.$refs.input.value) {
  27334. let removedValue = this.modelValue[this.modelValue.length - 1];
  27335. let newValue = this.modelValue.slice(0, -1);
  27336. this.$emit('update:modelValue', newValue);
  27337. this.$emit('item-unselect', {
  27338. originalEvent: event,
  27339. value: removedValue
  27340. });
  27341. }
  27342. break;
  27343. }
  27344. }
  27345. },
  27346. selectHighlightItem(event, item) {
  27347. if (this.optionGroupLabel) {
  27348. let optionGroup = this.suggestions[item.dataset.group];
  27349. this.selectItem(event, this.getOptionGroupChildren(optionGroup)[item.dataset.index]);
  27350. }
  27351. else {
  27352. this.selectItem(event, this.suggestions[item.dataset.index]);
  27353. }
  27354. },
  27355. findNextItem(item) {
  27356. let nextItem = item.nextElementSibling;
  27357. if (nextItem)
  27358. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-autocomplete-item-group') ? this.findNextItem(nextItem) : nextItem;
  27359. else
  27360. return null;
  27361. },
  27362. findPrevItem(item) {
  27363. let prevItem = item.previousElementSibling;
  27364. if (prevItem)
  27365. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-autocomplete-item-group') ? this.findPrevItem(prevItem) : prevItem;
  27366. else
  27367. return null;
  27368. },
  27369. onChange(event) {
  27370. if (this.forceSelection) {
  27371. let valid = false;
  27372. let inputValue = event.target.value.trim();
  27373. if (this.suggestions) {
  27374. for (let item of this.suggestions) {
  27375. let itemValue = this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27376. if (itemValue && inputValue === itemValue.trim()) {
  27377. valid = true;
  27378. this.selectItem(event, item);
  27379. break;
  27380. }
  27381. }
  27382. }
  27383. if (!valid) {
  27384. this.$refs.input.value = '';
  27385. this.inputTextValue = '';
  27386. this.$emit('clear');
  27387. if (!this.multiple) {
  27388. this.$emit('update:modelValue', null);
  27389. }
  27390. }
  27391. }
  27392. },
  27393. isSelected(val) {
  27394. let selected = false;
  27395. if (this.modelValue && this.modelValue.length) {
  27396. for (let i = 0; i < this.modelValue.length; i++) {
  27397. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue[i], val)) {
  27398. selected = true;
  27399. break;
  27400. }
  27401. }
  27402. }
  27403. return selected;
  27404. },
  27405. overlayRef(el) {
  27406. this.overlay = el;
  27407. },
  27408. listRef(el, contentRef) {
  27409. this.list = el;
  27410. contentRef && contentRef(el); // for virtualScroller
  27411. },
  27412. virtualScrollerRef(el) {
  27413. this.virtualScroller = el;
  27414. },
  27415. onOverlayClick(event) {
  27416. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  27417. originalEvent: event,
  27418. target: this.$el
  27419. });
  27420. }
  27421. },
  27422. computed: {
  27423. containerClass() {
  27424. return ['p-autocomplete p-component p-inputwrapper', this.class, {
  27425. 'p-autocomplete-dd': this.dropdown,
  27426. 'p-autocomplete-multiple': this.multiple,
  27427. 'p-inputwrapper-filled': ((this.modelValue) || (this.inputTextValue && this.inputTextValue.length)),
  27428. 'p-inputwrapper-focus': this.focused
  27429. }];
  27430. },
  27431. inputFieldClass() {
  27432. return ['p-autocomplete-input p-inputtext p-component', this.inputClass, {
  27433. 'p-autocomplete-dd-input': this.dropdown,
  27434. 'p-disabled': this.$attrs.disabled
  27435. }];
  27436. },
  27437. multiContainerClass() {
  27438. return ['p-autocomplete-multiple-container p-component p-inputtext', {
  27439. 'p-disabled': this.$attrs.disabled,
  27440. 'p-focus': this.focused
  27441. }];
  27442. },
  27443. panelStyleClass() {
  27444. return [
  27445. 'p-autocomplete-panel p-component', this.panelClass, {
  27446. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  27447. 'p-ripple-disabled': this.$primevue.config.ripple === false
  27448. }];
  27449. },
  27450. inputValue() {
  27451. if (this.modelValue) {
  27452. if (this.field && typeof this.modelValue === 'object') {
  27453. const resolvedFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.modelValue, this.field);
  27454. return resolvedFieldData != null ? resolvedFieldData : this.modelValue;
  27455. }
  27456. else
  27457. return this.modelValue;
  27458. }
  27459. else {
  27460. return '';
  27461. }
  27462. },
  27463. listId() {
  27464. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_list';
  27465. },
  27466. appendDisabled() {
  27467. return this.appendTo === 'self';
  27468. },
  27469. appendTarget() {
  27470. return this.appendDisabled ? null : this.appendTo;
  27471. },
  27472. virtualScrollerDisabled() {
  27473. return !this.virtualScrollerOptions;
  27474. }
  27475. },
  27476. components: {
  27477. 'Button': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"],
  27478. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  27479. },
  27480. directives: {
  27481. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  27482. }
  27483. };
  27484. const _hoisted_1 = { class: "p-autocomplete-token-label" };
  27485. const _hoisted_2 = { class: "p-autocomplete-input-token" };
  27486. const _hoisted_3 = {
  27487. key: 2,
  27488. class: "p-autocomplete-loader pi pi-spinner pi-spin"
  27489. };
  27490. const _hoisted_4 = { class: "p-autocomplete-item-group" };
  27491. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27492. const _component_Button = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("Button");
  27493. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  27494. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  27495. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("span", {
  27496. ref: "container",
  27497. class: $options.containerClass,
  27498. "aria-haspopup": "listbox",
  27499. "aria-owns": $options.listId,
  27500. "aria-expanded": $data.overlayVisible,
  27501. style: $props.style
  27502. }, [
  27503. (!$props.multiple)
  27504. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27505. key: 0,
  27506. ref: "input",
  27507. class: $options.inputFieldClass,
  27508. style: $props.inputStyle
  27509. }, _ctx.$attrs, {
  27510. value: $options.inputValue,
  27511. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onInputClicked && $options.onInputClicked(...args))),
  27512. onInput: _cache[2] || (_cache[2] = (...args) => ($options.onInput && $options.onInput(...args))),
  27513. onFocus: _cache[3] || (_cache[3] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27514. onBlur: _cache[4] || (_cache[4] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27515. onKeydown: _cache[5] || (_cache[5] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27516. onChange: _cache[6] || (_cache[6] = (...args) => ($options.onChange && $options.onChange(...args))),
  27517. type: "text",
  27518. autoComplete: "off",
  27519. role: "searchbox",
  27520. "aria-autocomplete": "list",
  27521. "aria-controls": $options.listId
  27522. }), null, 16, ["value", "aria-controls"]))
  27523. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27524. ($props.multiple)
  27525. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("ul", {
  27526. key: 1,
  27527. ref: "multiContainer",
  27528. class: $options.multiContainerClass,
  27529. onClick: _cache[12] || (_cache[12] = (...args) => ($options.onMultiContainerClick && $options.onMultiContainerClick(...args)))
  27530. }, [
  27531. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($props.modelValue, (item, i) => {
  27532. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27533. key: i,
  27534. class: "p-autocomplete-token"
  27535. }, [
  27536. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "chip", { value: item }, () => [
  27537. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27538. ]),
  27539. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", {
  27540. class: "p-autocomplete-token-icon pi pi-times-circle",
  27541. onClick: $event => ($options.removeItem($event, i))
  27542. }, null, 8, ["onClick"])
  27543. ]))
  27544. }), 128)),
  27545. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_2, [
  27546. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27547. ref: "input",
  27548. type: "text",
  27549. autoComplete: "off"
  27550. }, _ctx.$attrs, {
  27551. onInput: _cache[7] || (_cache[7] = (...args) => ($options.onInput && $options.onInput(...args))),
  27552. onFocus: _cache[8] || (_cache[8] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27553. onBlur: _cache[9] || (_cache[9] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27554. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27555. onChange: _cache[11] || (_cache[11] = (...args) => ($options.onChange && $options.onChange(...args))),
  27556. role: "searchbox",
  27557. "aria-autocomplete": "list",
  27558. "aria-controls": $options.listId
  27559. }), null, 16, ["aria-controls"])
  27560. ])
  27561. ], 2))
  27562. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27563. ($data.searching)
  27564. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("i", _hoisted_3))
  27565. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27566. ($props.dropdown)
  27567. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(_component_Button, {
  27568. key: 3,
  27569. ref: "dropdownButton",
  27570. type: "button",
  27571. icon: "pi pi-chevron-down",
  27572. class: "p-autocomplete-dropdown",
  27573. disabled: _ctx.$attrs.disabled,
  27574. onClick: $options.onDropdownClick
  27575. }, null, 8, ["disabled", "onClick"]))
  27576. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27577. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  27578. to: $options.appendTarget,
  27579. disabled: $options.appendDisabled
  27580. }, [
  27581. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  27582. name: "p-connected-overlay",
  27583. onEnter: $options.onOverlayEnter,
  27584. onLeave: $options.onOverlayLeave,
  27585. onAfterLeave: $options.onOverlayAfterLeave
  27586. }, {
  27587. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  27588. ($data.overlayVisible)
  27589. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  27590. key: 0,
  27591. ref: $options.overlayRef,
  27592. class: $options.panelStyleClass,
  27593. style: {'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''},
  27594. onClick: _cache[13] || (_cache[13] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  27595. }, [
  27596. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  27597. value: $props.modelValue,
  27598. suggestions: $props.suggestions
  27599. }),
  27600. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  27601. style: {'height': $props.scrollHeight},
  27602. items: $props.suggestions,
  27603. disabled: $options.virtualScrollerDisabled
  27604. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  27605. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  27606. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("ul", {
  27607. id: $options.listId,
  27608. ref: (el) => $options.listRef(el, contentRef),
  27609. class: ['p-autocomplete-items', styleClass],
  27610. style: contentStyle,
  27611. role: "listbox"
  27612. }, [
  27613. (!$props.optionGroupLabel)
  27614. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (item, i) => {
  27615. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27616. class: "p-autocomplete-item",
  27617. key: $options.getOptionRenderKey(item),
  27618. onClick: $event => ($options.selectItem($event, item)),
  27619. role: "option",
  27620. "data-index": $options.getOptionIndex(i, getItemOptions)
  27621. }, [
  27622. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27623. item: item,
  27624. index: $options.getOptionIndex(i, getItemOptions)
  27625. }, () => [
  27626. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27627. ])
  27628. ], 8, ["onClick", "data-index"])), [
  27629. [_directive_ripple]
  27630. ])
  27631. }), 128))
  27632. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  27633. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  27634. key: $options.getOptionGroupRenderKey(optionGroup)
  27635. }, [
  27636. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_4, [
  27637. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  27638. item: optionGroup,
  27639. index: $options.getOptionIndex(i, getItemOptions)
  27640. }, () => [
  27641. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  27642. ])
  27643. ]),
  27644. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (item, j) => {
  27645. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27646. class: "p-autocomplete-item",
  27647. key: j,
  27648. onClick: $event => ($options.selectItem($event, item)),
  27649. role: "option",
  27650. "data-group": i,
  27651. "data-index": $options.getOptionIndex(j, getItemOptions)
  27652. }, [
  27653. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27654. item: item,
  27655. index: $options.getOptionIndex(j, getItemOptions)
  27656. }, () => [
  27657. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27658. ])
  27659. ], 8, ["onClick", "data-group", "data-index"])), [
  27660. [_directive_ripple]
  27661. ])
  27662. }), 128))
  27663. ], 64))
  27664. }), 128))
  27665. ], 14, ["id"])
  27666. ]),
  27667. _: 2
  27668. }, [
  27669. (_ctx.$slots.loader)
  27670. ? {
  27671. name: "loader",
  27672. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  27673. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  27674. ])
  27675. }
  27676. : undefined
  27677. ]), 1040, ["style", "items", "disabled"]),
  27678. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  27679. value: $props.modelValue,
  27680. suggestions: $props.suggestions
  27681. })
  27682. ], 6))
  27683. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  27684. ]),
  27685. _: 3
  27686. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  27687. ], 8, ["to", "disabled"]))
  27688. ], 14, ["aria-owns", "aria-expanded"]))
  27689. }
  27690. function styleInject(css, ref) {
  27691. if ( ref === void 0 ) ref = {};
  27692. var insertAt = ref.insertAt;
  27693. if (!css || typeof document === 'undefined') { return; }
  27694. var head = document.head || document.getElementsByTagName('head')[0];
  27695. var style = document.createElement('style');
  27696. style.type = 'text/css';
  27697. if (insertAt === 'top') {
  27698. if (head.firstChild) {
  27699. head.insertBefore(style, head.firstChild);
  27700. } else {
  27701. head.appendChild(style);
  27702. }
  27703. } else {
  27704. head.appendChild(style);
  27705. }
  27706. if (style.styleSheet) {
  27707. style.styleSheet.cssText = css;
  27708. } else {
  27709. style.appendChild(document.createTextNode(css));
  27710. }
  27711. }
  27712. var css_248z = "\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
  27713. styleInject(css_248z);
  27714. script.render = render;
  27715. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27716. /***/ }),
  27717. /***/ "./node_modules/primevue/badge/badge.esm.js":
  27718. /*!**************************************************!*\
  27719. !*** ./node_modules/primevue/badge/badge.esm.js ***!
  27720. \**************************************************/
  27721. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27722. "use strict";
  27723. __webpack_require__.r(__webpack_exports__);
  27724. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27725. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27726. /* harmony export */ });
  27727. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27728. var script = {
  27729. name: 'Badge',
  27730. props: {
  27731. value: null,
  27732. severity: null,
  27733. size: null
  27734. },
  27735. computed: {
  27736. containerClass() {
  27737. return this.$slots.default ? 'p-overlay-badge': this.badgeClass;
  27738. },
  27739. badgeClass() {
  27740. return ['p-badge p-component', {
  27741. 'p-badge-no-gutter': this.value && String(this.value).length === 1,
  27742. 'p-badge-dot': !this.value && !this.$slots.default,
  27743. 'p-badge-lg': this.size === 'large',
  27744. 'p-badge-xl': this.size === 'xlarge',
  27745. 'p-badge-info': this.severity === 'info',
  27746. 'p-badge-success': this.severity === 'success',
  27747. 'p-badge-warning': this.severity === 'warning',
  27748. 'p-badge-danger': this.severity === 'danger'
  27749. }];
  27750. }
  27751. }
  27752. };
  27753. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27754. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", { class: $options.badgeClass }, [
  27755. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27756. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.value), 1)
  27757. ])
  27758. ], 2))
  27759. }
  27760. script.render = render;
  27761. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27762. /***/ }),
  27763. /***/ "./node_modules/primevue/button/button.esm.js":
  27764. /*!****************************************************!*\
  27765. !*** ./node_modules/primevue/button/button.esm.js ***!
  27766. \****************************************************/
  27767. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27768. "use strict";
  27769. __webpack_require__.r(__webpack_exports__);
  27770. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27771. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27772. /* harmony export */ });
  27773. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27774. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27775. var script = {
  27776. name: 'Button',
  27777. props: {
  27778. label: {
  27779. type: String
  27780. },
  27781. icon: {
  27782. type: String
  27783. },
  27784. iconPos: {
  27785. type: String,
  27786. default: 'left'
  27787. },
  27788. badge: {
  27789. type: String
  27790. },
  27791. badgeClass: {
  27792. type: String,
  27793. default: null
  27794. },
  27795. loading: {
  27796. type: Boolean,
  27797. default: false
  27798. },
  27799. loadingIcon: {
  27800. type: String,
  27801. default: 'pi pi-spinner pi-spin'
  27802. }
  27803. },
  27804. computed: {
  27805. buttonClass() {
  27806. return {
  27807. 'p-button p-component': true,
  27808. 'p-button-icon-only': this.icon && !this.label,
  27809. 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
  27810. 'p-disabled': this.$attrs.disabled || this.loading,
  27811. 'p-button-loading': this.loading,
  27812. 'p-button-loading-label-only': this.loading && !this.icon && this.label
  27813. }
  27814. },
  27815. iconClass() {
  27816. return [
  27817. this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this.icon,
  27818. 'p-button-icon',
  27819. {
  27820. 'p-button-icon-left': this.iconPos === 'left' && this.label,
  27821. 'p-button-icon-right': this.iconPos === 'right' && this.label,
  27822. 'p-button-icon-top': this.iconPos === 'top' && this.label,
  27823. 'p-button-icon-bottom': this.iconPos === 'bottom' && this.label
  27824. }
  27825. ]
  27826. },
  27827. badgeStyleClass() {
  27828. return [
  27829. 'p-badge p-component', this.badgeClass, {
  27830. 'p-badge-no-gutter': this.badge && String(this.badge).length === 1
  27831. }]
  27832. },
  27833. disabled() {
  27834. return this.$attrs.disabled || this.loading;
  27835. }
  27836. },
  27837. directives: {
  27838. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  27839. }
  27840. };
  27841. const _hoisted_1 = { class: "p-button-label" };
  27842. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27843. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  27844. return (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("button", {
  27845. class: $options.buttonClass,
  27846. type: "button",
  27847. disabled: $options.disabled
  27848. }, [
  27849. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27850. ($props.loading && !$props.icon)
  27851. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27852. key: 0,
  27853. class: $options.iconClass
  27854. }, null, 2))
  27855. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27856. ($props.icon)
  27857. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27858. key: 1,
  27859. class: $options.iconClass
  27860. }, null, 2))
  27861. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27862. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.label||' '), 1),
  27863. ($props.badge)
  27864. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27865. key: 2,
  27866. class: $options.badgeStyleClass
  27867. }, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.badge), 3))
  27868. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  27869. ])
  27870. ], 10, ["disabled"])), [
  27871. [_directive_ripple]
  27872. ])
  27873. }
  27874. script.render = render;
  27875. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27876. /***/ }),
  27877. /***/ "./node_modules/primevue/calendar/calendar.esm.js":
  27878. /*!********************************************************!*\
  27879. !*** ./node_modules/primevue/calendar/calendar.esm.js ***!
  27880. \********************************************************/
  27881. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27882. "use strict";
  27883. __webpack_require__.r(__webpack_exports__);
  27884. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27885. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27886. /* harmony export */ });
  27887. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  27888. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  27889. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  27890. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27891. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27892. var script = {
  27893. name: 'Calendar',
  27894. inheritAttrs: false,
  27895. emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'],
  27896. props: {
  27897. modelValue: null,
  27898. selectionMode: {
  27899. type: String,
  27900. default: 'single'
  27901. },
  27902. dateFormat: {
  27903. type: String,
  27904. default: null
  27905. },
  27906. inline: {
  27907. type: Boolean,
  27908. default: false
  27909. },
  27910. showOtherMonths: {
  27911. type: Boolean,
  27912. default: true
  27913. },
  27914. selectOtherMonths: {
  27915. type: Boolean,
  27916. default: false
  27917. },
  27918. showIcon: {
  27919. type: Boolean,
  27920. default: false
  27921. },
  27922. icon: {
  27923. type: String,
  27924. default: 'pi pi-calendar'
  27925. },
  27926. numberOfMonths: {
  27927. type: Number,
  27928. default: 1
  27929. },
  27930. responsiveOptions: Array,
  27931. view: {
  27932. type: String,
  27933. default: 'date'
  27934. },
  27935. touchUI: {
  27936. type: Boolean,
  27937. default: false
  27938. },
  27939. monthNavigator: {
  27940. type: Boolean,
  27941. default: false
  27942. },
  27943. yearNavigator: {
  27944. type: Boolean,
  27945. default: false
  27946. },
  27947. yearRange: {
  27948. type: String,
  27949. default: null
  27950. },
  27951. panelClass: {
  27952. type: String,
  27953. default: null
  27954. },
  27955. minDate: {
  27956. type: Date,
  27957. value: null
  27958. },
  27959. maxDate: {
  27960. type: Date,
  27961. value: null
  27962. },
  27963. disabledDates: {
  27964. type: Array,
  27965. value: null
  27966. },
  27967. disabledDays: {
  27968. type: Array,
  27969. value: null
  27970. },
  27971. maxDateCount: {
  27972. type: Number,
  27973. value: null
  27974. },
  27975. showOnFocus: {
  27976. type: Boolean,
  27977. default: true
  27978. },
  27979. autoZIndex: {
  27980. type: Boolean,
  27981. default: true
  27982. },
  27983. baseZIndex: {
  27984. type: Number,
  27985. default: 0
  27986. },
  27987. showButtonBar: {
  27988. type: Boolean,
  27989. default: false
  27990. },
  27991. shortYearCutoff: {
  27992. type: String,
  27993. default: '+10'
  27994. },
  27995. showTime: {
  27996. type: Boolean,
  27997. default: false
  27998. },
  27999. timeOnly: {
  28000. type: Boolean,
  28001. default: false
  28002. },
  28003. hourFormat: {
  28004. type: String,
  28005. default: '24'
  28006. },
  28007. stepHour: {
  28008. type: Number,
  28009. default: 1
  28010. },
  28011. stepMinute: {
  28012. type: Number,
  28013. default: 1
  28014. },
  28015. stepSecond: {
  28016. type: Number,
  28017. default: 1
  28018. },
  28019. showSeconds: {
  28020. type: Boolean,
  28021. default: false
  28022. },
  28023. hideOnDateTimeSelect: {
  28024. type: Boolean,
  28025. default: false
  28026. },
  28027. timeSeparator: {
  28028. type: String,
  28029. default: ':'
  28030. },
  28031. showWeek: {
  28032. type: Boolean,
  28033. default: false
  28034. },
  28035. manualInput: {
  28036. type: Boolean,
  28037. default: true
  28038. },
  28039. appendTo: {
  28040. type: String,
  28041. default: 'body'
  28042. },
  28043. inputClass: null,
  28044. inputStyle: null,
  28045. class: null,
  28046. style: null
  28047. },
  28048. navigationState: null,
  28049. timePickerChange: false,
  28050. scrollHandler: null,
  28051. outsideClickListener: null,
  28052. maskClickListener: null,
  28053. resizeListener: null,
  28054. overlay: null,
  28055. input: null,
  28056. mask: null,
  28057. timePickerTimer: null,
  28058. preventFocus: false,
  28059. typeUpdate: false,
  28060. created() {
  28061. this.updateCurrentMetaData();
  28062. },
  28063. mounted() {
  28064. this.createResponsiveStyle();
  28065. if (this.inline) {
  28066. this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
  28067. if (!this.$attrs.disabled) {
  28068. this.preventFocus = true;
  28069. this.initFocusableCell();
  28070. if (this.numberOfMonths === 1) {
  28071. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28072. }
  28073. }
  28074. }
  28075. else {
  28076. this.input.value = this.formatValue(this.modelValue);
  28077. }
  28078. },
  28079. updated() {
  28080. if (this.overlay) {
  28081. this.preventFocus = true;
  28082. this.updateFocus();
  28083. }
  28084. if (this.input && this.selectionStart != null && this.selectionEnd != null) {
  28085. this.input.selectionStart = this.selectionStart;
  28086. this.input.selectionEnd = this.selectionEnd;
  28087. this.selectionStart = null;
  28088. this.selectionEnd = null;
  28089. }
  28090. },
  28091. beforeUnmount() {
  28092. if (this.timePickerTimer) {
  28093. clearTimeout(this.timePickerTimer);
  28094. }
  28095. if (this.mask) {
  28096. this.destroyMask();
  28097. }
  28098. this.destroyResponsiveStyleElement();
  28099. this.unbindOutsideClickListener();
  28100. this.unbindResizeListener();
  28101. if (this.scrollHandler) {
  28102. this.scrollHandler.destroy();
  28103. this.scrollHandler = null;
  28104. }
  28105. if (this.overlay && this.autoZIndex) {
  28106. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  28107. }
  28108. this.overlay = null;
  28109. },
  28110. data() {
  28111. return {
  28112. currentMonth: null,
  28113. currentYear: null,
  28114. currentHour: null,
  28115. currentMinute: null,
  28116. currentSecond: null,
  28117. pm: null,
  28118. focused: false,
  28119. overlayVisible: false,
  28120. currentView: this.view
  28121. }
  28122. },
  28123. watch: {
  28124. modelValue(newValue) {
  28125. this.updateCurrentMetaData();
  28126. if (!this.typeUpdate && !this.inline && this.input) {
  28127. this.input.value = this.formatValue(newValue);
  28128. }
  28129. this.typeUpdate = false;
  28130. },
  28131. showTime() {
  28132. this.updateCurrentMetaData();
  28133. },
  28134. months() {
  28135. if (this.overlay) {
  28136. if (!this.focused) {
  28137. setTimeout(this.updateFocus, 0);
  28138. }
  28139. }
  28140. },
  28141. numberOfMonths() {
  28142. this.destroyResponsiveStyleElement();
  28143. this.createResponsiveStyle();
  28144. },
  28145. responsiveOptions() {
  28146. this.destroyResponsiveStyleElement();
  28147. this.createResponsiveStyle();
  28148. },
  28149. currentView() {
  28150. Promise.resolve(null).then(() => this.alignOverlay());
  28151. }
  28152. },
  28153. methods: {
  28154. isComparable() {
  28155. return this.modelValue != null && typeof this.modelValue !== 'string';
  28156. },
  28157. isSelected(dateMeta) {
  28158. if (!this.isComparable()) {
  28159. return false;
  28160. }
  28161. if (this.modelValue) {
  28162. if (this.isSingleSelection()) {
  28163. return this.isDateEquals(this.modelValue, dateMeta);
  28164. }
  28165. else if (this.isMultipleSelection()) {
  28166. let selected = false;
  28167. for (let date of this.modelValue) {
  28168. selected = this.isDateEquals(date, dateMeta);
  28169. if (selected) {
  28170. break;
  28171. }
  28172. }
  28173. return selected;
  28174. }
  28175. else if( this.isRangeSelection()) {
  28176. if (this.modelValue[1])
  28177. return this.isDateEquals(this.modelValue[0], dateMeta) || this.isDateEquals(this.modelValue[1], dateMeta) || this.isDateBetween(this.modelValue[0], this.modelValue[1], dateMeta);
  28178. else {
  28179. return this.isDateEquals(this.modelValue[0], dateMeta);
  28180. }
  28181. }
  28182. }
  28183. return false;
  28184. },
  28185. isMonthSelected(month) {
  28186. if (this.isComparable()) {
  28187. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28188. return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
  28189. }
  28190. return false;
  28191. },
  28192. isYearSelected(year) {
  28193. if (this.isComparable()) {
  28194. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28195. return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
  28196. }
  28197. return false;
  28198. },
  28199. isDateEquals(value, dateMeta) {
  28200. if (value)
  28201. return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
  28202. else
  28203. return false;
  28204. },
  28205. isDateBetween(start, end, dateMeta) {
  28206. let between = false;
  28207. if (start && end) {
  28208. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28209. return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
  28210. }
  28211. return between;
  28212. },
  28213. getFirstDayOfMonthIndex(month, year) {
  28214. let day = new Date();
  28215. day.setDate(1);
  28216. day.setMonth(month);
  28217. day.setFullYear(year);
  28218. let dayIndex = day.getDay() + this.sundayIndex;
  28219. return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
  28220. },
  28221. getDaysCountInMonth(month, year) {
  28222. return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();
  28223. },
  28224. getDaysCountInPrevMonth(month, year) {
  28225. let prev = this.getPreviousMonthAndYear(month, year);
  28226. return this.getDaysCountInMonth(prev.month, prev.year);
  28227. },
  28228. getPreviousMonthAndYear(month, year) {
  28229. let m, y;
  28230. if (month === 0) {
  28231. m = 11;
  28232. y = year - 1;
  28233. }
  28234. else {
  28235. m = month - 1;
  28236. y = year;
  28237. }
  28238. return {'month':m, 'year': y};
  28239. },
  28240. getNextMonthAndYear(month, year) {
  28241. let m, y;
  28242. if (month === 11) {
  28243. m = 0;
  28244. y = year + 1;
  28245. }
  28246. else {
  28247. m = month + 1;
  28248. y = year;
  28249. }
  28250. return {'month':m,'year':y};
  28251. },
  28252. daylightSavingAdjust(date) {
  28253. if (!date) {
  28254. return null;
  28255. }
  28256. date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
  28257. return date;
  28258. },
  28259. isToday(today, day, month, year) {
  28260. return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
  28261. },
  28262. isSelectable(day, month, year, otherMonth) {
  28263. let validMin = true;
  28264. let validMax = true;
  28265. let validDate = true;
  28266. let validDay = true;
  28267. if (otherMonth && !this.selectOtherMonths) {
  28268. return false;
  28269. }
  28270. if (this.minDate) {
  28271. if (this.minDate.getFullYear() > year) {
  28272. validMin = false;
  28273. }
  28274. else if (this.minDate.getFullYear() === year) {
  28275. if (this.minDate.getMonth() > month) {
  28276. validMin = false;
  28277. }
  28278. else if (this.minDate.getMonth() === month) {
  28279. if (this.minDate.getDate() > day) {
  28280. validMin = false;
  28281. }
  28282. }
  28283. }
  28284. }
  28285. if (this.maxDate) {
  28286. if (this.maxDate.getFullYear() < year) {
  28287. validMax = false;
  28288. }
  28289. else if (this.maxDate.getFullYear() === year) {
  28290. if (this.maxDate.getMonth() < month) {
  28291. validMax = false;
  28292. }
  28293. else if (this.maxDate.getMonth() === month) {
  28294. if (this.maxDate.getDate() < day) {
  28295. validMax = false;
  28296. }
  28297. }
  28298. }
  28299. }
  28300. if (this.disabledDates) {
  28301. validDate = !this.isDateDisabled(day,month,year);
  28302. }
  28303. if (this.disabledDays) {
  28304. validDay = !this.isDayDisabled(day,month,year);
  28305. }
  28306. return validMin && validMax && validDate && validDay;
  28307. },
  28308. onOverlayEnter(el) {
  28309. el.setAttribute(this.attributeSelector, '');
  28310. if (this.autoZIndex) {
  28311. if (this.touchUI)
  28312. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
  28313. else
  28314. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
  28315. }
  28316. this.alignOverlay();
  28317. this.$emit('show');
  28318. },
  28319. onOverlayEnterComplete() {
  28320. this.bindOutsideClickListener();
  28321. this.bindScrollListener();
  28322. this.bindResizeListener();
  28323. },
  28324. onOverlayAfterLeave(el) {
  28325. if (this.autoZIndex) {
  28326. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  28327. }
  28328. },
  28329. onOverlayLeave() {
  28330. this.currentView = this.view;
  28331. this.unbindOutsideClickListener();
  28332. this.unbindScrollListener();
  28333. this.unbindResizeListener();
  28334. this.$emit('hide');
  28335. if (this.mask) {
  28336. this.disableModality();
  28337. }
  28338. this.overlay = null;
  28339. },
  28340. onPrevButtonClick(event) {
  28341. if(this.showOtherMonths) {
  28342. this.navigationState = {backward: true, button: true};
  28343. this.navBackward(event);
  28344. }
  28345. },
  28346. onNextButtonClick(event) {
  28347. if(this.showOtherMonths) {
  28348. this.navigationState = {backward: false, button: true};
  28349. this.navForward(event);
  28350. }
  28351. },
  28352. navBackward(event) {
  28353. event.preventDefault();
  28354. if (!this.isEnabled()) {
  28355. return;
  28356. }
  28357. if (this.currentView === 'month') {
  28358. this.decrementYear();
  28359. }
  28360. else if (this.currentView === 'year') {
  28361. this.decrementDecade();
  28362. }
  28363. else {
  28364. if (this.currentMonth === 0) {
  28365. this.currentMonth = 11;
  28366. this.decrementYear();
  28367. }
  28368. else {
  28369. this.currentMonth--;
  28370. }
  28371. this.$emit('month-change', {month: this.currentMonth, year: this.currentYear});
  28372. }
  28373. },
  28374. navForward(event) {
  28375. event.preventDefault();
  28376. if (!this.isEnabled()) {
  28377. return;
  28378. }
  28379. if (this.currentView === 'month') {
  28380. this.incrementYear();
  28381. }
  28382. else if (this.currentView === 'year') {
  28383. this.incrementDecade();
  28384. }
  28385. else {
  28386. if (this.currentMonth === 11) {
  28387. this.currentMonth = 0;
  28388. this.incrementYear();
  28389. }
  28390. else {
  28391. this.currentMonth++;
  28392. }
  28393. this.$emit('month-change', {month: this.currentMonth , year: this.currentYear});
  28394. }
  28395. },
  28396. decrementYear() {
  28397. this.currentYear--;
  28398. },
  28399. decrementDecade() {
  28400. this.currentYear = this.currentYear - 10;
  28401. },
  28402. incrementYear() {
  28403. this.currentYear++;
  28404. },
  28405. incrementDecade() {
  28406. this.currentYear = this.currentYear + 10;
  28407. },
  28408. switchToMonthView(event) {
  28409. this.currentView = 'month';
  28410. setTimeout(this.updateFocus, 0);
  28411. event.preventDefault();
  28412. },
  28413. switchToYearView(event) {
  28414. this.currentView = 'year';
  28415. setTimeout(this.updateFocus, 0);
  28416. event.preventDefault();
  28417. },
  28418. isEnabled() {
  28419. return !this.$attrs.disabled && !this.$attrs.readonly;
  28420. },
  28421. updateCurrentTimeMeta(date) {
  28422. let currentHour = date.getHours();
  28423. if (this.hourFormat === '12') {
  28424. this.pm = currentHour > 11;
  28425. if (currentHour >= 12)
  28426. currentHour = (currentHour == 12) ? 12 : currentHour - 12;
  28427. else
  28428. currentHour = (currentHour == 0) ? 12 : currentHour;
  28429. }
  28430. this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour;
  28431. this.currentMinute = Math.floor(date.getMinutes() / this.stepMinute) * this.stepMinute;
  28432. this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
  28433. },
  28434. bindOutsideClickListener() {
  28435. if (!this.outsideClickListener) {
  28436. this.outsideClickListener = (event) => {
  28437. if (this.overlayVisible && this.isOutsideClicked(event)) {
  28438. this.overlayVisible = false;
  28439. }
  28440. };
  28441. document.addEventListener('mousedown', this.outsideClickListener);
  28442. }
  28443. },
  28444. unbindOutsideClickListener() {
  28445. if (this.outsideClickListener) {
  28446. document.removeEventListener('mousedown', this.outsideClickListener);
  28447. this.outsideClickListener = null;
  28448. }
  28449. },
  28450. bindScrollListener() {
  28451. if (!this.scrollHandler) {
  28452. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  28453. if (this.overlayVisible) {
  28454. this.overlayVisible = false;
  28455. }
  28456. });
  28457. }
  28458. this.scrollHandler.bindScrollListener();
  28459. },
  28460. unbindScrollListener() {
  28461. if (this.scrollHandler) {
  28462. this.scrollHandler.unbindScrollListener();
  28463. }
  28464. },
  28465. bindResizeListener() {
  28466. if (!this.resizeListener) {
  28467. this.resizeListener = () => {
  28468. if (this.overlayVisible) {
  28469. this.overlayVisible = false;
  28470. }
  28471. };
  28472. window.addEventListener('resize', this.resizeListener);
  28473. }
  28474. },
  28475. unbindResizeListener() {
  28476. if (this.resizeListener) {
  28477. window.removeEventListener('resize', this.resizeListener);
  28478. this.resizeListener = null;
  28479. }
  28480. },
  28481. isOutsideClicked(event) {
  28482. return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) ||
  28483. this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
  28484. },
  28485. isNavIconClicked(event) {
  28486. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev-icon')
  28487. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next-icon'));
  28488. },
  28489. alignOverlay() {
  28490. if (this.touchUI) {
  28491. this.enableModality();
  28492. }
  28493. else if (this.overlay) {
  28494. if (this.appendDisabled) {
  28495. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  28496. }
  28497. else {
  28498. if (this.view === 'date') {
  28499. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.overlay) + 'px';
  28500. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28501. }
  28502. else {
  28503. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28504. }
  28505. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  28506. }
  28507. }
  28508. },
  28509. onButtonClick() {
  28510. if (this.isEnabled()) {
  28511. if (!this.overlayVisible) {
  28512. this.input.focus();
  28513. this.overlayVisible = true;
  28514. }
  28515. else {
  28516. this.overlayVisible = false;
  28517. }
  28518. }
  28519. },
  28520. isDateDisabled(day, month, year) {
  28521. if (this.disabledDates) {
  28522. for (let disabledDate of this.disabledDates) {
  28523. if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {
  28524. return true;
  28525. }
  28526. }
  28527. }
  28528. return false;
  28529. },
  28530. isDayDisabled(day, month, year) {
  28531. if (this.disabledDays) {
  28532. let weekday = new Date(year, month, day);
  28533. let weekdayNumber = weekday.getDay();
  28534. return this.disabledDays.indexOf(weekdayNumber) !== -1;
  28535. }
  28536. return false;
  28537. },
  28538. onMonthDropdownChange(value) {
  28539. this.currentMonth = parseInt(value);
  28540. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  28541. },
  28542. onYearDropdownChange(value) {
  28543. this.currentYear = parseInt(value);
  28544. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  28545. },
  28546. onDateSelect(event, dateMeta) {
  28547. if (this.$attrs.disabled || !dateMeta.selectable) {
  28548. return;
  28549. }
  28550. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(cell => cell.tabIndex = -1);
  28551. if (event) {
  28552. event.currentTarget.focus();
  28553. }
  28554. if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
  28555. let newValue = this.modelValue.filter(date => !this.isDateEquals(date, dateMeta));
  28556. this.updateModel(newValue);
  28557. }
  28558. else {
  28559. if (this.shouldSelectDate(dateMeta)) {
  28560. if (dateMeta.otherMonth) {
  28561. this.currentMonth = dateMeta.month;
  28562. this.currentYear = dateMeta.year;
  28563. this.selectDate(dateMeta);
  28564. }
  28565. else {
  28566. this.selectDate(dateMeta);
  28567. }
  28568. }
  28569. }
  28570. if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
  28571. setTimeout(() => {
  28572. this.overlayVisible = false;
  28573. }, 150);
  28574. }
  28575. },
  28576. selectDate(dateMeta) {
  28577. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28578. if (this.showTime) {
  28579. if (this.hourFormat === '12' && this.pm && this.currentHour != 12)
  28580. date.setHours(this.currentHour + 12);
  28581. else
  28582. date.setHours(this.currentHour);
  28583. date.setMinutes(this.currentMinute);
  28584. date.setSeconds(this.currentSecond);
  28585. }
  28586. if (this.minDate && this.minDate > date) {
  28587. date = this.minDate;
  28588. this.currentHour = date.getHours();
  28589. this.currentMinute = date.getMinutes();
  28590. this.currentSecond = date.getSeconds();
  28591. }
  28592. if (this.maxDate && this.maxDate < date) {
  28593. date = this.maxDate;
  28594. this.currentHour = date.getHours();
  28595. this.currentMinute = date.getMinutes();
  28596. this.currentSecond = date.getSeconds();
  28597. }
  28598. let modelVal = null;
  28599. if (this.isSingleSelection()) {
  28600. modelVal = date;
  28601. }
  28602. else if (this.isMultipleSelection()) {
  28603. modelVal = this.modelValue ? [...this.modelValue, date] : [date];
  28604. }
  28605. else if (this.isRangeSelection()) {
  28606. if (this.modelValue && this.modelValue.length) {
  28607. let startDate = this.modelValue[0];
  28608. let endDate = this.modelValue[1];
  28609. if (!endDate && date.getTime() >= startDate.getTime()) {
  28610. endDate = date;
  28611. }
  28612. else {
  28613. startDate = date;
  28614. endDate = null;
  28615. }
  28616. modelVal = [startDate, endDate];
  28617. }
  28618. else {
  28619. modelVal = [date, null];
  28620. }
  28621. }
  28622. if (modelVal !== null) {
  28623. this.updateModel(modelVal);
  28624. }
  28625. this.$emit('date-select', date);
  28626. },
  28627. updateModel(value) {
  28628. this.$emit('update:modelValue', value);
  28629. },
  28630. shouldSelectDate() {
  28631. if (this.isMultipleSelection())
  28632. return this.maxDateCount != null ? this.maxDateCount > (this.modelValue ? this.modelValue.length : 0) : true;
  28633. else
  28634. return true;
  28635. },
  28636. isSingleSelection() {
  28637. return this.selectionMode === 'single';
  28638. },
  28639. isRangeSelection() {
  28640. return this.selectionMode === 'range';
  28641. },
  28642. isMultipleSelection() {
  28643. return this.selectionMode === 'multiple';
  28644. },
  28645. formatValue(value) {
  28646. if (typeof value === 'string') {
  28647. return value;
  28648. }
  28649. let formattedValue = '';
  28650. if (value) {
  28651. try {
  28652. if (this.isSingleSelection()) {
  28653. formattedValue = this.formatDateTime(value);
  28654. }
  28655. else if (this.isMultipleSelection()) {
  28656. for(let i = 0; i < value.length; i++) {
  28657. let dateAsString = this.formatDateTime(value[i]);
  28658. formattedValue += dateAsString;
  28659. if(i !== (value.length - 1)) {
  28660. formattedValue += ', ';
  28661. }
  28662. }
  28663. }
  28664. else if (this.isRangeSelection()) {
  28665. if (value && value.length) {
  28666. let startDate = value[0];
  28667. let endDate = value[1];
  28668. formattedValue = this.formatDateTime(startDate);
  28669. if (endDate) {
  28670. formattedValue += ' - ' + this.formatDateTime(endDate);
  28671. }
  28672. }
  28673. }
  28674. }
  28675. catch(err) {
  28676. formattedValue = value;
  28677. }
  28678. }
  28679. return formattedValue;
  28680. },
  28681. formatDateTime(date) {
  28682. let formattedValue = null;
  28683. if (date) {
  28684. if(this.timeOnly) {
  28685. formattedValue = this.formatTime(date);
  28686. }
  28687. else {
  28688. formattedValue = this.formatDate(date, this.datePattern);
  28689. if(this.showTime) {
  28690. formattedValue += ' ' + this.formatTime(date);
  28691. }
  28692. }
  28693. }
  28694. return formattedValue;
  28695. },
  28696. formatDate(date, format) {
  28697. if (!date) {
  28698. return '';
  28699. }
  28700. let iFormat;
  28701. const lookAhead = (match) => {
  28702. const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  28703. if (matches) {
  28704. iFormat++;
  28705. }
  28706. return matches;
  28707. },
  28708. formatNumber = (match, value, len) => {
  28709. let num = '' + value;
  28710. if (lookAhead(match)) {
  28711. while (num.length < len) {
  28712. num = '0' + num;
  28713. }
  28714. }
  28715. return num;
  28716. },
  28717. formatName = (match, value, shortNames, longNames) => {
  28718. return (lookAhead(match) ? longNames[value] : shortNames[value]);
  28719. };
  28720. let output = '';
  28721. let literal = false;
  28722. if (date) {
  28723. for (iFormat = 0; iFormat < format.length; iFormat++) {
  28724. if (literal) {
  28725. if (format.charAt(iFormat) === '\'' && !lookAhead('\'')) {
  28726. literal = false;
  28727. } else {
  28728. output += format.charAt(iFormat);
  28729. }
  28730. } else {
  28731. switch (format.charAt(iFormat)) {
  28732. case 'd':
  28733. output += formatNumber('d', date.getDate(), 2);
  28734. break;
  28735. case 'D':
  28736. output += formatName('D', date.getDay(), this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  28737. break;
  28738. case 'o':
  28739. output += formatNumber('o',
  28740. Math.round((
  28741. new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() -
  28742. new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
  28743. break;
  28744. case 'm':
  28745. output += formatNumber('m', date.getMonth() + 1, 2);
  28746. break;
  28747. case 'M':
  28748. output += formatName('M',date.getMonth(), this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  28749. break;
  28750. case 'y':
  28751. output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
  28752. break;
  28753. case '@':
  28754. output += date.getTime();
  28755. break;
  28756. case '!':
  28757. output += date.getTime() * 10000 + this.ticksTo1970;
  28758. break;
  28759. case '\'':
  28760. if (lookAhead('\'')) {
  28761. output += '\'';
  28762. } else {
  28763. literal = true;
  28764. }
  28765. break;
  28766. default:
  28767. output += format.charAt(iFormat);
  28768. }
  28769. }
  28770. }
  28771. }
  28772. return output;
  28773. },
  28774. formatTime(date) {
  28775. if (!date) {
  28776. return '';
  28777. }
  28778. let output = '';
  28779. let hours = date.getHours();
  28780. let minutes = date.getMinutes();
  28781. let seconds = date.getSeconds();
  28782. if (this.hourFormat === '12' && hours > 11 && hours !== 12) {
  28783. hours -= 12;
  28784. }
  28785. if (this.hourFormat === '12') {
  28786. output += hours === 0 ? 12 : (hours < 10) ? '0' + hours : hours;
  28787. }
  28788. else {
  28789. output += (hours < 10) ? '0' + hours : hours;
  28790. }
  28791. output += ':';
  28792. output += (minutes < 10) ? '0' + minutes : minutes;
  28793. if (this.showSeconds) {
  28794. output += ':';
  28795. output += (seconds < 10) ? '0' + seconds : seconds;
  28796. }
  28797. if (this.hourFormat === '12') {
  28798. output += date.getHours() > 11 ? ' PM' : ' AM';
  28799. }
  28800. return output;
  28801. },
  28802. onTodayButtonClick(event) {
  28803. let date = new Date();
  28804. let dateMeta = {
  28805. day: date.getDate(),
  28806. month: date.getMonth(),
  28807. year: date.getFullYear(),
  28808. otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear,
  28809. today: true,
  28810. selectable: true
  28811. };
  28812. this.onDateSelect(null, dateMeta);
  28813. this.$emit('today-click', date);
  28814. event.preventDefault();
  28815. },
  28816. onClearButtonClick(event) {
  28817. this.updateModel(null);
  28818. this.overlayVisible = false;
  28819. this.$emit('clear-click', event);
  28820. event.preventDefault();
  28821. },
  28822. onTimePickerElementMouseDown(event, type, direction) {
  28823. if (this.isEnabled()) {
  28824. this.repeat(event, null, type, direction);
  28825. event.preventDefault();
  28826. }
  28827. },
  28828. onTimePickerElementMouseUp(event) {
  28829. if (this.isEnabled()) {
  28830. this.clearTimePickerTimer();
  28831. this.updateModelTime();
  28832. event.preventDefault();
  28833. }
  28834. },
  28835. onTimePickerElementMouseLeave() {
  28836. this.clearTimePickerTimer();
  28837. },
  28838. repeat(event, interval, type, direction) {
  28839. let i = interval||500;
  28840. this.clearTimePickerTimer();
  28841. this.timePickerTimer = setTimeout(() => {
  28842. this.repeat(event, 100, type, direction);
  28843. }, i);
  28844. switch(type) {
  28845. case 0:
  28846. if (direction === 1)
  28847. this.incrementHour(event);
  28848. else
  28849. this.decrementHour(event);
  28850. break;
  28851. case 1:
  28852. if (direction === 1)
  28853. this.incrementMinute(event);
  28854. else
  28855. this.decrementMinute(event);
  28856. break;
  28857. case 2:
  28858. if (direction === 1)
  28859. this.incrementSecond(event);
  28860. else
  28861. this.decrementSecond(event);
  28862. break;
  28863. }
  28864. },
  28865. convertTo24Hour(hours, pm) {
  28866. if (this.hourFormat == '12') {
  28867. if (hours === 12) {
  28868. return (pm ? 12 : 0);
  28869. } else {
  28870. return (pm ? hours + 12 : hours);
  28871. }
  28872. }
  28873. return hours;
  28874. },
  28875. validateTime(hour, minute, second, pm) {
  28876. let value = this.isComparable() ? this.modelValue : this.viewDate;
  28877. const convertedHour = this.convertTo24Hour(hour, pm);
  28878. if (this.isRangeSelection()) {
  28879. value = this.modelValue[1] || this.modelValue[0];
  28880. }
  28881. if (this.isMultipleSelection()) {
  28882. value = this.modelValue[this.modelValue.length - 1];
  28883. }
  28884. const valueDateString = value ? value.toDateString() : null;
  28885. if (this.minDate && valueDateString && this.minDate.toDateString() === valueDateString) {
  28886. if (this.minDate.getHours() > convertedHour) {
  28887. return false;
  28888. }
  28889. if (this.minDate.getHours() === convertedHour) {
  28890. if (this.minDate.getMinutes() > minute) {
  28891. return false;
  28892. }
  28893. if (this.minDate.getMinutes() === minute) {
  28894. if (this.minDate.getSeconds() > second) {
  28895. return false;
  28896. }
  28897. }
  28898. }
  28899. }
  28900. if (this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString) {
  28901. if (this.maxDate.getHours() < convertedHour) {
  28902. return false;
  28903. }
  28904. if (this.maxDate.getHours() === convertedHour) {
  28905. if (this.maxDate.getMinutes() < minute) {
  28906. return false;
  28907. }
  28908. if (this.maxDate.getMinutes() === minute) {
  28909. if (this.maxDate.getSeconds() < second) {
  28910. return false;
  28911. }
  28912. }
  28913. }
  28914. }
  28915. return true;
  28916. },
  28917. incrementHour(event) {
  28918. let prevHour = this.currentHour;
  28919. let newHour = this.currentHour + this.stepHour;
  28920. let newPM = this.pm;
  28921. if (this.hourFormat == '24')
  28922. newHour = (newHour >= 24) ? (newHour - 24) : newHour;
  28923. else if (this.hourFormat == '12') {
  28924. // Before the AM/PM break, now after
  28925. if (prevHour < 12 && newHour > 11) {
  28926. newPM= !this.pm;
  28927. }
  28928. newHour = (newHour >= 13) ? (newHour - 12) : newHour;
  28929. }
  28930. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  28931. this.currentHour = newHour;
  28932. this.pm = newPM;
  28933. }
  28934. event.preventDefault();
  28935. },
  28936. decrementHour(event) {
  28937. let newHour = this.currentHour - this.stepHour;
  28938. let newPM = this.pm;
  28939. if (this.hourFormat == '24')
  28940. newHour = (newHour < 0) ? (24 + newHour) : newHour;
  28941. else if (this.hourFormat == '12') {
  28942. // If we were at noon/midnight, then switch
  28943. if (this.currentHour === 12) {
  28944. newPM = !this.pm;
  28945. }
  28946. newHour = (newHour <= 0) ? (12 + newHour) : newHour;
  28947. }
  28948. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  28949. this.currentHour = newHour;
  28950. this.pm = newPM;
  28951. }
  28952. event.preventDefault();
  28953. },
  28954. incrementMinute(event) {
  28955. let newMinute = this.currentMinute + this.stepMinute;
  28956. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  28957. this.currentMinute = (newMinute > 59) ? newMinute - 60 : newMinute;
  28958. }
  28959. event.preventDefault();
  28960. },
  28961. decrementMinute(event) {
  28962. let newMinute = this.currentMinute - this.stepMinute;
  28963. newMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
  28964. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  28965. this.currentMinute = newMinute;
  28966. }
  28967. event.preventDefault();
  28968. },
  28969. incrementSecond(event) {
  28970. let newSecond = this.currentSecond + this.stepSecond;
  28971. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  28972. this.currentSecond = (newSecond > 59) ? newSecond - 60 : newSecond;
  28973. }
  28974. event.preventDefault();
  28975. },
  28976. decrementSecond(event) {
  28977. let newSecond = this.currentSecond - this.stepSecond;
  28978. newSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
  28979. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  28980. this.currentSecond = newSecond;
  28981. }
  28982. event.preventDefault();
  28983. },
  28984. updateModelTime() {
  28985. this.timePickerChange = true;
  28986. let value = this.isComparable() ? this.modelValue : this.viewDate;
  28987. if (this.isRangeSelection()) {
  28988. value = this.modelValue[1] || this.modelValue[0];
  28989. }
  28990. if (this.isMultipleSelection()) {
  28991. value = this.modelValue[this.modelValue.length - 1];
  28992. }
  28993. value = value ? new Date(value.getTime()) : new Date();
  28994. if (this.hourFormat == '12') {
  28995. if (this.currentHour === 12)
  28996. value.setHours(this.pm ? 12 : 0);
  28997. else
  28998. value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
  28999. }
  29000. else {
  29001. value.setHours(this.currentHour);
  29002. }
  29003. value.setMinutes(this.currentMinute);
  29004. value.setSeconds(this.currentSecond);
  29005. if (this.isRangeSelection()) {
  29006. if (this.modelValue[1])
  29007. value = [this.modelValue[0], value];
  29008. else
  29009. value = [value, null];
  29010. }
  29011. if (this.isMultipleSelection()){
  29012. value = [...this.modelValue.slice(0, -1), value];
  29013. }
  29014. this.updateModel(value);
  29015. this.$emit('date-select', value);
  29016. setTimeout(() => this.timePickerChange = false, 0);
  29017. },
  29018. toggleAMPM(event) {
  29019. this.pm = !this.pm;
  29020. this.updateModelTime();
  29021. event.preventDefault();
  29022. },
  29023. clearTimePickerTimer() {
  29024. if (this.timePickerTimer) {
  29025. clearInterval(this.timePickerTimer);
  29026. }
  29027. },
  29028. onMonthSelect(event, index) {
  29029. if (this.view === 'month') {
  29030. this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
  29031. }
  29032. else {
  29033. this.currentMonth = index;
  29034. this.currentView = 'date';
  29035. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  29036. }
  29037. setTimeout(this.updateFocus, 0);
  29038. },
  29039. onYearSelect(event, year) {
  29040. if (this.view === 'year') {
  29041. this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
  29042. }
  29043. else {
  29044. this.currentYear = year;
  29045. this.currentView = 'month';
  29046. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  29047. }
  29048. setTimeout(this.updateFocus, 0);
  29049. },
  29050. enableModality() {
  29051. if (!this.mask) {
  29052. this.mask = document.createElement('div');
  29053. this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
  29054. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
  29055. this.maskClickListener = () => {
  29056. this.overlayVisible = false;
  29057. };
  29058. this.mask.addEventListener('click', this.maskClickListener);
  29059. document.body.appendChild(this.mask);
  29060. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  29061. }
  29062. },
  29063. disableModality() {
  29064. if (this.mask) {
  29065. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  29066. this.mask.addEventListener('animationend', () => {
  29067. this.destroyMask();
  29068. });
  29069. }
  29070. },
  29071. destroyMask() {
  29072. this.mask.removeEventListener('click', this.maskClickListener);
  29073. this.maskClickListener = null;
  29074. document.body.removeChild(this.mask);
  29075. this.mask = null;
  29076. let bodyChildren = document.body.children;
  29077. let hasBlockerMasks;
  29078. for (let i = 0; i < bodyChildren.length; i++) {
  29079. let bodyChild = bodyChildren[i];
  29080. if(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
  29081. hasBlockerMasks = true;
  29082. break;
  29083. }
  29084. }
  29085. if (!hasBlockerMasks) {
  29086. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  29087. }
  29088. },
  29089. updateCurrentMetaData() {
  29090. const viewDate = this.viewDate;
  29091. this.currentMonth = viewDate.getMonth();
  29092. this.currentYear = viewDate.getFullYear();
  29093. if (this.showTime || this.timeOnly) {
  29094. this.updateCurrentTimeMeta(viewDate);
  29095. }
  29096. },
  29097. isValidSelection(value) {
  29098. if (value == null) {
  29099. return true;
  29100. }
  29101. let isValid = true;
  29102. if (this.isSingleSelection()) {
  29103. if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
  29104. isValid = false;
  29105. }
  29106. } else if (value.every(v => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
  29107. if (this.isRangeSelection()) {
  29108. isValid = value.length > 1 && value[1] > value[0] ? true : false;
  29109. }
  29110. }
  29111. return isValid;
  29112. },
  29113. parseValue(text) {
  29114. if (!text || text.trim().length === 0) {
  29115. return null;
  29116. }
  29117. let value;
  29118. if (this.isSingleSelection()) {
  29119. value = this.parseDateTime(text);
  29120. }
  29121. else if (this.isMultipleSelection()) {
  29122. let tokens = text.split(',');
  29123. value = [];
  29124. for (let token of tokens) {
  29125. value.push(this.parseDateTime(token.trim()));
  29126. }
  29127. }
  29128. else if (this.isRangeSelection()) {
  29129. let tokens = text.split(' - ');
  29130. value = [];
  29131. for (let i = 0; i < tokens.length; i++) {
  29132. value[i] = this.parseDateTime(tokens[i].trim());
  29133. }
  29134. }
  29135. return value;
  29136. },
  29137. parseDateTime(text) {
  29138. let date;
  29139. let parts = text.split(' ');
  29140. if (this.timeOnly) {
  29141. date = new Date();
  29142. this.populateTime(date, parts[0], parts[1]);
  29143. }
  29144. else {
  29145. const dateFormat = this.datePattern;
  29146. if (this.showTime) {
  29147. date = this.parseDate(parts[0], dateFormat);
  29148. this.populateTime(date, parts[1], parts[2]);
  29149. }
  29150. else {
  29151. date = this.parseDate(text, dateFormat);
  29152. }
  29153. }
  29154. return date;
  29155. },
  29156. populateTime(value, timeString, ampm) {
  29157. if (this.hourFormat == '12' && !ampm) {
  29158. throw 'Invalid Time';
  29159. }
  29160. this.pm = (ampm === 'PM' || ampm === 'pm');
  29161. let time = this.parseTime(timeString);
  29162. value.setHours(time.hour);
  29163. value.setMinutes(time.minute);
  29164. value.setSeconds(time.second);
  29165. },
  29166. parseTime(value) {
  29167. let tokens = value.split(':');
  29168. let validTokenLength = this.showSeconds ? 3 : 2;
  29169. let regex = (/^[0-9][0-9]$/);
  29170. if (tokens.length !== validTokenLength || !tokens[0].match(regex) || !tokens[1].match(regex) || (this.showSeconds && !tokens[2].match(regex))) {
  29171. throw "Invalid time";
  29172. }
  29173. let h = parseInt(tokens[0]);
  29174. let m = parseInt(tokens[1]);
  29175. let s = this.showSeconds ? parseInt(tokens[2]) : null;
  29176. if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
  29177. throw "Invalid time";
  29178. }
  29179. else {
  29180. if (this.hourFormat == '12' && h !== 12 && this.pm) {
  29181. h+= 12;
  29182. }
  29183. return {hour: h, minute: m, second: s};
  29184. }
  29185. },
  29186. parseDate(value, format) {
  29187. if (format == null || value == null) {
  29188. throw "Invalid arguments";
  29189. }
  29190. value = (typeof value === "object" ? value.toString() : value + "");
  29191. if (value === "") {
  29192. return null;
  29193. }
  29194. let iFormat, dim, extra,
  29195. iValue = 0,
  29196. shortYearCutoff = (typeof this.shortYearCutoff !== "string" ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10)),
  29197. year = -1,
  29198. month = -1,
  29199. day = -1,
  29200. doy = -1,
  29201. literal = false,
  29202. date,
  29203. lookAhead = (match) => {
  29204. let matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  29205. if (matches) {
  29206. iFormat++;
  29207. }
  29208. return matches;
  29209. },
  29210. getNumber = (match) => {
  29211. let isDoubled = lookAhead(match),
  29212. size = (match === "@" ? 14 : (match === "!" ? 20 :
  29213. (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
  29214. minSize = (match === "y" ? size : 1),
  29215. digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
  29216. num = value.substring(iValue).match(digits);
  29217. if (!num) {
  29218. throw "Missing number at position " + iValue;
  29219. }
  29220. iValue += num[ 0 ].length;
  29221. return parseInt(num[ 0 ], 10);
  29222. },
  29223. getName = (match, shortNames, longNames) => {
  29224. let index = -1;
  29225. let arr = lookAhead(match) ? longNames : shortNames;
  29226. let names = [];
  29227. for (let i = 0; i < arr.length; i++) {
  29228. names.push([i,arr[i]]);
  29229. }
  29230. names.sort((a,b) => {
  29231. return -(a[ 1 ].length - b[ 1 ].length);
  29232. });
  29233. for (let i = 0; i < names.length; i++) {
  29234. let name = names[i][1];
  29235. if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
  29236. index = names[i][0];
  29237. iValue += name.length;
  29238. break;
  29239. }
  29240. }
  29241. if (index !== -1) {
  29242. return index + 1;
  29243. } else {
  29244. throw "Unknown name at position " + iValue;
  29245. }
  29246. },
  29247. checkLiteral = () => {
  29248. if (value.charAt(iValue) !== format.charAt(iFormat)) {
  29249. throw "Unexpected literal at position " + iValue;
  29250. }
  29251. iValue++;
  29252. };
  29253. if (this.currentView === 'month') {
  29254. day = 1;
  29255. }
  29256. for (iFormat = 0; iFormat < format.length; iFormat++) {
  29257. if (literal) {
  29258. if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
  29259. literal = false;
  29260. } else {
  29261. checkLiteral();
  29262. }
  29263. } else {
  29264. switch (format.charAt(iFormat)) {
  29265. case "d":
  29266. day = getNumber("d");
  29267. break;
  29268. case "D":
  29269. getName("D", this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  29270. break;
  29271. case "o":
  29272. doy = getNumber("o");
  29273. break;
  29274. case "m":
  29275. month = getNumber("m");
  29276. break;
  29277. case "M":
  29278. month = getName("M", this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  29279. break;
  29280. case "y":
  29281. year = getNumber("y");
  29282. break;
  29283. case "@":
  29284. date = new Date(getNumber("@"));
  29285. year = date.getFullYear();
  29286. month = date.getMonth() + 1;
  29287. day = date.getDate();
  29288. break;
  29289. case "!":
  29290. date = new Date((getNumber("!") - this.ticksTo1970) / 10000);
  29291. year = date.getFullYear();
  29292. month = date.getMonth() + 1;
  29293. day = date.getDate();
  29294. break;
  29295. case "'":
  29296. if (lookAhead("'")) {
  29297. checkLiteral();
  29298. } else {
  29299. literal = true;
  29300. }
  29301. break;
  29302. default:
  29303. checkLiteral();
  29304. }
  29305. }
  29306. }
  29307. if (iValue < value.length) {
  29308. extra = value.substr(iValue);
  29309. if (!/^\s+/.test(extra)) {
  29310. throw "Extra/unparsed characters found in date: " + extra;
  29311. }
  29312. }
  29313. if (year === -1) {
  29314. year = new Date().getFullYear();
  29315. } else if (year < 100) {
  29316. year += new Date().getFullYear() - new Date().getFullYear() % 100 +
  29317. (year <= shortYearCutoff ? 0 : -100);
  29318. }
  29319. if (doy > -1) {
  29320. month = 1;
  29321. day = doy;
  29322. do {
  29323. dim = this.getDaysCountInMonth(year, month - 1);
  29324. if (day <= dim) {
  29325. break;
  29326. }
  29327. month++;
  29328. day -= dim;
  29329. // eslint-disable-next-line
  29330. } while (true);
  29331. }
  29332. date = this.daylightSavingAdjust(new Date(year, month - 1, day));
  29333. if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
  29334. throw "Invalid date"; // E.g. 31/02/00
  29335. }
  29336. return date;
  29337. },
  29338. getWeekNumber(date) {
  29339. let checkDate = new Date(date.getTime());
  29340. checkDate.setDate(checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ));
  29341. let time = checkDate.getTime();
  29342. checkDate.setMonth( 0 );
  29343. checkDate.setDate( 1 );
  29344. return Math.floor( Math.round((time - checkDate.getTime()) / 86400000 ) / 7 ) + 1;
  29345. },
  29346. onDateCellKeydown(event, date, groupIndex) {
  29347. const cellContent = event.currentTarget;
  29348. const cell = cellContent.parentElement;
  29349. switch (event.which) {
  29350. //down arrow
  29351. case 40: {
  29352. cellContent.tabIndex = '-1';
  29353. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29354. let nextRow = cell.parentElement.nextElementSibling;
  29355. if (nextRow) {
  29356. let focusCell = nextRow.children[cellIndex].children[0];
  29357. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29358. this.navigationState = {backward: false};
  29359. this.navForward(event);
  29360. }
  29361. else {
  29362. nextRow.children[cellIndex].children[0].tabIndex = '0';
  29363. nextRow.children[cellIndex].children[0].focus();
  29364. }
  29365. }
  29366. else {
  29367. this.navigationState = {backward: false};
  29368. this.navForward(event);
  29369. }
  29370. event.preventDefault();
  29371. break;
  29372. }
  29373. //up arrow
  29374. case 38: {
  29375. cellContent.tabIndex = '-1';
  29376. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29377. let prevRow = cell.parentElement.previousElementSibling;
  29378. if (prevRow) {
  29379. let focusCell = prevRow.children[cellIndex].children[0];
  29380. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29381. this.navigationState = {backward: true};
  29382. this.navBackward(event);
  29383. }
  29384. else {
  29385. focusCell.tabIndex = '0';
  29386. focusCell.focus();
  29387. }
  29388. }
  29389. else {
  29390. this.navigationState = {backward: true};
  29391. this.navBackward(event);
  29392. }
  29393. event.preventDefault();
  29394. break;
  29395. }
  29396. //left arrow
  29397. case 37: {
  29398. cellContent.tabIndex = '-1';
  29399. let prevCell = cell.previousElementSibling;
  29400. if (prevCell) {
  29401. let focusCell = prevCell.children[0];
  29402. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29403. this.navigateToMonth(true, groupIndex);
  29404. }
  29405. else {
  29406. focusCell.tabIndex = '0';
  29407. focusCell.focus();
  29408. }
  29409. }
  29410. else {
  29411. this.navigateToMonth(true, groupIndex);
  29412. }
  29413. event.preventDefault();
  29414. break;
  29415. }
  29416. //right arrow
  29417. case 39: {
  29418. cellContent.tabIndex = '-1';
  29419. let nextCell = cell.nextElementSibling;
  29420. if (nextCell) {
  29421. let focusCell = nextCell.children[0];
  29422. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29423. this.navigateToMonth(false, groupIndex);
  29424. }
  29425. else {
  29426. focusCell.tabIndex = '0';
  29427. focusCell.focus();
  29428. }
  29429. }
  29430. else {
  29431. this.navigateToMonth(false, groupIndex);
  29432. }
  29433. event.preventDefault();
  29434. break;
  29435. }
  29436. //enter
  29437. //space
  29438. case 13:
  29439. case 32: {
  29440. this.onDateSelect(event, date);
  29441. event.preventDefault();
  29442. break;
  29443. }
  29444. //escape
  29445. case 27: {
  29446. this.overlayVisible = false;
  29447. event.preventDefault();
  29448. break;
  29449. }
  29450. //tab
  29451. case 9: {
  29452. if (!this.inline) {
  29453. this.trapFocus(event);
  29454. }
  29455. break;
  29456. }
  29457. }
  29458. },
  29459. navigateToMonth(prev, groupIndex) {
  29460. if (prev) {
  29461. if (this.numberOfMonths === 1 || (groupIndex === 0)) {
  29462. this.navigationState = {backward: true};
  29463. this.navBackward(event);
  29464. }
  29465. else {
  29466. let prevMonthContainer = this.overlay.children[groupIndex - 1];
  29467. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29468. let focusCell = cells[cells.length - 1];
  29469. focusCell.tabIndex = '0';
  29470. focusCell.focus();
  29471. }
  29472. }
  29473. else {
  29474. if (this.numberOfMonths === 1 || (groupIndex === this.numberOfMonths - 1)) {
  29475. this.navigationState = {backward: false};
  29476. this.navForward(event);
  29477. }
  29478. else {
  29479. let nextMonthContainer = this.overlay.children[groupIndex + 1];
  29480. let focusCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29481. focusCell.tabIndex = '0';
  29482. focusCell.focus();
  29483. }
  29484. }
  29485. },
  29486. onMonthCellKeydown(event, index) {
  29487. const cell = event.currentTarget;
  29488. switch (event.which) {
  29489. //arrows
  29490. case 38:
  29491. case 40: {
  29492. cell.tabIndex = '-1';
  29493. var cells = cell.parentElement.children;
  29494. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29495. let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex -3];
  29496. if (nextCell) {
  29497. nextCell.tabIndex = '0';
  29498. nextCell.focus();
  29499. }
  29500. event.preventDefault();
  29501. break;
  29502. }
  29503. //left arrow
  29504. case 37: {
  29505. cell.tabIndex = '-1';
  29506. let prevCell = cell.previousElementSibling;
  29507. if (prevCell) {
  29508. prevCell.tabIndex = '0';
  29509. prevCell.focus();
  29510. }
  29511. else {
  29512. this.navigationState = {backward: true};
  29513. this.navBackward(event);
  29514. }
  29515. event.preventDefault();
  29516. break;
  29517. }
  29518. //right arrow
  29519. case 39: {
  29520. cell.tabIndex = '-1';
  29521. let nextCell = cell.nextElementSibling;
  29522. if (nextCell) {
  29523. nextCell.tabIndex = '0';
  29524. nextCell.focus();
  29525. }
  29526. else {
  29527. this.navigationState = {backward: false};
  29528. this.navForward(event);
  29529. }
  29530. event.preventDefault();
  29531. break;
  29532. }
  29533. //enter
  29534. //space
  29535. case 13:
  29536. case 32: {
  29537. this.onMonthSelect(event, index);
  29538. event.preventDefault();
  29539. break;
  29540. }
  29541. //escape
  29542. case 27: {
  29543. this.overlayVisible = false;
  29544. event.preventDefault();
  29545. break;
  29546. }
  29547. //tab
  29548. case 9: {
  29549. this.trapFocus(event);
  29550. break;
  29551. }
  29552. }
  29553. },
  29554. onYearCellKeydown(event, index) {
  29555. const cell = event.currentTarget;
  29556. switch (event.which) {
  29557. //arrows
  29558. case 38:
  29559. case 40: {
  29560. cell.tabIndex = '-1';
  29561. var cells = cell.parentElement.children;
  29562. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29563. let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
  29564. if (nextCell) {
  29565. nextCell.tabIndex = '0';
  29566. nextCell.focus();
  29567. }
  29568. event.preventDefault();
  29569. break;
  29570. }
  29571. //left arrow
  29572. case 37: {
  29573. cell.tabIndex = '-1';
  29574. let prevCell = cell.previousElementSibling;
  29575. if (prevCell) {
  29576. prevCell.tabIndex = '0';
  29577. prevCell.focus();
  29578. }
  29579. else {
  29580. this.navigationState = {backward: true};
  29581. this.navBackward(event);
  29582. }
  29583. event.preventDefault();
  29584. break;
  29585. }
  29586. //right arrow
  29587. case 39: {
  29588. cell.tabIndex = '-1';
  29589. let nextCell = cell.nextElementSibling;
  29590. if (nextCell) {
  29591. nextCell.tabIndex = '0';
  29592. nextCell.focus();
  29593. }
  29594. else {
  29595. this.navigationState = {backward: false};
  29596. this.navForward(event);
  29597. }
  29598. event.preventDefault();
  29599. break;
  29600. }
  29601. //enter
  29602. //space
  29603. case 13:
  29604. case 32: {
  29605. this.onYearSelect(event, index);
  29606. event.preventDefault();
  29607. break;
  29608. }
  29609. //escape
  29610. case 27: {
  29611. this.overlayVisible = false;
  29612. event.preventDefault();
  29613. break;
  29614. }
  29615. //tab
  29616. case 9: {
  29617. this.trapFocus(event);
  29618. break;
  29619. }
  29620. }
  29621. },
  29622. updateFocus() {
  29623. let cell;
  29624. if (this.navigationState) {
  29625. if (this.navigationState.button) {
  29626. this.initFocusableCell();
  29627. if (this.navigationState.backward)
  29628. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-prev').focus();
  29629. else
  29630. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-next').focus();
  29631. }
  29632. else {
  29633. if (this.navigationState.backward) {
  29634. let cells;
  29635. if (this.currentView === 'month') {
  29636. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29637. }
  29638. else if (this.currentView === 'year') {
  29639. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29640. }
  29641. else {
  29642. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29643. }
  29644. if (cells && cells.length > 0) {
  29645. cell = cells[cells.length - 1];
  29646. }
  29647. }
  29648. else {
  29649. if (this.currentView === 'month') {
  29650. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29651. }
  29652. else if (this.currentView === 'year') {
  29653. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29654. }
  29655. else {
  29656. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29657. }
  29658. }
  29659. if (cell) {
  29660. cell.tabIndex = '0';
  29661. cell.focus();
  29662. }
  29663. }
  29664. this.navigationState = null;
  29665. }
  29666. else {
  29667. this.initFocusableCell();
  29668. }
  29669. },
  29670. initFocusableCell() {
  29671. let cell;
  29672. if (this.currentView === 'month') {
  29673. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
  29674. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
  29675. cells.forEach(cell => cell.tabIndex = -1);
  29676. cell = selectedCell || cells[0];
  29677. }
  29678. else if (this.currentView === 'year') {
  29679. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
  29680. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
  29681. cells.forEach(cell => cell.tabIndex = -1);
  29682. cell = selectedCell || cells[0];
  29683. }
  29684. else {
  29685. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'span.p-highlight');
  29686. if (!cell) {
  29687. let todayCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
  29688. if (todayCell)
  29689. cell = todayCell;
  29690. else
  29691. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
  29692. }
  29693. }
  29694. if (cell) {
  29695. cell.tabIndex = '0';
  29696. if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
  29697. cell.focus();
  29698. }
  29699. this.preventFocus = false;
  29700. }
  29701. },
  29702. trapFocus(event) {
  29703. event.preventDefault();
  29704. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  29705. if (focusableElements && focusableElements.length > 0) {
  29706. if (!document.activeElement) {
  29707. focusableElements[0].focus();
  29708. }
  29709. else {
  29710. let focusedIndex = focusableElements.indexOf(document.activeElement);
  29711. if (event.shiftKey) {
  29712. if (focusedIndex == -1 || focusedIndex === 0)
  29713. focusableElements[focusableElements.length - 1].focus();
  29714. else
  29715. focusableElements[focusedIndex - 1].focus();
  29716. }
  29717. else {
  29718. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  29719. focusableElements[0].focus();
  29720. else
  29721. focusableElements[focusedIndex + 1].focus();
  29722. }
  29723. }
  29724. }
  29725. },
  29726. onContainerButtonKeydown(event) {
  29727. switch (event.which) {
  29728. //tab
  29729. case 9:
  29730. this.trapFocus(event);
  29731. break;
  29732. //escape
  29733. case 27:
  29734. this.overlayVisible = false;
  29735. event.preventDefault();
  29736. break;
  29737. }
  29738. this.$emit('keydown', event);
  29739. },
  29740. onInput(event) {
  29741. try {
  29742. this.selectionStart = this.input.selectionStart;
  29743. this.selectionEnd = this.input.selectionEnd;
  29744. let value = this.parseValue(event.target.value);
  29745. if (this.isValidSelection(value)) {
  29746. this.typeUpdate = true;
  29747. this.updateModel(value);
  29748. }
  29749. }
  29750. catch(err) {
  29751. /* NoOp */
  29752. }
  29753. this.$emit('input', event);
  29754. },
  29755. onFocus(event) {
  29756. if (this.showOnFocus && this.isEnabled()) {
  29757. this.overlayVisible = true;
  29758. }
  29759. this.focused = true;
  29760. this.$emit('focus', event);
  29761. },
  29762. onBlur(event) {
  29763. this.$emit('blur', {originalEvent: event, value: this.input.value});
  29764. this.focused = false;
  29765. this.input.value = this.formatValue(this.modelValue);
  29766. },
  29767. onKeyDown() {
  29768. if (event.keyCode === 40 && this.overlay) {
  29769. this.trapFocus(event);
  29770. }
  29771. else if (event.keyCode === 27) {
  29772. if (this.overlayVisible) {
  29773. this.overlayVisible = false;
  29774. event.preventDefault();
  29775. }
  29776. }
  29777. else if (event.keyCode === 9) {
  29778. if (this.overlay) {
  29779. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
  29780. }
  29781. if (this.overlayVisible) {
  29782. this.overlayVisible = false;
  29783. }
  29784. }
  29785. },
  29786. overlayRef(el) {
  29787. this.overlay = el;
  29788. },
  29789. inputRef(el) {
  29790. this.input = el;
  29791. },
  29792. getMonthName(index) {
  29793. return this.$primevue.config.locale.monthNames[index];
  29794. },
  29795. getYear(month) {
  29796. return this.currentView === 'month' ? this.currentYear : month.year;
  29797. },
  29798. onOverlayClick(event) {
  29799. if (!this.inline) {
  29800. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  29801. originalEvent: event,
  29802. target: this.$el
  29803. });
  29804. }
  29805. },
  29806. onOverlayMouseUp(event) {
  29807. this.onOverlayClick(event);
  29808. },
  29809. createResponsiveStyle() {
  29810. if (this.numberOfMonths > 1 && this.responsiveOptions) {
  29811. if (!this.responsiveStyleElement) {
  29812. this.responsiveStyleElement = document.createElement('style');
  29813. this.responsiveStyleElement.type = 'text/css';
  29814. document.body.appendChild(this.responsiveStyleElement);
  29815. }
  29816. let innerHTML = '';
  29817. if (this.responsiveOptions) {
  29818. let responsiveOptions = [...this.responsiveOptions]
  29819. .filter(o => !!(o.breakpoint && o.numMonths))
  29820. .sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
  29821. for (let i = 0; i < responsiveOptions.length; i++) {
  29822. let { breakpoint, numMonths } = responsiveOptions[i];
  29823. let styles = `
  29824. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
  29825. display: inline-flex !important;
  29826. }
  29827. `;
  29828. for (let j = numMonths; j < this.numberOfMonths; j++) {
  29829. styles += `
  29830. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
  29831. display: none !important;
  29832. }
  29833. `;
  29834. }
  29835. innerHTML += `
  29836. @media screen and (max-width: ${breakpoint}) {
  29837. ${styles}
  29838. }
  29839. `;
  29840. }
  29841. }
  29842. this.responsiveStyleElement.innerHTML = innerHTML;
  29843. }
  29844. },
  29845. destroyResponsiveStyleElement() {
  29846. if (this.responsiveStyleElement) {
  29847. this.responsiveStyleElement.remove();
  29848. this.responsiveStyleElement = null;
  29849. }
  29850. }
  29851. },
  29852. computed: {
  29853. viewDate() {
  29854. let propValue = this.modelValue;
  29855. if (propValue && Array.isArray(propValue)) {
  29856. propValue = propValue[0];
  29857. }
  29858. if (propValue && typeof propValue !== 'string') {
  29859. return propValue;
  29860. }
  29861. else {
  29862. let today = new Date();
  29863. if (this.maxDate && this.maxDate < today) {
  29864. return this.maxDate;
  29865. }
  29866. if (this.minDate && this.minDate > today) {
  29867. return this.minDate;
  29868. }
  29869. return today;
  29870. }
  29871. },
  29872. inputFieldValue() {
  29873. return this.formatValue(this.modelValue);
  29874. },
  29875. containerClass() {
  29876. return [
  29877. 'p-calendar p-component p-inputwrapper', this.class,
  29878. {
  29879. 'p-calendar-w-btn': this.showIcon,
  29880. 'p-calendar-timeonly': this.timeOnly,
  29881. 'p-calendar-disabled': this.$attrs.disabled,
  29882. 'p-inputwrapper-filled': this.modelValue,
  29883. 'p-inputwrapper-focus': this.focused
  29884. }
  29885. ];
  29886. },
  29887. panelStyleClass() {
  29888. return ['p-datepicker p-component', this.panelClass, {
  29889. 'p-datepicker-inline': this.inline,
  29890. 'p-disabled': this.$attrs.disabled,
  29891. 'p-datepicker-timeonly': this.timeOnly,
  29892. 'p-datepicker-multiple-month': this.numberOfMonths > 1,
  29893. 'p-datepicker-monthpicker': (this.currentView === 'month'),
  29894. 'p-datepicker-yearpicker': (this.currentView === 'year'),
  29895. 'p-datepicker-touch-ui': this.touchUI,
  29896. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  29897. 'p-ripple-disabled': this.$primevue.config.ripple === false
  29898. }];
  29899. },
  29900. months() {
  29901. let months = [];
  29902. for (let i = 0 ; i < this.numberOfMonths; i++) {
  29903. let month = this.currentMonth + i;
  29904. let year = this.currentYear;
  29905. if (month > 11) {
  29906. month = month % 11 - 1;
  29907. year = year + 1;
  29908. }
  29909. let dates = [];
  29910. let firstDay = this.getFirstDayOfMonthIndex(month, year);
  29911. let daysLength = this.getDaysCountInMonth(month, year);
  29912. let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);
  29913. let dayNo = 1;
  29914. let today = new Date();
  29915. let weekNumbers = [];
  29916. let monthRows = Math.ceil((daysLength + firstDay) / 7);
  29917. for (let i = 0; i < monthRows; i++) {
  29918. let week = [];
  29919. if (i == 0) {
  29920. for (let j = (prevMonthDaysLength - firstDay + 1); j <= prevMonthDaysLength; j++) {
  29921. let prev = this.getPreviousMonthAndYear(month, year);
  29922. week.push({day: j, month: prev.month, year: prev.year, otherMonth: true,
  29923. today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true)});
  29924. }
  29925. let remainingDaysLength = 7 - week.length;
  29926. for (let j = 0; j < remainingDaysLength; j++) {
  29927. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  29928. selectable: this.isSelectable(dayNo, month, year, false)});
  29929. dayNo++;
  29930. }
  29931. }
  29932. else {
  29933. for (let j = 0; j < 7; j++) {
  29934. if (dayNo > daysLength) {
  29935. let next = this.getNextMonthAndYear(month, year);
  29936. week.push({day: dayNo - daysLength, month: next.month, year: next.year, otherMonth: true,
  29937. today: this.isToday(today, dayNo - daysLength, next.month, next.year),
  29938. selectable: this.isSelectable((dayNo - daysLength), next.month, next.year, true)});
  29939. }
  29940. else {
  29941. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  29942. selectable: this.isSelectable(dayNo, month, year, false)});
  29943. }
  29944. dayNo++;
  29945. }
  29946. }
  29947. if (this.showWeek) {
  29948. weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
  29949. }
  29950. dates.push(week);
  29951. }
  29952. months.push({
  29953. month: month,
  29954. year: year,
  29955. dates: dates,
  29956. weekNumbers: weekNumbers
  29957. });
  29958. }
  29959. return months;
  29960. },
  29961. weekDays() {
  29962. let weekDays = [];
  29963. let dayIndex = this.$primevue.config.locale.firstDayOfWeek;
  29964. for (let i = 0; i < 7; i++) {
  29965. weekDays.push(this.$primevue.config.locale.dayNamesMin[dayIndex]);
  29966. dayIndex = (dayIndex == 6) ? 0 : ++dayIndex;
  29967. }
  29968. return weekDays;
  29969. },
  29970. ticksTo1970() {
  29971. return (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
  29972. },
  29973. sundayIndex() {
  29974. return this.$primevue.config.locale.firstDayOfWeek > 0 ? 7 - this.$primevue.config.locale.firstDayOfWeek : 0;
  29975. },
  29976. datePattern() {
  29977. return this.dateFormat || this.$primevue.config.locale.dateFormat;
  29978. },
  29979. yearOptions() {
  29980. if (this.yearRange) {
  29981. let $vm = this;
  29982. const years = this.yearRange.split(':');
  29983. let yearStart = parseInt(years[0]);
  29984. let yearEnd = parseInt(years[1]);
  29985. let yearOptions = [];
  29986. if (this.currentYear < yearStart) {
  29987. $vm.currentYear = yearEnd;
  29988. }
  29989. else if (this.currentYear > yearEnd) {
  29990. $vm.currentYear = yearStart;
  29991. }
  29992. for (let i = yearStart; i <= yearEnd; i++) {
  29993. yearOptions.push(i);
  29994. }
  29995. return yearOptions;
  29996. }
  29997. else {
  29998. return null;
  29999. }
  30000. },
  30001. monthPickerValues() {
  30002. let monthPickerValues = [];
  30003. for (let i = 0; i <= 11; i++) {
  30004. monthPickerValues.push(this.$primevue.config.locale.monthNamesShort[i]);
  30005. }
  30006. return monthPickerValues;
  30007. },
  30008. yearPickerValues() {
  30009. let yearPickerValues = [];
  30010. let base = this.currentYear - (this.currentYear % 10);
  30011. for (let i = 0; i < 10; i++) {
  30012. yearPickerValues.push(base + i);
  30013. }
  30014. return yearPickerValues;
  30015. },
  30016. formattedCurrentHour() {
  30017. return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
  30018. },
  30019. formattedCurrentMinute() {
  30020. return this.currentMinute < 10 ? '0' + this.currentMinute : this.currentMinute;
  30021. },
  30022. formattedCurrentSecond() {
  30023. return this.currentSecond < 10 ? '0' + this.currentSecond : this.currentSecond;
  30024. },
  30025. todayLabel() {
  30026. return this.$primevue.config.locale.today;
  30027. },
  30028. clearLabel() {
  30029. return this.$primevue.config.locale.clear;
  30030. },
  30031. weekHeaderLabel() {
  30032. return this.$primevue.config.locale.weekHeader;
  30033. },
  30034. monthNames() {
  30035. return this.$primevue.config.locale.monthNames;
  30036. },
  30037. appendDisabled() {
  30038. return this.appendTo === 'self' || this.inline;
  30039. },
  30040. appendTarget() {
  30041. return this.appendDisabled ? null : this.appendTo;
  30042. },
  30043. attributeSelector() {
  30044. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  30045. },
  30046. switchViewButtonDisabled() {
  30047. return this.numberOfMonths > 1 || this.$attrs.disabled;
  30048. }
  30049. },
  30050. components: {
  30051. 'CalendarButton': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"]
  30052. },
  30053. directives: {
  30054. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  30055. }
  30056. };
  30057. const _hoisted_1 = { class: "p-datepicker-group-container" };
  30058. const _hoisted_2 = { class: "p-datepicker-header" };
  30059. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-datepicker-prev-icon pi pi-chevron-left" }, null, -1);
  30060. const _hoisted_4 = { class: "p-datepicker-title" };
  30061. const _hoisted_5 = {
  30062. key: 2,
  30063. class: "p-datepicker-decade"
  30064. };
  30065. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-datepicker-next-icon pi pi-chevron-right" }, null, -1);
  30066. const _hoisted_7 = {
  30067. key: 0,
  30068. class: "p-datepicker-calendar-container"
  30069. };
  30070. const _hoisted_8 = { class: "p-datepicker-calendar" };
  30071. const _hoisted_9 = {
  30072. key: 0,
  30073. scope: "col",
  30074. class: "p-datepicker-weekheader p-disabled"
  30075. };
  30076. const _hoisted_10 = {
  30077. key: 0,
  30078. class: "p-datepicker-weeknumber"
  30079. };
  30080. const _hoisted_11 = { class: "p-disabled" };
  30081. const _hoisted_12 = {
  30082. key: 0,
  30083. style: {"visibility":"hidden"}
  30084. };
  30085. const _hoisted_13 = {
  30086. key: 0,
  30087. class: "p-monthpicker"
  30088. };
  30089. const _hoisted_14 = {
  30090. key: 1,
  30091. class: "p-yearpicker"
  30092. };
  30093. const _hoisted_15 = {
  30094. key: 1,
  30095. class: "p-timepicker"
  30096. };
  30097. const _hoisted_16 = { class: "p-hour-picker" };
  30098. const _hoisted_17 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30099. const _hoisted_18 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30100. const _hoisted_19 = { class: "p-separator" };
  30101. const _hoisted_20 = { class: "p-minute-picker" };
  30102. const _hoisted_21 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30103. const _hoisted_22 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30104. const _hoisted_23 = {
  30105. key: 0,
  30106. class: "p-separator"
  30107. };
  30108. const _hoisted_24 = {
  30109. key: 1,
  30110. class: "p-second-picker"
  30111. };
  30112. const _hoisted_25 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30113. const _hoisted_26 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30114. const _hoisted_27 = {
  30115. key: 2,
  30116. class: "p-separator"
  30117. };
  30118. const _hoisted_28 = {
  30119. key: 3,
  30120. class: "p-ampm-picker"
  30121. };
  30122. const _hoisted_29 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30123. const _hoisted_30 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30124. const _hoisted_31 = {
  30125. key: 2,
  30126. class: "p-datepicker-buttonbar"
  30127. };
  30128. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30129. const _component_CalendarButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CalendarButton");
  30130. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  30131. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30132. ref: "container",
  30133. class: $options.containerClass,
  30134. style: $props.style
  30135. }, [
  30136. (!$props.inline)
  30137. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)({
  30138. key: 0,
  30139. ref: $options.inputRef,
  30140. type: "text",
  30141. class: ['p-inputtext p-component', $props.inputClass],
  30142. style: $props.inputStyle,
  30143. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
  30144. }, _ctx.$attrs, {
  30145. onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  30146. onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  30147. onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  30148. readonly: !$props.manualInput,
  30149. inputmode: "none"
  30150. }), null, 16, ["readonly"]))
  30151. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30152. ($props.showIcon)
  30153. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CalendarButton, {
  30154. key: 1,
  30155. icon: $props.icon,
  30156. tabindex: "-1",
  30157. class: "p-datepicker-trigger",
  30158. disabled: _ctx.$attrs.disabled,
  30159. onClick: $options.onButtonClick,
  30160. type: "button",
  30161. "aria-label": $options.inputFieldValue
  30162. }, null, 8, ["icon", "disabled", "onClick", "aria-label"]))
  30163. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30164. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, {
  30165. to: $options.appendTarget,
  30166. disabled: $options.appendDisabled
  30167. }, [
  30168. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  30169. name: "p-connected-overlay",
  30170. onEnter: _cache[67] || (_cache[67] = $event => ($options.onOverlayEnter($event))),
  30171. onAfterEnter: $options.onOverlayEnterComplete,
  30172. onAfterLeave: $options.onOverlayAfterLeave,
  30173. onLeave: $options.onOverlayLeave
  30174. }, {
  30175. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  30176. ($props.inline ? true : $data.overlayVisible)
  30177. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  30178. key: 0,
  30179. ref: $options.overlayRef,
  30180. class: $options.panelStyleClass,
  30181. role: $props.inline ? null : 'dialog',
  30182. onClick: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
  30183. onMouseup: _cache[66] || (_cache[66] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
  30184. }, [
  30185. (!$props.timeOnly)
  30186. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  30187. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_1, [
  30188. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.months, (month, groupIndex) => {
  30189. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  30190. class: "p-datepicker-group",
  30191. key: month.month + month.year
  30192. }, [
  30193. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_2, [
  30194. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header"),
  30195. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30196. class: "p-datepicker-prev p-link",
  30197. onClick: _cache[5] || (_cache[5] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
  30198. type: "button",
  30199. onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30200. disabled: _ctx.$attrs.disabled
  30201. }, [
  30202. _hoisted_3
  30203. ], 40, ["disabled"]), [
  30204. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, groupIndex === 0],
  30205. [_directive_ripple]
  30206. ]),
  30207. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_4, [
  30208. ($data.currentView === 'date')
  30209. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  30210. key: 0,
  30211. type: "button",
  30212. onClick: _cache[7] || (_cache[7] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
  30213. onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30214. class: "p-datepicker-month p-link",
  30215. disabled: $options.switchViewButtonDisabled
  30216. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getMonthName(month.month)), 41, ["disabled"]))
  30217. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30218. ($data.currentView !== 'year')
  30219. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  30220. key: 1,
  30221. type: "button",
  30222. onClick: _cache[9] || (_cache[9] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
  30223. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30224. class: "p-datepicker-year p-link",
  30225. disabled: $options.switchViewButtonDisabled
  30226. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getYear(month)), 41, ["disabled"]))
  30227. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30228. ($data.currentView === 'year')
  30229. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_5, [
  30230. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "decade", { years: $options.yearPickerValues }, () => [
  30231. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[0]) + " - " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[$options.yearPickerValues.length - 1]), 1)
  30232. ])
  30233. ]))
  30234. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30235. ]),
  30236. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30237. class: "p-datepicker-next p-link",
  30238. onClick: _cache[11] || (_cache[11] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
  30239. type: "button",
  30240. onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30241. disabled: _ctx.$attrs.disabled
  30242. }, [
  30243. _hoisted_6
  30244. ], 40, ["disabled"]), [
  30245. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1)],
  30246. [_directive_ripple]
  30247. ])
  30248. ]),
  30249. ($data.currentView ==='date')
  30250. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_7, [
  30251. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("table", _hoisted_8, [
  30252. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("thead", null, [
  30253. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tr", null, [
  30254. ($props.showWeek)
  30255. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", _hoisted_9, [
  30256. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.weekHeaderLabel), 1)
  30257. ]))
  30258. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30259. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.weekDays, (weekDay) => {
  30260. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  30261. scope: "col",
  30262. key: weekDay
  30263. }, [
  30264. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(weekDay), 1)
  30265. ]))
  30266. }), 128))
  30267. ])
  30268. ]),
  30269. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tbody", null, [
  30270. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(month.dates, (week, i) => {
  30271. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  30272. key: week[0].day + '' + week[0].month
  30273. }, [
  30274. ($props.showWeek)
  30275. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", _hoisted_10, [
  30276. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", _hoisted_11, [
  30277. (month.weekNumbers[i] < 10)
  30278. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_12, "0"))
  30279. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30280. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(month.weekNumbers[i]), 1)
  30281. ])
  30282. ]))
  30283. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30284. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(week, (date) => {
  30285. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  30286. key: date.day + '' + date.month,
  30287. class: {'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today}
  30288. }, [
  30289. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  30290. class: {'p-highlight': $options.isSelected(date), 'p-disabled': !date.selectable},
  30291. onClick: $event => ($options.onDateSelect($event, date)),
  30292. draggable: "false",
  30293. onKeydown: $event => ($options.onDateCellKeydown($event,date,groupIndex))
  30294. }, [
  30295. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "date", { date: date }, () => [
  30296. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(date.day), 1)
  30297. ])
  30298. ], 42, ["onClick", "onKeydown"]), [
  30299. [_directive_ripple]
  30300. ])
  30301. ], 2))
  30302. }), 128))
  30303. ]))
  30304. }), 128))
  30305. ])
  30306. ])
  30307. ]))
  30308. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30309. ]))
  30310. }), 128))
  30311. ]),
  30312. ($data.currentView === 'month')
  30313. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_13, [
  30314. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.monthPickerValues, (m, i) => {
  30315. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30316. key: m,
  30317. onClick: $event => ($options.onMonthSelect($event, i)),
  30318. onKeydown: $event => ($options.onMonthCellKeydown($event,i)),
  30319. class: ["p-monthpicker-month", {'p-highlight': $options.isMonthSelected(i)}]
  30320. }, [
  30321. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(m), 1)
  30322. ], 42, ["onClick", "onKeydown"])), [
  30323. [_directive_ripple]
  30324. ])
  30325. }), 128))
  30326. ]))
  30327. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30328. ($data.currentView === 'year')
  30329. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_14, [
  30330. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.yearPickerValues, (y) => {
  30331. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30332. key: y,
  30333. onClick: $event => ($options.onYearSelect($event, y)),
  30334. onKeydown: $event => ($options.onYearCellKeydown($event,y)),
  30335. class: ["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}]
  30336. }, [
  30337. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(y), 1)
  30338. ], 42, ["onClick", "onKeydown"])), [
  30339. [_directive_ripple]
  30340. ])
  30341. }), 128))
  30342. ]))
  30343. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30344. ], 64))
  30345. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30346. (($props.showTime||$props.timeOnly) && $data.currentView === 'date')
  30347. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_15, [
  30348. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_16, [
  30349. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30350. class: "p-link",
  30351. onMousedown: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
  30352. onMouseup: _cache[14] || (_cache[14] = $event => ($options.onTimePickerElementMouseUp($event))),
  30353. onKeydown: [
  30354. _cache[15] || (_cache[15] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30355. _cache[17] || (_cache[17] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
  30356. _cache[18] || (_cache[18] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
  30357. ],
  30358. onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
  30359. onKeyup: [
  30360. _cache[19] || (_cache[19] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30361. _cache[20] || (_cache[20] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30362. ],
  30363. type: "button"
  30364. }, [
  30365. _hoisted_17
  30366. ], 544), [
  30367. [_directive_ripple]
  30368. ]),
  30369. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentHour), 1),
  30370. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30371. class: "p-link",
  30372. onMousedown: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
  30373. onMouseup: _cache[22] || (_cache[22] = $event => ($options.onTimePickerElementMouseUp($event))),
  30374. onKeydown: [
  30375. _cache[23] || (_cache[23] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30376. _cache[25] || (_cache[25] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
  30377. _cache[26] || (_cache[26] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
  30378. ],
  30379. onMouseleave: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseLeave())),
  30380. onKeyup: [
  30381. _cache[27] || (_cache[27] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30382. _cache[28] || (_cache[28] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30383. ],
  30384. type: "button"
  30385. }, [
  30386. _hoisted_18
  30387. ], 544), [
  30388. [_directive_ripple]
  30389. ])
  30390. ]),
  30391. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_19, [
  30392. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30393. ]),
  30394. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_20, [
  30395. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30396. class: "p-link",
  30397. onMousedown: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
  30398. onMouseup: _cache[30] || (_cache[30] = $event => ($options.onTimePickerElementMouseUp($event))),
  30399. onKeydown: [
  30400. _cache[31] || (_cache[31] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30401. _cache[33] || (_cache[33] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
  30402. _cache[34] || (_cache[34] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
  30403. ],
  30404. disabled: _ctx.$attrs.disabled,
  30405. onMouseleave: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseLeave())),
  30406. onKeyup: [
  30407. _cache[35] || (_cache[35] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30408. _cache[36] || (_cache[36] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30409. ],
  30410. type: "button"
  30411. }, [
  30412. _hoisted_21
  30413. ], 40, ["disabled"]), [
  30414. [_directive_ripple]
  30415. ]),
  30416. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentMinute), 1),
  30417. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30418. class: "p-link",
  30419. onMousedown: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
  30420. onMouseup: _cache[38] || (_cache[38] = $event => ($options.onTimePickerElementMouseUp($event))),
  30421. onKeydown: [
  30422. _cache[39] || (_cache[39] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30423. _cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
  30424. _cache[42] || (_cache[42] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
  30425. ],
  30426. disabled: _ctx.$attrs.disabled,
  30427. onMouseleave: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseLeave())),
  30428. onKeyup: [
  30429. _cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30430. _cache[44] || (_cache[44] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30431. ],
  30432. type: "button"
  30433. }, [
  30434. _hoisted_22
  30435. ], 40, ["disabled"]), [
  30436. [_directive_ripple]
  30437. ])
  30438. ]),
  30439. ($props.showSeconds)
  30440. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_23, [
  30441. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30442. ]))
  30443. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30444. ($props.showSeconds)
  30445. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_24, [
  30446. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30447. class: "p-link",
  30448. onMousedown: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
  30449. onMouseup: _cache[46] || (_cache[46] = $event => ($options.onTimePickerElementMouseUp($event))),
  30450. onKeydown: [
  30451. _cache[47] || (_cache[47] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30452. _cache[49] || (_cache[49] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
  30453. _cache[50] || (_cache[50] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
  30454. ],
  30455. disabled: _ctx.$attrs.disabled,
  30456. onMouseleave: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseLeave())),
  30457. onKeyup: [
  30458. _cache[51] || (_cache[51] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30459. _cache[52] || (_cache[52] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30460. ],
  30461. type: "button"
  30462. }, [
  30463. _hoisted_25
  30464. ], 40, ["disabled"]), [
  30465. [_directive_ripple]
  30466. ]),
  30467. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentSecond), 1),
  30468. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30469. class: "p-link",
  30470. onMousedown: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
  30471. onMouseup: _cache[54] || (_cache[54] = $event => ($options.onTimePickerElementMouseUp($event))),
  30472. onKeydown: [
  30473. _cache[55] || (_cache[55] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30474. _cache[57] || (_cache[57] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
  30475. _cache[58] || (_cache[58] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
  30476. ],
  30477. disabled: _ctx.$attrs.disabled,
  30478. onMouseleave: _cache[56] || (_cache[56] = $event => ($options.onTimePickerElementMouseLeave())),
  30479. onKeyup: [
  30480. _cache[59] || (_cache[59] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30481. _cache[60] || (_cache[60] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30482. ],
  30483. type: "button"
  30484. }, [
  30485. _hoisted_26
  30486. ], 40, ["disabled"]), [
  30487. [_directive_ripple]
  30488. ])
  30489. ]))
  30490. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30491. ($props.hourFormat=='12')
  30492. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_27, [
  30493. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30494. ]))
  30495. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30496. ($props.hourFormat=='12')
  30497. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_28, [
  30498. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30499. class: "p-link",
  30500. onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
  30501. type: "button",
  30502. disabled: _ctx.$attrs.disabled
  30503. }, [
  30504. _hoisted_29
  30505. ], 8, ["disabled"]), [
  30506. [_directive_ripple]
  30507. ]),
  30508. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($data.pm ? 'PM' : 'AM'), 1),
  30509. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30510. class: "p-link",
  30511. onClick: _cache[62] || (_cache[62] = $event => ($options.toggleAMPM($event))),
  30512. type: "button",
  30513. disabled: _ctx.$attrs.disabled
  30514. }, [
  30515. _hoisted_30
  30516. ], 8, ["disabled"]), [
  30517. [_directive_ripple]
  30518. ])
  30519. ]))
  30520. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30521. ]))
  30522. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30523. ($props.showButtonBar)
  30524. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_31, [
  30525. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30526. type: "button",
  30527. label: $options.todayLabel,
  30528. onClick: _cache[63] || (_cache[63] = $event => ($options.onTodayButtonClick($event))),
  30529. class: "p-button-text",
  30530. onKeydown: $options.onContainerButtonKeydown
  30531. }, null, 8, ["label", "onKeydown"]),
  30532. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30533. type: "button",
  30534. label: $options.clearLabel,
  30535. onClick: _cache[64] || (_cache[64] = $event => ($options.onClearButtonClick($event))),
  30536. class: "p-button-text",
  30537. onKeydown: $options.onContainerButtonKeydown
  30538. }, null, 8, ["label", "onKeydown"])
  30539. ]))
  30540. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30541. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  30542. ], 42, ["role"]))
  30543. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30544. ]),
  30545. _: 3
  30546. }, 8, ["onAfterEnter", "onAfterLeave", "onLeave"])
  30547. ], 8, ["to", "disabled"]))
  30548. ], 6))
  30549. }
  30550. function styleInject(css, ref) {
  30551. if ( ref === void 0 ) ref = {};
  30552. var insertAt = ref.insertAt;
  30553. if (!css || typeof document === 'undefined') { return; }
  30554. var head = document.head || document.getElementsByTagName('head')[0];
  30555. var style = document.createElement('style');
  30556. style.type = 'text/css';
  30557. if (insertAt === 'top') {
  30558. if (head.firstChild) {
  30559. head.insertBefore(style, head.firstChild);
  30560. } else {
  30561. head.appendChild(style);
  30562. }
  30563. } else {
  30564. head.appendChild(style);
  30565. }
  30566. if (style.styleSheet) {
  30567. style.styleSheet.cssText = css;
  30568. } else {
  30569. style.appendChild(document.createTextNode(css));
  30570. }
  30571. }
  30572. var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
  30573. styleInject(css_248z);
  30574. script.render = render;
  30575. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30576. /***/ }),
  30577. /***/ "./node_modules/primevue/card/card.esm.js":
  30578. /*!************************************************!*\
  30579. !*** ./node_modules/primevue/card/card.esm.js ***!
  30580. \************************************************/
  30581. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30582. "use strict";
  30583. __webpack_require__.r(__webpack_exports__);
  30584. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30585. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30586. /* harmony export */ });
  30587. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30588. var script = {
  30589. name: 'Card'
  30590. };
  30591. const _hoisted_1 = { class: "p-card p-component" };
  30592. const _hoisted_2 = {
  30593. key: 0,
  30594. class: "p-card-header"
  30595. };
  30596. const _hoisted_3 = { class: "p-card-body" };
  30597. const _hoisted_4 = {
  30598. key: 0,
  30599. class: "p-card-title"
  30600. };
  30601. const _hoisted_5 = {
  30602. key: 1,
  30603. class: "p-card-subtitle"
  30604. };
  30605. const _hoisted_6 = { class: "p-card-content" };
  30606. const _hoisted_7 = {
  30607. key: 2,
  30608. class: "p-card-footer"
  30609. };
  30610. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30611. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  30612. (_ctx.$slots.header)
  30613. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_2, [
  30614. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "header")
  30615. ]))
  30616. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30617. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_3, [
  30618. (_ctx.$slots.title)
  30619. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_4, [
  30620. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "title")
  30621. ]))
  30622. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30623. (_ctx.$slots.subtitle)
  30624. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_5, [
  30625. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "subtitle")
  30626. ]))
  30627. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30628. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_6, [
  30629. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content")
  30630. ]),
  30631. (_ctx.$slots.footer)
  30632. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_7, [
  30633. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "footer")
  30634. ]))
  30635. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  30636. ])
  30637. ]))
  30638. }
  30639. function styleInject(css, ref) {
  30640. if ( ref === void 0 ) ref = {};
  30641. var insertAt = ref.insertAt;
  30642. if (!css || typeof document === 'undefined') { return; }
  30643. var head = document.head || document.getElementsByTagName('head')[0];
  30644. var style = document.createElement('style');
  30645. style.type = 'text/css';
  30646. if (insertAt === 'top') {
  30647. if (head.firstChild) {
  30648. head.insertBefore(style, head.firstChild);
  30649. } else {
  30650. head.appendChild(style);
  30651. }
  30652. } else {
  30653. head.appendChild(style);
  30654. }
  30655. if (style.styleSheet) {
  30656. style.styleSheet.cssText = css;
  30657. } else {
  30658. style.appendChild(document.createTextNode(css));
  30659. }
  30660. }
  30661. var css_248z = "\n.p-card-header img {\n width: 100%;\n}\n";
  30662. styleInject(css_248z);
  30663. script.render = render;
  30664. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30665. /***/ }),
  30666. /***/ "./node_modules/primevue/column/column.esm.js":
  30667. /*!****************************************************!*\
  30668. !*** ./node_modules/primevue/column/column.esm.js ***!
  30669. \****************************************************/
  30670. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30671. "use strict";
  30672. __webpack_require__.r(__webpack_exports__);
  30673. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30674. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30675. /* harmony export */ });
  30676. var script = {
  30677. name: 'Column',
  30678. props: {
  30679. columnKey: {
  30680. type: null,
  30681. default: null
  30682. },
  30683. field: {
  30684. type: [String, Function],
  30685. default: null
  30686. },
  30687. sortField: {
  30688. type: [String, Function],
  30689. default: null
  30690. },
  30691. filterField: {
  30692. type: [String, Function],
  30693. default: null
  30694. },
  30695. dataType: {
  30696. type: String,
  30697. default: 'text'
  30698. },
  30699. sortable: {
  30700. type: Boolean,
  30701. default: false
  30702. },
  30703. header: {
  30704. type: null,
  30705. default: null
  30706. },
  30707. footer: {
  30708. type: null,
  30709. default: null
  30710. },
  30711. style: {
  30712. type: null,
  30713. default: null
  30714. },
  30715. class: {
  30716. type: String,
  30717. default: null
  30718. },
  30719. headerStyle: {
  30720. type: null,
  30721. default: null
  30722. },
  30723. headerClass: {
  30724. type: String,
  30725. default: null
  30726. },
  30727. bodyStyle: {
  30728. type: null,
  30729. default: null
  30730. },
  30731. bodyClass: {
  30732. type: String,
  30733. default: null
  30734. },
  30735. footerStyle: {
  30736. type: null,
  30737. default: null
  30738. },
  30739. footerClass: {
  30740. type: String,
  30741. default: null
  30742. },
  30743. showFilterMenu: {
  30744. type: Boolean,
  30745. default: true
  30746. },
  30747. showFilterOperator: {
  30748. type: Boolean,
  30749. default: true
  30750. },
  30751. showClearButton: {
  30752. type: Boolean,
  30753. default: true
  30754. },
  30755. showApplyButton: {
  30756. type: Boolean,
  30757. default: true
  30758. },
  30759. showFilterMatchModes: {
  30760. type: Boolean,
  30761. default: true
  30762. },
  30763. showAddButton: {
  30764. type: Boolean,
  30765. default: true
  30766. },
  30767. filterMatchModeOptions: {
  30768. type: Array,
  30769. default: null
  30770. },
  30771. maxConstraints: {
  30772. type: Number,
  30773. default: 2
  30774. },
  30775. excludeGlobalFilter: {
  30776. type: Boolean,
  30777. default: false
  30778. },
  30779. filterHeaderClass: {
  30780. type: String,
  30781. default: null
  30782. },
  30783. filterHeaderStyle: {
  30784. type: null,
  30785. default: null
  30786. },
  30787. filterMenuClass: {
  30788. type: String,
  30789. default: null
  30790. },
  30791. filterMenuStyle: {
  30792. type: null,
  30793. default: null
  30794. },
  30795. selectionMode: {
  30796. type: String,
  30797. default: null
  30798. },
  30799. expander: {
  30800. type: Boolean,
  30801. default: false
  30802. },
  30803. colspan: {
  30804. type: Number,
  30805. default: null
  30806. },
  30807. rowspan: {
  30808. type: Number,
  30809. default: null
  30810. },
  30811. rowReorder: {
  30812. type: Boolean,
  30813. default: false
  30814. },
  30815. rowReorderIcon: {
  30816. type: String,
  30817. default: 'pi pi-bars'
  30818. },
  30819. reorderableColumn: {
  30820. type: Boolean,
  30821. default: true
  30822. },
  30823. rowEditor: {
  30824. type: Boolean,
  30825. default: false
  30826. },
  30827. frozen: {
  30828. type: Boolean,
  30829. default: false
  30830. },
  30831. alignFrozen: {
  30832. type: String,
  30833. default: 'left'
  30834. },
  30835. exportable: {
  30836. type: Boolean,
  30837. default: true
  30838. },
  30839. exportHeader: {
  30840. type: String,
  30841. default: null
  30842. },
  30843. filterMatchMode: {
  30844. type: String,
  30845. default: null
  30846. },
  30847. hidden: {
  30848. type: Boolean,
  30849. default: false
  30850. }
  30851. },
  30852. render() {
  30853. return null;
  30854. }
  30855. };
  30856. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30857. /***/ }),
  30858. /***/ "./node_modules/primevue/config/config.esm.js":
  30859. /*!****************************************************!*\
  30860. !*** ./node_modules/primevue/config/config.esm.js ***!
  30861. \****************************************************/
  30862. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30863. "use strict";
  30864. __webpack_require__.r(__webpack_exports__);
  30865. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30866. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
  30867. /* harmony export */ "usePrimeVue": () => (/* binding */ usePrimeVue)
  30868. /* harmony export */ });
  30869. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30870. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  30871. const defaultOptions = {
  30872. ripple: false,
  30873. inputStyle: 'outlined',
  30874. locale: {
  30875. startsWith: 'Starts with',
  30876. contains: 'Contains',
  30877. notContains: 'Not contains',
  30878. endsWith: 'Ends with',
  30879. equals: 'Equals',
  30880. notEquals: 'Not equals',
  30881. noFilter: 'No Filter',
  30882. lt: 'Less than',
  30883. lte: 'Less than or equal to',
  30884. gt: 'Greater than',
  30885. gte: 'Greater than or equal to',
  30886. dateIs: 'Date is',
  30887. dateIsNot: 'Date is not',
  30888. dateBefore: 'Date is before',
  30889. dateAfter: 'Date is after',
  30890. clear: 'Clear',
  30891. apply: 'Apply',
  30892. matchAll: 'Match All',
  30893. matchAny: 'Match Any',
  30894. addRule: 'Add Rule',
  30895. removeRule: 'Remove Rule',
  30896. accept: 'Yes',
  30897. reject: 'No',
  30898. choose: 'Choose',
  30899. upload: 'Upload',
  30900. cancel: 'Cancel',
  30901. dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  30902. dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  30903. dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
  30904. monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
  30905. monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  30906. today: 'Today',
  30907. weekHeader: 'Wk',
  30908. firstDayOfWeek: 0,
  30909. dateFormat: 'mm/dd/yy',
  30910. weak: 'Weak',
  30911. medium: 'Medium',
  30912. strong: 'Strong',
  30913. passwordPrompt: 'Enter a password',
  30914. emptyFilterMessage: 'No results found',
  30915. emptyMessage: 'No available options'
  30916. },
  30917. filterMatchModeOptions: {
  30918. text: [
  30919. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH,
  30920. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS,
  30921. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_CONTAINS,
  30922. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.ENDS_WITH,
  30923. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  30924. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS
  30925. ],
  30926. numeric: [
  30927. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  30928. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS,
  30929. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN,
  30930. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN_OR_EQUAL_TO,
  30931. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN,
  30932. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN_OR_EQUAL_TO
  30933. ],
  30934. date: [
  30935. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS,
  30936. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS_NOT,
  30937. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_BEFORE,
  30938. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_AFTER
  30939. ]
  30940. },
  30941. zIndex: {
  30942. modal: 1100,
  30943. overlay: 1000,
  30944. menu: 1000,
  30945. tooltip: 1100
  30946. }
  30947. };
  30948. const PrimeVueSymbol = Symbol();
  30949. function usePrimeVue() {
  30950. const PrimeVue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(PrimeVueSymbol);
  30951. if (!PrimeVue) {
  30952. throw new Error('PrimeVue is not installed!');
  30953. }
  30954. return PrimeVue;
  30955. }
  30956. var PrimeVue = {
  30957. install: (app, options) => {
  30958. let configOptions = options ? {...defaultOptions, ...options} : {...defaultOptions};
  30959. const PrimeVue = {
  30960. config: (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)(configOptions)
  30961. };
  30962. app.config.globalProperties.$primevue = PrimeVue;
  30963. app.provide(PrimeVueSymbol, PrimeVue);
  30964. }
  30965. };
  30966. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrimeVue);
  30967. /***/ }),
  30968. /***/ "./node_modules/primevue/datatable/datatable.esm.js":
  30969. /*!**********************************************************!*\
  30970. !*** ./node_modules/primevue/datatable/datatable.esm.js ***!
  30971. \**********************************************************/
  30972. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30973. "use strict";
  30974. __webpack_require__.r(__webpack_exports__);
  30975. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30976. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30977. /* harmony export */ });
  30978. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  30979. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  30980. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  30981. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  30982. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30983. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  30984. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  30985. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  30986. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  30987. var script$a = {
  30988. name: 'HeaderCheckbox',
  30989. inheritAttrs: false,
  30990. emits: ['change'],
  30991. props: {
  30992. checked: null
  30993. },
  30994. data() {
  30995. return {
  30996. focused: false
  30997. };
  30998. },
  30999. methods: {
  31000. onClick(event) {
  31001. if (!this.$attrs.disabled) {
  31002. this.focused = true;
  31003. this.$emit('change', {
  31004. originalEvent: event,
  31005. checked: !this.checked
  31006. });
  31007. }
  31008. },
  31009. onFocus() {
  31010. this.focused = true;
  31011. },
  31012. onBlur() {
  31013. this.focused = false;
  31014. }
  31015. }
  31016. };
  31017. function render$a(_ctx, _cache, $props, $setup, $data, $options) {
  31018. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31019. class: ['p-checkbox p-component', {'p-checkbox-focused': $data.focused}],
  31020. onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args))),
  31021. onKeydown: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  31022. }, [
  31023. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  31024. ref: "box",
  31025. class: ['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  31026. role: "checkbox",
  31027. "aria-checked": $props.checked,
  31028. tabindex: _ctx.$attrs.disabled ? null : '0',
  31029. onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
  31030. onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event)))
  31031. }, [
  31032. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  31033. class: ['p-checkbox-icon', {'pi pi-check': $props.checked}]
  31034. }, null, 2)
  31035. ], 42, ["aria-checked", "tabindex"])
  31036. ], 34))
  31037. }
  31038. script$a.render = render$a;
  31039. var script$9 = {
  31040. name: 'ColumnFilter',
  31041. emits: ['filter-change','filter-apply','operator-change','matchmode-change','constraint-add','constraint-remove','filter-clear','apply-click'],
  31042. props: {
  31043. field: {
  31044. type: String,
  31045. default: null
  31046. },
  31047. type: {
  31048. type: String,
  31049. default: 'text'
  31050. },
  31051. display: {
  31052. type: String,
  31053. default: null
  31054. },
  31055. showMenu: {
  31056. type: Boolean,
  31057. default: true
  31058. },
  31059. matchMode: {
  31060. type: String,
  31061. default: null
  31062. },
  31063. showOperator: {
  31064. type: Boolean,
  31065. default: true
  31066. },
  31067. showClearButton: {
  31068. type: Boolean,
  31069. default: true
  31070. },
  31071. showApplyButton: {
  31072. type: Boolean,
  31073. default: true
  31074. },
  31075. showMatchModes: {
  31076. type: Boolean,
  31077. default: true
  31078. },
  31079. showAddButton: {
  31080. type: Boolean,
  31081. default: true
  31082. },
  31083. matchModeOptions: {
  31084. type: Array,
  31085. default: null
  31086. },
  31087. maxConstraints: {
  31088. type: Number,
  31089. default: 2
  31090. },
  31091. filterElement: null,
  31092. filterHeaderTemplate: null,
  31093. filterFooterTemplate: null,
  31094. filterClearTemplate: null,
  31095. filterApplyTemplate: null,
  31096. filters: {
  31097. type: Object,
  31098. default: null
  31099. },
  31100. filtersStore: {
  31101. type: Object,
  31102. default: null
  31103. },
  31104. filterMenuClass: {
  31105. type: String,
  31106. default: null
  31107. },
  31108. filterMenuStyle: {
  31109. type: null,
  31110. default: null
  31111. }
  31112. },
  31113. data() {
  31114. return {
  31115. overlayVisible: false,
  31116. defaultMatchMode: null,
  31117. defaultOperator: null
  31118. }
  31119. },
  31120. overlay: null,
  31121. selfClick: false,
  31122. overlayEventListener: null,
  31123. beforeUnmount() {
  31124. if (this.overlayEventListener) {
  31125. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31126. this.overlayEventListener = null;
  31127. }
  31128. if (this.overlay) {
  31129. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  31130. this.onOverlayHide();
  31131. }
  31132. },
  31133. mounted() {
  31134. if (this.filters && this.filters[this.field]) {
  31135. let fieldFilters = this.filters[this.field];
  31136. if (fieldFilters.operator) {
  31137. this.defaultMatchMode = fieldFilters.constraints[0].matchMode;
  31138. this.defaultOperator = fieldFilters.operator;
  31139. }
  31140. else {
  31141. this.defaultMatchMode = this.filters[this.field].matchMode;
  31142. }
  31143. }
  31144. },
  31145. methods: {
  31146. clearFilter() {
  31147. let _filters = {...this.filters};
  31148. if (_filters[this.field].operator) {
  31149. _filters[this.field].constraints.splice(1);
  31150. _filters[this.field].operator = this.defaultOperator;
  31151. _filters[this.field].constraints[0] = {value: null, matchMode: this.defaultMatchMode};
  31152. }
  31153. else {
  31154. _filters[this.field].value = null;
  31155. _filters[this.field].matchMode = this.defaultMatchMode;
  31156. }
  31157. this.$emit('filter-clear');
  31158. this.$emit('filter-change', _filters);
  31159. this.$emit('filter-apply');
  31160. this.hide();
  31161. },
  31162. applyFilter() {
  31163. this.$emit('apply-click', {field: this.field, constraints: this.filters[this.field]});
  31164. this.$emit('filter-apply');
  31165. this.hide();
  31166. },
  31167. hasFilter() {
  31168. if (this.filtersStore) {
  31169. let fieldFilter = this.filtersStore[this.field];
  31170. if (fieldFilter) {
  31171. if (fieldFilter.operator)
  31172. return !this.isFilterBlank(fieldFilter.constraints[0].value);
  31173. else
  31174. return !this.isFilterBlank(fieldFilter.value);
  31175. }
  31176. }
  31177. return false;
  31178. },
  31179. hasRowFilter() {
  31180. return this.filters[this.field] && !this.isFilterBlank(this.filters[this.field].value);
  31181. },
  31182. isFilterBlank(filter) {
  31183. if (filter !== null && filter !== undefined) {
  31184. if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0))
  31185. return true;
  31186. else
  31187. return false;
  31188. }
  31189. return true;
  31190. },
  31191. toggleMenu() {
  31192. this.overlayVisible = !this.overlayVisible;
  31193. },
  31194. onToggleButtonKeyDown(event) {
  31195. switch(event.key) {
  31196. case 'Escape':
  31197. case 'Tab':
  31198. this.overlayVisible = false;
  31199. break;
  31200. case 'ArrowDown':
  31201. if (this.overlayVisible) {
  31202. let focusable = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  31203. if (focusable) {
  31204. focusable[0].focus();
  31205. }
  31206. event.preventDefault();
  31207. }
  31208. else if (event.altKey) {
  31209. this.overlayVisible = true;
  31210. event.preventDefault();
  31211. }
  31212. break;
  31213. }
  31214. },
  31215. onEscape() {
  31216. this.overlayVisible = false;
  31217. if (this.$refs.icon) {
  31218. this.$refs.icon.focus();
  31219. }
  31220. },
  31221. onRowMatchModeChange(matchMode) {
  31222. let _filters = {...this.filters};
  31223. _filters[this.field].matchMode = matchMode;
  31224. this.$emit('matchmode-change', {field: this.field, matchMode: matchMode});
  31225. this.$emit('filter-change', _filters);
  31226. this.$emit('filter-apply');
  31227. this.hide();
  31228. },
  31229. onRowMatchModeKeyDown(event) {
  31230. let item = event.target;
  31231. switch(event.key) {
  31232. case 'ArrowDown':
  31233. var nextItem = this.findNextItem(item);
  31234. if (nextItem) {
  31235. item.removeAttribute('tabindex');
  31236. nextItem.tabIndex = '0';
  31237. nextItem.focus();
  31238. }
  31239. event.preventDefault();
  31240. break;
  31241. case 'ArrowUp':
  31242. var prevItem = this.findPrevItem(item);
  31243. if (prevItem) {
  31244. item.removeAttribute('tabindex');
  31245. prevItem.tabIndex = '0';
  31246. prevItem.focus();
  31247. }
  31248. event.preventDefault();
  31249. break;
  31250. }
  31251. },
  31252. isRowMatchModeSelected(matchMode) {
  31253. return (this.filters[this.field]).matchMode === matchMode;
  31254. },
  31255. onOperatorChange(value) {
  31256. let _filters = {...this.filters};
  31257. _filters[this.field].operator = value;
  31258. this.$emit('filter-change', _filters);
  31259. this.$emit('operator-change', {field: this.field, operator: value});
  31260. if (!this.showApplyButton) {
  31261. this.$emit('filter-apply');
  31262. }
  31263. },
  31264. onMenuMatchModeChange(value, index) {
  31265. let _filters = {...this.filters};
  31266. _filters[this.field].constraints[index].matchMode = value;
  31267. this.$emit('matchmode-change', {field: this.field, matchMode: value, index: index});
  31268. if (!this.showApplyButton) {
  31269. this.$emit('filter-apply');
  31270. }
  31271. },
  31272. addConstraint() {
  31273. let _filters = {...this.filters};
  31274. let newConstraint = {value: null, matchMode: this.defaultMatchMode};
  31275. _filters[this.field].constraints.push(newConstraint);
  31276. this.$emit('constraint-add', {field: this.field, constraing: newConstraint});
  31277. this.$emit('filter-change', _filters);
  31278. if (!this.showApplyButton) {
  31279. this.$emit('filter-apply');
  31280. }
  31281. },
  31282. removeConstraint(index) {
  31283. let _filters = {...this.filters};
  31284. let removedConstraint = _filters[this.field].constraints.splice(index, 1);
  31285. this.$emit('constraint-remove', {field: this.field, constraing: removedConstraint});
  31286. this.$emit('filter-change', _filters);
  31287. if (!this.showApplyButton) {
  31288. this.$emit('filter-apply');
  31289. }
  31290. },
  31291. filterCallback() {
  31292. this.$emit('filter-apply');
  31293. },
  31294. findNextItem(item) {
  31295. let nextItem = item.nextElementSibling;
  31296. if (nextItem)
  31297. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
  31298. else
  31299. return item.parentElement.firstElementChild;
  31300. },
  31301. findPrevItem(item) {
  31302. let prevItem = item.previousElementSibling;
  31303. if (prevItem)
  31304. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
  31305. else
  31306. return item.parentElement.lastElementChild;
  31307. },
  31308. hide() {
  31309. this.overlayVisible = false;
  31310. },
  31311. onContentClick(event) {
  31312. this.selfClick = true;
  31313. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].emit('overlay-click', {
  31314. originalEvent: event,
  31315. target: this.overlay
  31316. });
  31317. },
  31318. onContentMouseDown() {
  31319. this.selfClick = true;
  31320. },
  31321. onOverlayEnter(el) {
  31322. if (this.filterMenuStyle) {
  31323. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.applyStyle(this.overlay, this.filterMenuStyle);
  31324. }
  31325. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  31326. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.icon);
  31327. this.bindOutsideClickListener();
  31328. this.bindScrollListener();
  31329. this.bindResizeListener();
  31330. this.overlayEventListener = (e) => {
  31331. if (!this.isOutsideClicked(e.target)) {
  31332. this.selfClick = true;
  31333. }
  31334. };
  31335. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  31336. },
  31337. onOverlayLeave() {
  31338. this.onOverlayHide();
  31339. },
  31340. onOverlayAfterLeave(el) {
  31341. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  31342. },
  31343. onOverlayHide() {
  31344. this.unbindOutsideClickListener();
  31345. this.unbindResizeListener();
  31346. this.unbindScrollListener();
  31347. this.overlay = null;
  31348. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31349. this.overlayEventListener = null;
  31350. },
  31351. overlayRef(el) {
  31352. this.overlay = el;
  31353. },
  31354. isOutsideClicked(target) {
  31355. return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
  31356. },
  31357. isTargetClicked(target) {
  31358. return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
  31359. },
  31360. bindOutsideClickListener() {
  31361. if (!this.outsideClickListener) {
  31362. this.outsideClickListener = (event) => {
  31363. if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
  31364. this.overlayVisible = false;
  31365. }
  31366. this.selfClick = false;
  31367. };
  31368. document.addEventListener('click', this.outsideClickListener);
  31369. }
  31370. },
  31371. unbindOutsideClickListener() {
  31372. if (this.outsideClickListener) {
  31373. document.removeEventListener('click', this.outsideClickListener);
  31374. this.outsideClickListener = null;
  31375. this.selfClick = false;
  31376. }
  31377. },
  31378. bindScrollListener() {
  31379. if (!this.scrollHandler) {
  31380. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.icon, () => {
  31381. if (this.overlayVisible) {
  31382. this.hide();
  31383. }
  31384. });
  31385. }
  31386. this.scrollHandler.bindScrollListener();
  31387. },
  31388. unbindScrollListener() {
  31389. if (this.scrollHandler) {
  31390. this.scrollHandler.unbindScrollListener();
  31391. }
  31392. },
  31393. bindResizeListener() {
  31394. if (!this.resizeListener) {
  31395. this.resizeListener = () => {
  31396. if (this.overlayVisible) {
  31397. this.hide();
  31398. }
  31399. };
  31400. window.addEventListener('resize', this.resizeListener);
  31401. }
  31402. },
  31403. unbindResizeListener() {
  31404. if (this.resizeListener) {
  31405. window.removeEventListener('resize', this.resizeListener);
  31406. this.resizeListener = null;
  31407. }
  31408. }
  31409. },
  31410. computed: {
  31411. containerClass() {
  31412. return ['p-column-filter p-fluid', {
  31413. 'p-column-filter-row': this.display === 'row',
  31414. 'p-column-filter-menu': this.display === 'menu'
  31415. }];
  31416. },
  31417. overlayClass() {
  31418. return [this.filterMenuClass, {
  31419. 'p-column-filter-overlay p-component p-fluid': true,
  31420. 'p-column-filter-overlay-menu': this.display === 'menu',
  31421. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  31422. 'p-ripple-disabled': this.$primevue.config.ripple === false
  31423. }];
  31424. },
  31425. showMenuButton() {
  31426. return this.showMenu && (this.display === 'row' ? this.type !== 'boolean': true);
  31427. },
  31428. matchModes() {
  31429. return this.matchModeOptions ||
  31430. this.$primevue.config.filterMatchModeOptions[this.type].map(key => {
  31431. return {label: this.$primevue.config.locale[key], value: key}
  31432. });
  31433. },
  31434. isShowMatchModes() {
  31435. return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
  31436. },
  31437. operatorOptions() {
  31438. return [
  31439. {label: this.$primevue.config.locale.matchAll, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND},
  31440. {label: this.$primevue.config.locale.matchAny, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR}
  31441. ];
  31442. },
  31443. noFilterLabel() {
  31444. return this.$primevue.config.locale.noFilter;
  31445. },
  31446. isShowOperator() {
  31447. return this.showOperator && this.filters[this.field].operator;
  31448. },
  31449. operator() {
  31450. return this.filters[this.field].operator;
  31451. },
  31452. fieldConstraints() {
  31453. return this.filters[this.field].constraints || [this.filters[this.field]];
  31454. },
  31455. showRemoveIcon() {
  31456. return this.fieldConstraints.length > 1;
  31457. },
  31458. removeRuleButtonLabel() {
  31459. return this.$primevue.config.locale.removeRule;
  31460. },
  31461. addRuleButtonLabel() {
  31462. return this.$primevue.config.locale.addRule;
  31463. },
  31464. isShowAddConstraint() {
  31465. return this.showAddButton && this.filters[this.field].operator && (this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints);
  31466. },
  31467. clearButtonLabel() {
  31468. return this.$primevue.config.locale.clear;
  31469. },
  31470. applyButtonLabel() {
  31471. return this.$primevue.config.locale.apply;
  31472. }
  31473. },
  31474. components: {
  31475. 'CFDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
  31476. 'CFButton': primevue_button__WEBPACK_IMPORTED_MODULE_7__["default"]
  31477. }
  31478. };
  31479. const _hoisted_1$7 = {
  31480. key: 0,
  31481. class: "p-fluid p-column-filter-element"
  31482. };
  31483. const _hoisted_2$5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-filter-icon pi-filter" }, null, -1);
  31484. const _hoisted_3$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-filter-slash" }, null, -1);
  31485. const _hoisted_4$2 = {
  31486. key: 0,
  31487. class: "p-column-filter-row-items"
  31488. };
  31489. const _hoisted_5$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("li", { class: "p-column-filter-separator" }, null, -1);
  31490. const _hoisted_6$1 = {
  31491. key: 0,
  31492. class: "p-column-filter-operator"
  31493. };
  31494. const _hoisted_7 = { class: "p-column-filter-constraints" };
  31495. const _hoisted_8 = {
  31496. key: 1,
  31497. class: "p-column-filter-add-rule"
  31498. };
  31499. const _hoisted_9 = { class: "p-column-filter-buttonbar" };
  31500. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  31501. const _component_CFDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFDropdown");
  31502. const _component_CFButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFButton");
  31503. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", { class: $options.containerClass }, [
  31504. ($props.display === 'row')
  31505. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_1$7, [
  31506. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31507. field: $props.field,
  31508. filterModel: $props.filters[$props.field],
  31509. filterCallback: $options.filterCallback
  31510. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31511. ]))
  31512. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31513. ($options.showMenuButton)
  31514. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  31515. key: 1,
  31516. ref: "icon",
  31517. type: "button",
  31518. class: ["p-column-filter-menu-button p-link", {'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter()}],
  31519. "aria-haspopup": "true",
  31520. "aria-expanded": $data.overlayVisible,
  31521. onClick: _cache[1] || (_cache[1] = $event => ($options.toggleMenu())),
  31522. onKeydown: _cache[2] || (_cache[2] = $event => ($options.onToggleButtonKeyDown($event)))
  31523. }, [
  31524. _hoisted_2$5
  31525. ], 42, ["aria-expanded"]))
  31526. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31527. ($props.showClearButton && $props.display === 'row')
  31528. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  31529. key: 2,
  31530. class: [{'p-hidden-space': !$options.hasRowFilter()}, "p-column-filter-clear-button p-link"],
  31531. type: "button",
  31532. onClick: _cache[3] || (_cache[3] = $event => ($options.clearFilter()))
  31533. }, [
  31534. _hoisted_3$4
  31535. ], 2))
  31536. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31537. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, { to: "body" }, [
  31538. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  31539. name: "p-connected-overlay",
  31540. onEnter: $options.onOverlayEnter,
  31541. onLeave: $options.onOverlayLeave,
  31542. onAfterLeave: $options.onOverlayAfterLeave
  31543. }, {
  31544. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  31545. ($data.overlayVisible)
  31546. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31547. key: 0,
  31548. ref: $options.overlayRef,
  31549. class: $options.overlayClass,
  31550. onKeydown: _cache[12] || (_cache[12] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
  31551. onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
  31552. onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
  31553. }, [
  31554. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterHeaderTemplate), {
  31555. field: $props.field,
  31556. filterModel: $props.filters[$props.field],
  31557. filterCallback: $options.filterCallback
  31558. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31559. ($props.display === 'row')
  31560. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("ul", _hoisted_4$2, [
  31561. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.matchModes, (matchMode, i) => {
  31562. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("li", {
  31563. class: ["p-column-filter-row-item", {'p-highlight': $options.isRowMatchModeSelected(matchMode.value)}],
  31564. key: matchMode.label,
  31565. onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
  31566. onKeydown: [
  31567. _cache[4] || (_cache[4] = $event => ($options.onRowMatchModeKeyDown($event))),
  31568. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)($event => ($options.onRowMatchModeChange(matchMode.value)), ["prevent"]), ["enter"])
  31569. ],
  31570. tabindex: i === 0 ? '0' : null
  31571. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(matchMode.label), 43, ["onClick", "onKeydown", "tabindex"]))
  31572. }), 128)),
  31573. _hoisted_5$1,
  31574. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("li", {
  31575. class: "p-column-filter-row-item",
  31576. onClick: _cache[5] || (_cache[5] = $event => ($options.clearFilter())),
  31577. onKeydown: [
  31578. _cache[6] || (_cache[6] = $event => ($options.onRowMatchModeKeyDown($event))),
  31579. _cache[7] || (_cache[7] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => (_ctx.onRowClearItemClick()), ["enter"]))
  31580. ]
  31581. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.noFilterLabel), 33)
  31582. ]))
  31583. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, [
  31584. ($options.isShowOperator)
  31585. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_6$1, [
  31586. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFDropdown, {
  31587. options: $options.operatorOptions,
  31588. modelValue: $options.operator,
  31589. "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ($options.onOperatorChange($event))),
  31590. class: "p-column-filter-operator-dropdown",
  31591. optionLabel: "label",
  31592. optionValue: "value"
  31593. }, null, 8, ["options", "modelValue"])
  31594. ]))
  31595. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31596. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_7, [
  31597. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.fieldConstraints, (fieldConstraint, i) => {
  31598. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31599. key: i,
  31600. class: "p-column-filter-constraint"
  31601. }, [
  31602. ($options.isShowMatchModes)
  31603. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFDropdown, {
  31604. key: 0,
  31605. options: $options.matchModes,
  31606. modelValue: fieldConstraint.matchMode,
  31607. optionLabel: "label",
  31608. optionValue: "value",
  31609. "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i)),
  31610. class: "p-column-filter-matchmode-dropdown"
  31611. }, null, 8, ["options", "modelValue", "onUpdate:modelValue"]))
  31612. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31613. ($props.display === 'menu')
  31614. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31615. key: 1,
  31616. field: $props.field,
  31617. filterModel: fieldConstraint,
  31618. filterCallback: $options.filterCallback
  31619. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31620. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31621. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", null, [
  31622. ($options.showRemoveIcon)
  31623. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31624. key: 0,
  31625. type: "button",
  31626. icon: "pi pi-trash",
  31627. class: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
  31628. onClick: $event => ($options.removeConstraint(i)),
  31629. label: $options.removeRuleButtonLabel
  31630. }, null, 8, ["onClick", "label"]))
  31631. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31632. ])
  31633. ]))
  31634. }), 128))
  31635. ]),
  31636. ($options.isShowAddConstraint)
  31637. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_8, [
  31638. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFButton, {
  31639. type: "button",
  31640. label: $options.addRuleButtonLabel,
  31641. icon: "pi pi-plus",
  31642. class: "p-column-filter-add-button p-button-text p-button-sm",
  31643. onClick: _cache[9] || (_cache[9] = $event => ($options.addConstraint()))
  31644. }, null, 8, ["label"])
  31645. ]))
  31646. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31647. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_9, [
  31648. (!$props.filterClearTemplate && $props.showClearButton)
  31649. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31650. key: 0,
  31651. type: "button",
  31652. class: "p-button-outlined p-button-sm",
  31653. onClick: _cache[10] || (_cache[10] = $event => ($options.clearFilter())),
  31654. label: $options.clearButtonLabel
  31655. }, null, 8, ["label"]))
  31656. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterClearTemplate), {
  31657. key: 1,
  31658. field: $props.field,
  31659. filterModel: $props.filters[$props.field],
  31660. filterCallback: $options.clearFilter
  31661. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31662. ($props.showApplyButton)
  31663. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 2 }, [
  31664. (!$props.filterApplyTemplate)
  31665. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31666. key: 0,
  31667. type: "button",
  31668. class: "p-button-sm",
  31669. onClick: _cache[11] || (_cache[11] = $event => ($options.applyFilter())),
  31670. label: $options.applyButtonLabel
  31671. }, null, 8, ["label"]))
  31672. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterApplyTemplate), {
  31673. key: 1,
  31674. field: $props.field,
  31675. filterModel: $props.filters[$props.field],
  31676. filterCallback: $options.applyFilter
  31677. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31678. ], 64))
  31679. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31680. ])
  31681. ], 64)),
  31682. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterFooterTemplate), {
  31683. field: $props.field,
  31684. filterModel: $props.filters[$props.field],
  31685. filterCallback: $options.filterCallback
  31686. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31687. ], 34))
  31688. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31689. ]),
  31690. _: 1
  31691. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  31692. ]))
  31693. ], 2))
  31694. }
  31695. script$9.render = render$9;
  31696. var script$8 = {
  31697. name: 'HeaderCell',
  31698. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  31699. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  31700. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  31701. props: {
  31702. column: {
  31703. type: Object,
  31704. default: null
  31705. },
  31706. resizableColumns: {
  31707. type: Boolean,
  31708. default: false
  31709. },
  31710. groupRowsBy: {
  31711. type: [Array,String],
  31712. default: null
  31713. },
  31714. sortMode: {
  31715. type: String,
  31716. default: 'single'
  31717. },
  31718. groupRowSortField: {
  31719. type: [String, Function],
  31720. default: null
  31721. },
  31722. sortField: {
  31723. type: [String, Function],
  31724. default: null
  31725. },
  31726. sortOrder: {
  31727. type: Number,
  31728. default: null
  31729. },
  31730. multiSortMeta: {
  31731. type: Array,
  31732. default: null
  31733. },
  31734. allRowsSelected: {
  31735. type: Boolean,
  31736. default: false
  31737. },
  31738. empty: {
  31739. type: Boolean,
  31740. default: false
  31741. },
  31742. filterDisplay: {
  31743. type: String,
  31744. default: null
  31745. },
  31746. filters: {
  31747. type: Object,
  31748. default: null
  31749. },
  31750. filtersStore: {
  31751. type: Object,
  31752. default: null
  31753. },
  31754. filterColumn: {
  31755. type: Boolean,
  31756. default: false
  31757. }
  31758. },
  31759. data() {
  31760. return {
  31761. styleObject: {}
  31762. }
  31763. },
  31764. mounted() {
  31765. if (this.columnProp('frozen')) {
  31766. this.updateStickyPosition();
  31767. }
  31768. },
  31769. updated() {
  31770. if (this.columnProp('frozen')) {
  31771. this.updateStickyPosition();
  31772. }
  31773. },
  31774. methods: {
  31775. columnProp(prop) {
  31776. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  31777. },
  31778. onClick(event) {
  31779. this.$emit('column-click', {originalEvent: event, column: this.column});
  31780. },
  31781. onKeyDown(event) {
  31782. if (event.which === 13 && event.currentTarget.nodeName === 'TH' && primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
  31783. this.$emit('column-click', {originalEvent: event, column: this.column});
  31784. }
  31785. },
  31786. onMouseDown(event) {
  31787. this.$emit('column-mousedown', {originalEvent: event, column: this.column});
  31788. },
  31789. onDragStart(event) {
  31790. this.$emit('column-dragstart', event);
  31791. },
  31792. onDragOver(event) {
  31793. this.$emit('column-dragover', event);
  31794. },
  31795. onDragLeave(event) {
  31796. this.$emit('column-dragleave', event);
  31797. },
  31798. onDrop(event) {
  31799. this.$emit('column-drop', event);
  31800. },
  31801. onResizeStart(event) {
  31802. this.$emit('column-resizestart', event);
  31803. },
  31804. getMultiSortMetaIndex() {
  31805. return this.multiSortMeta.findIndex(meta => (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')));
  31806. },
  31807. getBadgeValue() {
  31808. let index = this.getMultiSortMetaIndex();
  31809. return (this.groupRowsBy && this.groupRowsBy === this.groupRowSortField) && index > -1 ? index : index + 1;
  31810. },
  31811. isMultiSorted() {
  31812. return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
  31813. },
  31814. isColumnSorted() {
  31815. return this.sortMode === 'single' ? (this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'))) : this.isMultiSorted();
  31816. },
  31817. updateStickyPosition() {
  31818. if (this.columnProp('frozen')) {
  31819. let align = this.columnProp('alignFrozen');
  31820. if (align === 'right') {
  31821. let right = 0;
  31822. let next = this.$el.nextElementSibling;
  31823. if (next) {
  31824. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  31825. }
  31826. this.styleObject.right = right + 'px';
  31827. }
  31828. else {
  31829. let left = 0;
  31830. let prev = this.$el.previousElementSibling;
  31831. if (prev) {
  31832. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  31833. }
  31834. this.styleObject.left = left + 'px';
  31835. }
  31836. let filterRow = this.$el.parentElement.nextElementSibling;
  31837. if (filterRow) {
  31838. let index = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.$el);
  31839. filterRow.children[index].style.left = this.styleObject.left;
  31840. filterRow.children[index].style.right = this.styleObject.right;
  31841. }
  31842. }
  31843. },
  31844. onHeaderCheckboxChange(event) {
  31845. this.$emit('checkbox-change', event);
  31846. }
  31847. },
  31848. computed: {
  31849. containerClass() {
  31850. return [this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'), this.columnProp('class'), {
  31851. 'p-sortable-column': this.columnProp('sortable'),
  31852. 'p-resizable-column': this.resizableColumns,
  31853. 'p-highlight': this.isColumnSorted(),
  31854. 'p-filter-column': this.filterColumn,
  31855. 'p-frozen-column': this.columnProp('frozen')
  31856. }];
  31857. },
  31858. containerStyle() {
  31859. let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle'): this.columnProp('headerStyle');
  31860. let columnStyle = this.columnProp('style');
  31861. return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
  31862. },
  31863. sortableColumnIcon() {
  31864. let sorted = false;
  31865. let sortOrder = null;
  31866. if (this.sortMode === 'single') {
  31867. sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
  31868. sortOrder = sorted ? this.sortOrder: 0;
  31869. }
  31870. else if (this.sortMode === 'multiple') {
  31871. let metaIndex = this.getMultiSortMetaIndex();
  31872. if (metaIndex > -1) {
  31873. sorted = true;
  31874. sortOrder = this.multiSortMeta[metaIndex].order;
  31875. }
  31876. }
  31877. return [
  31878. 'p-sortable-column-icon pi pi-fw', {
  31879. 'pi-sort-alt': !sorted,
  31880. 'pi-sort-amount-up-alt': sorted && sortOrder > 0,
  31881. 'pi-sort-amount-down': sorted && sortOrder < 0
  31882. }
  31883. ];
  31884. },
  31885. ariaSort() {
  31886. if (this.columnProp('sortable')) {
  31887. const sortIcon = this.sortableColumnIcon;
  31888. if (sortIcon[1]['pi-sort-amount-down'])
  31889. return 'descending';
  31890. else if (sortIcon[1]['pi-sort-amount-up-alt'])
  31891. return 'ascending';
  31892. else
  31893. return 'none';
  31894. }
  31895. else {
  31896. return null;
  31897. }
  31898. }
  31899. },
  31900. components: {
  31901. 'DTHeaderCheckbox': script$a,
  31902. 'DTColumnFilter': script$9
  31903. }
  31904. };
  31905. const _hoisted_1$6 = { class: "p-column-header-content" };
  31906. const _hoisted_2$4 = {
  31907. key: 1,
  31908. class: "p-column-title"
  31909. };
  31910. const _hoisted_3$3 = {
  31911. key: 3,
  31912. class: "p-sortable-column-badge"
  31913. };
  31914. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  31915. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  31916. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  31917. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  31918. style: $options.containerStyle,
  31919. class: $options.containerClass,
  31920. tabindex: $options.columnProp('sortable') ? '0' : null,
  31921. role: "cell",
  31922. onClick: _cache[9] || (_cache[9] = (...args) => ($options.onClick && $options.onClick(...args))),
  31923. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  31924. onMousedown: _cache[11] || (_cache[11] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
  31925. onDragstart: _cache[12] || (_cache[12] = (...args) => ($options.onDragStart && $options.onDragStart(...args))),
  31926. onDragover: _cache[13] || (_cache[13] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
  31927. onDragleave: _cache[14] || (_cache[14] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
  31928. onDrop: _cache[15] || (_cache[15] = (...args) => ($options.onDrop && $options.onDrop(...args))),
  31929. colspan: $options.columnProp('colspan'),
  31930. rowspan: $options.columnProp('rowspan'),
  31931. "aria-sort": $options.ariaSort
  31932. }, [
  31933. ($props.resizableColumns && !$options.columnProp('frozen'))
  31934. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  31935. key: 0,
  31936. class: "p-column-resizer",
  31937. onMousedown: _cache[1] || (_cache[1] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
  31938. }, null, 32))
  31939. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31940. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_1$6, [
  31941. ($props.column.children && $props.column.children.header)
  31942. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.header), {
  31943. key: 0,
  31944. column: $props.column
  31945. }, null, 8, ["column"]))
  31946. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31947. ($options.columnProp('header'))
  31948. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_2$4, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  31949. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31950. ($options.columnProp('sortable'))
  31951. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  31952. key: 2,
  31953. class: $options.sortableColumnIcon
  31954. }, null, 2))
  31955. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31956. ($options.isMultiSorted())
  31957. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_3$3, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getBadgeValue()), 1))
  31958. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31959. ($options.columnProp('selectionMode') ==='multiple' && $props.filterDisplay !== 'row')
  31960. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  31961. key: 4,
  31962. checked: $props.allRowsSelected,
  31963. onChange: $options.onHeaderCheckboxChange,
  31964. disabled: $props.empty
  31965. }, null, 8, ["checked", "onChange", "disabled"]))
  31966. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31967. ($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
  31968. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  31969. key: 5,
  31970. field: $options.columnProp('filterField')||$options.columnProp('field'),
  31971. type: $options.columnProp('dataType'),
  31972. display: "menu",
  31973. showMenu: $options.columnProp('showFilterMenu'),
  31974. filterElement: $props.column.children && $props.column.children.filter,
  31975. filterHeaderTemplate: $props.column.children && $props.column.children.filterheader,
  31976. filterFooterTemplate: $props.column.children && $props.column.children.filterfooter,
  31977. filterClearTemplate: $props.column.children && $props.column.children.filterclear,
  31978. filterApplyTemplate: $props.column.children && $props.column.children.filterapply,
  31979. filters: $props.filters,
  31980. filtersStore: $props.filtersStore,
  31981. onFilterChange: _cache[2] || (_cache[2] = $event => (_ctx.$emit('filter-change', $event))),
  31982. onFilterApply: _cache[3] || (_cache[3] = $event => (_ctx.$emit('filter-apply'))),
  31983. filterMenuStyle: $options.columnProp('filterMenuStyle'),
  31984. filterMenuClass: $options.columnProp('filterMenuClass'),
  31985. showOperator: $options.columnProp('showFilterOperator'),
  31986. showClearButton: $options.columnProp('showClearButton'),
  31987. showApplyButton: $options.columnProp('showApplyButton'),
  31988. showMatchModes: $options.columnProp('showFilterMatchModes'),
  31989. showAddButton: $options.columnProp('showAddButton'),
  31990. matchModeOptions: $options.columnProp('filterMatchModeOptions'),
  31991. maxConstraints: $options.columnProp('maxConstraints'),
  31992. onOperatorChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('operator-change',$event))),
  31993. onMatchmodeChange: _cache[5] || (_cache[5] = $event => (_ctx.$emit('matchmode-change', $event))),
  31994. onConstraintAdd: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-add', $event))),
  31995. onConstraintRemove: _cache[7] || (_cache[7] = $event => (_ctx.$emit('constraint-remove', $event))),
  31996. onApplyClick: _cache[8] || (_cache[8] = $event => (_ctx.$emit('apply-click',$event)))
  31997. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  31998. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31999. ])
  32000. ], 46, ["tabindex", "colspan", "rowspan", "aria-sort"]))
  32001. }
  32002. script$8.render = render$8;
  32003. var script$7 = {
  32004. name: 'TableHeader',
  32005. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  32006. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  32007. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  32008. props: {
  32009. columnGroup: {
  32010. type: null,
  32011. default: null
  32012. },
  32013. columns: {
  32014. type: null,
  32015. default: null
  32016. },
  32017. rowGroupMode: {
  32018. type: String,
  32019. default: null
  32020. },
  32021. groupRowsBy: {
  32022. type: [Array,String],
  32023. default: null
  32024. },
  32025. resizableColumns: {
  32026. type: Boolean,
  32027. default: false
  32028. },
  32029. allRowsSelected: {
  32030. type: Boolean,
  32031. default: false
  32032. },
  32033. empty: {
  32034. type: Boolean,
  32035. default: false
  32036. },
  32037. sortMode: {
  32038. type: String,
  32039. default: 'single'
  32040. },
  32041. groupRowSortField: {
  32042. type: [String, Function],
  32043. default: null
  32044. },
  32045. sortField: {
  32046. type: [String, Function],
  32047. default: null
  32048. },
  32049. sortOrder: {
  32050. type: Number,
  32051. default: null
  32052. },
  32053. multiSortMeta: {
  32054. type: Array,
  32055. default: null
  32056. },
  32057. filterDisplay: {
  32058. type: String,
  32059. default: null
  32060. },
  32061. filters: {
  32062. type: Object,
  32063. default: null
  32064. },
  32065. filtersStore: {
  32066. type: Object,
  32067. default: null
  32068. }
  32069. },
  32070. methods: {
  32071. columnProp(col, prop) {
  32072. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  32073. },
  32074. getFilterColumnHeaderClass(column) {
  32075. return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
  32076. 'p-frozen-column': this.columnProp(column, 'frozen')
  32077. }];
  32078. },
  32079. getFilterColumnHeaderStyle(column) {
  32080. return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
  32081. },
  32082. getHeaderRows() {
  32083. let rows = [];
  32084. let columnGroup = this.columnGroup;
  32085. if (columnGroup.children && columnGroup.children.default) {
  32086. for (let child of columnGroup.children.default()) {
  32087. if (child.type.name === 'Row') {
  32088. rows.push(child);
  32089. }
  32090. else if (child.children && child.children instanceof Array) {
  32091. rows = child.children;
  32092. }
  32093. }
  32094. return rows;
  32095. }
  32096. },
  32097. getHeaderColumns(row){
  32098. let cols = [];
  32099. if (row.children && row.children.default) {
  32100. row.children.default().forEach(child => {
  32101. if (child.children && child.children instanceof Array)
  32102. cols = [...cols, ...child.children];
  32103. else if (child.type.name === 'Column')
  32104. cols.push(child);
  32105. });
  32106. return cols;
  32107. }
  32108. }
  32109. },
  32110. components: {
  32111. 'DTHeaderCell': script$8,
  32112. 'DTHeaderCheckbox': script$a,
  32113. 'DTColumnFilter': script$9
  32114. }
  32115. };
  32116. const _hoisted_1$5 = {
  32117. class: "p-datatable-thead",
  32118. role: "rowgroup"
  32119. };
  32120. const _hoisted_2$3 = { role: "row" };
  32121. const _hoisted_3$2 = {
  32122. key: 0,
  32123. role: "row"
  32124. };
  32125. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  32126. const _component_DTHeaderCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCell");
  32127. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  32128. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  32129. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("thead", _hoisted_1$5, [
  32130. (!$props.columnGroup)
  32131. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  32132. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tr", _hoisted_2$3, [
  32133. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32134. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32135. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32136. }, [
  32137. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32138. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32139. key: 0,
  32140. column: col,
  32141. onColumnClick: _cache[1] || (_cache[1] = $event => (_ctx.$emit('column-click', $event))),
  32142. onColumnMousedown: _cache[2] || (_cache[2] = $event => (_ctx.$emit('column-mousedown', $event))),
  32143. onColumnDragstart: _cache[3] || (_cache[3] = $event => (_ctx.$emit('column-dragstart', $event))),
  32144. onColumnDragover: _cache[4] || (_cache[4] = $event => (_ctx.$emit('column-dragover', $event))),
  32145. onColumnDragleave: _cache[5] || (_cache[5] = $event => (_ctx.$emit('column-dragleave', $event))),
  32146. onColumnDrop: _cache[6] || (_cache[6] = $event => (_ctx.$emit('column-drop', $event))),
  32147. groupRowsBy: $props.groupRowsBy,
  32148. groupRowSortField: $props.groupRowSortField,
  32149. resizableColumns: $props.resizableColumns,
  32150. onColumnResizestart: _cache[7] || (_cache[7] = $event => (_ctx.$emit('column-resizestart', $event))),
  32151. sortMode: $props.sortMode,
  32152. sortField: $props.sortField,
  32153. sortOrder: $props.sortOrder,
  32154. multiSortMeta: $props.multiSortMeta,
  32155. allRowsSelected: $props.allRowsSelected,
  32156. empty: $props.empty,
  32157. onCheckboxChange: _cache[8] || (_cache[8] = $event => (_ctx.$emit('checkbox-change', $event))),
  32158. filters: $props.filters,
  32159. filterDisplay: $props.filterDisplay,
  32160. filtersStore: $props.filtersStore,
  32161. onFilterChange: _cache[9] || (_cache[9] = $event => (_ctx.$emit('filter-change', $event))),
  32162. onFilterApply: _cache[10] || (_cache[10] = $event => (_ctx.$emit('filter-apply'))),
  32163. onOperatorChange: _cache[11] || (_cache[11] = $event => (_ctx.$emit('operator-change',$event))),
  32164. onMatchmodeChange: _cache[12] || (_cache[12] = $event => (_ctx.$emit('matchmode-change', $event))),
  32165. onConstraintAdd: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-add', $event))),
  32166. onConstraintRemove: _cache[14] || (_cache[14] = $event => (_ctx.$emit('constraint-remove', $event))),
  32167. onApplyClick: _cache[15] || (_cache[15] = $event => (_ctx.$emit('apply-click',$event)))
  32168. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32169. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32170. ], 64))
  32171. }), 128))
  32172. ]),
  32173. ($props.filterDisplay === 'row')
  32174. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_3$2, [
  32175. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32176. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32177. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32178. }, [
  32179. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32180. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  32181. key: 0,
  32182. style: $options.getFilterColumnHeaderStyle(col),
  32183. class: $options.getFilterColumnHeaderClass(col)
  32184. }, [
  32185. ($options.columnProp(col, 'selectionMode') ==='multiple')
  32186. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  32187. key: 0,
  32188. checked: $props.allRowsSelected,
  32189. onChange: _cache[16] || (_cache[16] = $event => (_ctx.$emit('checkbox-change', $event))),
  32190. disabled: $props.empty
  32191. }, null, 8, ["checked", "disabled"]))
  32192. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32193. (col.children && col.children.filter)
  32194. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  32195. key: 1,
  32196. field: $options.columnProp(col,'filterField')||$options.columnProp(col,'field'),
  32197. type: $options.columnProp(col,'dataType'),
  32198. display: "row",
  32199. showMenu: $options.columnProp(col,'showFilterMenu'),
  32200. filterElement: col.children && col.children.filter,
  32201. filterHeaderTemplate: col.children && col.children.filterheader,
  32202. filterFooterTemplate: col.children && col.children.filterfooter,
  32203. filterClearTemplate: col.children && col.children.filterclear,
  32204. filterApplyTemplate: col.children && col.children.filterapply,
  32205. filters: $props.filters,
  32206. filtersStore: $props.filtersStore,
  32207. onFilterChange: _cache[17] || (_cache[17] = $event => (_ctx.$emit('filter-change', $event))),
  32208. onFilterApply: _cache[18] || (_cache[18] = $event => (_ctx.$emit('filter-apply'))),
  32209. filterMenuStyle: $options.columnProp(col,'filterMenuStyle'),
  32210. filterMenuClass: $options.columnProp(col,'filterMenuClass'),
  32211. showOperator: $options.columnProp(col,'showFilterOperator'),
  32212. showClearButton: $options.columnProp(col,'showClearButton'),
  32213. showApplyButton: $options.columnProp(col,'showApplyButton'),
  32214. showMatchModes: $options.columnProp(col,'showFilterMatchModes'),
  32215. showAddButton: $options.columnProp(col,'showAddButton'),
  32216. matchModeOptions: $options.columnProp(col,'filterMatchModeOptions'),
  32217. maxConstraints: $options.columnProp(col,'maxConstraints'),
  32218. onOperatorChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('operator-change',$event))),
  32219. onMatchmodeChange: _cache[20] || (_cache[20] = $event => (_ctx.$emit('matchmode-change', $event))),
  32220. onConstraintAdd: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-add', $event))),
  32221. onConstraintRemove: _cache[22] || (_cache[22] = $event => (_ctx.$emit('constraint-remove', $event))),
  32222. onApplyClick: _cache[23] || (_cache[23] = $event => (_ctx.$emit('apply-click',$event)))
  32223. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  32224. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32225. ], 6))
  32226. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32227. ], 64))
  32228. }), 128))
  32229. ]))
  32230. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32231. ], 64))
  32232. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderRows(), (row, i) => {
  32233. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  32234. key: i,
  32235. role: "row"
  32236. }, [
  32237. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderColumns(row), (col, j) => {
  32238. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32239. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
  32240. }, [
  32241. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))) && (typeof col.children !== 'string'))
  32242. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32243. key: 0,
  32244. column: col,
  32245. onColumnClick: _cache[24] || (_cache[24] = $event => (_ctx.$emit('column-click', $event))),
  32246. onColumnMousedown: _cache[25] || (_cache[25] = $event => (_ctx.$emit('column-mousedown', $event))),
  32247. groupRowsBy: $props.groupRowsBy,
  32248. groupRowSortField: $props.groupRowSortField,
  32249. sortMode: $props.sortMode,
  32250. sortField: $props.sortField,
  32251. sortOrder: $props.sortOrder,
  32252. multiSortMeta: $props.multiSortMeta,
  32253. allRowsSelected: $props.allRowsSelected,
  32254. empty: $props.empty,
  32255. onCheckboxChange: _cache[26] || (_cache[26] = $event => (_ctx.$emit('checkbox-change', $event))),
  32256. filters: $props.filters,
  32257. filterDisplay: $props.filterDisplay,
  32258. filtersStore: $props.filtersStore,
  32259. onFilterChange: _cache[27] || (_cache[27] = $event => (_ctx.$emit('filter-change', $event))),
  32260. onFilterApply: _cache[28] || (_cache[28] = $event => (_ctx.$emit('filter-apply'))),
  32261. onOperatorChange: _cache[29] || (_cache[29] = $event => (_ctx.$emit('operator-change',$event))),
  32262. onMatchmodeChange: _cache[30] || (_cache[30] = $event => (_ctx.$emit('matchmode-change', $event))),
  32263. onConstraintAdd: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-add', $event))),
  32264. onConstraintRemove: _cache[32] || (_cache[32] = $event => (_ctx.$emit('constraint-remove', $event))),
  32265. onApplyClick: _cache[33] || (_cache[33] = $event => (_ctx.$emit('apply-click',$event)))
  32266. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32267. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32268. ], 64))
  32269. }), 128))
  32270. ]))
  32271. }), 128))
  32272. ]))
  32273. }
  32274. script$7.render = render$7;
  32275. var script$6 = {
  32276. name: 'RowRadioButton',
  32277. inheritAttrs: false,
  32278. emits: ['change'],
  32279. props: {
  32280. value: null,
  32281. checked: null
  32282. },
  32283. data() {
  32284. return {
  32285. focused: false
  32286. };
  32287. },
  32288. methods: {
  32289. onClick(event) {
  32290. if (!this.disabled) {
  32291. if (!this.checked) {
  32292. this.$emit('change', {
  32293. originalEvent: event,
  32294. data: this.value
  32295. });
  32296. }
  32297. }
  32298. },
  32299. onFocus() {
  32300. this.focused = true;
  32301. },
  32302. onBlur() {
  32303. this.focused = false;
  32304. }
  32305. }
  32306. };
  32307. const _hoisted_1$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", { class: "p-radiobutton-icon" }, null, -1);
  32308. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  32309. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  32310. class: ['p-radiobutton p-component', {'p-radiobutton-focused': $data.focused}],
  32311. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
  32312. tabindex: "0",
  32313. onFocus: _cache[2] || (_cache[2] = $event => ($options.onFocus($event))),
  32314. onBlur: _cache[3] || (_cache[3] = $event => ($options.onBlur($event))),
  32315. onKeydown: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  32316. }, [
  32317. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  32318. ref: "box",
  32319. class: ['p-radiobutton-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  32320. role: "radio",
  32321. "aria-checked": $props.checked
  32322. }, [
  32323. _hoisted_1$4
  32324. ], 10, ["aria-checked"])
  32325. ], 34))
  32326. }
  32327. script$6.render = render$6;
  32328. var script$5 = {
  32329. name: 'RowCheckbox',
  32330. inheritAttrs: false,
  32331. emits: ['change'],
  32332. props: {
  32333. value: null,
  32334. checked: null
  32335. },
  32336. data() {
  32337. return {
  32338. focused: false
  32339. };
  32340. },
  32341. methods: {
  32342. onClick(event) {
  32343. if (!this.$attrs.disabled) {
  32344. this.focused = true;
  32345. this.$emit('change', {
  32346. originalEvent: event,
  32347. data: this.value
  32348. });
  32349. }
  32350. },
  32351. onFocus() {
  32352. this.focused = true;
  32353. },
  32354. onBlur() {
  32355. this.focused = false;
  32356. }
  32357. }
  32358. };
  32359. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  32360. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  32361. class: ['p-checkbox p-component', {'p-checkbox-focused': $data.focused}],
  32362. onClick: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["stop","prevent"]))
  32363. }, [
  32364. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  32365. ref: "box",
  32366. class: ['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  32367. role: "checkbox",
  32368. "aria-checked": $props.checked,
  32369. tabindex: _ctx.$attrs.disabled ? null : '0',
  32370. onKeydown: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"])),
  32371. onFocus: _cache[2] || (_cache[2] = $event => ($options.onFocus($event))),
  32372. onBlur: _cache[3] || (_cache[3] = $event => ($options.onBlur($event)))
  32373. }, [
  32374. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  32375. class: ['p-checkbox-icon', {'pi pi-check': $props.checked}]
  32376. }, null, 2)
  32377. ], 42, ["aria-checked", "tabindex"])
  32378. ], 2))
  32379. }
  32380. script$5.render = render$5;
  32381. var script$4 = {
  32382. name: 'BodyCell',
  32383. emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
  32384. 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
  32385. props: {
  32386. rowData: {
  32387. type: Object,
  32388. default: null
  32389. },
  32390. column: {
  32391. type: Object,
  32392. default: null
  32393. },
  32394. frozenRow: {
  32395. type: Boolean,
  32396. default: false
  32397. },
  32398. rowIndex: {
  32399. type: Number,
  32400. default: null
  32401. },
  32402. index: {
  32403. type: Number,
  32404. default: null
  32405. },
  32406. rowTogglerIcon: {
  32407. type: Array,
  32408. default: null
  32409. },
  32410. selected: {
  32411. type: Boolean,
  32412. default: false
  32413. },
  32414. editing: {
  32415. type: Boolean,
  32416. default: false
  32417. },
  32418. editingMeta: {
  32419. type: Object,
  32420. default: null
  32421. },
  32422. editMode: {
  32423. type: String,
  32424. default: null
  32425. },
  32426. responsiveLayout: {
  32427. type: String,
  32428. default: 'stack'
  32429. },
  32430. virtualScrollerContentProps: {
  32431. type: Object,
  32432. default: null
  32433. }
  32434. },
  32435. documentEditListener: null,
  32436. selfClick: false,
  32437. overlayEventListener: null,
  32438. data() {
  32439. return {
  32440. d_editing: this.editing,
  32441. styleObject: {}
  32442. }
  32443. },
  32444. watch: {
  32445. editing(newValue) {
  32446. this.d_editing = newValue;
  32447. },
  32448. '$data.d_editing': function(newValue) {
  32449. this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
  32450. }
  32451. },
  32452. mounted() {
  32453. if (this.columnProp('frozen')) {
  32454. this.updateStickyPosition();
  32455. }
  32456. },
  32457. updated() {
  32458. if (this.columnProp('frozen')) {
  32459. this.updateStickyPosition();
  32460. }
  32461. if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
  32462. const focusableEl = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFirstFocusableElement(this.$el);
  32463. focusableEl && focusableEl.focus();
  32464. }
  32465. },
  32466. beforeUnmount() {
  32467. if (this.overlayEventListener) {
  32468. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32469. this.overlayEventListener = null;
  32470. }
  32471. },
  32472. methods: {
  32473. columnProp(prop) {
  32474. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  32475. },
  32476. resolveFieldData() {
  32477. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.rowData, this.field);
  32478. },
  32479. toggleRow(event) {
  32480. this.$emit('row-toggle', {
  32481. originalEvent: event,
  32482. data: this.rowData
  32483. });
  32484. },
  32485. toggleRowWithRadio(event, index) {
  32486. this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data});
  32487. },
  32488. toggleRowWithCheckbox(event, index) {
  32489. this.$emit('checkbox-change', { originalEvent: event.originalEvent, index: index, data: event.data });
  32490. },
  32491. isEditable() {
  32492. return this.column.children && this.column.children.editor != null;
  32493. },
  32494. bindDocumentEditListener() {
  32495. if (!this.documentEditListener) {
  32496. this.documentEditListener = (event) => {
  32497. if (!this.selfClick) {
  32498. this.completeEdit(event, 'outside');
  32499. }
  32500. this.selfClick = false;
  32501. };
  32502. document.addEventListener('click', this.documentEditListener);
  32503. }
  32504. },
  32505. unbindDocumentEditListener() {
  32506. if (this.documentEditListener) {
  32507. document.removeEventListener('click', this.documentEditListener);
  32508. this.documentEditListener = null;
  32509. this.selfClick = false;
  32510. }
  32511. },
  32512. switchCellToViewMode() {
  32513. this.d_editing = false;
  32514. this.unbindDocumentEditListener();
  32515. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32516. this.overlayEventListener = null;
  32517. },
  32518. onClick(event) {
  32519. if (this.editMode === 'cell' && this.isEditable()) {
  32520. this.selfClick = true;
  32521. if (!this.d_editing) {
  32522. this.d_editing = true;
  32523. this.bindDocumentEditListener();
  32524. this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32525. this.overlayEventListener = (e) => {
  32526. if (this.$el && this.$el.contains(e.target)) {
  32527. this.selfClick = true;
  32528. }
  32529. };
  32530. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  32531. }
  32532. }
  32533. },
  32534. completeEdit(event, type) {
  32535. const completeEvent = {
  32536. originalEvent: event,
  32537. data: this.rowData,
  32538. newData: this.editingRowData,
  32539. value: this.rowData[this.field],
  32540. newValue: this.editingRowData[this.field],
  32541. field: this.field,
  32542. index: this.rowIndex,
  32543. type: type,
  32544. defaultPrevented: false,
  32545. preventDefault: function() {
  32546. this.defaultPrevented = true;
  32547. }
  32548. };
  32549. this.$emit('cell-edit-complete', completeEvent);
  32550. if (!completeEvent.defaultPrevented) {
  32551. this.switchCellToViewMode();
  32552. }
  32553. },
  32554. onKeyDown(event) {
  32555. if (this.editMode === 'cell') {
  32556. switch (event.which) {
  32557. case 13:
  32558. this.completeEdit(event, 'enter');
  32559. break;
  32560. case 27:
  32561. this.switchCellToViewMode();
  32562. this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32563. break;
  32564. case 9:
  32565. this.completeEdit(event, 'tab');
  32566. if (event.shiftKey)
  32567. this.moveToPreviousCell(event);
  32568. else
  32569. this.moveToNextCell(event);
  32570. break;
  32571. }
  32572. }
  32573. },
  32574. moveToPreviousCell(event) {
  32575. let currentCell = this.findCell(event.target);
  32576. let targetCell = this.findPreviousEditableColumn(currentCell);
  32577. if (targetCell) {
  32578. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32579. event.preventDefault();
  32580. }
  32581. },
  32582. moveToNextCell(event) {
  32583. let currentCell = this.findCell(event.target);
  32584. let targetCell = this.findNextEditableColumn(currentCell);
  32585. if (targetCell) {
  32586. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32587. event.preventDefault();
  32588. }
  32589. },
  32590. findCell(element) {
  32591. if (element) {
  32592. let cell = element;
  32593. while (cell && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(cell, 'p-cell-editing')) {
  32594. cell = cell.parentElement;
  32595. }
  32596. return cell;
  32597. }
  32598. else {
  32599. return null;
  32600. }
  32601. },
  32602. findPreviousEditableColumn(cell) {
  32603. let prevCell = cell.previousElementSibling;
  32604. if (!prevCell) {
  32605. let previousRow = cell.parentElement.previousElementSibling;
  32606. if (previousRow) {
  32607. prevCell = previousRow.lastElementChild;
  32608. }
  32609. }
  32610. if (prevCell) {
  32611. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevCell, 'p-editable-column'))
  32612. return prevCell;
  32613. else
  32614. return this.findPreviousEditableColumn(prevCell);
  32615. }
  32616. else {
  32617. return null;
  32618. }
  32619. },
  32620. findNextEditableColumn(cell) {
  32621. let nextCell = cell.nextElementSibling;
  32622. if (!nextCell) {
  32623. let nextRow = cell.parentElement.nextElementSibling;
  32624. if (nextRow) {
  32625. nextCell = nextRow.firstElementChild;
  32626. }
  32627. }
  32628. if (nextCell) {
  32629. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextCell, 'p-editable-column'))
  32630. return nextCell;
  32631. else
  32632. return this.findNextEditableColumn(nextCell);
  32633. }
  32634. else {
  32635. return null;
  32636. }
  32637. },
  32638. isEditingCellValid() {
  32639. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-invalid').length === 0);
  32640. },
  32641. onRowEditInit(event) {
  32642. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32643. },
  32644. onRowEditSave(event) {
  32645. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32646. },
  32647. onRowEditCancel(event) {
  32648. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32649. },
  32650. editorInitCallback(event) {
  32651. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32652. },
  32653. editorSaveCallback(event) {
  32654. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32655. },
  32656. editorCancelCallback(event) {
  32657. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32658. },
  32659. updateStickyPosition() {
  32660. if (this.columnProp('frozen')) {
  32661. let align = this.columnProp('alignFrozen');
  32662. if (align === 'right') {
  32663. let right = 0;
  32664. let next = this.$el.nextElementSibling;
  32665. if (next) {
  32666. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  32667. }
  32668. this.styleObject.right = right + 'px';
  32669. }
  32670. else {
  32671. let left = 0;
  32672. let prev = this.$el.previousElementSibling;
  32673. if (prev) {
  32674. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  32675. }
  32676. this.styleObject.left = left + 'px';
  32677. }
  32678. }
  32679. },
  32680. getVirtualScrollerProp(option) {
  32681. return this.virtualScrollerContentProps ? this.virtualScrollerContentProps[option] : null;
  32682. }
  32683. },
  32684. computed: {
  32685. editingRowData() {
  32686. return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
  32687. },
  32688. field() {
  32689. return this.columnProp('field');
  32690. },
  32691. containerClass() {
  32692. return [this.columnProp('bodyClass'), this.columnProp('class'), {
  32693. 'p-selection-column': this.columnProp('selectionMode') != null,
  32694. 'p-editable-column': this.isEditable(),
  32695. 'p-cell-editing': this.d_editing,
  32696. 'p-frozen-column': this.columnProp('frozen')
  32697. }];
  32698. },
  32699. containerStyle() {
  32700. let bodyStyle = this.columnProp('bodyStyle');
  32701. let columnStyle = this.columnProp('style');
  32702. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  32703. },
  32704. loading() {
  32705. return this.getVirtualScrollerProp('loading');
  32706. },
  32707. loadingOptions() {
  32708. const getLoaderOptions = this.getVirtualScrollerProp('getLoaderOptions');
  32709. return getLoaderOptions && getLoaderOptions(this.rowIndex, {
  32710. cellIndex: this.index,
  32711. cellFirst: this.index === 0,
  32712. cellLast: this.index === (this.getVirtualScrollerProp('columns').length - 1),
  32713. cellEven: this.index % 2 === 0,
  32714. cellOdd: this.index % 2 !== 0,
  32715. column: this.column,
  32716. field: this.field
  32717. });
  32718. }
  32719. },
  32720. components: {
  32721. 'DTRadioButton': script$6,
  32722. 'DTCheckbox': script$5
  32723. },
  32724. directives: {
  32725. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_8__["default"]
  32726. }
  32727. };
  32728. const _hoisted_1$3 = {
  32729. key: 0,
  32730. class: "p-column-title"
  32731. };
  32732. const _hoisted_2$2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-init-icon pi pi-fw pi-pencil" }, null, -1);
  32733. const _hoisted_3$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-save-icon pi pi-fw pi-check" }, null, -1);
  32734. const _hoisted_4$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-cancel-icon pi pi-fw pi-times" }, null, -1);
  32735. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  32736. const _component_DTRadioButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTRadioButton");
  32737. const _component_DTCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTCheckbox");
  32738. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  32739. return ($options.loading)
  32740. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  32741. key: 0,
  32742. style: $options.containerStyle,
  32743. class: $options.containerClass
  32744. }, [
  32745. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.loading), {
  32746. data: $props.rowData,
  32747. column: $props.column,
  32748. field: $options.field,
  32749. index: $props.rowIndex,
  32750. frozenRow: $props.frozenRow,
  32751. loadingOptions: $options.loadingOptions
  32752. }, null, 8, ["data", "column", "field", "index", "frozenRow", "loadingOptions"]))
  32753. ], 6))
  32754. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  32755. key: 1,
  32756. style: $options.containerStyle,
  32757. class: $options.containerClass,
  32758. onClick: _cache[7] || (_cache[7] = (...args) => ($options.onClick && $options.onClick(...args))),
  32759. onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  32760. role: "cell"
  32761. }, [
  32762. ($props.responsiveLayout === 'stack')
  32763. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_1$3, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  32764. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32765. ($props.column.children && $props.column.children.body && !$data.d_editing)
  32766. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  32767. key: 1,
  32768. data: $props.rowData,
  32769. column: $props.column,
  32770. field: $options.field,
  32771. index: $props.rowIndex,
  32772. frozenRow: $props.frozenRow,
  32773. editorInitCallback: $options.editorInitCallback
  32774. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorInitCallback"]))
  32775. : ($props.column.children && $props.column.children.editor && $data.d_editing)
  32776. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.editor), {
  32777. key: 2,
  32778. data: $options.editingRowData,
  32779. column: $props.column,
  32780. field: $options.field,
  32781. index: $props.rowIndex,
  32782. frozenRow: $props.frozenRow,
  32783. editorSaveCallback: $options.editorSaveCallback,
  32784. editorCancelCallback: $options.editorCancelCallback
  32785. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorSaveCallback", "editorCancelCallback"]))
  32786. : ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
  32787. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  32788. key: 3,
  32789. data: $options.editingRowData,
  32790. column: $props.column,
  32791. field: $options.field,
  32792. index: $props.rowIndex,
  32793. frozenRow: $props.frozenRow
  32794. }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
  32795. : ($options.columnProp('selectionMode'))
  32796. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 4 }, [
  32797. ($options.columnProp('selectionMode') === 'single')
  32798. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTRadioButton, {
  32799. key: 0,
  32800. value: $props.rowData,
  32801. checked: $props.selected,
  32802. onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
  32803. }, null, 8, ["value", "checked"]))
  32804. : ($options.columnProp('selectionMode') ==='multiple')
  32805. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTCheckbox, {
  32806. key: 1,
  32807. value: $props.rowData,
  32808. checked: $props.selected,
  32809. onChange: _cache[2] || (_cache[2] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex)))
  32810. }, null, 8, ["value", "checked"]))
  32811. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32812. ], 64))
  32813. : ($options.columnProp('rowReorder'))
  32814. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("i", {
  32815. key: 5,
  32816. class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
  32817. }, null, 2))
  32818. : ($options.columnProp('expander'))
  32819. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  32820. key: 6,
  32821. class: "p-row-toggler p-link",
  32822. onClick: _cache[3] || (_cache[3] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
  32823. type: "button"
  32824. }, [
  32825. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: $props.rowTogglerIcon }, null, 2)
  32826. ], 512)), [
  32827. [_directive_ripple]
  32828. ])
  32829. : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
  32830. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 7 }, [
  32831. (!$data.d_editing)
  32832. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  32833. key: 0,
  32834. class: "p-row-editor-init p-link",
  32835. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
  32836. type: "button"
  32837. }, [
  32838. _hoisted_2$2
  32839. ], 512)), [
  32840. [_directive_ripple]
  32841. ])
  32842. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32843. ($data.d_editing)
  32844. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  32845. key: 1,
  32846. class: "p-row-editor-save p-link",
  32847. onClick: _cache[5] || (_cache[5] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
  32848. type: "button"
  32849. }, [
  32850. _hoisted_3$1
  32851. ], 512)), [
  32852. [_directive_ripple]
  32853. ])
  32854. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32855. ($data.d_editing)
  32856. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  32857. key: 2,
  32858. class: "p-row-editor-cancel p-link",
  32859. onClick: _cache[6] || (_cache[6] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
  32860. type: "button"
  32861. }, [
  32862. _hoisted_4$1
  32863. ], 512)), [
  32864. [_directive_ripple]
  32865. ])
  32866. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32867. ], 64))
  32868. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 8 }, [
  32869. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.resolveFieldData()), 1)
  32870. ], 64))
  32871. ], 38))
  32872. }
  32873. script$4.render = render$4;
  32874. var script$3 = {
  32875. name: 'TableBody',
  32876. emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
  32877. 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
  32878. 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
  32879. 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
  32880. props: {
  32881. value: {
  32882. type: Array,
  32883. default: null
  32884. },
  32885. columns: {
  32886. type: null,
  32887. default: null
  32888. },
  32889. frozenRow: {
  32890. type: Boolean,
  32891. default: false
  32892. },
  32893. empty: {
  32894. type: Boolean,
  32895. default: false
  32896. },
  32897. rowGroupMode: {
  32898. type: String,
  32899. default: null
  32900. },
  32901. groupRowsBy: {
  32902. type: [Array,String],
  32903. default: null
  32904. },
  32905. expandableRowGroups: {
  32906. type: Boolean,
  32907. default: false
  32908. },
  32909. expandedRowGroups: {
  32910. type: Array,
  32911. default: null
  32912. },
  32913. dataKey: {
  32914. type: String,
  32915. default: null
  32916. },
  32917. expandedRowIcon: {
  32918. type: String,
  32919. default: null
  32920. },
  32921. collapsedRowIcon: {
  32922. type: String,
  32923. default: null
  32924. },
  32925. expandedRows: {
  32926. type: Array,
  32927. default: null
  32928. },
  32929. expandedRowKeys: {
  32930. type: null,
  32931. default: null
  32932. },
  32933. selection: {
  32934. type: [Array,Object],
  32935. default: null
  32936. },
  32937. selectionKeys: {
  32938. type: null,
  32939. default: null
  32940. },
  32941. selectionMode: {
  32942. type: String,
  32943. default: null
  32944. },
  32945. contextMenu: {
  32946. type: Boolean,
  32947. default: false
  32948. },
  32949. contextMenuSelection: {
  32950. type: Object,
  32951. default: null
  32952. },
  32953. rowClass: {
  32954. type: null,
  32955. default: null
  32956. },
  32957. rowStyle: {
  32958. type: null,
  32959. default: null
  32960. },
  32961. editMode: {
  32962. type: String,
  32963. default: null
  32964. },
  32965. compareSelectionBy: {
  32966. type: String,
  32967. default: 'deepEquals'
  32968. },
  32969. editingRows: {
  32970. type: Array,
  32971. default: null
  32972. },
  32973. editingRowKeys: {
  32974. type: null,
  32975. default: null
  32976. },
  32977. editingMeta: {
  32978. type: Object,
  32979. default: null
  32980. },
  32981. loading: {
  32982. type: Boolean,
  32983. default: false
  32984. },
  32985. templates: {
  32986. type: null,
  32987. default: null
  32988. },
  32989. scrollable: {
  32990. type: Boolean,
  32991. default: false
  32992. },
  32993. responsiveLayout: {
  32994. type: String,
  32995. default: 'stack'
  32996. },
  32997. virtualScrollerContentProps: {
  32998. type: Object,
  32999. default: null
  33000. },
  33001. isVirtualScrollerDisabled: {
  33002. type: Boolean,
  33003. default: false
  33004. }
  33005. },
  33006. watch: {
  33007. virtualScrollerContentProps(newValue, oldValue) {
  33008. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical') && this.getVirtualScrollerProp('itemSize', oldValue) !== this.getVirtualScrollerProp('itemSize', newValue)) {
  33009. this.updateVirtualScrollerPosition();
  33010. }
  33011. }
  33012. },
  33013. mounted() {
  33014. if (this.frozenRow) {
  33015. this.updateFrozenRowStickyPosition();
  33016. }
  33017. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33018. this.updateFrozenRowGroupHeaderStickyPosition();
  33019. }
  33020. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical')) {
  33021. this.updateVirtualScrollerPosition();
  33022. }
  33023. },
  33024. updated() {
  33025. if (this.frozenRow) {
  33026. this.updateFrozenRowStickyPosition();
  33027. }
  33028. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33029. this.updateFrozenRowGroupHeaderStickyPosition();
  33030. }
  33031. },
  33032. data() {
  33033. return {
  33034. rowGroupHeaderStyleObject: {}
  33035. }
  33036. },
  33037. methods: {
  33038. columnProp(col, prop) {
  33039. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33040. },
  33041. shouldRenderRowGroupHeader(value, rowData, i) {
  33042. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33043. let prevRowData = value[i - 1];
  33044. if (prevRowData) {
  33045. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
  33046. return currentRowFieldData !== previousRowFieldData;
  33047. }
  33048. else {
  33049. return true;
  33050. }
  33051. },
  33052. getRowKey(rowData, index) {
  33053. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
  33054. },
  33055. getRowIndex(index) {
  33056. const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
  33057. return getItemOptions ? getItemOptions(index).index : index;
  33058. },
  33059. getRowClass(rowData) {
  33060. let rowStyleClass = [];
  33061. if (this.selectionMode) {
  33062. rowStyleClass.push('p-selectable-row');
  33063. }
  33064. if (this.selection) {
  33065. rowStyleClass.push({
  33066. 'p-highlight': this.isSelected(rowData)
  33067. });
  33068. }
  33069. if (this.contextMenuSelection) {
  33070. rowStyleClass.push({
  33071. 'p-highlight-contextmenu': this.isSelectedWithContextMenu(rowData)
  33072. });
  33073. }
  33074. if (this.rowClass) {
  33075. let rowClassValue = this.rowClass(rowData);
  33076. if (rowClassValue) {
  33077. rowStyleClass.push(rowClassValue);
  33078. }
  33079. }
  33080. return rowStyleClass;
  33081. },
  33082. shouldRenderRowGroupFooter(value, rowData, i) {
  33083. if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
  33084. return false;
  33085. }
  33086. else {
  33087. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33088. let nextRowData = value[i + 1];
  33089. if (nextRowData) {
  33090. let nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
  33091. return currentRowFieldData !== nextRowFieldData;
  33092. }
  33093. else {
  33094. return true;
  33095. }
  33096. }
  33097. },
  33098. shouldRenderBodyCell(value, column, i) {
  33099. if (this.rowGroupMode) {
  33100. if (this.rowGroupMode === 'subheader') {
  33101. return this.groupRowsBy !== this.columnProp(column, 'field');
  33102. }
  33103. else if (this.rowGroupMode === 'rowspan') {
  33104. if (this.isGrouped(column)) {
  33105. let prevRowData = value[i - 1];
  33106. if (prevRowData) {
  33107. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
  33108. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
  33109. return currentRowFieldData !== previousRowFieldData;
  33110. }
  33111. else {
  33112. return true;
  33113. }
  33114. }
  33115. else {
  33116. return true;
  33117. }
  33118. }
  33119. }
  33120. else {
  33121. return !this.columnProp(column, 'hidden');
  33122. }
  33123. },
  33124. calculateRowGroupSize(value, column, index) {
  33125. if (this.isGrouped(column)) {
  33126. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
  33127. let nextRowFieldData = currentRowFieldData;
  33128. let groupRowSpan = 0;
  33129. while (currentRowFieldData === nextRowFieldData) {
  33130. groupRowSpan++;
  33131. let nextRowData = value[++index];
  33132. if (nextRowData) {
  33133. nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
  33134. }
  33135. else {
  33136. break;
  33137. }
  33138. }
  33139. return groupRowSpan === 1 ? null : groupRowSpan;
  33140. }
  33141. else {
  33142. return null;
  33143. }
  33144. },
  33145. rowTogglerIcon(rowData) {
  33146. const icon = this.isRowExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33147. return ['p-row-toggler-icon pi', icon];
  33148. },
  33149. rowGroupTogglerIcon(rowData) {
  33150. const icon = this.isRowGroupExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33151. return ['p-row-toggler-icon pi', icon];
  33152. },
  33153. isGrouped(column) {
  33154. if (this.groupRowsBy && this.columnProp(column, 'field')) {
  33155. if (Array.isArray(this.groupRowsBy))
  33156. return this.groupRowsBy.indexOf(column.props.field) > -1;
  33157. else
  33158. return this.groupRowsBy === column.props.field;
  33159. }
  33160. else {
  33161. return false;
  33162. }
  33163. },
  33164. isRowEditing(rowData) {
  33165. if (rowData && this.editingRows) {
  33166. if (this.dataKey)
  33167. return this.editingRowKeys ? this.editingRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33168. else
  33169. return this.findIndex(rowData, this.editingRows) > -1;
  33170. }
  33171. return false;
  33172. },
  33173. isRowExpanded(rowData) {
  33174. if (rowData && this.expandedRows) {
  33175. if (this.dataKey)
  33176. return this.expandedRowKeys ? this.expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33177. else
  33178. return this.findIndex(rowData, this.expandedRows) > -1;
  33179. }
  33180. return false;
  33181. },
  33182. isRowGroupExpanded(rowData) {
  33183. if (this.expandableRowGroups && this.expandedRowGroups) {
  33184. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33185. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  33186. }
  33187. return false;
  33188. },
  33189. isSelected(rowData) {
  33190. if (rowData && this.selection) {
  33191. if (this.dataKey) {
  33192. return this.selectionKeys ? this.selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33193. }
  33194. else {
  33195. if (this.selection instanceof Array)
  33196. return this.findIndexInSelection(rowData) > -1;
  33197. else
  33198. return this.equals(rowData, this.selection);
  33199. }
  33200. }
  33201. return false;
  33202. },
  33203. isSelectedWithContextMenu(rowData) {
  33204. if (rowData && this.contextMenuSelection) {
  33205. return this.equals(rowData, this.contextMenuSelection, this.dataKey);
  33206. }
  33207. return false;
  33208. },
  33209. findIndexInSelection(rowData) {
  33210. return this.findIndex(rowData, this.selection);
  33211. },
  33212. findIndex(rowData, collection) {
  33213. let index = -1;
  33214. if (collection && collection.length) {
  33215. for (let i = 0; i < collection.length; i++) {
  33216. if (this.equals(rowData, collection[i])) {
  33217. index = i;
  33218. break;
  33219. }
  33220. }
  33221. }
  33222. return index;
  33223. },
  33224. equals(data1, data2) {
  33225. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  33226. },
  33227. onRowGroupToggle(event, data) {
  33228. this.$emit('rowgroup-toggle', {originalEvent: event, data: data});
  33229. },
  33230. onRowClick(event, rowData, rowIndex) {
  33231. this.$emit('row-click', {originalEvent: event, data: rowData, index: rowIndex});
  33232. },
  33233. onRowDblClick(event, rowData, rowIndex) {
  33234. this.$emit('row-dblclick', {originalEvent: event, data: rowData, index: rowIndex});
  33235. },
  33236. onRowRightClick(event, rowData, rowIndex) {
  33237. this.$emit('row-rightclick', {originalEvent: event, data: rowData, index: rowIndex});
  33238. },
  33239. onRowTouchEnd(event) {
  33240. this.$emit('row-touchend', event);
  33241. },
  33242. onRowKeyDown(event, rowData, rowIndex) {
  33243. this.$emit('row-keydown', {originalEvent: event, data: rowData, index: rowIndex});
  33244. },
  33245. onRowMouseDown(event) {
  33246. this.$emit('row-mousedown', event);
  33247. },
  33248. onRowDragStart(event, rowIndex) {
  33249. this.$emit('row-dragstart', {originalEvent: event, index: rowIndex});
  33250. },
  33251. onRowDragOver(event, rowIndex) {
  33252. this.$emit('row-dragover', {originalEvent: event, index: rowIndex});
  33253. },
  33254. onRowDragLeave(event) {
  33255. this.$emit('row-dragleave', event);
  33256. },
  33257. onRowDragEnd(event) {
  33258. this.$emit('row-dragend', event);
  33259. },
  33260. onRowDrop(event) {
  33261. this.$emit('row-drop', event);
  33262. },
  33263. onRowToggle(event) {
  33264. this.$emit('row-toggle', event);
  33265. },
  33266. onRadioChange(event) {
  33267. this.$emit('radio-change', event);
  33268. },
  33269. onCheckboxChange(event) {
  33270. this.$emit('checkbox-change', event);
  33271. },
  33272. onCellEditInit(event) {
  33273. this.$emit('cell-edit-init', event);
  33274. },
  33275. onCellEditComplete(event) {
  33276. this.$emit('cell-edit-complete', event);
  33277. },
  33278. onCellEditCancel(event) {
  33279. this.$emit('cell-edit-cancel', event);
  33280. },
  33281. onRowEditInit(event) {
  33282. this.$emit('row-edit-init', event);
  33283. },
  33284. onRowEditSave(event) {
  33285. this.$emit('row-edit-save', event);
  33286. },
  33287. onRowEditCancel(event) {
  33288. this.$emit('row-edit-cancel', event);
  33289. },
  33290. onEditingMetaChange(event) {
  33291. this.$emit('editing-meta-change', event);
  33292. },
  33293. updateFrozenRowStickyPosition() {
  33294. this.$el.style.top = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
  33295. },
  33296. updateFrozenRowGroupHeaderStickyPosition() {
  33297. let tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33298. this.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
  33299. },
  33300. updateVirtualScrollerPosition() {
  33301. const tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33302. this.$el.style.top = (this.$el.style.top || 0) + tableHeaderHeight + 'px';
  33303. },
  33304. getVirtualScrollerProp(option, options) {
  33305. options = options || this.virtualScrollerContentProps;
  33306. return options ? options[option] : null;
  33307. },
  33308. bodyRef(el) {
  33309. // For VirtualScroller
  33310. const contentRef = this.getVirtualScrollerProp('contentRef');
  33311. contentRef && contentRef(el);
  33312. }
  33313. },
  33314. computed: {
  33315. columnsLength() {
  33316. let hiddenColLength = 0;
  33317. this.columns.forEach(column => {
  33318. if(this.columnProp(column, 'hidden')) hiddenColLength++;
  33319. });
  33320. return this.columns ? this.columns.length - hiddenColLength : 0;
  33321. },
  33322. rowGroupHeaderStyle() {
  33323. if (this.scrollable) {
  33324. return {top: this.rowGroupHeaderStyleObject.top};
  33325. }
  33326. return null;
  33327. },
  33328. bodyStyle() {
  33329. return this.getVirtualScrollerProp('contentStyle');
  33330. }
  33331. },
  33332. components: {
  33333. 'DTBodyCell': script$4
  33334. }
  33335. };
  33336. const _hoisted_1$2 = {
  33337. key: 1,
  33338. class: "p-datatable-emptymessage",
  33339. role: "row"
  33340. };
  33341. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  33342. const _component_DTBodyCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTBodyCell");
  33343. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tbody", {
  33344. ref: $options.bodyRef,
  33345. class: "p-datatable-tbody",
  33346. role: "rowgroup",
  33347. style: $options.bodyStyle
  33348. }, [
  33349. (!$props.empty)
  33350. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.value, (rowData, index) => {
  33351. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33352. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader'
  33353. }, [
  33354. ($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
  33355. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33356. key: 0,
  33357. class: "p-rowgroup-header",
  33358. style: $options.rowGroupHeaderStyle,
  33359. role: "row"
  33360. }, [
  33361. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", {
  33362. colspan: $options.columnsLength - 1
  33363. }, [
  33364. ($props.expandableRowGroups)
  33365. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  33366. key: 0,
  33367. class: "p-row-toggler p-link",
  33368. onClick: $event => ($options.onRowGroupToggle($event, rowData)),
  33369. type: "button"
  33370. }, [
  33371. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  33372. class: $options.rowGroupTogglerIcon(rowData)
  33373. }, null, 2)
  33374. ], 8, ["onClick"]))
  33375. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33376. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupheader']), {
  33377. data: rowData,
  33378. index: $options.getRowIndex(index)
  33379. }, null, 8, ["data", "index"]))
  33380. ], 8, ["colspan"])
  33381. ], 4))
  33382. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33383. ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
  33384. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33385. class: $options.getRowClass(rowData),
  33386. style: $props.rowStyle,
  33387. key: $options.getRowKey(rowData, $options.getRowIndex(index)),
  33388. onClick: $event => ($options.onRowClick($event, rowData, $options.getRowIndex(index))),
  33389. onDblclick: $event => ($options.onRowDblClick($event, rowData, $options.getRowIndex(index))),
  33390. onContextmenu: $event => ($options.onRowRightClick($event, rowData, $options.getRowIndex(index))),
  33391. onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
  33392. onKeydown: $event => ($options.onRowKeyDown($event, rowData, $options.getRowIndex(index))),
  33393. tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
  33394. onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
  33395. onDragstart: $event => ($options.onRowDragStart($event, $options.getRowIndex(index))),
  33396. onDragover: $event => ($options.onRowDragOver($event, $options.getRowIndex(index))),
  33397. onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
  33398. onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
  33399. onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
  33400. role: "row"
  33401. }, [
  33402. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33403. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33404. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33405. }, [
  33406. ($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
  33407. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTBodyCell, {
  33408. key: 0,
  33409. rowData: rowData,
  33410. column: col,
  33411. rowIndex: $options.getRowIndex(index),
  33412. index: i,
  33413. selected: $options.isSelected(rowData),
  33414. rowTogglerIcon: $options.columnProp(col,'expander') ? $options.rowTogglerIcon(rowData): null,
  33415. frozenRow: $props.frozenRow,
  33416. rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
  33417. editMode: $props.editMode,
  33418. editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
  33419. responsiveLayout: $props.responsiveLayout,
  33420. onRadioChange: _cache[1] || (_cache[1] = $event => ($options.onRadioChange($event))),
  33421. onCheckboxChange: _cache[2] || (_cache[2] = $event => ($options.onCheckboxChange($event))),
  33422. onRowToggle: _cache[3] || (_cache[3] = $event => ($options.onRowToggle($event))),
  33423. onCellEditInit: _cache[4] || (_cache[4] = $event => ($options.onCellEditInit($event))),
  33424. onCellEditComplete: _cache[5] || (_cache[5] = $event => ($options.onCellEditComplete($event))),
  33425. onCellEditCancel: _cache[6] || (_cache[6] = $event => ($options.onCellEditCancel($event))),
  33426. onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
  33427. onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
  33428. onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
  33429. editingMeta: $props.editingMeta,
  33430. onEditingMetaChange: $options.onEditingMetaChange,
  33431. virtualScrollerContentProps: $props.virtualScrollerContentProps
  33432. }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps"]))
  33433. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33434. ], 64))
  33435. }), 128))
  33436. ], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
  33437. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33438. ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
  33439. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33440. class: "p-datatable-row-expansion",
  33441. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
  33442. role: "row"
  33443. }, [
  33444. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", { colspan: $options.columnsLength }, [
  33445. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['expansion']), {
  33446. data: rowData,
  33447. index: $options.getRowIndex(index)
  33448. }, null, 8, ["data", "index"]))
  33449. ], 8, ["colspan"])
  33450. ]))
  33451. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33452. ($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
  33453. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33454. class: "p-rowgroup-footer",
  33455. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
  33456. role: "row"
  33457. }, [
  33458. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupfooter']), {
  33459. data: rowData,
  33460. index: $options.getRowIndex(index)
  33461. }, null, 8, ["data", "index"]))
  33462. ]))
  33463. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33464. ], 64))
  33465. }), 128))
  33466. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_1$2, [
  33467. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", { colspan: $options.columnsLength }, [
  33468. ($props.templates.empty && !$props.loading)
  33469. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.empty), { key: 0 }))
  33470. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33471. ($props.templates.loading && $props.loading)
  33472. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.loading), { key: 1 }))
  33473. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33474. ], 8, ["colspan"])
  33475. ]))
  33476. ], 4))
  33477. }
  33478. script$3.render = render$3;
  33479. var script$2 = {
  33480. name: 'FooterCell',
  33481. props: {
  33482. column: {
  33483. type: null,
  33484. default: null
  33485. }
  33486. },
  33487. data() {
  33488. return {
  33489. styleObject: {}
  33490. }
  33491. },
  33492. mounted() {
  33493. if (this.columnProp('frozen')) {
  33494. this.updateStickyPosition();
  33495. }
  33496. },
  33497. updated() {
  33498. if (this.columnProp('frozen')) {
  33499. this.updateStickyPosition();
  33500. }
  33501. },
  33502. methods: {
  33503. columnProp(prop) {
  33504. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  33505. },
  33506. updateStickyPosition() {
  33507. if (this.columnProp('frozen')) {
  33508. let align = this.columnProp('alignFrozen');
  33509. if (align === 'right') {
  33510. let right = 0;
  33511. let next = this.$el.nextElementSibling;
  33512. if (next) {
  33513. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
  33514. }
  33515. this.styleObject.right = right + 'px';
  33516. }
  33517. else {
  33518. let left = 0;
  33519. let prev = this.$el.previousElementSibling;
  33520. if (prev) {
  33521. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
  33522. }
  33523. this.styleObject.left = left + 'px';
  33524. }
  33525. }
  33526. }
  33527. },
  33528. computed: {
  33529. containerClass() {
  33530. return [this.columnProp('footerClass'), this.columnProp('class'), {
  33531. 'p-frozen-column': this.columnProp('frozen')
  33532. }];
  33533. },
  33534. containerStyle() {
  33535. let bodyStyle = this.columnProp('footerStyle');
  33536. let columnStyle = this.columnProp('style');
  33537. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  33538. }
  33539. }
  33540. };
  33541. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  33542. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  33543. style: $options.containerStyle,
  33544. class: $options.containerClass,
  33545. role: "cell",
  33546. colspan: $options.columnProp('colspan'),
  33547. rowspan: $options.columnProp('rowspan')
  33548. }, [
  33549. ($props.column.children && $props.column.children.footer)
  33550. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.footer), {
  33551. key: 0,
  33552. column: $props.column
  33553. }, null, 8, ["column"]))
  33554. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33555. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('footer')), 1)
  33556. ], 14, ["colspan", "rowspan"]))
  33557. }
  33558. script$2.render = render$2;
  33559. var script$1 = {
  33560. name: 'TableFooter',
  33561. props: {
  33562. columnGroup: {
  33563. type: null,
  33564. default: null
  33565. },
  33566. columns: {
  33567. type: null,
  33568. default: null
  33569. },
  33570. },
  33571. methods: {
  33572. columnProp(col, prop) {
  33573. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33574. },
  33575. getFooterRows() {
  33576. let rows = [];
  33577. let columnGroup = this.columnGroup;
  33578. if (columnGroup.children && columnGroup.children.default) {
  33579. for (let child of columnGroup.children.default()) {
  33580. if (child.type.name === 'Row') {
  33581. rows.push(child);
  33582. }
  33583. else if (child.children && child.children instanceof Array) {
  33584. rows = child.children;
  33585. }
  33586. }
  33587. return rows;
  33588. }
  33589. },
  33590. getFooterColumns(row){
  33591. let cols = [];
  33592. if (row.children && row.children.default) {
  33593. row.children.default().forEach(child => {
  33594. if (child.children && child.children instanceof Array)
  33595. cols = [...cols, ...child.children];
  33596. else if (child.type.name === 'Column')
  33597. cols.push(child);
  33598. });
  33599. return cols;
  33600. }
  33601. }
  33602. },
  33603. computed: {
  33604. hasFooter() {
  33605. let hasFooter = false;
  33606. if (this.columnGroup) {
  33607. hasFooter = true;
  33608. }
  33609. else if (this.columns) {
  33610. for (let col of this.columns) {
  33611. if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
  33612. hasFooter = true;
  33613. break;
  33614. }
  33615. }
  33616. }
  33617. return hasFooter;
  33618. }
  33619. },
  33620. components: {
  33621. 'DTFooterCell': script$2
  33622. }
  33623. };
  33624. const _hoisted_1$1 = {
  33625. key: 0,
  33626. class: "p-datatable-tfoot",
  33627. role: "rowgroup"
  33628. };
  33629. const _hoisted_2$1 = {
  33630. key: 0,
  33631. role: "row"
  33632. };
  33633. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  33634. const _component_DTFooterCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTFooterCell");
  33635. return ($options.hasFooter)
  33636. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tfoot", _hoisted_1$1, [
  33637. (!$props.columnGroup)
  33638. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_2$1, [
  33639. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33640. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33641. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33642. }, [
  33643. (!$options.columnProp(col,'hidden'))
  33644. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33645. key: 0,
  33646. column: col
  33647. }, null, 8, ["column"]))
  33648. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33649. ], 64))
  33650. }), 128))
  33651. ]))
  33652. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterRows(), (row, i) => {
  33653. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33654. key: i,
  33655. role: "row"
  33656. }, [
  33657. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterColumns(row), (col, j) => {
  33658. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33659. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
  33660. }, [
  33661. (!$options.columnProp(col,'hidden'))
  33662. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33663. key: 0,
  33664. column: col
  33665. }, null, 8, ["column"]))
  33666. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33667. ], 64))
  33668. }), 128))
  33669. ]))
  33670. }), 128))
  33671. ]))
  33672. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33673. }
  33674. script$1.render = render$1;
  33675. var script = {
  33676. name: 'DataTable',
  33677. emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick',
  33678. 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change',
  33679. 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
  33680. 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
  33681. 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
  33682. props: {
  33683. value: {
  33684. type: Array,
  33685. default: null
  33686. },
  33687. dataKey: {
  33688. type: String,
  33689. default: null
  33690. },
  33691. rows: {
  33692. type: Number,
  33693. default: 0
  33694. },
  33695. first: {
  33696. type: Number,
  33697. default: 0
  33698. },
  33699. totalRecords: {
  33700. type: Number,
  33701. default: 0
  33702. },
  33703. paginator: {
  33704. type: Boolean,
  33705. default: false
  33706. },
  33707. paginatorPosition: {
  33708. type: String,
  33709. default: 'bottom'
  33710. },
  33711. alwaysShowPaginator: {
  33712. type: Boolean,
  33713. default: true
  33714. },
  33715. paginatorTemplate: {
  33716. type: String,
  33717. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  33718. },
  33719. pageLinkSize: {
  33720. type: Number,
  33721. default: 5
  33722. },
  33723. rowsPerPageOptions: {
  33724. type: Array,
  33725. default: null
  33726. },
  33727. currentPageReportTemplate: {
  33728. type: String,
  33729. default: '({currentPage} of {totalPages})'
  33730. },
  33731. lazy: {
  33732. type: Boolean,
  33733. default: false
  33734. },
  33735. loading: {
  33736. type: Boolean,
  33737. default: false
  33738. },
  33739. loadingIcon: {
  33740. type: String,
  33741. default: 'pi pi-spinner'
  33742. },
  33743. sortField: {
  33744. type: [String, Function],
  33745. default: null
  33746. },
  33747. sortOrder: {
  33748. type: Number,
  33749. default: null
  33750. },
  33751. defaultSortOrder: {
  33752. type: Number,
  33753. default: 1
  33754. },
  33755. multiSortMeta: {
  33756. type: Array,
  33757. default: null
  33758. },
  33759. sortMode: {
  33760. type: String,
  33761. default: 'single'
  33762. },
  33763. removableSort: {
  33764. type: Boolean,
  33765. default: false
  33766. },
  33767. filters: {
  33768. type: Object,
  33769. default: null
  33770. },
  33771. filterDisplay: {
  33772. type: String,
  33773. default: null
  33774. },
  33775. globalFilterFields: {
  33776. type: Array,
  33777. default: null
  33778. },
  33779. filterLocale: {
  33780. type: String,
  33781. default: undefined
  33782. },
  33783. selection: {
  33784. type: [Array,Object],
  33785. default: null
  33786. },
  33787. selectionMode: {
  33788. type: String,
  33789. default: null
  33790. },
  33791. compareSelectionBy: {
  33792. type: String,
  33793. default: 'deepEquals'
  33794. },
  33795. metaKeySelection: {
  33796. type: Boolean,
  33797. default: true
  33798. },
  33799. contextMenu: {
  33800. type: Boolean,
  33801. default: false
  33802. },
  33803. contextMenuSelection: {
  33804. type: Object,
  33805. default: null
  33806. },
  33807. selectAll: {
  33808. type: Boolean,
  33809. default: null
  33810. },
  33811. rowHover: {
  33812. type: Boolean,
  33813. default: false
  33814. },
  33815. csvSeparator: {
  33816. type: String,
  33817. default: ','
  33818. },
  33819. exportFilename: {
  33820. type: String,
  33821. default: 'download'
  33822. },
  33823. exportFunction: {
  33824. type: Function,
  33825. default: null
  33826. },
  33827. autoLayout: {
  33828. type: Boolean,
  33829. default: false
  33830. },
  33831. resizableColumns: {
  33832. type: Boolean,
  33833. default: false
  33834. },
  33835. columnResizeMode: {
  33836. type: String,
  33837. default: 'fit'
  33838. },
  33839. reorderableColumns: {
  33840. type: Boolean,
  33841. default: false
  33842. },
  33843. expandedRows: {
  33844. type: Array,
  33845. default: null
  33846. },
  33847. expandedRowIcon: {
  33848. type: String,
  33849. default: 'pi-chevron-down'
  33850. },
  33851. collapsedRowIcon: {
  33852. type: String,
  33853. default: 'pi-chevron-right'
  33854. },
  33855. rowGroupMode: {
  33856. type: String,
  33857. default: null
  33858. },
  33859. groupRowsBy: {
  33860. type: [Array,String],
  33861. default: null
  33862. },
  33863. expandableRowGroups: {
  33864. type: Boolean,
  33865. default: false
  33866. },
  33867. expandedRowGroups: {
  33868. type: Array,
  33869. default: null
  33870. },
  33871. stateStorage: {
  33872. type: String,
  33873. default: 'session'
  33874. },
  33875. stateKey: {
  33876. type: String,
  33877. default: null
  33878. },
  33879. editMode: {
  33880. type: String,
  33881. default: null
  33882. },
  33883. editingRows: {
  33884. type: Array,
  33885. default: null
  33886. },
  33887. rowClass: {
  33888. type: null,
  33889. default: null
  33890. },
  33891. rowStyle: {
  33892. type: null,
  33893. default: null
  33894. },
  33895. scrollable: {
  33896. type: Boolean,
  33897. default: false
  33898. },
  33899. scrollDirection: {
  33900. type: String,
  33901. default: "vertical"
  33902. },
  33903. virtualScrollerOptions: {
  33904. type: Object,
  33905. default: null
  33906. },
  33907. scrollHeight: {
  33908. type: String,
  33909. default: null
  33910. },
  33911. frozenValue: {
  33912. type: Array,
  33913. default: null
  33914. },
  33915. responsiveLayout: {
  33916. type: String,
  33917. default: 'stack'
  33918. },
  33919. breakpoint: {
  33920. type: String,
  33921. default: '960px'
  33922. },
  33923. showGridlines: {
  33924. type: Boolean,
  33925. default: false
  33926. },
  33927. stripedRows: {
  33928. type: Boolean,
  33929. default: false
  33930. },
  33931. tableStyle: {
  33932. type: null,
  33933. default: null
  33934. },
  33935. tableClass: {
  33936. type: String,
  33937. default: null
  33938. }
  33939. },
  33940. data() {
  33941. return {
  33942. d_first: this.first,
  33943. d_rows: this.rows,
  33944. d_sortField: this.sortField,
  33945. d_sortOrder: this.sortOrder,
  33946. d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : [],
  33947. d_groupRowsSortMeta: null,
  33948. d_selectionKeys: null,
  33949. d_expandedRowKeys: null,
  33950. d_columnOrder: null,
  33951. d_editingRowKeys: null,
  33952. d_editingMeta: {},
  33953. d_filters: this.cloneFilters(this.filters)
  33954. };
  33955. },
  33956. rowTouched: false,
  33957. anchorRowIndex: null,
  33958. rangeRowIndex: null,
  33959. documentColumnResizeListener: null,
  33960. documentColumnResizeEndListener: null,
  33961. lastResizeHelperX: null,
  33962. resizeColumnElement: null,
  33963. columnResizing: false,
  33964. colReorderIconWidth: null,
  33965. colReorderIconHeight: null,
  33966. draggedColumn: null,
  33967. draggedRowIndex: null,
  33968. droppedRowIndex: null,
  33969. rowDragging: null,
  33970. columnWidthsState: null,
  33971. tableWidthState: null,
  33972. columnWidthsRestored: false,
  33973. watch: {
  33974. first(newValue) {
  33975. this.d_first = newValue;
  33976. },
  33977. rows(newValue) {
  33978. this.d_rows = newValue;
  33979. },
  33980. sortField(newValue) {
  33981. this.d_sortField = newValue;
  33982. },
  33983. sortOrder(newValue) {
  33984. this.d_sortOrder = newValue;
  33985. },
  33986. multiSortMeta(newValue) {
  33987. this.d_multiSortMeta = newValue;
  33988. },
  33989. selection: {
  33990. immediate: true,
  33991. handler(newValue) {
  33992. if (this.dataKey) {
  33993. this.updateSelectionKeys(newValue);
  33994. }
  33995. }
  33996. },
  33997. expandedRows(newValue) {
  33998. if (this.dataKey) {
  33999. this.updateExpandedRowKeys(newValue);
  34000. }
  34001. },
  34002. editingRows(newValue) {
  34003. if (this.dataKey) {
  34004. this.updateEditingRowKeys(newValue);
  34005. }
  34006. },
  34007. filters: {
  34008. deep: true,
  34009. handler: function(newValue) {
  34010. this.d_filters = this.cloneFilters(newValue);
  34011. }
  34012. }
  34013. },
  34014. beforeMount() {
  34015. if (this.isStateful()) {
  34016. this.restoreState();
  34017. }
  34018. },
  34019. mounted() {
  34020. this.$el.setAttribute(this.attributeSelector, '');
  34021. if (this.responsiveLayout === 'stack' && !this.scrollable) {
  34022. this.createResponsiveStyle();
  34023. }
  34024. if (this.isStateful() && this.resizableColumns) {
  34025. this.restoreColumnWidths();
  34026. }
  34027. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34028. this.updateEditingRowKeys(this.editingRows);
  34029. }
  34030. },
  34031. beforeUnmount() {
  34032. this.unbindColumnResizeEvents();
  34033. this.destroyStyleElement();
  34034. this.destroyResponsiveStyle();
  34035. },
  34036. updated() {
  34037. if (this.isStateful()) {
  34038. this.saveState();
  34039. }
  34040. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34041. this.updateEditingRowKeys(this.editingRows);
  34042. }
  34043. },
  34044. methods: {
  34045. columnProp(col, prop) {
  34046. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  34047. },
  34048. onPage(event) {
  34049. this.clearEditingMetaData();
  34050. this.d_first = event.first;
  34051. this.d_rows = event.rows;
  34052. let pageEvent = this.createLazyLoadEvent(event);
  34053. pageEvent.pageCount = event.pageCount;
  34054. pageEvent.page = event.page;
  34055. this.$emit('update:first', this.d_first);
  34056. this.$emit('update:rows', this.d_rows);
  34057. this.$emit('page', pageEvent);
  34058. this.$emit('value-change', this.processedData);
  34059. },
  34060. onColumnHeaderClick(e) {
  34061. const event = e.originalEvent;
  34062. const column = e.column;
  34063. if (this.columnProp(column, 'sortable')) {
  34064. const targetNode = event.target;
  34065. const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
  34066. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-title') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-header-content')
  34067. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {
  34068. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34069. if (this.sortMode === 'single') {
  34070. if (this.d_sortField === columnField) {
  34071. if (this.removableSort && (this.d_sortOrder * -1 === this.defaultSortOrder)) {
  34072. this.d_sortOrder = null;
  34073. this.d_sortField = null;
  34074. }
  34075. else {
  34076. this.d_sortOrder = this.d_sortOrder * -1;
  34077. }
  34078. }
  34079. else {
  34080. this.d_sortOrder = this.defaultSortOrder;
  34081. this.d_sortField = columnField;
  34082. }
  34083. this.$emit('update:sortField', this.d_sortField);
  34084. this.$emit('update:sortOrder', this.d_sortOrder);
  34085. this.resetPage();
  34086. }
  34087. else if (this.sortMode === 'multiple') {
  34088. let metaKey = event.metaKey || event.ctrlKey;
  34089. if (!metaKey) {
  34090. this.d_multiSortMeta = this.d_multiSortMeta.filter(meta => meta.field === columnField);
  34091. }
  34092. this.addMultiSortField(columnField);
  34093. this.$emit('update:multiSortMeta', this.d_multiSortMeta);
  34094. }
  34095. this.$emit('sort', this.createLazyLoadEvent(event));
  34096. this.$emit('value-change', this.processedData);
  34097. }
  34098. }
  34099. },
  34100. sortSingle(value) {
  34101. this.clearEditingMetaData();
  34102. if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
  34103. this.d_multiSortMeta = [
  34104. {field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
  34105. {field: this.d_sortField, order: this.d_sortOrder}
  34106. ];
  34107. return this.sortMultiple(value);
  34108. }
  34109. let data = [...value];
  34110. data.sort((data1, data2) => {
  34111. let value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_sortField);
  34112. let value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_sortField);
  34113. let result = null;
  34114. if (value1 == null && value2 != null)
  34115. result = -1;
  34116. else if (value1 != null && value2 == null)
  34117. result = 1;
  34118. else if (value1 == null && value2 == null)
  34119. result = 0;
  34120. else if (typeof value1 === 'string' && typeof value2 === 'string')
  34121. result = value1.localeCompare(value2, undefined, { numeric: true });
  34122. else
  34123. result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
  34124. return (this.d_sortOrder * result);
  34125. });
  34126. return data;
  34127. },
  34128. sortMultiple(value) {
  34129. this.clearEditingMetaData();
  34130. if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
  34131. const firstSortMeta = this.d_multiSortMeta[0];
  34132. !this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
  34133. if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
  34134. this.d_multiSortMeta = [this.d_groupRowsSortMeta, ...this.d_multiSortMeta];
  34135. }
  34136. }
  34137. let data = [...value];
  34138. data.sort((data1, data2) => {
  34139. return this.multisortField(data1, data2, 0);
  34140. });
  34141. return data;
  34142. },
  34143. multisortField(data1, data2, index) {
  34144. const value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_multiSortMeta[index].field);
  34145. const value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_multiSortMeta[index].field);
  34146. let result = null;
  34147. if (typeof value1 === 'string' || value1 instanceof String) {
  34148. if (value1.localeCompare && (value1 !== value2)) {
  34149. return (this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true }));
  34150. }
  34151. }
  34152. else {
  34153. result = (value1 < value2) ? -1 : 1;
  34154. }
  34155. if (value1 === value2) {
  34156. return (this.d_multiSortMeta.length - 1) > (index) ? (this.multisortField(data1, data2, index + 1)) : 0;
  34157. }
  34158. return (this.d_multiSortMeta[index].order * result);
  34159. },
  34160. addMultiSortField(field) {
  34161. let index = this.d_multiSortMeta.findIndex(meta => meta.field === field);
  34162. if (index >= 0) {
  34163. if (this.removableSort && (this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder))
  34164. this.d_multiSortMeta.splice(index, 1);
  34165. else
  34166. this.d_multiSortMeta[index] = {field: field, order: this.d_multiSortMeta[index].order * -1};
  34167. }
  34168. else {
  34169. this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
  34170. }
  34171. this.d_multiSortMeta = [...this.d_multiSortMeta];
  34172. },
  34173. filter(data) {
  34174. if (!data) {
  34175. return;
  34176. }
  34177. this.clearEditingMetaData();
  34178. let globalFilterFieldsArray;
  34179. if (this.filters['global']) {
  34180. globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
  34181. }
  34182. let filteredValue = [];
  34183. for (let i = 0; i < data.length; i++) {
  34184. let localMatch = true;
  34185. let globalMatch = false;
  34186. let localFiltered = false;
  34187. for (let prop in this.filters) {
  34188. if (Object.prototype.hasOwnProperty.call(this.filters, prop) && prop !== 'global') {
  34189. localFiltered = true;
  34190. let filterField = prop;
  34191. let filterMeta = this.filters[filterField];
  34192. if (filterMeta.operator) {
  34193. for (let filterConstraint of filterMeta.constraints) {
  34194. localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint);
  34195. if ((filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR && localMatch) || (filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND && !localMatch)) {
  34196. break;
  34197. }
  34198. }
  34199. }
  34200. else {
  34201. localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
  34202. }
  34203. if (!localMatch) {
  34204. break;
  34205. }
  34206. }
  34207. }
  34208. if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
  34209. for(let j = 0; j < globalFilterFieldsArray.length; j++) {
  34210. let globalFilterField = globalFilterFieldsArray[j];
  34211. globalMatch = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[this.filters['global'].matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS](primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data[i], globalFilterField), this.filters['global'].value, this.filterLocale);
  34212. if (globalMatch) {
  34213. break;
  34214. }
  34215. }
  34216. }
  34217. let matches;
  34218. if (this.filters['global']) {
  34219. matches = localFiltered ? (localFiltered && localMatch && globalMatch) : globalMatch;
  34220. }
  34221. else {
  34222. matches = localFiltered && localMatch;
  34223. }
  34224. if (matches) {
  34225. filteredValue.push(data[i]);
  34226. }
  34227. }
  34228. if (filteredValue.length === this.value.length) {
  34229. filteredValue = data;
  34230. }
  34231. let filterEvent = this.createLazyLoadEvent();
  34232. filterEvent.filteredValue = filteredValue;
  34233. this.$emit('filter', filterEvent);
  34234. this.$emit('value-change', filteredValue);
  34235. return filteredValue;
  34236. },
  34237. executeLocalFilter(field, rowData, filterMeta) {
  34238. let filterValue = filterMeta.value;
  34239. let filterMatchMode = filterMeta.matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH;
  34240. let dataFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, field);
  34241. let filterConstraint = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[filterMatchMode];
  34242. return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
  34243. },
  34244. onRowClick(e) {
  34245. const event = e.originalEvent;
  34246. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34247. return;
  34248. }
  34249. this.$emit('row-click', e);
  34250. if (this.selectionMode) {
  34251. const rowData = e.data;
  34252. const rowIndex = this.d_first + e.index;
  34253. if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
  34254. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34255. this.rangeRowIndex = rowIndex;
  34256. this.selectRange(event);
  34257. }
  34258. else {
  34259. const selected = this.isSelected(rowData);
  34260. const metaSelection = this.rowTouched ? false : this.metaKeySelection;
  34261. this.anchorRowIndex = rowIndex;
  34262. this.rangeRowIndex = rowIndex;
  34263. if (metaSelection) {
  34264. let metaKey = event.metaKey || event.ctrlKey;
  34265. if (selected && metaKey) {
  34266. if(this.isSingleSelectionMode()) {
  34267. this.$emit('update:selection', null);
  34268. }
  34269. else {
  34270. const selectionIndex = this.findIndexInSelection(rowData);
  34271. const _selection = this.selection.filter((val,i) => i != selectionIndex);
  34272. this.$emit('update:selection', _selection);
  34273. }
  34274. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34275. }
  34276. else {
  34277. if(this.isSingleSelectionMode()) {
  34278. this.$emit('update:selection', rowData);
  34279. }
  34280. else if (this.isMultipleSelectionMode()) {
  34281. let _selection = metaKey ? (this.selection || []) : [];
  34282. _selection = [..._selection, rowData];
  34283. this.$emit('update:selection', _selection);
  34284. }
  34285. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34286. }
  34287. }
  34288. else {
  34289. if (this.selectionMode === 'single') {
  34290. if (selected) {
  34291. this.$emit('update:selection', null);
  34292. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34293. }
  34294. else {
  34295. this.$emit('update:selection', rowData);
  34296. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34297. }
  34298. }
  34299. else if (this.selectionMode === 'multiple') {
  34300. if (selected) {
  34301. const selectionIndex = this.findIndexInSelection(rowData);
  34302. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34303. this.$emit('update:selection', _selection);
  34304. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34305. }
  34306. else {
  34307. const _selection = this.selection ? [...this.selection, rowData] : [rowData];
  34308. this.$emit('update:selection', _selection);
  34309. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34310. }
  34311. }
  34312. }
  34313. }
  34314. }
  34315. this.rowTouched = false;
  34316. },
  34317. onRowDblClick(e) {
  34318. const event = e.originalEvent;
  34319. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34320. return;
  34321. }
  34322. this.$emit('row-dblclick', e);
  34323. },
  34324. onRowRightClick(event) {
  34325. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34326. event.originalEvent.target.focus();
  34327. this.$emit('update:contextMenuSelection', event.data);
  34328. this.$emit('row-contextmenu', event);
  34329. },
  34330. onRowTouchEnd() {
  34331. this.rowTouched = true;
  34332. },
  34333. onRowKeyDown(e) {
  34334. const event = e.originalEvent;
  34335. const rowData = e.data;
  34336. const rowIndex = e.index;
  34337. if (this.selectionMode) {
  34338. const row = event.target;
  34339. switch (event.which) {
  34340. //down arrow
  34341. case 40:
  34342. var nextRow = this.findNextSelectableRow(row);
  34343. if (nextRow) {
  34344. nextRow.focus();
  34345. }
  34346. event.preventDefault();
  34347. break;
  34348. //up arrow
  34349. case 38:
  34350. var prevRow = this.findPrevSelectableRow(row);
  34351. if (prevRow) {
  34352. prevRow.focus();
  34353. }
  34354. event.preventDefault();
  34355. break;
  34356. //enter
  34357. case 13:
  34358. this.onRowClick({originalEvent: event, data: rowData, index: rowIndex});
  34359. break;
  34360. }
  34361. }
  34362. },
  34363. findNextSelectableRow(row) {
  34364. let nextRow = row.nextElementSibling;
  34365. if (nextRow) {
  34366. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextRow, 'p-selectable-row'))
  34367. return nextRow;
  34368. else
  34369. return this.findNextSelectableRow(nextRow);
  34370. }
  34371. else {
  34372. return null;
  34373. }
  34374. },
  34375. findPrevSelectableRow(row) {
  34376. let prevRow = row.previousElementSibling;
  34377. if (prevRow) {
  34378. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevRow, 'p-selectable-row'))
  34379. return prevRow;
  34380. else
  34381. return this.findPrevSelectableRow(prevRow);
  34382. }
  34383. else {
  34384. return null;
  34385. }
  34386. },
  34387. toggleRowWithRadio(event) {
  34388. const rowData = event.data;
  34389. if (this.isSelected(rowData)) {
  34390. this.$emit('update:selection', null);
  34391. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34392. }
  34393. else {
  34394. this.$emit('update:selection', rowData);
  34395. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34396. }
  34397. },
  34398. toggleRowWithCheckbox(event) {
  34399. const rowData = event.data;
  34400. if (this.isSelected(rowData)) {
  34401. const selectionIndex = this.findIndexInSelection(rowData);
  34402. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34403. this.$emit('update:selection', _selection);
  34404. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34405. }
  34406. else {
  34407. let _selection = this.selection ? [...this.selection] : [];
  34408. _selection = [..._selection, rowData];
  34409. this.$emit('update:selection', _selection);
  34410. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34411. }
  34412. },
  34413. toggleRowsWithCheckbox(event) {
  34414. if (this.selectAll !== null) {
  34415. this.$emit('select-all-change', event);
  34416. }
  34417. else {
  34418. const { originalEvent, checked } = event;
  34419. let _selection = [];
  34420. if (checked) {
  34421. _selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  34422. this.$emit('row-select-all', {originalEvent, data: _selection});
  34423. }
  34424. else {
  34425. this.$emit('row-unselect-all', {originalEvent});
  34426. }
  34427. this.$emit('update:selection', _selection);
  34428. }
  34429. },
  34430. isSingleSelectionMode() {
  34431. return this.selectionMode === 'single';
  34432. },
  34433. isMultipleSelectionMode() {
  34434. return this.selectionMode === 'multiple';
  34435. },
  34436. isSelected(rowData) {
  34437. if (rowData && this.selection) {
  34438. if (this.dataKey) {
  34439. return this.d_selectionKeys ? this.d_selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  34440. }
  34441. else {
  34442. if (this.selection instanceof Array)
  34443. return this.findIndexInSelection(rowData) > -1;
  34444. else
  34445. return this.equals(rowData, this.selection);
  34446. }
  34447. }
  34448. return false;
  34449. },
  34450. findIndexInSelection(rowData) {
  34451. return this.findIndex(rowData, this.selection);
  34452. },
  34453. findIndex(rowData, collection) {
  34454. let index = -1;
  34455. if (collection && collection.length) {
  34456. for (let i = 0; i < collection.length; i++) {
  34457. if (this.equals(rowData, collection[i])) {
  34458. index = i;
  34459. break;
  34460. }
  34461. }
  34462. }
  34463. return index;
  34464. },
  34465. updateSelectionKeys(selection) {
  34466. this.d_selectionKeys = {};
  34467. if (Array.isArray(selection)) {
  34468. for (let data of selection) {
  34469. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34470. }
  34471. }
  34472. else {
  34473. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
  34474. }
  34475. },
  34476. updateExpandedRowKeys(expandedRows) {
  34477. if (expandedRows && expandedRows.length) {
  34478. this.d_expandedRowKeys = {};
  34479. for (let data of expandedRows) {
  34480. this.d_expandedRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34481. }
  34482. }
  34483. else {
  34484. this.d_expandedRowKeys = null;
  34485. }
  34486. },
  34487. updateEditingRowKeys(editingRows) {
  34488. if (editingRows && editingRows.length) {
  34489. this.d_editingRowKeys = {};
  34490. for (let data of editingRows) {
  34491. this.d_editingRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34492. }
  34493. }
  34494. else {
  34495. this.d_editingRowKeys = null;
  34496. }
  34497. },
  34498. equals(data1, data2) {
  34499. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  34500. },
  34501. selectRange(event) {
  34502. let rangeStart, rangeEnd;
  34503. if (this.rangeRowIndex > this.anchorRowIndex) {
  34504. rangeStart = this.anchorRowIndex;
  34505. rangeEnd = this.rangeRowIndex;
  34506. }
  34507. else if(this.rangeRowIndex < this.anchorRowIndex) {
  34508. rangeStart = this.rangeRowIndex;
  34509. rangeEnd = this.anchorRowIndex;
  34510. }
  34511. else {
  34512. rangeStart = this.rangeRowIndex;
  34513. rangeEnd = this.rangeRowIndex;
  34514. }
  34515. if (this.lazy && this.paginator) {
  34516. rangeStart -= this.first;
  34517. rangeEnd -= this.first;
  34518. }
  34519. const value = this.processedData;
  34520. let _selection = [];
  34521. for(let i = rangeStart; i <= rangeEnd; i++) {
  34522. let rangeRowData = value[i];
  34523. _selection.push(rangeRowData);
  34524. this.$emit('row-select', {originalEvent: event, data: rangeRowData, type: 'row'});
  34525. }
  34526. this.$emit('update:selection', _selection);
  34527. },
  34528. exportCSV(options, data) {
  34529. let csv = '\ufeff';
  34530. if (!data) {
  34531. data = this.processedData;
  34532. if (options && options.selectionOnly)
  34533. data = this.selection || [];
  34534. else if (this.frozenValue)
  34535. data = data ? [...this.frozenValue, ...data] : this.frozenValue;
  34536. }
  34537. //headers
  34538. let headerInitiated = false;
  34539. for (let i = 0; i < this.columns.length; i++) {
  34540. let column = this.columns[i];
  34541. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34542. if (headerInitiated)
  34543. csv += this.csvSeparator;
  34544. else
  34545. headerInitiated = true;
  34546. csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
  34547. }
  34548. }
  34549. //body
  34550. if (data) {
  34551. data.forEach(record => {
  34552. csv += '\n';
  34553. let rowInitiated = false;
  34554. for (let i = 0; i < this.columns.length; i++) {
  34555. let column = this.columns[i];
  34556. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34557. if (rowInitiated)
  34558. csv += this.csvSeparator;
  34559. else
  34560. rowInitiated = true;
  34561. let cellData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
  34562. if (cellData != null) {
  34563. if (this.exportFunction) {
  34564. cellData = this.exportFunction({
  34565. data: cellData,
  34566. field: this.columnProp(column, 'field')
  34567. });
  34568. }
  34569. else
  34570. cellData = String(cellData).replace(/"/g, '""');
  34571. }
  34572. else
  34573. cellData = '';
  34574. csv += '"' + cellData + '"';
  34575. }
  34576. }
  34577. });
  34578. }
  34579. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.exportCSV(csv, this.exportFilename);
  34580. },
  34581. resetPage() {
  34582. this.d_first = 0;
  34583. this.$emit('update:first', this.d_first);
  34584. },
  34585. onColumnResizeStart(event) {
  34586. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34587. this.resizeColumnElement = event.target.parentElement;
  34588. this.columnResizing = true;
  34589. this.lastResizeHelperX = (event.pageX - containerLeft + this.$el.scrollLeft);
  34590. this.bindColumnResizeEvents();
  34591. },
  34592. onColumnResize(event) {
  34593. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34594. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.$el, 'p-unselectable-text');
  34595. this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
  34596. this.$refs.resizeHelper.style.top = 0 + 'px';
  34597. this.$refs.resizeHelper.style.left = (event.pageX - containerLeft + this.$el.scrollLeft) + 'px';
  34598. this.$refs.resizeHelper.style.display = 'block';
  34599. },
  34600. onColumnResizeEnd() {
  34601. let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
  34602. let columnWidth = this.resizeColumnElement.offsetWidth;
  34603. let newColumnWidth = columnWidth + delta;
  34604. let minWidth = this.resizeColumnElement.style.minWidth||15;
  34605. if (columnWidth + delta > parseInt(minWidth, 10)) {
  34606. if (this.columnResizeMode === 'fit') {
  34607. let nextColumn = this.resizeColumnElement.nextElementSibling;
  34608. let nextColumnWidth = nextColumn.offsetWidth - delta;
  34609. if (newColumnWidth > 15 && nextColumnWidth > 15) {
  34610. this.resizeTableCells(newColumnWidth, nextColumnWidth);
  34611. }
  34612. }
  34613. else if (this.columnResizeMode === 'expand') {
  34614. const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
  34615. this.$refs.table.style.width = tableWidth;
  34616. this.$refs.table.style.minWidth = tableWidth;
  34617. this.resizeTableCells(newColumnWidth);
  34618. }
  34619. this.$emit('column-resize-end', {
  34620. element: this.resizeColumnElement,
  34621. delta: delta
  34622. });
  34623. }
  34624. this.$refs.resizeHelper.style.display = 'none';
  34625. this.resizeColumn = null;
  34626. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(this.$el, 'p-unselectable-text');
  34627. this.unbindColumnResizeEvents();
  34628. if (this.isStateful()) {
  34629. this.saveState();
  34630. }
  34631. },
  34632. resizeTableCells(newColumnWidth, nextColumnWidth) {
  34633. let colIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.resizeColumnElement);
  34634. let widths = [];
  34635. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$refs.table, '.p-datatable-thead > tr > th');
  34636. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  34637. this.destroyStyleElement();
  34638. this.createStyleElement();
  34639. let innerHTML = '';
  34640. widths.forEach((width, index) => {
  34641. let colWidth = index === colIndex ? newColumnWidth : (nextColumnWidth && index === colIndex + 1) ? nextColumnWidth : width;
  34642. let style = this.scrollable ? `flex: 1 1 ${colWidth}px !important` : `width: ${colWidth}px !important`;
  34643. innerHTML += `
  34644. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  34645. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  34646. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  34647. ${style}
  34648. }
  34649. `;
  34650. });
  34651. this.styleElement.innerHTML = innerHTML;
  34652. },
  34653. bindColumnResizeEvents() {
  34654. if (!this.documentColumnResizeListener) {
  34655. this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
  34656. if(this.columnResizing) {
  34657. this.onColumnResize(event);
  34658. }
  34659. });
  34660. }
  34661. if (!this.documentColumnResizeEndListener) {
  34662. this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
  34663. if(this.columnResizing) {
  34664. this.columnResizing = false;
  34665. this.onColumnResizeEnd();
  34666. }
  34667. });
  34668. }
  34669. },
  34670. unbindColumnResizeEvents() {
  34671. if (this.documentColumnResizeListener) {
  34672. document.removeEventListener('document', this.documentColumnResizeListener);
  34673. this.documentColumnResizeListener = null;
  34674. }
  34675. if (this.documentColumnResizeEndListener) {
  34676. document.removeEventListener('document', this.documentColumnResizeEndListener);
  34677. this.documentColumnResizeEndListener = null;
  34678. }
  34679. },
  34680. onColumnHeaderMouseDown(e) {
  34681. const event = e.originalEvent;
  34682. const column = e.column;
  34683. if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
  34684. if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-column-resizer'))
  34685. event.currentTarget.draggable = false;
  34686. else
  34687. event.currentTarget.draggable = true;
  34688. }
  34689. },
  34690. onColumnHeaderDragStart(event) {
  34691. if (this.columnResizing) {
  34692. event.preventDefault();
  34693. return;
  34694. }
  34695. this.colReorderIconWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
  34696. this.colReorderIconHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
  34697. this.draggedColumn = this.findParentHeader(event.target);
  34698. event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
  34699. },
  34700. onColumnHeaderDragOver(event) {
  34701. let dropHeader = this.findParentHeader(event.target);
  34702. if(this.reorderableColumns && this.draggedColumn && dropHeader) {
  34703. event.preventDefault();
  34704. let containerOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el);
  34705. let dropHeaderOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(dropHeader);
  34706. if (this.draggedColumn !== dropHeader) {
  34707. let targetLeft = dropHeaderOffset.left - containerOffset.left;
  34708. let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
  34709. this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
  34710. this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
  34711. if(event.pageX > columnCenter) {
  34712. this.$refs.reorderIndicatorUp.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  34713. this.$refs.reorderIndicatorDown.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  34714. this.dropPosition = 1;
  34715. }
  34716. else {
  34717. this.$refs.reorderIndicatorUp.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  34718. this.$refs.reorderIndicatorDown.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  34719. this.dropPosition = -1;
  34720. }
  34721. this.$refs.reorderIndicatorUp.style.display = 'block';
  34722. this.$refs.reorderIndicatorDown.style.display = 'block';
  34723. }
  34724. }
  34725. },
  34726. onColumnHeaderDragLeave(event) {
  34727. if(this.reorderableColumns && this.draggedColumn) {
  34728. event.preventDefault();
  34729. this.$refs.reorderIndicatorUp.style.display = 'none';
  34730. this.$refs.reorderIndicatorDown.style.display = 'none';
  34731. }
  34732. },
  34733. onColumnHeaderDrop(event) {
  34734. event.preventDefault();
  34735. if (this.draggedColumn) {
  34736. let dragIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.draggedColumn);
  34737. let dropIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.findParentHeader(event.target));
  34738. let allowDrop = (dragIndex !== dropIndex);
  34739. if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dragIndex - dropIndex === 1 && this.dropPosition === 1))) {
  34740. allowDrop = false;
  34741. }
  34742. if (allowDrop) {
  34743. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
  34744. this.updateReorderableColumns();
  34745. this.$emit('column-reorder', {
  34746. originalEvent: event,
  34747. dragIndex: dragIndex,
  34748. dropIndex: dropIndex
  34749. });
  34750. }
  34751. this.$refs.reorderIndicatorUp.style.display = 'none';
  34752. this.$refs.reorderIndicatorDown.style.display = 'none';
  34753. this.draggedColumn.draggable = false;
  34754. this.draggedColumn = null;
  34755. this.dropPosition = null;
  34756. }
  34757. },
  34758. findParentHeader(element) {
  34759. if(element.nodeName === 'TH') {
  34760. return element;
  34761. }
  34762. else {
  34763. let parent = element.parentElement;
  34764. while(parent.nodeName !== 'TH') {
  34765. parent = parent.parentElement;
  34766. if (!parent) break;
  34767. }
  34768. return parent;
  34769. }
  34770. },
  34771. findColumnByKey(columns, key) {
  34772. if (columns && columns.length) {
  34773. for (let i = 0; i < columns.length; i++) {
  34774. let column = columns[i];
  34775. if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
  34776. return column;
  34777. }
  34778. }
  34779. }
  34780. return null;
  34781. },
  34782. onRowMouseDown(event) {
  34783. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle'))
  34784. event.currentTarget.draggable = true;
  34785. else
  34786. event.currentTarget.draggable = false;
  34787. },
  34788. onRowDragStart(e) {
  34789. const event = e.originalEvent;
  34790. const index = e.index;
  34791. this.rowDragging = true;
  34792. this.draggedRowIndex = index;
  34793. event.dataTransfer.setData('text', 'b'); // For firefox
  34794. },
  34795. onRowDragOver(e) {
  34796. const event = e.originalEvent;
  34797. const index = e.index;
  34798. if (this.rowDragging && this.draggedRowIndex !== index) {
  34799. let rowElement = event.currentTarget;
  34800. let rowY = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(rowElement).top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  34801. let pageY = event.pageY;
  34802. let rowMidY = rowY + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(rowElement) / 2;
  34803. let prevRowElement = rowElement.previousElementSibling;
  34804. if (pageY < rowMidY) {
  34805. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  34806. this.droppedRowIndex = index;
  34807. if (prevRowElement)
  34808. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  34809. else
  34810. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  34811. }
  34812. else {
  34813. if (prevRowElement)
  34814. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  34815. else
  34816. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  34817. this.droppedRowIndex = index + 1;
  34818. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
  34819. }
  34820. event.preventDefault();
  34821. }
  34822. },
  34823. onRowDragLeave(event) {
  34824. let rowElement = event.currentTarget;
  34825. let prevRowElement = rowElement.previousElementSibling;
  34826. if (prevRowElement) {
  34827. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  34828. }
  34829. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  34830. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
  34831. },
  34832. onRowDragEnd(event) {
  34833. this.rowDragging = false;
  34834. this.draggedRowIndex = null;
  34835. this.droppedRowIndex = null;
  34836. event.currentTarget.draggable = false;
  34837. },
  34838. onRowDrop(event) {
  34839. if (this.droppedRowIndex != null) {
  34840. let dropIndex = (this.draggedRowIndex > this.droppedRowIndex) ? this.droppedRowIndex : (this.droppedRowIndex === 0) ? 0 : this.droppedRowIndex - 1;
  34841. let processedData = [...this.processedData];
  34842. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
  34843. this.$emit('row-reorder', {
  34844. originalEvent: event,
  34845. dragIndex: this.draggedRowIndex,
  34846. dropIndex: dropIndex,
  34847. value: processedData
  34848. });
  34849. }
  34850. //cleanup
  34851. this.onRowDragLeave(event);
  34852. this.onRowDragEnd(event);
  34853. event.preventDefault();
  34854. },
  34855. toggleRow(event) {
  34856. let rowData = event.data;
  34857. let expanded;
  34858. let expandedRowIndex;
  34859. let _expandedRows = this.expandedRows ? [...this.expandedRows] : [];
  34860. if (this.dataKey) {
  34861. expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  34862. }
  34863. else {
  34864. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  34865. expanded = expandedRowIndex > -1;
  34866. }
  34867. if (expanded) {
  34868. if (expandedRowIndex == null) {
  34869. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  34870. }
  34871. _expandedRows.splice(expandedRowIndex, 1);
  34872. this.$emit('update:expandedRows', _expandedRows);
  34873. this.$emit('row-collapse', event);
  34874. }
  34875. else {
  34876. _expandedRows.push(rowData);
  34877. this.$emit('update:expandedRows', _expandedRows);
  34878. this.$emit('row-expand', event);
  34879. }
  34880. },
  34881. toggleRowGroup(e) {
  34882. const event = e.originalEvent;
  34883. const data = e.data;
  34884. const groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.groupRowsBy);
  34885. let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
  34886. if (this.isRowGroupExpanded(data)) {
  34887. _expandedRowGroups = _expandedRowGroups.filter(group => group !== groupFieldValue);
  34888. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  34889. this.$emit('rowgroup-collapse', {originalEvent: event, data: groupFieldValue});
  34890. }
  34891. else {
  34892. _expandedRowGroups.push(groupFieldValue);
  34893. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  34894. this.$emit('rowgroup-expand', {originalEvent: event, data: groupFieldValue});
  34895. }
  34896. },
  34897. isRowGroupExpanded(rowData) {
  34898. if (this.expandableRowGroups && this.expandedRowGroups) {
  34899. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  34900. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  34901. }
  34902. return false;
  34903. },
  34904. isStateful() {
  34905. return this.stateKey != null;
  34906. },
  34907. getStorage() {
  34908. switch(this.stateStorage) {
  34909. case 'local':
  34910. return window.localStorage;
  34911. case 'session':
  34912. return window.sessionStorage;
  34913. default:
  34914. throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
  34915. }
  34916. },
  34917. saveState() {
  34918. const storage = this.getStorage();
  34919. let state = {};
  34920. if (this.paginator) {
  34921. state.first = this.d_first;
  34922. state.rows = this.d_rows;
  34923. }
  34924. if (this.d_sortField) {
  34925. state.sortField = this.d_sortField;
  34926. state.sortOrder = this.d_sortOrder;
  34927. }
  34928. if (this.d_multiSortMeta) {
  34929. state.multiSortMeta = this.d_multiSortMeta;
  34930. }
  34931. if (this.hasFilters) {
  34932. state.filters = this.filters;
  34933. }
  34934. if (this.resizableColumns) {
  34935. this.saveColumnWidths(state);
  34936. }
  34937. if (this.reorderableColumns) {
  34938. state.columnOrder = this.d_columnOrder;
  34939. }
  34940. if (this.expandedRows) {
  34941. state.expandedRows = this.expandedRows;
  34942. state.expandedRowKeys = this.d_expandedRowKeys;
  34943. }
  34944. if (this.expandedRowGroups) {
  34945. state.expandedRowGroups = this.expandedRowGroups;
  34946. }
  34947. if (this.selection) {
  34948. state.selection = this.selection;
  34949. state.selectionKeys = this.d_selectionKeys;
  34950. }
  34951. if (Object.keys(state).length) {
  34952. storage.setItem(this.stateKey, JSON.stringify(state));
  34953. }
  34954. this.$emit('state-save', state);
  34955. },
  34956. restoreState() {
  34957. const storage = this.getStorage();
  34958. const stateString = storage.getItem(this.stateKey);
  34959. const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
  34960. const reviver = function(key, value) {
  34961. if (typeof value === "string" && dateFormat.test(value)) {
  34962. return new Date(value);
  34963. }
  34964. return value;
  34965. };
  34966. if (stateString) {
  34967. let restoredState = JSON.parse(stateString, reviver);
  34968. if (this.paginator) {
  34969. this.d_first = restoredState.first;
  34970. this.d_rows = restoredState.rows;
  34971. }
  34972. if (restoredState.sortField) {
  34973. this.d_sortField = restoredState.sortField;
  34974. this.d_sortOrder = restoredState.sortOrder;
  34975. }
  34976. if (restoredState.multiSortMeta) {
  34977. this.d_multiSortMeta = restoredState.multiSortMeta;
  34978. }
  34979. if (restoredState.filters) {
  34980. this.$emit('update:filters', restoredState.filters);
  34981. }
  34982. if (this.resizableColumns) {
  34983. this.columnWidthsState = restoredState.columnWidths;
  34984. this.tableWidthState = restoredState.tableWidth;
  34985. }
  34986. if (this.reorderableColumns) {
  34987. this.d_columnOrder = restoredState.columnOrder;
  34988. }
  34989. if (restoredState.expandedRows) {
  34990. this.d_expandedRowKeys = restoredState.expandedRowKeys;
  34991. this.$emit('update:expandedRows', restoredState.expandedRows);
  34992. }
  34993. if (restoredState.expandedRowGroups) {
  34994. this.$emit('update:expandedRowGroups', restoredState.expandedRowGroups);
  34995. }
  34996. if (restoredState.selection) {
  34997. this.d_selectionKeys = restoredState.d_selectionKeys;
  34998. this.$emit('update:selection', restoredState.selection);
  34999. }
  35000. this.$emit('state-restore', restoredState);
  35001. }
  35002. },
  35003. saveColumnWidths(state) {
  35004. let widths = [];
  35005. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-datatable-thead > tr > th');
  35006. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  35007. state.columnWidths = widths.join(',');
  35008. if (this.columnResizeMode === 'expand') {
  35009. state.tableWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.table) + 'px';
  35010. }
  35011. },
  35012. restoreColumnWidths() {
  35013. if (this.columnWidthsState) {
  35014. let widths = this.columnWidthsState.split(',');
  35015. if (this.columnResizeMode === 'expand' && this.tableWidthState) {
  35016. this.$refs.table.style.width = this.tableWidthState;
  35017. this.$refs.table.style.minWidth = this.tableWidthState;
  35018. this.$el.style.width = this.tableWidthState;
  35019. }
  35020. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isNotEmpty(widths)) {
  35021. this.createStyleElement();
  35022. let innerHTML = '';
  35023. widths.forEach((width, index) => {
  35024. let style = this.scrollable ? `flex: 1 1 ${width}px !important` : `width: ${width}px !important`;
  35025. innerHTML += `
  35026. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  35027. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  35028. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  35029. ${style}
  35030. }
  35031. `;
  35032. });
  35033. this.styleElement.innerHTML = innerHTML;
  35034. }
  35035. }
  35036. },
  35037. onCellEditInit(event) {
  35038. this.$emit('cell-edit-init', event);
  35039. },
  35040. onCellEditComplete(event) {
  35041. this.$emit('cell-edit-complete', event);
  35042. },
  35043. onCellEditCancel(event) {
  35044. this.$emit('cell-edit-cancel', event);
  35045. },
  35046. onRowEditInit(event) {
  35047. let _editingRows = this.editingRows ? [...this.editingRows] : [];
  35048. _editingRows.push(event.data);
  35049. this.$emit('update:editingRows', _editingRows);
  35050. this.$emit('row-edit-init', event);
  35051. },
  35052. onRowEditSave(event) {
  35053. let _editingRows = [...this.editingRows];
  35054. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35055. this.$emit('update:editingRows', _editingRows);
  35056. this.$emit('row-edit-save', event);
  35057. },
  35058. onRowEditCancel(event) {
  35059. let _editingRows = [...this.editingRows];
  35060. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35061. this.$emit('update:editingRows', _editingRows);
  35062. this.$emit('row-edit-cancel', event);
  35063. },
  35064. onEditingMetaChange(event) {
  35065. let { data, field, index, editing } = event;
  35066. let editingMeta = { ...this.d_editingMeta };
  35067. let meta = editingMeta[index];
  35068. if (editing) {
  35069. !meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
  35070. meta['fields'].push(field);
  35071. }
  35072. else if (meta) {
  35073. const fields = meta['fields'].filter(f => f !== field);
  35074. !fields.length ? (delete editingMeta[index]) : (meta['fields'] = fields);
  35075. }
  35076. this.d_editingMeta = editingMeta;
  35077. },
  35078. clearEditingMetaData() {
  35079. if (this.editMode) {
  35080. this.d_editingMeta = {};
  35081. }
  35082. },
  35083. createLazyLoadEvent(event) {
  35084. return {
  35085. originalEvent: event,
  35086. first: this.d_first,
  35087. rows: this.d_rows,
  35088. sortField: this.d_sortField,
  35089. sortOrder: this.d_sortOrder,
  35090. multiSortMeta: this.d_multiSortMeta,
  35091. filters: this.d_filters
  35092. };
  35093. },
  35094. hasGlobalFilter() {
  35095. return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
  35096. },
  35097. getChildren() {
  35098. return this.$slots.default ? this.$slots.default() : null;
  35099. },
  35100. onFilterChange(filters) {
  35101. this.d_filters = filters;
  35102. },
  35103. onFilterApply() {
  35104. this.d_first = 0;
  35105. this.$emit('update:first', this.d_first);
  35106. this.$emit('update:filters', this.d_filters);
  35107. if (this.lazy) {
  35108. this.$emit('filter', this.createLazyLoadEvent());
  35109. }
  35110. },
  35111. cloneFilters() {
  35112. let cloned = {};
  35113. if (this.filters) {
  35114. Object.entries(this.filters).forEach(([prop,value]) => {
  35115. cloned[prop] = value.operator ? {operator: value.operator, constraints: value.constraints.map(constraint => {return {...constraint}})} : {...value};
  35116. });
  35117. }
  35118. return cloned;
  35119. },
  35120. updateReorderableColumns() {
  35121. let columnOrder = [];
  35122. this.columns.forEach(col => columnOrder.push(this.columnProp(col, 'columnKey')||this.columnProp(col, 'field')));
  35123. this.d_columnOrder = columnOrder;
  35124. },
  35125. createStyleElement() {
  35126. this.styleElement = document.createElement('style');
  35127. this.styleElement.type = 'text/css';
  35128. document.head.appendChild(this.styleElement);
  35129. },
  35130. createResponsiveStyle() {
  35131. if (!this.responsiveStyleElement) {
  35132. this.responsiveStyleElement = document.createElement('style');
  35133. this.responsiveStyleElement.type = 'text/css';
  35134. document.head.appendChild(this.responsiveStyleElement);
  35135. let innerHTML = `
  35136. @media screen and (max-width: ${this.breakpoint}) {
  35137. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th,
  35138. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td {
  35139. display: none !important;
  35140. }
  35141. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td {
  35142. display: flex;
  35143. width: 100% !important;
  35144. align-items: center;
  35145. justify-content: space-between;
  35146. }
  35147. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:not(:last-child) {
  35148. border: 0 none;
  35149. }
  35150. .p-datatable[${this.attributeSelector}].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
  35151. border-top: 0;
  35152. border-right: 0;
  35153. border-left: 0;
  35154. }
  35155. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td > .p-column-title {
  35156. display: block;
  35157. }
  35158. }
  35159. `;
  35160. this.responsiveStyleElement.innerHTML = innerHTML;
  35161. }
  35162. },
  35163. destroyResponsiveStyle() {
  35164. if (this.responsiveStyleElement) {
  35165. document.head.removeChild(this.responsiveStyleElement);
  35166. this.responsiveStyleElement = null;
  35167. }
  35168. },
  35169. destroyStyleElement() {
  35170. if (this.styleElement) {
  35171. document.head.removeChild(this.styleElement);
  35172. this.styleElement = null;
  35173. }
  35174. },
  35175. recursiveGetChildren(children, results) {
  35176. if (!results) {
  35177. results = [];
  35178. }
  35179. if (children && children.length) {
  35180. children.forEach((child) => {
  35181. if (child.children instanceof Array) {
  35182. results.concat(this.recursiveGetChildren(child.children, results));
  35183. } else if (child.type.name == 'Column') {
  35184. results.push(child);
  35185. }
  35186. });
  35187. }
  35188. return results;
  35189. },
  35190. dataToRender(data) {
  35191. const _data = data || this.processedData;
  35192. if (_data && this.paginator) {
  35193. const first = this.lazy ? 0 : this.d_first;
  35194. return _data.slice(first, first + this.d_rows);
  35195. }
  35196. return _data;
  35197. }
  35198. },
  35199. computed: {
  35200. containerClass() {
  35201. return [
  35202. 'p-datatable p-component', {
  35203. 'p-datatable-hoverable-rows': (this.rowHover || this.selectionMode),
  35204. 'p-datatable-auto-layout': this.autoLayout,
  35205. 'p-datatable-resizable': this.resizableColumns,
  35206. 'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
  35207. 'p-datatable-scrollable': this.scrollable,
  35208. 'p-datatable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
  35209. 'p-datatable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
  35210. 'p-datatable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
  35211. 'p-datatable-flex-scrollable': (this.scrollable && this.scrollHeight === 'flex'),
  35212. 'p-datatable-responsive-stack': this.responsiveLayout === 'stack',
  35213. 'p-datatable-responsive-scroll': this.responsiveLayout === 'scroll',
  35214. 'p-datatable-striped': this.stripedRows,
  35215. 'p-datatable-gridlines': this.showGridlines,
  35216. 'p-datatable-grouped-header': this.headerColumnGroup != null,
  35217. 'p-datatable-grouped-footer': this.footerColumnGroup != null
  35218. }
  35219. ];
  35220. },
  35221. columns() {
  35222. let children = this.getChildren();
  35223. if (!children) {
  35224. return;
  35225. }
  35226. const cols = this.recursiveGetChildren(children, []);
  35227. if (this.reorderableColumns && this.d_columnOrder) {
  35228. let orderedColumns = [];
  35229. for (let columnKey of this.d_columnOrder) {
  35230. let column = this.findColumnByKey(cols, columnKey);
  35231. if (column) {
  35232. orderedColumns.push(column);
  35233. }
  35234. }
  35235. return [...orderedColumns, ...cols.filter((item) => orderedColumns.indexOf(item) < 0)];
  35236. }
  35237. return cols;
  35238. },
  35239. headerColumnGroup() {
  35240. const children = this.getChildren();
  35241. if (children) {
  35242. for (let child of children) {
  35243. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
  35244. return child;
  35245. }
  35246. }
  35247. }
  35248. return null;
  35249. },
  35250. footerColumnGroup() {
  35251. const children = this.getChildren();
  35252. if (children) {
  35253. for (let child of children) {
  35254. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
  35255. return child;
  35256. }
  35257. }
  35258. }
  35259. return null;
  35260. },
  35261. hasFilters() {
  35262. return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
  35263. },
  35264. processedData() {
  35265. let data = this.value || [];
  35266. if (!this.lazy) {
  35267. if (data && data.length) {
  35268. if (this.hasFilters) {
  35269. data = this.filter(data);
  35270. }
  35271. if (this.sorted) {
  35272. if(this.sortMode === 'single')
  35273. data = this.sortSingle(data);
  35274. else if(this.sortMode === 'multiple')
  35275. data = this.sortMultiple(data);
  35276. }
  35277. }
  35278. }
  35279. return data;
  35280. },
  35281. totalRecordsLength() {
  35282. if (this.lazy) {
  35283. return this.totalRecords;
  35284. }
  35285. else {
  35286. const data = this.processedData;
  35287. return data ? data.length : 0;
  35288. }
  35289. },
  35290. empty() {
  35291. const data = this.processedData;
  35292. return (!data || data.length === 0);
  35293. },
  35294. paginatorTop() {
  35295. return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
  35296. },
  35297. paginatorBottom() {
  35298. return this.paginator && (this.paginatorPosition !== 'top' || this.paginatorPosition === 'both');
  35299. },
  35300. sorted() {
  35301. return this.d_sortField || (this.d_multiSortMeta && this.d_multiSortMeta.length > 0);
  35302. },
  35303. loadingIconClass() {
  35304. return ['p-datatable-loading-icon pi-spin', this.loadingIcon];
  35305. },
  35306. allRowsSelected() {
  35307. if (this.selectAll !== null) {
  35308. return this.selectAll;
  35309. }
  35310. else {
  35311. const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  35312. return val && this.selection && Array.isArray(this.selection) && val.every(v => this.selection.some(s => this.equals(s, v)));
  35313. }
  35314. },
  35315. attributeSelector() {
  35316. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  35317. },
  35318. groupRowSortField() {
  35319. return this.sortMode === 'single' ? this.sortField : (this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null);
  35320. },
  35321. virtualScrollerDisabled() {
  35322. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
  35323. }
  35324. },
  35325. components: {
  35326. 'DTPaginator': primevue_paginator__WEBPACK_IMPORTED_MODULE_2__["default"],
  35327. 'DTTableHeader': script$7,
  35328. 'DTTableBody': script$3,
  35329. 'DTTableFooter': script$1,
  35330. 'DTVirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__["default"]
  35331. }
  35332. };
  35333. const _hoisted_1 = {
  35334. key: 0,
  35335. class: "p-datatable-loading-overlay p-component-overlay"
  35336. };
  35337. const _hoisted_2 = {
  35338. key: 1,
  35339. class: "p-datatable-header"
  35340. };
  35341. const _hoisted_3 = {
  35342. key: 4,
  35343. class: "p-datatable-footer"
  35344. };
  35345. const _hoisted_4 = {
  35346. ref: "resizeHelper",
  35347. class: "p-column-resizer-helper",
  35348. style: {"display":"none"}
  35349. };
  35350. const _hoisted_5 = {
  35351. key: 5,
  35352. ref: "reorderIndicatorUp",
  35353. class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
  35354. style: {"position":"absolute","display":"none"}
  35355. };
  35356. const _hoisted_6 = {
  35357. key: 6,
  35358. ref: "reorderIndicatorDown",
  35359. class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
  35360. style: {"position":"absolute","display":"none"}
  35361. };
  35362. function render(_ctx, _cache, $props, $setup, $data, $options) {
  35363. const _component_DTPaginator = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTPaginator");
  35364. const _component_DTTableHeader = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableHeader");
  35365. const _component_DTTableBody = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableBody");
  35366. const _component_DTTableFooter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableFooter");
  35367. const _component_DTVirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTVirtualScroller");
  35368. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  35369. class: $options.containerClass,
  35370. "data-scrollselectors": ".p-datatable-wrapper"
  35371. }, [
  35372. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "default"),
  35373. ($props.loading)
  35374. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_1, [
  35375. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("i", { class: $options.loadingIconClass }, null, 2)
  35376. ]))
  35377. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35378. (_ctx.$slots.header)
  35379. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_2, [
  35380. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header")
  35381. ]))
  35382. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35383. ($options.paginatorTop)
  35384. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35385. key: 2,
  35386. rows: $data.d_rows,
  35387. first: $data.d_first,
  35388. totalRecords: $options.totalRecordsLength,
  35389. pageLinkSize: $props.pageLinkSize,
  35390. template: $props.paginatorTemplate,
  35391. rowsPerPageOptions: $props.rowsPerPageOptions,
  35392. currentPageReportTemplate: $props.currentPageReportTemplate,
  35393. class: "p-paginator-top",
  35394. onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
  35395. alwaysShow: $props.alwaysShowPaginator
  35396. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35397. (_ctx.$slots.paginatorstart)
  35398. ? {
  35399. name: "start",
  35400. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35401. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35402. ])
  35403. }
  35404. : undefined,
  35405. (_ctx.$slots.paginatorend)
  35406. ? {
  35407. name: "end",
  35408. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35409. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35410. ])
  35411. }
  35412. : undefined
  35413. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35414. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35415. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  35416. class: "p-datatable-wrapper",
  35417. style: { maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
  35418. }, [
  35419. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTVirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)($props.virtualScrollerOptions, {
  35420. items: $options.processedData,
  35421. columns: $options.columns,
  35422. style: { height: $props.scrollHeight },
  35423. disabled: $options.virtualScrollerDisabled,
  35424. loaderDisabled: "",
  35425. showSpacer: false
  35426. }), {
  35427. content: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)((slotProps) => [
  35428. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("table", {
  35429. ref: "table",
  35430. role: "table",
  35431. class: [$props.tableClass, 'p-datatable-table'],
  35432. style: [$props.tableStyle, slotProps.spacerStyle]
  35433. }, [
  35434. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableHeader, {
  35435. columnGroup: $options.headerColumnGroup,
  35436. columns: slotProps.columns,
  35437. rowGroupMode: $props.rowGroupMode,
  35438. groupRowsBy: $props.groupRowsBy,
  35439. groupRowSortField: $options.groupRowSortField,
  35440. resizableColumns: $props.resizableColumns,
  35441. allRowsSelected: $options.allRowsSelected,
  35442. empty: $options.empty,
  35443. sortMode: $props.sortMode,
  35444. sortField: $data.d_sortField,
  35445. sortOrder: $data.d_sortOrder,
  35446. multiSortMeta: $data.d_multiSortMeta,
  35447. filters: $data.d_filters,
  35448. filtersStore: $props.filters,
  35449. filterDisplay: $props.filterDisplay,
  35450. onColumnClick: _cache[2] || (_cache[2] = $event => ($options.onColumnHeaderClick($event))),
  35451. onColumnMousedown: _cache[3] || (_cache[3] = $event => ($options.onColumnHeaderMouseDown($event))),
  35452. onFilterChange: $options.onFilterChange,
  35453. onFilterApply: $options.onFilterApply,
  35454. onColumnDragstart: _cache[4] || (_cache[4] = $event => ($options.onColumnHeaderDragStart($event))),
  35455. onColumnDragover: _cache[5] || (_cache[5] = $event => ($options.onColumnHeaderDragOver($event))),
  35456. onColumnDragleave: _cache[6] || (_cache[6] = $event => ($options.onColumnHeaderDragLeave($event))),
  35457. onColumnDrop: _cache[7] || (_cache[7] = $event => ($options.onColumnHeaderDrop($event))),
  35458. onColumnResizestart: _cache[8] || (_cache[8] = $event => ($options.onColumnResizeStart($event))),
  35459. onCheckboxChange: _cache[9] || (_cache[9] = $event => ($options.toggleRowsWithCheckbox($event)))
  35460. }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "onFilterChange", "onFilterApply"]),
  35461. ($props.frozenValue)
  35462. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTTableBody, {
  35463. key: 0,
  35464. value: $props.frozenValue,
  35465. frozenRow: true,
  35466. class: "p-datatable-frozen-tbody",
  35467. columns: slotProps.columns,
  35468. dataKey: $props.dataKey,
  35469. selection: $props.selection,
  35470. selectionKeys: $data.d_selectionKeys,
  35471. selectionMode: $props.selectionMode,
  35472. contextMenu: $props.contextMenu,
  35473. contextMenuSelection: $props.contextMenuSelection,
  35474. rowGroupMode: $props.rowGroupMode,
  35475. groupRowsBy: $props.groupRowsBy,
  35476. expandableRowGroups: $props.expandableRowGroups,
  35477. rowClass: $props.rowClass,
  35478. rowStyle: $props.rowStyle,
  35479. editMode: $props.editMode,
  35480. compareSelectionBy: $props.compareSelectionBy,
  35481. scrollable: $props.scrollable,
  35482. expandedRowIcon: $props.expandedRowIcon,
  35483. collapsedRowIcon: $props.collapsedRowIcon,
  35484. expandedRows: $props.expandedRows,
  35485. expandedRowKeys: $data.d_expandedRowKeys,
  35486. expandedRowGroups: $props.expandedRowGroups,
  35487. editingRows: $props.editingRows,
  35488. editingRowKeys: $data.d_editingRowKeys,
  35489. templates: _ctx.$slots,
  35490. loading: $props.loading,
  35491. responsiveLayout: $props.responsiveLayout,
  35492. onRowgroupToggle: $options.toggleRowGroup,
  35493. onRowClick: _cache[10] || (_cache[10] = $event => ($options.onRowClick($event))),
  35494. onRowDblclick: _cache[11] || (_cache[11] = $event => ($options.onRowDblClick($event))),
  35495. onRowRightclick: _cache[12] || (_cache[12] = $event => ($options.onRowRightClick($event))),
  35496. onRowTouchend: $options.onRowTouchEnd,
  35497. onRowKeydown: $options.onRowKeyDown,
  35498. onRowMousedown: $options.onRowMouseDown,
  35499. onRowDragstart: _cache[13] || (_cache[13] = $event => ($options.onRowDragStart($event))),
  35500. onRowDragover: _cache[14] || (_cache[14] = $event => ($options.onRowDragOver($event))),
  35501. onRowDragleave: _cache[15] || (_cache[15] = $event => ($options.onRowDragLeave($event))),
  35502. onRowDragend: _cache[16] || (_cache[16] = $event => ($options.onRowDragEnd($event))),
  35503. onRowDrop: _cache[17] || (_cache[17] = $event => ($options.onRowDrop($event))),
  35504. onRowToggle: _cache[18] || (_cache[18] = $event => ($options.toggleRow($event))),
  35505. onRadioChange: _cache[19] || (_cache[19] = $event => ($options.toggleRowWithRadio($event))),
  35506. onCheckboxChange: _cache[20] || (_cache[20] = $event => ($options.toggleRowWithCheckbox($event))),
  35507. onCellEditInit: _cache[21] || (_cache[21] = $event => ($options.onCellEditInit($event))),
  35508. onCellEditComplete: _cache[22] || (_cache[22] = $event => ($options.onCellEditComplete($event))),
  35509. onCellEditCancel: _cache[23] || (_cache[23] = $event => ($options.onCellEditCancel($event))),
  35510. onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
  35511. onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
  35512. onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
  35513. editingMeta: $data.d_editingMeta,
  35514. onEditingMetaChange: $options.onEditingMetaChange,
  35515. isVirtualScrollerDisabled: true
  35516. }, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
  35517. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35518. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableBody, {
  35519. value: $options.dataToRender(slotProps.rows),
  35520. class: slotProps.styleClass,
  35521. columns: slotProps.columns,
  35522. empty: $options.empty,
  35523. dataKey: $props.dataKey,
  35524. selection: $props.selection,
  35525. selectionKeys: $data.d_selectionKeys,
  35526. selectionMode: $props.selectionMode,
  35527. contextMenu: $props.contextMenu,
  35528. contextMenuSelection: $props.contextMenuSelection,
  35529. rowGroupMode: $props.rowGroupMode,
  35530. groupRowsBy: $props.groupRowsBy,
  35531. expandableRowGroups: $props.expandableRowGroups,
  35532. rowClass: $props.rowClass,
  35533. rowStyle: $props.rowStyle,
  35534. editMode: $props.editMode,
  35535. compareSelectionBy: $props.compareSelectionBy,
  35536. scrollable: $props.scrollable,
  35537. expandedRowIcon: $props.expandedRowIcon,
  35538. collapsedRowIcon: $props.collapsedRowIcon,
  35539. expandedRows: $props.expandedRows,
  35540. expandedRowKeys: $data.d_expandedRowKeys,
  35541. expandedRowGroups: $props.expandedRowGroups,
  35542. editingRows: $props.editingRows,
  35543. editingRowKeys: $data.d_editingRowKeys,
  35544. templates: _ctx.$slots,
  35545. loading: $props.loading,
  35546. responsiveLayout: $props.responsiveLayout,
  35547. onRowgroupToggle: $options.toggleRowGroup,
  35548. onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
  35549. onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
  35550. onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
  35551. onRowTouchend: $options.onRowTouchEnd,
  35552. onRowKeydown: $options.onRowKeyDown,
  35553. onRowMousedown: $options.onRowMouseDown,
  35554. onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
  35555. onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
  35556. onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
  35557. onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
  35558. onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
  35559. onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
  35560. onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
  35561. onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
  35562. onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
  35563. onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
  35564. onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
  35565. onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
  35566. onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
  35567. onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
  35568. editingMeta: $data.d_editingMeta,
  35569. onEditingMetaChange: $options.onEditingMetaChange,
  35570. virtualScrollerContentProps: slotProps,
  35571. isVirtualScrollerDisabled: $options.virtualScrollerDisabled
  35572. }, null, 8, ["value", "class", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps", "isVirtualScrollerDisabled"]),
  35573. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableFooter, {
  35574. columnGroup: $options.footerColumnGroup,
  35575. columns: slotProps.columns
  35576. }, null, 8, ["columnGroup", "columns"])
  35577. ], 6)
  35578. ]),
  35579. _: 1
  35580. }, 16, ["items", "columns", "style", "disabled"])
  35581. ], 4),
  35582. ($options.paginatorBottom)
  35583. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35584. key: 3,
  35585. rows: $data.d_rows,
  35586. first: $data.d_first,
  35587. totalRecords: $options.totalRecordsLength,
  35588. pageLinkSize: $props.pageLinkSize,
  35589. template: $props.paginatorTemplate,
  35590. rowsPerPageOptions: $props.rowsPerPageOptions,
  35591. currentPageReportTemplate: $props.currentPageReportTemplate,
  35592. class: "p-paginator-bottom",
  35593. onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
  35594. alwaysShow: $props.alwaysShowPaginator
  35595. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35596. (_ctx.$slots.paginatorstart)
  35597. ? {
  35598. name: "start",
  35599. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35600. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35601. ])
  35602. }
  35603. : undefined,
  35604. (_ctx.$slots.paginatorend)
  35605. ? {
  35606. name: "end",
  35607. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35608. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35609. ])
  35610. }
  35611. : undefined
  35612. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35613. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35614. (_ctx.$slots.footer)
  35615. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_3, [
  35616. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  35617. ]))
  35618. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35619. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_4, null, 512),
  35620. ($props.reorderableColumns)
  35621. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_5, null, 512))
  35622. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35623. ($props.reorderableColumns)
  35624. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_6, null, 512))
  35625. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  35626. ], 2))
  35627. }
  35628. function styleInject(css, ref) {
  35629. if ( ref === void 0 ) ref = {};
  35630. var insertAt = ref.insertAt;
  35631. if (!css || typeof document === 'undefined') { return; }
  35632. var head = document.head || document.getElementsByTagName('head')[0];
  35633. var style = document.createElement('style');
  35634. style.type = 'text/css';
  35635. if (insertAt === 'top') {
  35636. if (head.firstChild) {
  35637. head.insertBefore(style, head.firstChild);
  35638. } else {
  35639. head.appendChild(style);
  35640. }
  35641. } else {
  35642. head.appendChild(style);
  35643. }
  35644. if (style.styleSheet) {
  35645. style.styleSheet.cssText = css;
  35646. } else {
  35647. style.appendChild(document.createTextNode(css));
  35648. }
  35649. }
  35650. var css_248z = "\n.p-datatable {\n position: relative;\n}\n.p-datatable table {\n border-collapse: collapse;\n min-width: 100%;\n table-layout: fixed;\n}\n.p-datatable .p-sortable-column {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-datatable .p-sortable-column .p-column-title,\n.p-datatable .p-sortable-column .p-sortable-column-icon,\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper > table,\n.p-datatable-auto-layout > .p-datatable-wrapper > table {\n table-layout: auto;\n}\n.p-datatable-hoverable-rows .p-selectable-row {\n cursor: pointer;\n}\n\n/* Scrollable */\n.p-datatable-scrollable .p-datatable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-datatable-scrollable .p-datatable-thead,\n.p-datatable-scrollable .p-datatable-tbody,\n.p-datatable-scrollable .p-datatable-tfoot {\n display: block;\n}\n.p-datatable-scrollable .p-datatable-thead > tr,\n.p-datatable-scrollable .p-datatable-tbody > tr,\n.p-datatable-scrollable .p-datatable-tfoot > tr {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n width: 100%;\n}\n.p-datatable-scrollable .p-datatable-thead > tr > th,\n.p-datatable-scrollable .p-datatable-tbody > tr > td,\n.p-datatable-scrollable .p-datatable-tfoot > tr > td {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable-scrollable .p-datatable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-frozen-tbody {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-datatable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-datatable-scrollable-both .p-datatable-thead > tr > th,\n.p-datatable-scrollable-both .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-both .p-datatable-tfoot > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-thead > tr > th\n.p-datatable-scrollable-horizontal .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-tfoot > tr > td {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-datatable-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n}\n.p-datatable-flex-scrollable .p-datatable-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n}\n.p-datatable-scrollable .p-rowgroup-header {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot {\n display: table;\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr {\n display: table-row;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr > th,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr > td {\n display: table-cell;\n}\n\n/* Resizable */\n.p-datatable-resizable > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-resizable .p-datatable-thead > tr > th,\n.p-datatable-resizable .p-datatable-tfoot > tr > td,\n.p-datatable-resizable .p-datatable-tbody > tr > td {\n overflow: hidden;\n white-space: nowrap;\n}\n.p-datatable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-datatable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: .5rem;\n height: 100%;\n padding: 0px;\n cursor:col-resize;\n border: 1px solid transparent;\n}\n.p-datatable .p-column-header-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-datatable .p-row-editor-init,\n.p-datatable .p-row-editor-save,\n.p-datatable .p-row-editor-cancel {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Expand */\n.p-datatable .p-row-toggler {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Reorder */\n.p-datatable-reorder-indicator-up,\n.p-datatable-reorder-indicator-down {\n position: absolute;\n display: none;\n}\n\n/* Loader */\n.p-datatable .p-datatable-loading-overlay {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 2;\n}\n\n/* Filter */\n.p-column-filter-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n}\n.p-column-filter-menu {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin-left: auto;\n}\n.p-column-filter-row .p-column-filter-element {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-column-filter-menu-button,\n.p-column-filter-clear-button {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n.p-column-filter-overlay {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-column-filter-row-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-column-filter-row-item {\n cursor: pointer;\n}\n.p-column-filter-add-button,\n.p-column-filter-remove-button {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-column-filter-add-button .p-button-label,\n.p-column-filter-remove-button .p-button-label {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n}\n.p-column-filter-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-column-filter-buttonbar .p-button:not(.p-button-icon-only) {\n width: auto;\n}\n\n/* Responsive */\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n display: none;\n}\n\n/* VirtualScroller */\n.p-datatable .p-virtualscroller-loading {\n -webkit-transform: none !important;\n transform: none !important;\n min-height: 0;\n position: sticky;\n top: 0;\n left: 0;\n}\n";
  35651. styleInject(css_248z);
  35652. script.render = render;
  35653. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  35654. /***/ }),
  35655. /***/ "./node_modules/primevue/dialog/dialog.esm.js":
  35656. /*!****************************************************!*\
  35657. !*** ./node_modules/primevue/dialog/dialog.esm.js ***!
  35658. \****************************************************/
  35659. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  35660. "use strict";
  35661. __webpack_require__.r(__webpack_exports__);
  35662. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  35663. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  35664. /* harmony export */ });
  35665. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  35666. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  35667. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  35668. var script = {
  35669. name: 'Dialog',
  35670. inheritAttrs: false,
  35671. emits: ['update:visible','show','hide','maximize','unmaximize','dragend'],
  35672. props: {
  35673. header: null,
  35674. footer: null,
  35675. visible: Boolean,
  35676. modal: Boolean,
  35677. contentStyle: null,
  35678. contentClass: String,
  35679. rtl: Boolean,
  35680. maximizable: Boolean,
  35681. dismissableMask: Boolean,
  35682. closable: {
  35683. type: Boolean,
  35684. default: true
  35685. },
  35686. closeOnEscape: {
  35687. type: Boolean,
  35688. default: true
  35689. },
  35690. showHeader: {
  35691. type: Boolean,
  35692. default: true
  35693. },
  35694. baseZIndex: {
  35695. type: Number,
  35696. default: 0
  35697. },
  35698. autoZIndex: {
  35699. type: Boolean,
  35700. default: true
  35701. },
  35702. ariaCloseLabel: {
  35703. type: String,
  35704. default: 'close'
  35705. },
  35706. position: {
  35707. type: String,
  35708. default: 'center'
  35709. },
  35710. breakpoints: {
  35711. type: Object,
  35712. default: null
  35713. },
  35714. draggable: {
  35715. type: Boolean,
  35716. default: true
  35717. },
  35718. keepInViewport: {
  35719. type: Boolean,
  35720. default: true
  35721. },
  35722. minX: {
  35723. type: Number,
  35724. default: 0
  35725. },
  35726. minY: {
  35727. type: Number,
  35728. default: 0
  35729. },
  35730. appendTo: {
  35731. type: String,
  35732. default: 'body'
  35733. }
  35734. },
  35735. data() {
  35736. return {
  35737. containerVisible: this.visible,
  35738. maximized: false
  35739. }
  35740. },
  35741. documentKeydownListener: null,
  35742. container: null,
  35743. mask: null,
  35744. styleElement: null,
  35745. dragging: null,
  35746. documentDragListener: null,
  35747. documentDragEndListener: null,
  35748. lastPageX: null,
  35749. lastPageY: null,
  35750. updated() {
  35751. if (this.visible) {
  35752. this.containerVisible = this.visible;
  35753. }
  35754. },
  35755. beforeUnmount() {
  35756. this.unbindDocumentState();
  35757. this.unbindGlobalListeners();
  35758. this.destroyStyle();
  35759. this.mask = null;
  35760. if (this.container && this.autoZIndex) {
  35761. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.container);
  35762. }
  35763. this.container = null;
  35764. },
  35765. mounted() {
  35766. if (this.breakpoints) {
  35767. this.createStyle();
  35768. }
  35769. },
  35770. methods: {
  35771. close() {
  35772. this.$emit('update:visible', false);
  35773. },
  35774. onBeforeEnter(el) {
  35775. if (this.autoZIndex) {
  35776. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex + this.$primevue.config.zIndex.modal);
  35777. }
  35778. el.setAttribute(this.attributeSelector, '');
  35779. },
  35780. onEnter() {
  35781. this.mask.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
  35782. this.$emit('show');
  35783. this.focus();
  35784. this.enableDocumentSettings();
  35785. this.bindGlobalListeners();
  35786. },
  35787. onBeforeLeave() {
  35788. if (this.modal) {
  35789. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  35790. }
  35791. },
  35792. onLeave() {
  35793. this.$emit('hide');
  35794. },
  35795. onAfterLeave(el) {
  35796. if (this.autoZIndex) {
  35797. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  35798. }
  35799. this.containerVisible = false;
  35800. this.unbindDocumentState();
  35801. this.unbindGlobalListeners();
  35802. },
  35803. onMaskClick(event) {
  35804. if (this.dismissableMask && this.closable && this.modal && this.mask === event.target) {
  35805. this.close();
  35806. }
  35807. },
  35808. focus() {
  35809. let focusTarget = this.container.querySelector('[autofocus]');
  35810. if (focusTarget) {
  35811. focusTarget.focus();
  35812. }
  35813. },
  35814. maximize(event) {
  35815. if (this.maximized) {
  35816. this.maximized = false;
  35817. this.$emit('unmaximize', event);
  35818. }
  35819. else {
  35820. this.maximized = true;
  35821. this.$emit('maximize', event);
  35822. }
  35823. if (!this.modal) {
  35824. if (this.maximized)
  35825. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  35826. else
  35827. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  35828. }
  35829. },
  35830. enableDocumentSettings() {
  35831. if (this.modal || (this.maximizable && this.maximized)) {
  35832. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  35833. }
  35834. },
  35835. unbindDocumentState() {
  35836. if (this.modal || (this.maximizable && this.maximized)) {
  35837. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  35838. }
  35839. },
  35840. onKeyDown(event) {
  35841. if (event.which === 9) {
  35842. event.preventDefault();
  35843. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.container);
  35844. if (focusableElements && focusableElements.length > 0) {
  35845. if (!document.activeElement) {
  35846. focusableElements[0].focus();
  35847. }
  35848. else {
  35849. let focusedIndex = focusableElements.indexOf(document.activeElement);
  35850. if (event.shiftKey) {
  35851. if (focusedIndex == -1 || focusedIndex === 0)
  35852. focusableElements[focusableElements.length - 1].focus();
  35853. else
  35854. focusableElements[focusedIndex - 1].focus();
  35855. }
  35856. else {
  35857. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  35858. focusableElements[0].focus();
  35859. else
  35860. focusableElements[focusedIndex + 1].focus();
  35861. }
  35862. }
  35863. }
  35864. } else if (event.which === 27 && this.closeOnEscape) {
  35865. this.close();
  35866. }
  35867. },
  35868. bindDocumentKeyDownListener() {
  35869. if (!this.documentKeydownListener) {
  35870. this.documentKeydownListener = this.onKeyDown.bind(this);
  35871. window.document.addEventListener('keydown', this.documentKeydownListener);
  35872. }
  35873. },
  35874. unbindDocumentKeyDownListener() {
  35875. if (this.documentKeydownListener) {
  35876. window.document.removeEventListener('keydown', this.documentKeydownListener);
  35877. this.documentKeydownListener = null;
  35878. }
  35879. },
  35880. getPositionClass() {
  35881. const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
  35882. const pos = positions.find(item => item === this.position);
  35883. return pos ? `p-dialog-${pos}` : '';
  35884. },
  35885. containerRef(el) {
  35886. this.container = el;
  35887. },
  35888. maskRef(el) {
  35889. this.mask = el;
  35890. },
  35891. createStyle() {
  35892. if (!this.styleElement) {
  35893. this.styleElement = document.createElement('style');
  35894. this.styleElement.type = 'text/css';
  35895. document.head.appendChild(this.styleElement);
  35896. let innerHTML = '';
  35897. for (let breakpoint in this.breakpoints) {
  35898. innerHTML += `
  35899. @media screen and (max-width: ${breakpoint}) {
  35900. .p-dialog[${this.attributeSelector}] {
  35901. width: ${this.breakpoints[breakpoint]} !important;
  35902. }
  35903. }
  35904. `;
  35905. }
  35906. this.styleElement.innerHTML = innerHTML;
  35907. }
  35908. },
  35909. destroyStyle() {
  35910. if (this.styleElement) {
  35911. document.head.removeChild(this.styleElement);
  35912. this.styleElement = null;
  35913. }
  35914. },
  35915. initDrag(event) {
  35916. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dialog-header-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {
  35917. return;
  35918. }
  35919. if (this.draggable) {
  35920. this.dragging = true;
  35921. this.lastPageX = event.pageX;
  35922. this.lastPageY = event.pageY;
  35923. this.container.style.margin = '0';
  35924. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-unselectable-text');
  35925. }
  35926. },
  35927. bindGlobalListeners() {
  35928. if (this.draggable) {
  35929. this.bindDocumentDragListener();
  35930. this.bindDocumentDragEndListener();
  35931. }
  35932. if (this.closeOnEscape && this.closable) {
  35933. this.bindDocumentKeyDownListener();
  35934. }
  35935. },
  35936. unbindGlobalListeners() {
  35937. this.unbindDocumentDragListener();
  35938. this.unbindDocumentDragEndListener();
  35939. this.unbindDocumentKeyDownListener();
  35940. },
  35941. bindDocumentDragListener() {
  35942. this.documentDragListener = (event) => {
  35943. if (this.dragging) {
  35944. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.container);
  35945. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.container);
  35946. let deltaX = event.pageX - this.lastPageX;
  35947. let deltaY = event.pageY - this.lastPageY;
  35948. let offset = this.container.getBoundingClientRect();
  35949. let leftPos = offset.left + deltaX;
  35950. let topPos = offset.top + deltaY;
  35951. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  35952. this.container.style.position = 'fixed';
  35953. if (this.keepInViewport) {
  35954. if (leftPos >= this.minX && (leftPos + width) < viewport.width) {
  35955. this.lastPageX = event.pageX;
  35956. this.container.style.left = leftPos + 'px';
  35957. }
  35958. if (topPos >= this.minY && (topPos + height) < viewport.height) {
  35959. this.lastPageY = event.pageY;
  35960. this.container.style.top = topPos + 'px';
  35961. }
  35962. }
  35963. else {
  35964. this.lastPageX = event.pageX;
  35965. this.container.style.left = leftPos + 'px';
  35966. this.lastPageY = event.pageY;
  35967. this.container.style.top = topPos + 'px';
  35968. }
  35969. }
  35970. };
  35971. window.document.addEventListener('mousemove', this.documentDragListener);
  35972. },
  35973. unbindDocumentDragListener() {
  35974. if (this.documentDragListener) {
  35975. window.document.removeEventListener('mousemove', this.documentDragListener);
  35976. this.documentDragListener = null;
  35977. }
  35978. },
  35979. bindDocumentDragEndListener() {
  35980. this.documentDragEndListener = (event) => {
  35981. if (this.dragging) {
  35982. this.dragging = false;
  35983. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-unselectable-text');
  35984. this.$emit('dragend', event);
  35985. }
  35986. };
  35987. window.document.addEventListener('mouseup', this.documentDragEndListener);
  35988. },
  35989. unbindDocumentDragEndListener() {
  35990. if (this.documentDragEndListener) {
  35991. window.document.removeEventListener('mouseup', this.documentDragEndListener);
  35992. this.documentDragEndListener = null;
  35993. }
  35994. }
  35995. },
  35996. computed: {
  35997. maskClass() {
  35998. return ['p-dialog-mask', {'p-component-overlay p-component-overlay-enter': this.modal}, this.getPositionClass()];
  35999. },
  36000. dialogClass() {
  36001. return ['p-dialog p-component', {
  36002. 'p-dialog-rtl': this.rtl,
  36003. 'p-dialog-maximized': this.maximizable && this.maximized,
  36004. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  36005. 'p-ripple-disabled': this.$primevue.config.ripple === false
  36006. }];
  36007. },
  36008. maximizeIconClass() {
  36009. return ['p-dialog-header-maximize-icon pi', {
  36010. 'pi-window-maximize': !this.maximized,
  36011. 'pi-window-minimize': this.maximized
  36012. }];
  36013. },
  36014. ariaId() {
  36015. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36016. },
  36017. ariaLabelledById() {
  36018. return this.header != null ? this.ariaId + '_header' : null;
  36019. },
  36020. attributeSelector() {
  36021. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36022. },
  36023. contentStyleClass() {
  36024. return ['p-dialog-content', this.contentClass];
  36025. },
  36026. appendDisabled() {
  36027. return this.appendTo === 'self';
  36028. },
  36029. appendTarget() {
  36030. return this.appendDisabled ? null : this.appendTo;
  36031. }
  36032. },
  36033. directives: {
  36034. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  36035. }
  36036. };
  36037. const _hoisted_1 = { class: "p-dialog-header-icons" };
  36038. const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "p-dialog-header-close-icon pi pi-times" }, null, -1);
  36039. const _hoisted_3 = {
  36040. key: 1,
  36041. class: "p-dialog-footer"
  36042. };
  36043. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36044. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  36045. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Teleport, {
  36046. to: $options.appendTarget,
  36047. disabled: $options.appendDisabled
  36048. }, [
  36049. ($data.containerVisible)
  36050. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", {
  36051. key: 0,
  36052. ref: $options.maskRef,
  36053. class: $options.maskClass,
  36054. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onMaskClick && $options.onMaskClick(...args)))
  36055. }, [
  36056. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_2__.Transition, {
  36057. name: "p-dialog",
  36058. onBeforeEnter: $options.onBeforeEnter,
  36059. onEnter: $options.onEnter,
  36060. onBeforeLeave: $options.onBeforeLeave,
  36061. onLeave: $options.onLeave,
  36062. onAfterLeave: $options.onAfterLeave,
  36063. appear: ""
  36064. }, {
  36065. default: (0,vue__WEBPACK_IMPORTED_MODULE_2__.withCtx)(() => [
  36066. ($props.visible)
  36067. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  36068. key: 0,
  36069. ref: $options.containerRef,
  36070. class: $options.dialogClass
  36071. }, _ctx.$attrs, {
  36072. role: "dialog",
  36073. "aria-labelledby": $options.ariaLabelledById,
  36074. "aria-modal": $props.modal
  36075. }), [
  36076. ($props.showHeader)
  36077. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", {
  36078. key: 0,
  36079. class: "p-dialog-header",
  36080. onMousedown: _cache[3] || (_cache[3] = (...args) => ($options.initDrag && $options.initDrag(...args)))
  36081. }, [
  36082. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "header", {}, () => [
  36083. ($props.header)
  36084. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", {
  36085. key: 0,
  36086. id: $options.ariaLabelledById,
  36087. class: "p-dialog-title"
  36088. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.header), 9, ["id"]))
  36089. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36090. ]),
  36091. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_1, [
  36092. ($props.maximizable)
  36093. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  36094. key: 0,
  36095. class: "p-dialog-header-icon p-dialog-header-maximize p-link",
  36096. onClick: _cache[1] || (_cache[1] = (...args) => ($options.maximize && $options.maximize(...args))),
  36097. type: "button",
  36098. tabindex: "-1"
  36099. }, [
  36100. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: $options.maximizeIconClass }, null, 2)
  36101. ], 512)), [
  36102. [_directive_ripple]
  36103. ])
  36104. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36105. ($props.closable)
  36106. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  36107. key: 1,
  36108. class: "p-dialog-header-icon p-dialog-header-close p-link",
  36109. onClick: _cache[2] || (_cache[2] = (...args) => ($options.close && $options.close(...args))),
  36110. "aria-label": $props.ariaCloseLabel,
  36111. type: "button"
  36112. }, [
  36113. _hoisted_2
  36114. ], 8, ["aria-label"])), [
  36115. [_directive_ripple]
  36116. ])
  36117. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36118. ])
  36119. ], 32))
  36120. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36121. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", {
  36122. class: $options.contentStyleClass,
  36123. style: $props.contentStyle
  36124. }, [
  36125. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "default")
  36126. ], 6),
  36127. ($props.footer || _ctx.$slots.footer)
  36128. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", _hoisted_3, [
  36129. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "footer", {}, () => [
  36130. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.footer), 1)
  36131. ])
  36132. ]))
  36133. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36134. ], 16, ["aria-labelledby", "aria-modal"]))
  36135. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36136. ]),
  36137. _: 3
  36138. }, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
  36139. ], 2))
  36140. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36141. ], 8, ["to", "disabled"]))
  36142. }
  36143. function styleInject(css, ref) {
  36144. if ( ref === void 0 ) ref = {};
  36145. var insertAt = ref.insertAt;
  36146. if (!css || typeof document === 'undefined') { return; }
  36147. var head = document.head || document.getElementsByTagName('head')[0];
  36148. var style = document.createElement('style');
  36149. style.type = 'text/css';
  36150. if (insertAt === 'top') {
  36151. if (head.firstChild) {
  36152. head.insertBefore(style, head.firstChild);
  36153. } else {
  36154. head.appendChild(style);
  36155. }
  36156. } else {
  36157. head.appendChild(style);
  36158. }
  36159. if (style.styleSheet) {
  36160. style.styleSheet.cssText = css;
  36161. } else {
  36162. style.appendChild(document.createTextNode(css));
  36163. }
  36164. }
  36165. var css_248z = "\n.p-dialog-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n pointer-events: none;\n}\n.p-dialog-mask.p-component-overlay {\n pointer-events: auto;\n}\n.p-dialog {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n pointer-events: auto;\n max-height: 90%;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.p-dialog-content {\n overflow-y: auto;\n}\n.p-dialog-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog-footer {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog .p-dialog-header-icons {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-dialog .p-dialog-header-icon {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Fluid */\n.p-fluid .p-dialog-footer .p-button {\n width: auto;\n}\n\n/* Animation */\n/* Center */\n.p-dialog-enter-active {\n -webkit-transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n.p-dialog-leave-active {\n -webkit-transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n}\n.p-dialog-enter-from,\n.p-dialog-leave-to {\n opacity: 0;\n -webkit-transform: scale(0.7);\n transform: scale(0.7);\n}\n\n/* Top, Bottom, Left, Right, Top* and Bottom* */\n.p-dialog-top .p-dialog,\n.p-dialog-bottom .p-dialog,\n.p-dialog-left .p-dialog,\n.p-dialog-right .p-dialog,\n.p-dialog-topleft .p-dialog,\n.p-dialog-topright .p-dialog,\n.p-dialog-bottomleft .p-dialog,\n.p-dialog-bottomright .p-dialog {\n margin: .75rem;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.p-dialog-top .p-dialog-enter-active,\n.p-dialog-top .p-dialog-leave-active,\n.p-dialog-bottom .p-dialog-enter-active,\n.p-dialog-bottom .p-dialog-leave-active,\n.p-dialog-left .p-dialog-enter-active,\n.p-dialog-left .p-dialog-leave-active,\n.p-dialog-right .p-dialog-enter-active,\n.p-dialog-right .p-dialog-leave-active,\n.p-dialog-topleft .p-dialog-enter-active,\n.p-dialog-topleft .p-dialog-leave-active,\n.p-dialog-topright .p-dialog-enter-active,\n.p-dialog-topright .p-dialog-leave-active,\n.p-dialog-bottomleft .p-dialog-enter-active,\n.p-dialog-bottomleft .p-dialog-leave-active,\n.p-dialog-bottomright .p-dialog-enter-active,\n.p-dialog-bottomright .p-dialog-leave-active {\n -webkit-transition: all .3s ease-out;\n transition: all .3s ease-out;\n}\n.p-dialog-top .p-dialog-enter-from,\n.p-dialog-top .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, -100%, 0px);\n transform: translate3d(0px, -100%, 0px);\n}\n.p-dialog-bottom .p-dialog-enter-from,\n.p-dialog-bottom .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, 100%, 0px);\n transform: translate3d(0px, 100%, 0px);\n}\n.p-dialog-left .p-dialog-enter-from,\n.p-dialog-left .p-dialog-leave-to,\n.p-dialog-topleft .p-dialog-enter-from,\n.p-dialog-topleft .p-dialog-leave-to,\n.p-dialog-bottomleft .p-dialog-enter-from,\n.p-dialog-bottomleft .p-dialog-leave-to {\n -webkit-transform: translate3d(-100%, 0px, 0px);\n transform: translate3d(-100%, 0px, 0px);\n}\n.p-dialog-right .p-dialog-enter-from,\n.p-dialog-right .p-dialog-leave-to,\n.p-dialog-topright .p-dialog-enter-from,\n.p-dialog-topright .p-dialog-leave-to,\n.p-dialog-bottomright .p-dialog-enter-from,\n.p-dialog-bottomright .p-dialog-leave-to {\n -webkit-transform: translate3d(100%, 0px, 0px);\n transform: translate3d(100%, 0px, 0px);\n}\n\n/* Maximize */\n.p-dialog-maximized {\n -webkit-transition: none;\n transition: none;\n -webkit-transform: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n top: 0px !important;\n left: 0px !important;\n max-height: 100%;\n height: 100%;\n}\n.p-dialog-maximized .p-dialog-content {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n/* Position */\n.p-dialog-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-dialog-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-dialog-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-confirm-dialog .p-dialog-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n";
  36166. styleInject(css_248z);
  36167. script.render = render;
  36168. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  36169. /***/ }),
  36170. /***/ "./node_modules/primevue/divider/divider.esm.js":
  36171. /*!******************************************************!*\
  36172. !*** ./node_modules/primevue/divider/divider.esm.js ***!
  36173. \******************************************************/
  36174. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36175. "use strict";
  36176. __webpack_require__.r(__webpack_exports__);
  36177. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36178. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  36179. /* harmony export */ });
  36180. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36181. var script = {
  36182. name: 'Divider',
  36183. props: {
  36184. align: {
  36185. type: String,
  36186. default: null
  36187. },
  36188. layout: {
  36189. type: String,
  36190. default: 'horizontal'
  36191. },
  36192. type: {
  36193. type: String,
  36194. default: 'solid'
  36195. }
  36196. },
  36197. computed: {
  36198. containerClass() {
  36199. return ['p-divider p-component', 'p-divider-' + this.layout, 'p-divider-' + this.type,
  36200. {'p-divider-left': this.layout === 'horizontal' && (!this.align || this.align === 'left')},
  36201. {'p-divider-center': this.layout === 'horizontal' && this.align === 'center'},
  36202. {'p-divider-right': this.layout === 'horizontal' && this.align === 'right'},
  36203. {'p-divider-top': this.layout === 'vertical' && (this.align === 'top')},
  36204. {'p-divider-center': this.layout === 'vertical' && (!this.align || this.align === 'center')},
  36205. {'p-divider-bottom': this.layout === 'vertical' && this.align === 'bottom'}
  36206. ];
  36207. }
  36208. }
  36209. };
  36210. const _hoisted_1 = {
  36211. key: 0,
  36212. class: "p-divider-content"
  36213. };
  36214. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36215. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  36216. class: $options.containerClass,
  36217. role: "separator"
  36218. }, [
  36219. (_ctx.$slots.default)
  36220. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  36221. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  36222. ]))
  36223. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  36224. ], 2))
  36225. }
  36226. function styleInject(css, ref) {
  36227. if ( ref === void 0 ) ref = {};
  36228. var insertAt = ref.insertAt;
  36229. if (!css || typeof document === 'undefined') { return; }
  36230. var head = document.head || document.getElementsByTagName('head')[0];
  36231. var style = document.createElement('style');
  36232. style.type = 'text/css';
  36233. if (insertAt === 'top') {
  36234. if (head.firstChild) {
  36235. head.insertBefore(style, head.firstChild);
  36236. } else {
  36237. head.appendChild(style);
  36238. }
  36239. } else {
  36240. head.appendChild(style);
  36241. }
  36242. if (style.styleSheet) {
  36243. style.styleSheet.cssText = css;
  36244. } else {
  36245. style.appendChild(document.createTextNode(css));
  36246. }
  36247. }
  36248. var css_248z = "\n.p-divider-horizontal {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n position: relative;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-horizontal:before {\n position: absolute;\n display: block;\n top: 50%;\n left: 0;\n width: 100%;\n content: \"\";\n}\n.p-divider-horizontal.p-divider-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-divider-horizontal.p-divider-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-divider-horizontal.p-divider-center {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-content {\n z-index: 1;\n}\n.p-divider-vertical {\n min-height: 100%;\n margin: 0 1rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-vertical:before {\n position: absolute;\n display: block;\n top: 0;\n left: 50%;\n height: 100%;\n content: \"\";\n}\n.p-divider-vertical.p-divider-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-divider-vertical.p-divider-center {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-vertical.p-divider-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-divider-solid.p-divider-horizontal:before {\n border-top-style: solid;\n}\n.p-divider-solid.p-divider-vertical:before {\n border-left-style: solid;\n}\n.p-divider-dashed.p-divider-horizontal:before {\n border-top-style: dashed;\n}\n.p-divider-dashed.p-divider-vertical:before {\n border-left-style: dashed;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-top-style: dotted;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-left-style: dotted;\n}\n";
  36249. styleInject(css_248z);
  36250. script.render = render;
  36251. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  36252. /***/ }),
  36253. /***/ "./node_modules/primevue/dropdown/dropdown.esm.js":
  36254. /*!********************************************************!*\
  36255. !*** ./node_modules/primevue/dropdown/dropdown.esm.js ***!
  36256. \********************************************************/
  36257. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36258. "use strict";
  36259. __webpack_require__.r(__webpack_exports__);
  36260. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36261. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  36262. /* harmony export */ });
  36263. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  36264. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  36265. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  36266. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  36267. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  36268. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36269. var script = {
  36270. name: 'Dropdown',
  36271. emits: ['update:modelValue', 'before-show', 'before-hide', 'show', 'hide', 'change', 'filter', 'focus', 'blur'],
  36272. props: {
  36273. modelValue: null,
  36274. options: Array,
  36275. optionLabel: null,
  36276. optionValue: null,
  36277. optionDisabled: null,
  36278. optionGroupLabel: null,
  36279. optionGroupChildren: null,
  36280. scrollHeight: {
  36281. type: String,
  36282. default: '200px'
  36283. },
  36284. filter: Boolean,
  36285. filterPlaceholder: String,
  36286. filterLocale: String,
  36287. filterMatchMode: {
  36288. type: String,
  36289. default: 'contains'
  36290. },
  36291. filterFields: {
  36292. type: Array,
  36293. default: null
  36294. },
  36295. editable: Boolean,
  36296. placeholder: String,
  36297. disabled: Boolean,
  36298. dataKey: null,
  36299. showClear: Boolean,
  36300. inputId: String,
  36301. tabindex: String,
  36302. ariaLabelledBy: null,
  36303. appendTo: {
  36304. type: String,
  36305. default: 'body'
  36306. },
  36307. emptyFilterMessage: {
  36308. type: String,
  36309. default: null
  36310. },
  36311. emptyMessage: {
  36312. type: String,
  36313. default: null
  36314. },
  36315. panelClass: null,
  36316. loading: {
  36317. type: Boolean,
  36318. default: false
  36319. },
  36320. loadingIcon: {
  36321. type: String,
  36322. default: 'pi pi-spinner pi-spin'
  36323. },
  36324. virtualScrollerOptions: {
  36325. type: Object,
  36326. default: null
  36327. }
  36328. },
  36329. data() {
  36330. return {
  36331. focused: false,
  36332. filterValue: null,
  36333. overlayVisible: false
  36334. };
  36335. },
  36336. watch: {
  36337. modelValue() {
  36338. this.isModelValueChanged = true;
  36339. }
  36340. },
  36341. outsideClickListener: null,
  36342. scrollHandler: null,
  36343. resizeListener: null,
  36344. searchTimeout: null,
  36345. currentSearchChar: null,
  36346. previousSearchChar: null,
  36347. searchValue: null,
  36348. overlay: null,
  36349. itemsWrapper: null,
  36350. virtualScroller: null,
  36351. isModelValueChanged: false,
  36352. updated() {
  36353. if (this.overlayVisible && this.isModelValueChanged) {
  36354. this.scrollValueInView();
  36355. }
  36356. this.isModelValueChanged = false;
  36357. },
  36358. beforeUnmount() {
  36359. this.unbindOutsideClickListener();
  36360. this.unbindResizeListener();
  36361. if (this.scrollHandler) {
  36362. this.scrollHandler.destroy();
  36363. this.scrollHandler = null;
  36364. }
  36365. this.itemsWrapper = null;
  36366. if (this.overlay) {
  36367. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  36368. this.overlay = null;
  36369. }
  36370. },
  36371. methods: {
  36372. getOptionIndex(index, fn) {
  36373. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  36374. },
  36375. getOptionLabel(option) {
  36376. return this.optionLabel ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
  36377. },
  36378. getOptionValue(option) {
  36379. return this.optionValue ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
  36380. },
  36381. getOptionRenderKey(option) {
  36382. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
  36383. },
  36384. isOptionDisabled(option) {
  36385. return this.optionDisabled ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
  36386. },
  36387. getOptionGroupRenderKey(optionGroup) {
  36388. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36389. },
  36390. getOptionGroupLabel(optionGroup) {
  36391. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36392. },
  36393. getOptionGroupChildren(optionGroup) {
  36394. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  36395. },
  36396. getSelectedOption() {
  36397. let index = this.getSelectedOptionIndex();
  36398. return index !== -1 ? (this.optionGroupLabel ? this.getOptionGroupChildren(this.visibleOptions[index.group])[index.option]: this.visibleOptions[index]) : null;
  36399. },
  36400. getSelectedOptionIndex() {
  36401. if (this.modelValue != null && this.visibleOptions) {
  36402. if (this.optionGroupLabel) {
  36403. for (let i = 0; i < this.visibleOptions.length; i++) {
  36404. let selectedOptionIndex = this.findOptionIndexInList(this.modelValue, this.getOptionGroupChildren(this.visibleOptions[i]));
  36405. if (selectedOptionIndex !== -1) {
  36406. return {group: i, option: selectedOptionIndex};
  36407. }
  36408. }
  36409. }
  36410. else {
  36411. return this.findOptionIndexInList(this.modelValue, this.visibleOptions);
  36412. }
  36413. }
  36414. return -1;
  36415. },
  36416. findOptionIndexInList(value, list) {
  36417. for (let i = 0; i < list.length; i++) {
  36418. if ((primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, this.getOptionValue(list[i]), this.equalityKey))) {
  36419. return i;
  36420. }
  36421. }
  36422. return -1;
  36423. },
  36424. isSelected(option) {
  36425. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
  36426. },
  36427. show() {
  36428. this.$emit('before-show');
  36429. this.overlayVisible = true;
  36430. },
  36431. hide() {
  36432. this.$emit('before-hide');
  36433. this.overlayVisible = false;
  36434. },
  36435. onFocus(event) {
  36436. this.focused = true;
  36437. this.$emit('focus', event);
  36438. },
  36439. onBlur(event) {
  36440. this.focused = false;
  36441. this.$emit('blur', event);
  36442. },
  36443. onKeyDown(event) {
  36444. switch(event.which) {
  36445. //down
  36446. case 40:
  36447. this.onDownKey(event);
  36448. break;
  36449. //up
  36450. case 38:
  36451. this.onUpKey(event);
  36452. break;
  36453. //space
  36454. case 32:
  36455. if (!this.overlayVisible) {
  36456. this.show();
  36457. event.preventDefault();
  36458. }
  36459. break;
  36460. //enter and escape
  36461. case 13:
  36462. case 27:
  36463. if (this.overlayVisible) {
  36464. this.hide();
  36465. event.preventDefault();
  36466. }
  36467. break;
  36468. //tab
  36469. case 9:
  36470. this.hide();
  36471. break;
  36472. default:
  36473. this.search(event);
  36474. break;
  36475. }
  36476. },
  36477. onFilterKeyDown(event) {
  36478. switch (event.which) {
  36479. //down
  36480. case 40:
  36481. this.onDownKey(event);
  36482. break;
  36483. //up
  36484. case 38:
  36485. this.onUpKey(event);
  36486. break;
  36487. //enter and escape
  36488. case 13:
  36489. case 27:
  36490. this.overlayVisible = false;
  36491. event.preventDefault();
  36492. break;
  36493. }
  36494. },
  36495. onDownKey(event) {
  36496. if (this.visibleOptions) {
  36497. if (!this.overlayVisible && event.altKey) {
  36498. this.show();
  36499. }
  36500. else {
  36501. let nextOption = this.visibleOptions && this.visibleOptions.length > 0 ? this.findNextOption(this.getSelectedOptionIndex()) : null;
  36502. if (nextOption) {
  36503. this.updateModel(event, this.getOptionValue(nextOption));
  36504. }
  36505. }
  36506. }
  36507. event.preventDefault();
  36508. },
  36509. onUpKey(event) {
  36510. if (this.visibleOptions) {
  36511. let prevOption = this.findPrevOption(this.getSelectedOptionIndex());
  36512. if (prevOption) {
  36513. this.updateModel(event, this.getOptionValue(prevOption));
  36514. }
  36515. }
  36516. event.preventDefault();
  36517. },
  36518. findNextOption(index) {
  36519. if (this.optionGroupLabel) {
  36520. let groupIndex = index === -1 ? 0 : index.group;
  36521. let optionIndex = index === -1 ? -1 : index.option;
  36522. let option = this.findNextOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36523. if (option)
  36524. return option;
  36525. else if ((groupIndex + 1) !== this.visibleOptions.length)
  36526. return this.findNextOption({group: (groupIndex + 1), option: -1});
  36527. else
  36528. return null;
  36529. }
  36530. else {
  36531. return this.findNextOptionInList(this.visibleOptions, index);
  36532. }
  36533. },
  36534. findNextOptionInList(list, index) {
  36535. let i = index + 1;
  36536. if (i === list.length) {
  36537. return null;
  36538. }
  36539. let option = list[i];
  36540. if (this.isOptionDisabled(option))
  36541. return this.findNextOptionInList(i);
  36542. else
  36543. return option;
  36544. },
  36545. findPrevOption(index) {
  36546. if (index === -1) {
  36547. return null;
  36548. }
  36549. if (this.optionGroupLabel) {
  36550. let groupIndex = index.group;
  36551. let optionIndex = index.option;
  36552. let option = this.findPrevOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36553. if (option)
  36554. return option;
  36555. else if (groupIndex > 0)
  36556. return this.findPrevOption({group: (groupIndex - 1), option: this.getOptionGroupChildren(this.visibleOptions[groupIndex - 1]).length});
  36557. else
  36558. return null;
  36559. }
  36560. else {
  36561. return this.findPrevOptionInList(this.visibleOptions, index);
  36562. }
  36563. },
  36564. findPrevOptionInList(list, index) {
  36565. let i = index - 1;
  36566. if (i < 0) {
  36567. return null;
  36568. }
  36569. let option = list[i];
  36570. if (this.isOptionDisabled(option))
  36571. return this.findPrevOption(i);
  36572. else
  36573. return option;
  36574. },
  36575. onClearClick(event) {
  36576. this.updateModel(event, null);
  36577. },
  36578. onClick(event) {
  36579. if (this.disabled || this.loading) {
  36580. return;
  36581. }
  36582. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
  36583. return;
  36584. }
  36585. else if (!this.overlay || !this.overlay.contains(event.target)) {
  36586. if (this.overlayVisible)
  36587. this.hide();
  36588. else
  36589. this.show();
  36590. this.$refs.focusInput.focus();
  36591. }
  36592. },
  36593. onOptionSelect(event, option) {
  36594. let value = this.getOptionValue(option);
  36595. this.updateModel(event, value);
  36596. this.$refs.focusInput.focus();
  36597. setTimeout(() => {
  36598. this.hide();
  36599. }, 200);
  36600. },
  36601. onEditableInput(event) {
  36602. this.$emit('update:modelValue', event.target.value);
  36603. },
  36604. onOverlayEnter(el) {
  36605. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  36606. this.alignOverlay();
  36607. this.scrollValueInView();
  36608. if (!this.virtualScrollerDisabled) {
  36609. const selectedIndex = this.getSelectedOptionIndex();
  36610. if (selectedIndex !== -1) {
  36611. setTimeout(() => {
  36612. this.virtualScroller && this.virtualScroller.scrollToIndex(selectedIndex);
  36613. }, 0);
  36614. }
  36615. }
  36616. },
  36617. onOverlayAfterEnter() {
  36618. if (this.filter) {
  36619. this.$refs.filterInput.focus();
  36620. }
  36621. this.bindOutsideClickListener();
  36622. this.bindScrollListener();
  36623. this.bindResizeListener();
  36624. this.$emit('show');
  36625. },
  36626. onOverlayLeave() {
  36627. this.unbindOutsideClickListener();
  36628. this.unbindScrollListener();
  36629. this.unbindResizeListener();
  36630. this.$emit('hide');
  36631. this.itemsWrapper = null;
  36632. this.overlay = null;
  36633. },
  36634. onOverlayAfterLeave(el) {
  36635. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  36636. },
  36637. alignOverlay() {
  36638. if (this.appendDisabled) {
  36639. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  36640. }
  36641. else {
  36642. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  36643. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  36644. }
  36645. },
  36646. updateModel(event, value) {
  36647. this.$emit('update:modelValue', value);
  36648. this.$emit('change', {originalEvent: event, value: value});
  36649. },
  36650. bindOutsideClickListener() {
  36651. if (!this.outsideClickListener) {
  36652. this.outsideClickListener = (event) => {
  36653. if (this.overlayVisible && this.overlay && !this.$el.contains(event.target) && !this.overlay.contains(event.target)) {
  36654. this.hide();
  36655. }
  36656. };
  36657. document.addEventListener('click', this.outsideClickListener);
  36658. }
  36659. },
  36660. unbindOutsideClickListener() {
  36661. if (this.outsideClickListener) {
  36662. document.removeEventListener('click', this.outsideClickListener);
  36663. this.outsideClickListener = null;
  36664. }
  36665. },
  36666. bindScrollListener() {
  36667. if (!this.scrollHandler) {
  36668. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  36669. if (this.overlayVisible) {
  36670. this.hide();
  36671. }
  36672. });
  36673. }
  36674. this.scrollHandler.bindScrollListener();
  36675. },
  36676. unbindScrollListener() {
  36677. if (this.scrollHandler) {
  36678. this.scrollHandler.unbindScrollListener();
  36679. }
  36680. },
  36681. bindResizeListener() {
  36682. if (!this.resizeListener) {
  36683. this.resizeListener = () => {
  36684. if (this.overlayVisible && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isTouchDevice()) {
  36685. this.hide();
  36686. }
  36687. };
  36688. window.addEventListener('resize', this.resizeListener);
  36689. }
  36690. },
  36691. unbindResizeListener() {
  36692. if (this.resizeListener) {
  36693. window.removeEventListener('resize', this.resizeListener);
  36694. this.resizeListener = null;
  36695. }
  36696. },
  36697. search(event) {
  36698. if (!this.visibleOptions) {
  36699. return;
  36700. }
  36701. if (this.searchTimeout) {
  36702. clearTimeout(this.searchTimeout);
  36703. }
  36704. const char = event.key;
  36705. this.previousSearchChar = this.currentSearchChar;
  36706. this.currentSearchChar = char;
  36707. if (this.previousSearchChar === this.currentSearchChar)
  36708. this.searchValue = this.currentSearchChar;
  36709. else
  36710. this.searchValue = this.searchValue ? this.searchValue + char : char;
  36711. if (this.searchValue) {
  36712. let searchIndex = this.getSelectedOptionIndex();
  36713. let newOption = this.optionGroupLabel ? this.searchOptionInGroup(searchIndex) : this.searchOption(++searchIndex);
  36714. if (newOption) {
  36715. this.updateModel(event, this.getOptionValue(newOption));
  36716. }
  36717. }
  36718. this.searchTimeout = setTimeout(() => {
  36719. this.searchValue = null;
  36720. }, 250);
  36721. },
  36722. searchOption(index) {
  36723. let option;
  36724. if (this.searchValue) {
  36725. option = this.searchOptionInRange(index, this.visibleOptions.length);
  36726. if (!option) {
  36727. option = this.searchOptionInRange(0, index);
  36728. }
  36729. }
  36730. return option;
  36731. },
  36732. searchOptionInRange(start, end) {
  36733. for (let i = start; i < end; i++) {
  36734. let opt = this.visibleOptions[i];
  36735. if (this.matchesSearchValue(opt)) {
  36736. return opt;
  36737. }
  36738. }
  36739. return null;
  36740. },
  36741. searchOptionInGroup(index) {
  36742. let searchIndex = index === -1 ? {group: 0, option: -1} : index;
  36743. for (let i = searchIndex.group; i < this.visibleOptions.length; i++) {
  36744. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  36745. for (let j = (searchIndex.group === i ? searchIndex.option + 1 : 0); j < groupOptions.length; j++) {
  36746. if (this.matchesSearchValue(groupOptions[j])) {
  36747. return groupOptions[j];
  36748. }
  36749. }
  36750. }
  36751. for (let i = 0; i <= searchIndex.group; i++) {
  36752. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  36753. for (let j = 0; j < (searchIndex.group === i ? searchIndex.option: groupOptions.length); j++) {
  36754. if (this.matchesSearchValue(groupOptions[j])) {
  36755. return groupOptions[j];
  36756. }
  36757. }
  36758. }
  36759. return null;
  36760. },
  36761. matchesSearchValue(option) {
  36762. let label = this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale);
  36763. return label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
  36764. },
  36765. onFilterChange(event) {
  36766. this.filterValue = event.target.value;
  36767. this.$emit('filter', {originalEvent: event, value: event.target.value});
  36768. },
  36769. onFilterUpdated() {
  36770. if (this.overlayVisible) {
  36771. this.alignOverlay();
  36772. }
  36773. },
  36774. overlayRef(el) {
  36775. this.overlay = el;
  36776. },
  36777. itemsWrapperRef(el) {
  36778. this.itemsWrapper = el;
  36779. },
  36780. virtualScrollerRef(el) {
  36781. this.virtualScroller = el;
  36782. },
  36783. scrollValueInView() {
  36784. if (this.overlay) {
  36785. let selectedItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'li.p-highlight');
  36786. if (selectedItem) {
  36787. selectedItem.scrollIntoView({ block: 'nearest', inline: 'start' });
  36788. }
  36789. }
  36790. },
  36791. onOverlayClick(event) {
  36792. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  36793. originalEvent: event,
  36794. target: this.$el
  36795. });
  36796. }
  36797. },
  36798. computed: {
  36799. visibleOptions() {
  36800. if (this.filterValue) {
  36801. if (this.optionGroupLabel) {
  36802. let filteredGroups = [];
  36803. for (let optgroup of this.options) {
  36804. let filteredSubOptions = primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  36805. if (filteredSubOptions && filteredSubOptions.length) {
  36806. let filteredGroup = {...optgroup};
  36807. filteredGroup[this.optionGroupChildren] = filteredSubOptions;
  36808. filteredGroups.push(filteredGroup);
  36809. }
  36810. }
  36811. return filteredGroups
  36812. }
  36813. else {
  36814. return primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  36815. }
  36816. }
  36817. else {
  36818. return this.options;
  36819. }
  36820. },
  36821. containerClass() {
  36822. return [
  36823. 'p-dropdown p-component p-inputwrapper',
  36824. {
  36825. 'p-disabled': this.disabled,
  36826. 'p-dropdown-clearable': this.showClear && !this.disabled,
  36827. 'p-focus': this.focused,
  36828. 'p-inputwrapper-filled': this.modelValue,
  36829. 'p-inputwrapper-focus': this.focused || this.overlayVisible
  36830. }
  36831. ];
  36832. },
  36833. labelClass() {
  36834. return [
  36835. 'p-dropdown-label p-inputtext',
  36836. {
  36837. 'p-placeholder': this.label === this.placeholder,
  36838. 'p-dropdown-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
  36839. }
  36840. ];
  36841. },
  36842. panelStyleClass() {
  36843. return ['p-dropdown-panel p-component', this.panelClass, {
  36844. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  36845. 'p-ripple-disabled': this.$primevue.config.ripple === false
  36846. }];
  36847. },
  36848. label() {
  36849. let selectedOption = this.getSelectedOption();
  36850. if (selectedOption !== null)
  36851. return this.getOptionLabel(selectedOption);
  36852. else
  36853. return this.placeholder||'p-emptylabel';
  36854. },
  36855. editableInputValue() {
  36856. let selectedOption = this.getSelectedOption();
  36857. if (selectedOption)
  36858. return this.getOptionLabel(selectedOption);
  36859. else
  36860. return this.modelValue;
  36861. },
  36862. equalityKey() {
  36863. return this.optionValue ? null : this.dataKey;
  36864. },
  36865. searchFields() {
  36866. return this.filterFields || [this.optionLabel];
  36867. },
  36868. emptyFilterMessageText() {
  36869. return this.emptyFilterMessage || this.$primevue.config.locale.emptyFilterMessage;
  36870. },
  36871. emptyMessageText() {
  36872. return this.emptyMessage || this.$primevue.config.locale.emptyMessage;
  36873. },
  36874. appendDisabled() {
  36875. return this.appendTo === 'self';
  36876. },
  36877. virtualScrollerDisabled() {
  36878. return !this.virtualScrollerOptions;
  36879. },
  36880. appendTarget() {
  36881. return this.appendDisabled ? null : this.appendTo;
  36882. },
  36883. dropdownIconClass() {
  36884. return ['p-dropdown-trigger-icon', this.loading ? this.loadingIcon : 'pi pi-chevron-down'];
  36885. }
  36886. },
  36887. directives: {
  36888. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  36889. },
  36890. components: {
  36891. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  36892. }
  36893. };
  36894. const _hoisted_1 = { class: "p-hidden-accessible" };
  36895. const _hoisted_2 = {
  36896. key: 0,
  36897. class: "p-dropdown-header"
  36898. };
  36899. const _hoisted_3 = { class: "p-dropdown-filter-container" };
  36900. const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", { class: "p-dropdown-filter-icon pi pi-search" }, null, -1);
  36901. const _hoisted_5 = { class: "p-dropdown-item-group" };
  36902. const _hoisted_6 = {
  36903. key: 2,
  36904. class: "p-dropdown-empty-message"
  36905. };
  36906. const _hoisted_7 = {
  36907. key: 3,
  36908. class: "p-dropdown-empty-message"
  36909. };
  36910. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36911. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  36912. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  36913. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  36914. ref: "container",
  36915. class: $options.containerClass,
  36916. onClick: _cache[12] || (_cache[12] = $event => ($options.onClick($event)))
  36917. }, [
  36918. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", _hoisted_1, [
  36919. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", {
  36920. ref: "focusInput",
  36921. type: "text",
  36922. id: $props.inputId,
  36923. readonly: "",
  36924. disabled: $props.disabled,
  36925. onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  36926. onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  36927. onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  36928. tabindex: $props.tabindex,
  36929. "aria-haspopup": "true",
  36930. "aria-expanded": $data.overlayVisible,
  36931. "aria-labelledby": $props.ariaLabelledBy
  36932. }, null, 40, ["id", "disabled", "tabindex", "aria-expanded", "aria-labelledby"])
  36933. ]),
  36934. ($props.editable)
  36935. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("input", {
  36936. key: 0,
  36937. type: "text",
  36938. class: "p-dropdown-label p-inputtext",
  36939. disabled: $props.disabled,
  36940. onFocus: _cache[4] || (_cache[4] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  36941. onBlur: _cache[5] || (_cache[5] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  36942. placeholder: $props.placeholder,
  36943. value: $options.editableInputValue,
  36944. onInput: _cache[6] || (_cache[6] = (...args) => ($options.onEditableInput && $options.onEditableInput(...args))),
  36945. "aria-haspopup": "listbox",
  36946. "aria-expanded": $data.overlayVisible
  36947. }, null, 40, ["disabled", "placeholder", "value", "aria-expanded"]))
  36948. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  36949. (!$props.editable)
  36950. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("span", {
  36951. key: 1,
  36952. class: $options.labelClass
  36953. }, [
  36954. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "value", {
  36955. value: $props.modelValue,
  36956. placeholder: $props.placeholder
  36957. }, () => [
  36958. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.label||'empty'), 1)
  36959. ])
  36960. ], 2))
  36961. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  36962. ($props.showClear && $props.modelValue != null)
  36963. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("i", {
  36964. key: 2,
  36965. class: "p-dropdown-clear-icon pi pi-times",
  36966. onClick: _cache[7] || (_cache[7] = $event => ($options.onClearClick($event)))
  36967. }))
  36968. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  36969. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", {
  36970. class: "p-dropdown-trigger",
  36971. role: "button",
  36972. "aria-haspopup": "listbox",
  36973. "aria-expanded": $data.overlayVisible
  36974. }, [
  36975. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "indicator", {}, () => [
  36976. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", { class: $options.dropdownIconClass }, null, 2)
  36977. ])
  36978. ], 8, ["aria-expanded"]),
  36979. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  36980. to: $options.appendTarget,
  36981. disabled: $options.appendDisabled
  36982. }, [
  36983. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  36984. name: "p-connected-overlay",
  36985. onEnter: $options.onOverlayEnter,
  36986. onAfterEnter: $options.onOverlayAfterEnter,
  36987. onLeave: $options.onOverlayLeave,
  36988. onAfterLeave: $options.onOverlayAfterLeave
  36989. }, {
  36990. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  36991. ($data.overlayVisible)
  36992. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  36993. key: 0,
  36994. ref: $options.overlayRef,
  36995. class: $options.panelStyleClass,
  36996. onClick: _cache[11] || (_cache[11] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  36997. }, [
  36998. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  36999. value: $props.modelValue,
  37000. options: $options.visibleOptions
  37001. }),
  37002. ($props.filter)
  37003. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", _hoisted_2, [
  37004. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", _hoisted_3, [
  37005. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", {
  37006. type: "text",
  37007. ref: "filterInput",
  37008. value: $data.filterValue,
  37009. onVnodeUpdated: _cache[8] || (_cache[8] = (...args) => ($options.onFilterUpdated && $options.onFilterUpdated(...args))),
  37010. autoComplete: "off",
  37011. class: "p-dropdown-filter p-inputtext p-component",
  37012. placeholder: $props.filterPlaceholder,
  37013. onKeydown: _cache[9] || (_cache[9] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args))),
  37014. onInput: _cache[10] || (_cache[10] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
  37015. }, null, 40, ["value", "placeholder"]),
  37016. _hoisted_4
  37017. ])
  37018. ]))
  37019. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37020. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", {
  37021. ref: $options.itemsWrapperRef,
  37022. class: "p-dropdown-items-wrapper",
  37023. style: {'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''}
  37024. }, [
  37025. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  37026. items: $options.visibleOptions,
  37027. style: {'height': $props.scrollHeight},
  37028. disabled: $options.virtualScrollerDisabled
  37029. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  37030. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  37031. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("ul", {
  37032. ref: contentRef,
  37033. class: ['p-dropdown-items', styleClass],
  37034. style: contentStyle,
  37035. role: "listbox"
  37036. }, [
  37037. (!$props.optionGroupLabel)
  37038. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (option, i) => {
  37039. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  37040. class: ['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
  37041. key: $options.getOptionRenderKey(option),
  37042. onClick: $event => ($options.onOptionSelect($event, option)),
  37043. role: "option",
  37044. "aria-label": $options.getOptionLabel(option),
  37045. "aria-selected": $options.isSelected(option)
  37046. }, [
  37047. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37048. option: option,
  37049. index: $options.getOptionIndex(i, getItemOptions)
  37050. }, () => [
  37051. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37052. ])
  37053. ], 10, ["onClick", "aria-label", "aria-selected"])), [
  37054. [_directive_ripple]
  37055. ])
  37056. }), 128))
  37057. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  37058. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  37059. key: $options.getOptionGroupRenderKey(optionGroup)
  37060. }, [
  37061. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_5, [
  37062. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  37063. option: optionGroup,
  37064. index: $options.getOptionIndex(i, getItemOptions)
  37065. }, () => [
  37066. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  37067. ])
  37068. ]),
  37069. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (option, i) => {
  37070. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  37071. class: ['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
  37072. key: $options.getOptionRenderKey(option),
  37073. onClick: $event => ($options.onOptionSelect($event, option)),
  37074. role: "option",
  37075. "aria-label": $options.getOptionLabel(option),
  37076. "aria-selected": $options.isSelected(option)
  37077. }, [
  37078. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37079. option: option,
  37080. index: $options.getOptionIndex(i, getItemOptions)
  37081. }, () => [
  37082. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37083. ])
  37084. ], 10, ["onClick", "aria-label", "aria-selected"])), [
  37085. [_directive_ripple]
  37086. ])
  37087. }), 128))
  37088. ], 64))
  37089. }), 128)),
  37090. ($data.filterValue && (!items || (items && items.length === 0)))
  37091. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", _hoisted_6, [
  37092. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "emptyfilter", {}, () => [
  37093. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyFilterMessageText), 1)
  37094. ])
  37095. ]))
  37096. : ((!$props.options || ($props.options && $props.options.length === 0)))
  37097. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", _hoisted_7, [
  37098. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "empty", {}, () => [
  37099. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyMessageText), 1)
  37100. ])
  37101. ]))
  37102. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37103. ], 6)
  37104. ]),
  37105. _: 2
  37106. }, [
  37107. (_ctx.$slots.loader)
  37108. ? {
  37109. name: "loader",
  37110. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  37111. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  37112. ])
  37113. }
  37114. : undefined
  37115. ]), 1040, ["items", "style", "disabled"])
  37116. ], 4),
  37117. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  37118. value: $props.modelValue,
  37119. options: $options.visibleOptions
  37120. })
  37121. ], 2))
  37122. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37123. ]),
  37124. _: 3
  37125. }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
  37126. ], 8, ["to", "disabled"]))
  37127. ], 2))
  37128. }
  37129. function styleInject(css, ref) {
  37130. if ( ref === void 0 ) ref = {};
  37131. var insertAt = ref.insertAt;
  37132. if (!css || typeof document === 'undefined') { return; }
  37133. var head = document.head || document.getElementsByTagName('head')[0];
  37134. var style = document.createElement('style');
  37135. style.type = 'text/css';
  37136. if (insertAt === 'top') {
  37137. if (head.firstChild) {
  37138. head.insertBefore(style, head.firstChild);
  37139. } else {
  37140. head.appendChild(style);
  37141. }
  37142. } else {
  37143. head.appendChild(style);
  37144. }
  37145. if (style.styleSheet) {
  37146. style.styleSheet.cssText = css;
  37147. } else {
  37148. style.appendChild(document.createTextNode(css));
  37149. }
  37150. }
  37151. var css_248z = "\n.p-dropdown {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-dropdown-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\ninput.p-dropdown-label {\n cursor: default;\n}\n.p-dropdown .p-dropdown-panel {\n min-width: 100%;\n}\n.p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-dropdown-items-wrapper {\n overflow: auto;\n}\n.p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-dropdown-item-group {\n cursor: auto;\n}\n.p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-dropdown-filter {\n width: 100%;\n}\n.p-dropdown-filter-container {\n position: relative;\n}\n.p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-fluid .p-dropdown {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n}\n";
  37152. styleInject(css_248z);
  37153. script.render = render;
  37154. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  37155. /***/ }),
  37156. /***/ "./node_modules/primevue/editor/editor.esm.js":
  37157. /*!****************************************************!*\
  37158. !*** ./node_modules/primevue/editor/editor.esm.js ***!
  37159. \****************************************************/
  37160. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37161. "use strict";
  37162. __webpack_require__.r(__webpack_exports__);
  37163. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37164. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  37165. /* harmony export */ });
  37166. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill */ "./node_modules/quill/dist/quill.js");
  37167. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill__WEBPACK_IMPORTED_MODULE_0__);
  37168. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37169. var script = {
  37170. name: 'Editor',
  37171. emits: ['update:modelValue', 'text-change'],
  37172. props: {
  37173. modelValue: String,
  37174. placeholder: String,
  37175. readonly: Boolean,
  37176. formats: Array,
  37177. editorStyle: null
  37178. },
  37179. quill: null,
  37180. watch: {
  37181. modelValue(newValue, oldValue) {
  37182. if (newValue !== oldValue && this.quill && !this.quill.hasFocus()) {
  37183. this.renderValue(newValue);
  37184. }
  37185. }
  37186. },
  37187. mounted() {
  37188. this.quill = new (quill__WEBPACK_IMPORTED_MODULE_0___default())(this.$refs.editorElement, {
  37189. modules: {
  37190. toolbar: this.$refs.toolbarElement
  37191. },
  37192. readOnly: this.readonly,
  37193. theme: 'snow',
  37194. formats: this.formats,
  37195. placeholder: this.placeholder
  37196. });
  37197. this.renderValue(this.modelValue);
  37198. this.quill.on('text-change', (delta, oldContents, source) => {
  37199. if (source === 'user') {
  37200. let html = this.$refs.editorElement.children[0].innerHTML;
  37201. let text = this.quill.getText().trim();
  37202. if (html === '<p><br></p>') {
  37203. html = '';
  37204. }
  37205. this.$emit('update:modelValue', html);
  37206. this.$emit('text-change', {
  37207. htmlValue: html,
  37208. textValue: text,
  37209. delta: delta,
  37210. source: source,
  37211. instance: this.quill
  37212. });
  37213. }
  37214. });
  37215. },
  37216. methods: {
  37217. renderValue(value) {
  37218. if (this.quill) {
  37219. if (value)
  37220. this.quill.pasteHTML(value);
  37221. else
  37222. this.quill.setText('');
  37223. }
  37224. }
  37225. },
  37226. beforeUnmount() {
  37227. this.quill = null;
  37228. }
  37229. };
  37230. const _hoisted_1 = { class: "p-editor-container" };
  37231. const _hoisted_2 = {
  37232. ref: "toolbarElement",
  37233. class: "p-editor-toolbar"
  37234. };
  37235. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: "ql-formats" }, [
  37236. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", {
  37237. class: "ql-header",
  37238. defaultValue: "0"
  37239. }, [
  37240. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "1" }, "Heading"),
  37241. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "2" }, "Subheading"),
  37242. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "0" }, "Normal")
  37243. ]),
  37244. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", { class: "ql-font" }, [
  37245. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option"),
  37246. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "serif" }),
  37247. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "monospace" })
  37248. ])
  37249. ], -1);
  37250. const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-bold\" type=\"button\"></button><button class=\"ql-italic\" type=\"button\"></button><button class=\"ql-underline\" type=\"button\"></button></span><span class=\"ql-formats\"><select class=\"ql-color\"></select><select class=\"ql-background\"></select></span>", 2);
  37251. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: "ql-formats" }, [
  37252. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("button", {
  37253. class: "ql-list",
  37254. value: "ordered",
  37255. type: "button"
  37256. }),
  37257. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("button", {
  37258. class: "ql-list",
  37259. value: "bullet",
  37260. type: "button"
  37261. }),
  37262. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", { class: "ql-align" }, [
  37263. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { defaultValue: "" }),
  37264. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "center" }),
  37265. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "right" }),
  37266. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "justify" })
  37267. ])
  37268. ], -1);
  37269. const _hoisted_7 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-link\" type=\"button\"></button><button class=\"ql-image\" type=\"button\"></button><button class=\"ql-code-block\" type=\"button\"></button></span><span class=\"ql-formats\"><button class=\"ql-clean\" type=\"button\"></button></span>", 2);
  37270. function render(_ctx, _cache, $props, $setup, $data, $options) {
  37271. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("div", _hoisted_1, [
  37272. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_2, [
  37273. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "toolbar", {}, () => [
  37274. _hoisted_3,
  37275. _hoisted_4,
  37276. _hoisted_6,
  37277. _hoisted_7
  37278. ])
  37279. ], 512),
  37280. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", {
  37281. ref: "editorElement",
  37282. class: "p-editor-content",
  37283. style: $props.editorStyle
  37284. }, null, 4)
  37285. ]))
  37286. }
  37287. function styleInject(css, ref) {
  37288. if ( ref === void 0 ) ref = {};
  37289. var insertAt = ref.insertAt;
  37290. if (!css || typeof document === 'undefined') { return; }
  37291. var head = document.head || document.getElementsByTagName('head')[0];
  37292. var style = document.createElement('style');
  37293. style.type = 'text/css';
  37294. if (insertAt === 'top') {
  37295. if (head.firstChild) {
  37296. head.insertBefore(style, head.firstChild);
  37297. } else {
  37298. head.appendChild(style);
  37299. }
  37300. } else {
  37301. head.appendChild(style);
  37302. }
  37303. if (style.styleSheet) {
  37304. style.styleSheet.cssText = css;
  37305. } else {
  37306. style.appendChild(document.createTextNode(css));
  37307. }
  37308. }
  37309. var css_248z = "\n/*!\n * Quill Editor v1.3.3\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n -o-tab-size: 4;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5rem;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2rem;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5rem;\n margin-right: 0.3rem;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3rem;\n margin-right: -1.5rem;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5rem;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5rem;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3rem;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5rem;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3rem;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5rem;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6rem;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5rem;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6rem;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5rem;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9rem;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5rem;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9rem;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5rem;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12rem;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5rem;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12rem;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5rem;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15rem;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5rem;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15rem;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5rem;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18rem;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5rem;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18rem;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5rem;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21rem;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5rem;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21rem;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5rem;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24rem;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5rem;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24rem;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5rem;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27rem;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5rem;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27rem;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5rem;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75rem;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5rem;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5rem;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n.ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n}\n}\n.ql-snow {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n -webkit-transform: translateY(10px);\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n -webkit-transform: translateY(-10px);\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2rem;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5rem;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17rem;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1rem;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83rem;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67rem;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67rem;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n -webkit-box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0px 0px 5px #ddd;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n";
  37310. styleInject(css_248z);
  37311. script.render = render;
  37312. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  37313. /***/ }),
  37314. /***/ "./node_modules/primevue/inputnumber/inputnumber.esm.js":
  37315. /*!**************************************************************!*\
  37316. !*** ./node_modules/primevue/inputnumber/inputnumber.esm.js ***!
  37317. \**************************************************************/
  37318. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37319. "use strict";
  37320. __webpack_require__.r(__webpack_exports__);
  37321. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37322. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  37323. /* harmony export */ });
  37324. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  37325. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  37326. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37327. var script = {
  37328. name: 'InputNumber',
  37329. inheritAttrs: false,
  37330. emits: ['update:modelValue', 'input', 'focus', 'blur'],
  37331. props: {
  37332. modelValue: {
  37333. type: Number,
  37334. default: null
  37335. },
  37336. format: {
  37337. type: Boolean,
  37338. default: true
  37339. },
  37340. showButtons: {
  37341. type: Boolean,
  37342. default: false
  37343. },
  37344. buttonLayout: {
  37345. type: String,
  37346. default: 'stacked'
  37347. },
  37348. incrementButtonClass: {
  37349. type: String,
  37350. default: null,
  37351. },
  37352. decrementButtonClass: {
  37353. type: String,
  37354. default: null,
  37355. },
  37356. incrementButtonIcon: {
  37357. type: String,
  37358. default: 'pi pi-angle-up',
  37359. },
  37360. decrementButtonIcon: {
  37361. type: String,
  37362. default: 'pi pi-angle-down',
  37363. },
  37364. locale: {
  37365. type: String,
  37366. default: undefined
  37367. },
  37368. localeMatcher: {
  37369. type: String,
  37370. default: undefined
  37371. },
  37372. mode: {
  37373. type: String,
  37374. default: 'decimal'
  37375. },
  37376. prefix: {
  37377. type: String,
  37378. default: null
  37379. },
  37380. suffix: {
  37381. type: String,
  37382. default: null
  37383. },
  37384. currency: {
  37385. type: String,
  37386. default: undefined
  37387. },
  37388. currencyDisplay: {
  37389. type: String,
  37390. default: undefined
  37391. },
  37392. useGrouping: {
  37393. type: Boolean,
  37394. default: true
  37395. },
  37396. minFractionDigits: {
  37397. type: Number,
  37398. default: undefined
  37399. },
  37400. maxFractionDigits: {
  37401. type: Number,
  37402. default: undefined
  37403. },
  37404. min: {
  37405. type: Number,
  37406. default: null
  37407. },
  37408. max: {
  37409. type: Number,
  37410. default: null
  37411. },
  37412. step: {
  37413. type: Number,
  37414. default: 1
  37415. },
  37416. allowEmpty: {
  37417. type: Boolean,
  37418. default: true
  37419. },
  37420. style: null,
  37421. class: null,
  37422. inputStyle: null,
  37423. inputClass: null
  37424. },
  37425. numberFormat: null,
  37426. _numeral: null,
  37427. _decimal: null,
  37428. _group: null,
  37429. _minusSign: null,
  37430. _currency: null,
  37431. _suffix: null,
  37432. _prefix: null,
  37433. _index: null,
  37434. groupChar: '',
  37435. isSpecialChar: null,
  37436. prefixChar: null,
  37437. suffixChar: null,
  37438. timer: null,
  37439. data() {
  37440. return {
  37441. d_modelValue: this.modelValue,
  37442. focused: false
  37443. }
  37444. },
  37445. watch: {
  37446. modelValue(newValue) {
  37447. this.d_modelValue = newValue;
  37448. },
  37449. locale(newValue, oldValue) {
  37450. this.updateConstructParser(newValue, oldValue);
  37451. },
  37452. localeMatcher(newValue, oldValue) {
  37453. this.updateConstructParser(newValue, oldValue);
  37454. },
  37455. mode(newValue, oldValue) {
  37456. this.updateConstructParser(newValue, oldValue);
  37457. },
  37458. currency(newValue, oldValue) {
  37459. this.updateConstructParser(newValue, oldValue);
  37460. },
  37461. currencyDisplay(newValue, oldValue) {
  37462. this.updateConstructParser(newValue, oldValue);
  37463. },
  37464. useGrouping(newValue, oldValue) {
  37465. this.updateConstructParser(newValue, oldValue);
  37466. },
  37467. minFractionDigits(newValue, oldValue) {
  37468. this.updateConstructParser(newValue, oldValue);
  37469. },
  37470. maxFractionDigits(newValue, oldValue) {
  37471. this.updateConstructParser(newValue, oldValue);
  37472. },
  37473. suffix(newValue, oldValue) {
  37474. this.updateConstructParser(newValue, oldValue);
  37475. },
  37476. prefix(newValue, oldValue) {
  37477. this.updateConstructParser(newValue, oldValue);
  37478. }
  37479. },
  37480. created() {
  37481. this.constructParser();
  37482. },
  37483. methods: {
  37484. getOptions() {
  37485. return {
  37486. localeMatcher: this.localeMatcher,
  37487. style: this.mode,
  37488. currency: this.currency,
  37489. currencyDisplay: this.currencyDisplay,
  37490. useGrouping: this.useGrouping,
  37491. minimumFractionDigits: this.minFractionDigits,
  37492. maximumFractionDigits: this.maxFractionDigits
  37493. };
  37494. },
  37495. constructParser() {
  37496. this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
  37497. const numerals = [...new Intl.NumberFormat(this.locale, {useGrouping: false}).format(9876543210)].reverse();
  37498. const index = new Map(numerals.map((d, i) => [d, i]));
  37499. this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
  37500. this._group = this.getGroupingExpression();
  37501. this._minusSign = this.getMinusSignExpression();
  37502. this._currency = this.getCurrencyExpression();
  37503. this._decimal = this.getDecimalExpression();
  37504. this._suffix = this.getSuffixExpression();
  37505. this._prefix = this.getPrefixExpression();
  37506. this._index = d => index.get(d);
  37507. },
  37508. updateConstructParser(newValue, oldValue) {
  37509. if (newValue !== oldValue) {
  37510. this.constructParser();
  37511. }
  37512. },
  37513. escapeRegExp(text) {
  37514. return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  37515. },
  37516. getDecimalExpression() {
  37517. const formatter = new Intl.NumberFormat(this.locale, {...this.getOptions(), useGrouping: false});
  37518. return new RegExp(`[${formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, '')}]`, 'g');
  37519. },
  37520. getGroupingExpression() {
  37521. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: true});
  37522. this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
  37523. return new RegExp(`[${this.groupChar}]`, 'g');
  37524. },
  37525. getMinusSignExpression() {
  37526. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: false});
  37527. return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
  37528. },
  37529. getCurrencyExpression() {
  37530. if (this.currency) {
  37531. const formatter = new Intl.NumberFormat(this.locale, {style: 'currency', currency: this.currency, currencyDisplay: this.currencyDisplay,
  37532. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37533. return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
  37534. }
  37535. return new RegExp(`[]`,'g');
  37536. },
  37537. getPrefixExpression() {
  37538. if (this.prefix) {
  37539. this.prefixChar = this.prefix;
  37540. }
  37541. else {
  37542. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay});
  37543. this.prefixChar = formatter.format(1).split('1')[0];
  37544. }
  37545. return new RegExp(`${this.escapeRegExp(this.prefixChar||'')}`, 'g');
  37546. },
  37547. getSuffixExpression() {
  37548. if (this.suffix) {
  37549. this.suffixChar = this.suffix;
  37550. }
  37551. else {
  37552. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay,
  37553. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37554. this.suffixChar = formatter.format(1).split('1')[1];
  37555. }
  37556. return new RegExp(`${this.escapeRegExp(this.suffixChar||'')}`, 'g');
  37557. },
  37558. formatValue(value) {
  37559. if (value != null) {
  37560. if (value === '-') { // Minus sign
  37561. return value;
  37562. }
  37563. if (this.format) {
  37564. let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
  37565. let formattedValue = formatter.format(value);
  37566. if (this.prefix) {
  37567. formattedValue = this.prefix + formattedValue;
  37568. }
  37569. if (this.suffix) {
  37570. formattedValue = formattedValue + this.suffix;
  37571. }
  37572. return formattedValue;
  37573. }
  37574. return value.toString();
  37575. }
  37576. return '';
  37577. },
  37578. parseValue(text) {
  37579. let filteredText = text
  37580. .replace(this._suffix, '')
  37581. .replace(this._prefix, '')
  37582. .trim()
  37583. .replace(/\s/g, '')
  37584. .replace(this._currency, '')
  37585. .replace(this._group, '')
  37586. .replace(this._minusSign, '-')
  37587. .replace(this._decimal, '.')
  37588. .replace(this._numeral, this._index);
  37589. if (filteredText) {
  37590. if (filteredText === '-') // Minus sign
  37591. return filteredText;
  37592. let parsedValue = +filteredText;
  37593. return isNaN(parsedValue) ? null : parsedValue;
  37594. }
  37595. return null;
  37596. },
  37597. repeat(event, interval, dir) {
  37598. let i = interval || 500;
  37599. this.clearTimer();
  37600. this.timer = setTimeout(() => {
  37601. this.repeat(event, 40, dir);
  37602. }, i);
  37603. this.spin(event, dir);
  37604. },
  37605. spin(event, dir) {
  37606. if (this.$refs.input) {
  37607. let step = this.step * dir;
  37608. let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
  37609. let newValue = this.validateValue(currentValue + step);
  37610. this.updateInput(newValue, null, 'spin');
  37611. this.updateModel(event, newValue);
  37612. this.handleOnInput(event, currentValue, newValue);
  37613. }
  37614. },
  37615. onUpButtonMouseDown(event) {
  37616. if (!this.$attrs.disabled) {
  37617. this.$refs.input.$el.focus();
  37618. this.repeat(event, null, 1);
  37619. event.preventDefault();
  37620. }
  37621. },
  37622. onUpButtonMouseUp() {
  37623. if (!this.$attrs.disabled) {
  37624. this.clearTimer();
  37625. }
  37626. },
  37627. onUpButtonMouseLeave() {
  37628. if (!this.$attrs.disabled) {
  37629. this.clearTimer();
  37630. }
  37631. },
  37632. onUpButtonKeyUp() {
  37633. if (!this.$attrs.disabled) {
  37634. this.clearTimer();
  37635. }
  37636. },
  37637. onUpButtonKeyDown(event) {
  37638. if (event.keyCode === 32 || event.keyCode === 13) {
  37639. this.repeat(event, null, 1);
  37640. }
  37641. },
  37642. onDownButtonMouseDown(event) {
  37643. if (!this.$attrs.disabled) {
  37644. this.$refs.input.$el.focus();
  37645. this.repeat(event, null, -1);
  37646. event.preventDefault();
  37647. }
  37648. },
  37649. onDownButtonMouseUp() {
  37650. if (!this.$attrs.disabled) {
  37651. this.clearTimer();
  37652. }
  37653. },
  37654. onDownButtonMouseLeave() {
  37655. if (!this.$attrs.disabled) {
  37656. this.clearTimer();
  37657. }
  37658. },
  37659. onDownButtonKeyUp() {
  37660. if (!this.$attrs.disabled) {
  37661. this.clearTimer();
  37662. }
  37663. },
  37664. onDownButtonKeyDown(event) {
  37665. if (event.keyCode === 32 || event.keyCode === 13) {
  37666. this.repeat(event, null, -1);
  37667. }
  37668. },
  37669. onUserInput() {
  37670. if (this.isSpecialChar) {
  37671. this.$refs.input.$el.value = this.lastValue;
  37672. }
  37673. this.isSpecialChar = false;
  37674. },
  37675. onInputKeyDown(event) {
  37676. this.lastValue = event.target.value;
  37677. if (event.shiftKey || event.altKey) {
  37678. this.isSpecialChar = true;
  37679. return;
  37680. }
  37681. let selectionStart = event.target.selectionStart;
  37682. let selectionEnd = event.target.selectionEnd;
  37683. let inputValue = event.target.value;
  37684. let newValueStr = null;
  37685. if (event.altKey) {
  37686. event.preventDefault();
  37687. }
  37688. switch (event.which) {
  37689. //up
  37690. case 38:
  37691. this.spin(event, 1);
  37692. event.preventDefault();
  37693. break;
  37694. //down
  37695. case 40:
  37696. this.spin(event, -1);
  37697. event.preventDefault();
  37698. break;
  37699. //left
  37700. case 37:
  37701. if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
  37702. event.preventDefault();
  37703. }
  37704. break;
  37705. //right
  37706. case 39:
  37707. if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
  37708. event.preventDefault();
  37709. }
  37710. break;
  37711. //enter
  37712. case 13:
  37713. newValueStr = this.validateValue(this.parseValue(inputValue));
  37714. this.$refs.input.$el.value = this.formatValue(newValueStr);
  37715. this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
  37716. this.updateModel(event, newValueStr);
  37717. break;
  37718. //backspace
  37719. case 8: {
  37720. event.preventDefault();
  37721. if (selectionStart === selectionEnd) {
  37722. const deleteChar = inputValue.charAt(selectionStart - 1);
  37723. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  37724. if (this.isNumeralChar(deleteChar)) {
  37725. const decimalLength = this.getDecimalLength(inputValue);
  37726. if (this._group.test(deleteChar)) {
  37727. this._group.lastIndex = 0;
  37728. newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
  37729. }
  37730. else if (this._decimal.test(deleteChar)) {
  37731. this._decimal.lastIndex = 0;
  37732. if (decimalLength) {
  37733. this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
  37734. }
  37735. else {
  37736. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  37737. }
  37738. }
  37739. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  37740. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  37741. newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
  37742. }
  37743. else if (decimalCharIndexWithoutPrefix === 1) {
  37744. newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
  37745. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  37746. }
  37747. else {
  37748. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  37749. }
  37750. }
  37751. this.updateValue(event, newValueStr, null, 'delete-single');
  37752. }
  37753. else {
  37754. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  37755. this.updateValue(event, newValueStr, null, 'delete-range');
  37756. }
  37757. break;
  37758. }
  37759. // del
  37760. case 46:
  37761. event.preventDefault();
  37762. if (selectionStart === selectionEnd) {
  37763. const deleteChar = inputValue.charAt(selectionStart);
  37764. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  37765. if (this.isNumeralChar(deleteChar)) {
  37766. const decimalLength = this.getDecimalLength(inputValue);
  37767. if (this._group.test(deleteChar)) {
  37768. this._group.lastIndex = 0;
  37769. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
  37770. }
  37771. else if (this._decimal.test(deleteChar)) {
  37772. this._decimal.lastIndex = 0;
  37773. if (decimalLength) {
  37774. this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
  37775. }
  37776. else {
  37777. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  37778. }
  37779. }
  37780. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  37781. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  37782. newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
  37783. }
  37784. else if (decimalCharIndexWithoutPrefix === 1) {
  37785. newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
  37786. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  37787. }
  37788. else {
  37789. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  37790. }
  37791. }
  37792. this.updateValue(event, newValueStr, null, 'delete-back-single');
  37793. }
  37794. else {
  37795. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  37796. this.updateValue(event, newValueStr, null, 'delete-range');
  37797. }
  37798. break;
  37799. }
  37800. },
  37801. onInputKeyPress(event) {
  37802. event.preventDefault();
  37803. let code = event.which || event.keyCode;
  37804. let char = String.fromCharCode(code);
  37805. const isDecimalSign = this.isDecimalSign(char);
  37806. const isMinusSign = this.isMinusSign(char);
  37807. if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
  37808. this.insert(event, char, { isDecimalSign, isMinusSign });
  37809. }
  37810. },
  37811. onPaste(event) {
  37812. event.preventDefault();
  37813. let data = (event.clipboardData || window['clipboardData']).getData('Text');
  37814. if (data) {
  37815. let filteredData = this.parseValue(data);
  37816. if (filteredData != null) {
  37817. this.insert(event, filteredData.toString());
  37818. }
  37819. }
  37820. },
  37821. allowMinusSign() {
  37822. return this.min === null || this.min < 0;
  37823. },
  37824. isMinusSign(char) {
  37825. if (this._minusSign.test(char) || char === '-') {
  37826. this._minusSign.lastIndex = 0;
  37827. return true;
  37828. }
  37829. return false;
  37830. },
  37831. isDecimalSign(char) {
  37832. if (this._decimal.test(char)) {
  37833. this._decimal.lastIndex = 0;
  37834. return true;
  37835. }
  37836. return false;
  37837. },
  37838. isDecimalMode() {
  37839. return this.mode === 'decimal';
  37840. },
  37841. getDecimalCharIndexes(val) {
  37842. let decimalCharIndex = val.search(this._decimal);
  37843. this._decimal.lastIndex = 0;
  37844. const filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
  37845. const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
  37846. this._decimal.lastIndex = 0;
  37847. return { decimalCharIndex, decimalCharIndexWithoutPrefix };
  37848. },
  37849. getCharIndexes(val) {
  37850. const decimalCharIndex = val.search(this._decimal);
  37851. this._decimal.lastIndex = 0;
  37852. const minusCharIndex = val.search(this._minusSign);
  37853. this._minusSign.lastIndex = 0;
  37854. const suffixCharIndex = val.search(this._suffix);
  37855. this._suffix.lastIndex = 0;
  37856. const currencyCharIndex = val.search(this._currency);
  37857. this._currency.lastIndex = 0;
  37858. return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
  37859. },
  37860. insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
  37861. const minusCharIndexOnText = text.search(this._minusSign);
  37862. this._minusSign.lastIndex = 0;
  37863. if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
  37864. return;
  37865. }
  37866. const selectionStart = this.$refs.input.$el.selectionStart;
  37867. const selectionEnd = this.$refs.input.$el.selectionEnd;
  37868. let inputValue = this.$refs.input.$el.value.trim();
  37869. const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
  37870. let newValueStr;
  37871. if (sign.isMinusSign) {
  37872. if (selectionStart === 0) {
  37873. newValueStr = inputValue;
  37874. if (minusCharIndex === -1 || selectionEnd !== 0) {
  37875. newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
  37876. }
  37877. this.updateValue(event, newValueStr, text, 'insert');
  37878. }
  37879. }
  37880. else if (sign.isDecimalSign) {
  37881. if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
  37882. this.updateValue(event, inputValue, text, 'insert');
  37883. }
  37884. else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
  37885. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  37886. this.updateValue(event, newValueStr, text, 'insert');
  37887. }
  37888. else if (decimalCharIndex === -1 && this.maxFractionDigits) {
  37889. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  37890. this.updateValue(event, newValueStr, text, 'insert');
  37891. }
  37892. }
  37893. else {
  37894. const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
  37895. const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
  37896. if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  37897. if ((selectionStart + text.length - (decimalCharIndex + 1)) <= maxFractionDigits) {
  37898. const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : (suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length);
  37899. newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
  37900. this.updateValue(event, newValueStr, text, operation);
  37901. }
  37902. }
  37903. else {
  37904. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  37905. this.updateValue(event, newValueStr, text, operation);
  37906. }
  37907. }
  37908. },
  37909. insertText(value, text, start, end) {
  37910. let textSplit = text === '.' ? text : text.split('.');
  37911. if (textSplit.length === 2) {
  37912. const decimalCharIndex = value.slice(start, end).search(this._decimal);
  37913. this._decimal.lastIndex = 0;
  37914. return (decimalCharIndex > 0) ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : (value || this.formatValue(text));
  37915. }
  37916. else if ((end - start) === value.length) {
  37917. return this.formatValue(text);
  37918. }
  37919. else if (start === 0) {
  37920. return text + value.slice(end);
  37921. }
  37922. else if (end === value.length) {
  37923. return value.slice(0, start) + text;
  37924. }
  37925. else {
  37926. return value.slice(0, start) + text + value.slice(end);
  37927. }
  37928. },
  37929. deleteRange(value, start, end) {
  37930. let newValueStr;
  37931. if ((end - start) === value.length)
  37932. newValueStr = '';
  37933. else if (start === 0)
  37934. newValueStr = value.slice(end);
  37935. else if (end === value.length)
  37936. newValueStr = value.slice(0, start);
  37937. else
  37938. newValueStr = value.slice(0, start) + value.slice(end);
  37939. return newValueStr;
  37940. },
  37941. initCursor() {
  37942. let selectionStart = this.$refs.input.$el.selectionStart;
  37943. let inputValue = this.$refs.input.$el.value;
  37944. let valueLength = inputValue.length;
  37945. let index = null;
  37946. // remove prefix
  37947. let prefixLength = (this.prefixChar || '').length;
  37948. inputValue = inputValue.replace(this._prefix, '');
  37949. selectionStart = selectionStart - prefixLength;
  37950. let char = inputValue.charAt(selectionStart);
  37951. if (this.isNumeralChar(char)) {
  37952. return selectionStart + prefixLength;
  37953. }
  37954. //left
  37955. let i = selectionStart - 1;
  37956. while (i >= 0) {
  37957. char = inputValue.charAt(i);
  37958. if (this.isNumeralChar(char)) {
  37959. index = i + prefixLength;
  37960. break;
  37961. }
  37962. else {
  37963. i--;
  37964. }
  37965. }
  37966. if (index !== null) {
  37967. this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
  37968. }
  37969. else {
  37970. i = selectionStart;
  37971. while (i < valueLength) {
  37972. char = inputValue.charAt(i);
  37973. if (this.isNumeralChar(char)) {
  37974. index = i + prefixLength;
  37975. break;
  37976. }
  37977. else {
  37978. i++;
  37979. }
  37980. }
  37981. if (index !== null) {
  37982. this.$refs.input.$el.setSelectionRange(index, index);
  37983. }
  37984. }
  37985. return index || 0;
  37986. },
  37987. onInputClick() {
  37988. this.initCursor();
  37989. },
  37990. isNumeralChar(char) {
  37991. if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
  37992. this.resetRegex();
  37993. return true;
  37994. }
  37995. return false;
  37996. },
  37997. resetRegex() {
  37998. this._numeral.lastIndex = 0;
  37999. this._decimal.lastIndex = 0;
  38000. this._group.lastIndex = 0;
  38001. this._minusSign.lastIndex = 0;
  38002. },
  38003. updateValue(event, valueStr, insertedValueStr, operation) {
  38004. let currentValue = this.$refs.input.$el.value;
  38005. let newValue = null;
  38006. if (valueStr != null) {
  38007. newValue = this.parseValue(valueStr);
  38008. newValue = !newValue && !this.allowEmpty ? 0 : newValue;
  38009. this.updateInput(newValue, insertedValueStr, operation, valueStr);
  38010. this.handleOnInput(event, currentValue, newValue);
  38011. }
  38012. },
  38013. handleOnInput(event, currentValue, newValue) {
  38014. if (this.isValueChanged(currentValue, newValue)) {
  38015. this.$emit('input', { originalEvent: event, value: newValue });
  38016. }
  38017. },
  38018. isValueChanged(currentValue, newValue) {
  38019. if (newValue === null && currentValue !== null) {
  38020. return true;
  38021. }
  38022. if (newValue != null) {
  38023. let parsedCurrentValue = (typeof currentValue === 'string') ? this.parseValue(currentValue) : currentValue;
  38024. return newValue !== parsedCurrentValue;
  38025. }
  38026. return false;
  38027. },
  38028. validateValue(value) {
  38029. if (value === '-' || value == null) {
  38030. return null;
  38031. }
  38032. if (this.min != null && value < this.min) {
  38033. return this.min;
  38034. }
  38035. if (this.max != null && value > this.max) {
  38036. return this.max;
  38037. }
  38038. return value;
  38039. },
  38040. updateInput(value, insertedValueStr, operation, valueStr) {
  38041. insertedValueStr = insertedValueStr || '';
  38042. let inputValue = this.$refs.input.$el.value;
  38043. let newValue = this.formatValue(value);
  38044. let currentLength = inputValue.length;
  38045. if (newValue !== valueStr) {
  38046. newValue = this.concatValues(newValue, valueStr);
  38047. }
  38048. if (currentLength === 0) {
  38049. this.$refs.input.$el.value = newValue;
  38050. this.$refs.input.$el.setSelectionRange(0, 0);
  38051. const index = this.initCursor();
  38052. const selectionEnd = index + insertedValueStr.length;
  38053. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38054. }
  38055. else {
  38056. let selectionStart = this.$refs.input.$el.selectionStart;
  38057. let selectionEnd = this.$refs.input.$el.selectionEnd;
  38058. this.$refs.input.$el.value = newValue;
  38059. let newLength = newValue.length;
  38060. if (operation === 'range-insert') {
  38061. const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
  38062. const startValueStr = startValue !== null ? startValue.toString() : '';
  38063. const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
  38064. const sRegex = new RegExp(startExpr, 'g');
  38065. sRegex.test(newValue);
  38066. const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
  38067. const tRegex = new RegExp(tExpr, 'g');
  38068. tRegex.test(newValue.slice(sRegex.lastIndex));
  38069. selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
  38070. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38071. }
  38072. else if (newLength === currentLength) {
  38073. if (operation === 'insert' || operation === 'delete-back-single')
  38074. this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
  38075. else if (operation === 'delete-single')
  38076. this.$refs.input.$el.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
  38077. else if (operation === 'delete-range' || operation === 'spin')
  38078. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38079. }
  38080. else if (operation === 'delete-back-single') {
  38081. let prevChar = inputValue.charAt(selectionEnd - 1);
  38082. let nextChar = inputValue.charAt(selectionEnd);
  38083. let diff = currentLength - newLength;
  38084. let isGroupChar = this._group.test(nextChar);
  38085. if (isGroupChar && diff === 1) {
  38086. selectionEnd += 1;
  38087. }
  38088. else if (!isGroupChar && this.isNumeralChar(prevChar)) {
  38089. selectionEnd += (-1 * diff) + 1;
  38090. }
  38091. this._group.lastIndex = 0;
  38092. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38093. }
  38094. else if (inputValue === '-' && operation === 'insert') {
  38095. this.$refs.input.$el.setSelectionRange(0, 0);
  38096. const index = this.initCursor();
  38097. const selectionEnd = index + insertedValueStr.length + 1;
  38098. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38099. }
  38100. else {
  38101. selectionEnd = selectionEnd + (newLength - currentLength);
  38102. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38103. }
  38104. }
  38105. this.$refs.input.$el.setAttribute('aria-valuenow', value);
  38106. },
  38107. concatValues(val1, val2) {
  38108. if (val1 && val2) {
  38109. let decimalCharIndex = val2.search(this._decimal);
  38110. this._decimal.lastIndex = 0;
  38111. return decimalCharIndex !== -1 ? (val1.split(this._decimal)[0] + val2.slice(decimalCharIndex)) : val1;
  38112. }
  38113. return val1;
  38114. },
  38115. getDecimalLength(value) {
  38116. if (value) {
  38117. const valueSplit = value.split(this._decimal);
  38118. if (valueSplit.length === 2) {
  38119. return valueSplit[1].replace(this._suffix, '')
  38120. .trim()
  38121. .replace(/\s/g, '')
  38122. .replace(this._currency, '').length;
  38123. }
  38124. }
  38125. return 0;
  38126. },
  38127. updateModel(event, value) {
  38128. this.d_modelValue = value;
  38129. this.$emit('update:modelValue', value);
  38130. },
  38131. onInputFocus(event) {
  38132. this.focused = true;
  38133. this.$emit('focus', event);
  38134. },
  38135. onInputBlur(event) {
  38136. this.focused = false;
  38137. let input = event.target;
  38138. let newValue = this.validateValue(this.parseValue(input.value));
  38139. this.$emit('blur', { originalEvent: event, value: input.value});
  38140. input.value = this.formatValue(newValue);
  38141. input.setAttribute('aria-valuenow', newValue);
  38142. this.updateModel(event, newValue);
  38143. },
  38144. clearTimer() {
  38145. if (this.timer) {
  38146. clearInterval(this.timer);
  38147. }
  38148. },
  38149. maxBoundry() {
  38150. return this.d_modelValue >= this.max;
  38151. },
  38152. minBoundry() {
  38153. return this.d_modelValue <= this.min;
  38154. },
  38155. },
  38156. computed: {
  38157. containerClass() {
  38158. return ['p-inputnumber p-component p-inputwrapper', this.class, {
  38159. 'p-inputwrapper-filled': this.filled,
  38160. 'p-inputwrapper-focus': this.focused,
  38161. 'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
  38162. 'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
  38163. 'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
  38164. }];
  38165. },
  38166. upButtonClass() {
  38167. return ['p-inputnumber-button p-inputnumber-button-up', this.incrementButtonClass, {
  38168. 'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
  38169. }];
  38170. },
  38171. downButtonClass() {
  38172. return ['p-inputnumber-button p-inputnumber-button-down', this.decrementButtonClass, {
  38173. 'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
  38174. }];
  38175. },
  38176. filled() {
  38177. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38178. },
  38179. upButtonListeners() {
  38180. return {
  38181. mousedown: event => this.onUpButtonMouseDown(event),
  38182. mouseup: event => this.onUpButtonMouseUp(event),
  38183. mouseleave: event => this.onUpButtonMouseLeave(event),
  38184. keydown: event => this.onUpButtonKeyDown(event),
  38185. keyup: event => this.onUpButtonKeyUp(event)
  38186. }
  38187. },
  38188. downButtonListeners() {
  38189. return {
  38190. mousedown: event => this.onDownButtonMouseDown(event),
  38191. mouseup: event => this.onDownButtonMouseUp(event),
  38192. mouseleave: event => this.onDownButtonMouseLeave(event),
  38193. keydown: event => this.onDownButtonKeyDown(event),
  38194. keyup: event => this.onDownButtonKeyUp(event)
  38195. }
  38196. },
  38197. formattedValue() {
  38198. const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
  38199. return this.formatValue(val);
  38200. },
  38201. getFormatter() {
  38202. return this.numberFormat;
  38203. }
  38204. },
  38205. components: {
  38206. 'INInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__["default"],
  38207. 'INButton': primevue_button__WEBPACK_IMPORTED_MODULE_1__["default"]
  38208. }
  38209. };
  38210. const _hoisted_1 = {
  38211. key: 0,
  38212. class: "p-inputnumber-button-group"
  38213. };
  38214. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38215. const _component_INInputText = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INInputText");
  38216. const _component_INButton = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INButton");
  38217. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", {
  38218. class: $options.containerClass,
  38219. style: $props.style
  38220. }, [
  38221. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INInputText, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38222. ref: "input",
  38223. class: ['p-inputnumber-input', $props.inputClass],
  38224. style: $props.inputStyle,
  38225. value: $options.formattedValue
  38226. }, _ctx.$attrs, {
  38227. "aria-valumin": $props.min,
  38228. "aria-valuemax": $props.max,
  38229. onInput: $options.onUserInput,
  38230. onKeydown: $options.onInputKeyDown,
  38231. onKeypress: $options.onInputKeyPress,
  38232. onPaste: $options.onPaste,
  38233. onClick: $options.onInputClick,
  38234. onFocus: $options.onInputFocus,
  38235. onBlur: $options.onInputBlur
  38236. }), null, 16, ["class", "style", "value", "aria-valumin", "aria-valuemax", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur"]),
  38237. ($props.showButtons && $props.buttonLayout === 'stacked')
  38238. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", _hoisted_1, [
  38239. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38240. class: $options.upButtonClass,
  38241. icon: $props.incrementButtonIcon
  38242. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38243. disabled: _ctx.$attrs.disabled
  38244. }), null, 16, ["class", "icon", "disabled"]),
  38245. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38246. class: $options.downButtonClass,
  38247. icon: $props.decrementButtonIcon
  38248. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38249. disabled: _ctx.$attrs.disabled
  38250. }), null, 16, ["class", "icon", "disabled"])
  38251. ]))
  38252. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38253. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38254. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38255. key: 1,
  38256. class: $options.upButtonClass,
  38257. icon: $props.incrementButtonIcon
  38258. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38259. disabled: _ctx.$attrs.disabled
  38260. }), null, 16, ["class", "icon", "disabled"]))
  38261. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38262. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38263. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38264. key: 2,
  38265. class: $options.downButtonClass,
  38266. icon: $props.decrementButtonIcon
  38267. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38268. disabled: _ctx.$attrs.disabled
  38269. }), null, 16, ["class", "icon", "disabled"]))
  38270. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  38271. ], 6))
  38272. }
  38273. function styleInject(css, ref) {
  38274. if ( ref === void 0 ) ref = {};
  38275. var insertAt = ref.insertAt;
  38276. if (!css || typeof document === 'undefined') { return; }
  38277. var head = document.head || document.getElementsByTagName('head')[0];
  38278. var style = document.createElement('style');
  38279. style.type = 'text/css';
  38280. if (insertAt === 'top') {
  38281. if (head.firstChild) {
  38282. head.insertBefore(style, head.firstChild);
  38283. } else {
  38284. head.appendChild(style);
  38285. }
  38286. } else {
  38287. head.appendChild(style);
  38288. }
  38289. if (style.styleSheet) {
  38290. style.styleSheet.cssText = css;
  38291. } else {
  38292. style.appendChild(document.createTextNode(css));
  38293. }
  38294. }
  38295. var css_248z = "\n.p-inputnumber {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-inputnumber-button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-vertical {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
  38296. styleInject(css_248z);
  38297. script.render = render;
  38298. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38299. /***/ }),
  38300. /***/ "./node_modules/primevue/inputtext/inputtext.esm.js":
  38301. /*!**********************************************************!*\
  38302. !*** ./node_modules/primevue/inputtext/inputtext.esm.js ***!
  38303. \**********************************************************/
  38304. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38305. "use strict";
  38306. __webpack_require__.r(__webpack_exports__);
  38307. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38308. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38309. /* harmony export */ });
  38310. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38311. var script = {
  38312. name: 'InputText',
  38313. emits: ['update:modelValue'],
  38314. props: {
  38315. modelValue: null
  38316. },
  38317. methods: {
  38318. onInput(event) {
  38319. this.$emit('update:modelValue', event.target.value);
  38320. }
  38321. },
  38322. computed: {
  38323. filled() {
  38324. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38325. }
  38326. }
  38327. };
  38328. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38329. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
  38330. class: ['p-inputtext p-component', {'p-filled': $options.filled}],
  38331. value: $props.modelValue,
  38332. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
  38333. }, _ctx.$attrs), null, 16, ["value"]))
  38334. }
  38335. script.render = render;
  38336. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38337. /***/ }),
  38338. /***/ "./node_modules/primevue/message/message.esm.js":
  38339. /*!******************************************************!*\
  38340. !*** ./node_modules/primevue/message/message.esm.js ***!
  38341. \******************************************************/
  38342. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38343. "use strict";
  38344. __webpack_require__.r(__webpack_exports__);
  38345. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38346. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38347. /* harmony export */ });
  38348. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38349. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38350. var script = {
  38351. name: 'Message',
  38352. emits: ['close'],
  38353. props: {
  38354. severity: {
  38355. type: String,
  38356. default: 'info'
  38357. },
  38358. closable: {
  38359. type: Boolean,
  38360. default: true
  38361. },
  38362. sticky: {
  38363. type: Boolean,
  38364. default: true
  38365. },
  38366. life: {
  38367. type: Number,
  38368. default: 3000
  38369. },
  38370. icon: {
  38371. type: String,
  38372. default: null
  38373. },
  38374. },
  38375. timeout: null,
  38376. data() {
  38377. return {
  38378. visible: true
  38379. }
  38380. },
  38381. mounted() {
  38382. if (!this.sticky) {
  38383. setTimeout(() => {
  38384. this.visible = false;
  38385. }, this.life);
  38386. }
  38387. },
  38388. methods: {
  38389. close(event) {
  38390. this.visible = false;
  38391. this.$emit('close', event);
  38392. }
  38393. },
  38394. computed: {
  38395. containerClass() {
  38396. return 'p-message p-component p-message-' + this.severity;
  38397. },
  38398. iconClass() {
  38399. return ['p-message-icon pi', this.icon ? this.icon : {
  38400. 'pi-info-circle': this.severity === 'info',
  38401. 'pi-check': this.severity === 'success',
  38402. 'pi-exclamation-triangle': this.severity === 'warn',
  38403. 'pi-times-circle': this.severity === 'error'
  38404. }];
  38405. }
  38406. },
  38407. directives: {
  38408. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  38409. }
  38410. };
  38411. const _hoisted_1 = { class: "p-message-wrapper" };
  38412. const _hoisted_2 = { class: "p-message-text" };
  38413. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("i", { class: "p-message-close-icon pi pi-times" }, null, -1);
  38414. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38415. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  38416. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_1__.Transition, {
  38417. name: "p-message",
  38418. appear: ""
  38419. }, {
  38420. default: (0,vue__WEBPACK_IMPORTED_MODULE_1__.withCtx)(() => [
  38421. (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", {
  38422. class: $options.containerClass,
  38423. role: "alert"
  38424. }, [
  38425. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_1, [
  38426. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: $options.iconClass }, null, 2),
  38427. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_2, [
  38428. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default")
  38429. ]),
  38430. ($props.closable)
  38431. ? (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("button", {
  38432. key: 0,
  38433. class: "p-message-close p-link",
  38434. onClick: _cache[1] || (_cache[1] = $event => ($options.close($event))),
  38435. type: "button"
  38436. }, [
  38437. _hoisted_3
  38438. ], 512)), [
  38439. [_directive_ripple]
  38440. ])
  38441. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  38442. ])
  38443. ], 2), [
  38444. [vue__WEBPACK_IMPORTED_MODULE_1__.vShow, $data.visible]
  38445. ])
  38446. ]),
  38447. _: 3
  38448. }))
  38449. }
  38450. function styleInject(css, ref) {
  38451. if ( ref === void 0 ) ref = {};
  38452. var insertAt = ref.insertAt;
  38453. if (!css || typeof document === 'undefined') { return; }
  38454. var head = document.head || document.getElementsByTagName('head')[0];
  38455. var style = document.createElement('style');
  38456. style.type = 'text/css';
  38457. if (insertAt === 'top') {
  38458. if (head.firstChild) {
  38459. head.insertBefore(style, head.firstChild);
  38460. } else {
  38461. head.appendChild(style);
  38462. }
  38463. } else {
  38464. head.appendChild(style);
  38465. }
  38466. if (style.styleSheet) {
  38467. style.styleSheet.cssText = css;
  38468. } else {
  38469. style.appendChild(document.createTextNode(css));
  38470. }
  38471. }
  38472. var css_248z = "\n.p-message-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-message-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-message-close.p-link {\n margin-left: auto;\n overflow: hidden;\n position: relative;\n}\n.p-message-enter-from {\n opacity: 0;\n}\n.p-message-enter-active {\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.p-message.p-message-leave-from {\n max-height: 1000px;\n}\n.p-message.p-message-leave-to {\n max-height: 0;\n opacity: 0;\n margin: 0 !important;\n}\n.p-message-leave-active {\n overflow: hidden;\n -webkit-transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n}\n.p-message-leave-active .p-message-close {\n display: none;\n}\n";
  38473. styleInject(css_248z);
  38474. script.render = render;
  38475. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38476. /***/ }),
  38477. /***/ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js":
  38478. /*!**********************************************************************!*\
  38479. !*** ./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js ***!
  38480. \**********************************************************************/
  38481. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38482. "use strict";
  38483. __webpack_require__.r(__webpack_exports__);
  38484. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38485. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38486. /* harmony export */ });
  38487. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  38488. var OverlayEventBus = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.EventBus)();
  38489. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayEventBus);
  38490. /***/ }),
  38491. /***/ "./node_modules/primevue/paginator/paginator.esm.js":
  38492. /*!**********************************************************!*\
  38493. !*** ./node_modules/primevue/paginator/paginator.esm.js ***!
  38494. \**********************************************************/
  38495. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38496. "use strict";
  38497. __webpack_require__.r(__webpack_exports__);
  38498. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38499. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38500. /* harmony export */ });
  38501. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38502. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38503. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  38504. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  38505. var script$9 = {
  38506. name: 'CurrentPageReport',
  38507. inheritAttrs: false,
  38508. props: {
  38509. pageCount: {
  38510. type: Number,
  38511. default: 0
  38512. },
  38513. currentPage: {
  38514. type: Number,
  38515. default: 0
  38516. },
  38517. page: {
  38518. type: Number,
  38519. default: 0
  38520. },
  38521. first: {
  38522. type: Number,
  38523. default: 0
  38524. },
  38525. rows: {
  38526. type: Number,
  38527. default: 0
  38528. },
  38529. totalRecords: {
  38530. type: Number,
  38531. default: 0
  38532. },
  38533. template: {
  38534. type: String,
  38535. default: '({currentPage} of {totalPages})'
  38536. }
  38537. },
  38538. computed: {
  38539. text() {
  38540. let text = this.template
  38541. .replace("{currentPage}", this.currentPage)
  38542. .replace("{totalPages}", this.pageCount)
  38543. .replace("{first}", this.pageCount > 0 ? this.first + 1 : 0)
  38544. .replace("{last}", Math.min(this.first + this.rows, this.totalRecords))
  38545. .replace("{rows}", this.rows)
  38546. .replace("{totalRecords}", this.totalRecords);
  38547. return text;
  38548. }
  38549. }
  38550. };
  38551. const _hoisted_1$6 = { class: "p-paginator-current" };
  38552. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  38553. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", _hoisted_1$6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.text), 1))
  38554. }
  38555. script$9.render = render$9;
  38556. var script$8 = {
  38557. name: 'FirstPageLink',
  38558. computed: {
  38559. containerClass() {
  38560. return ['p-paginator-first p-paginator-element p-link', {
  38561. 'p-disabled': this.$attrs.disabled
  38562. }];
  38563. }
  38564. },
  38565. directives: {
  38566. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38567. }
  38568. };
  38569. const _hoisted_1$5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-double-left" }, null, -1);
  38570. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  38571. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38572. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38573. class: $options.containerClass,
  38574. type: "button"
  38575. }, [
  38576. _hoisted_1$5
  38577. ], 2)), [
  38578. [_directive_ripple]
  38579. ])
  38580. }
  38581. script$8.render = render$8;
  38582. var script$7 = {
  38583. name: 'LastPageLink',
  38584. computed: {
  38585. containerClass() {
  38586. return ['p-paginator-last p-paginator-element p-link', {
  38587. 'p-disabled': this.$attrs.disabled
  38588. }];
  38589. }
  38590. },
  38591. directives: {
  38592. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38593. }
  38594. };
  38595. const _hoisted_1$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-double-right" }, null, -1);
  38596. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  38597. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38598. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38599. class: $options.containerClass,
  38600. type: "button"
  38601. }, [
  38602. _hoisted_1$4
  38603. ], 2)), [
  38604. [_directive_ripple]
  38605. ])
  38606. }
  38607. script$7.render = render$7;
  38608. var script$6 = {
  38609. name: 'NextPageLink',
  38610. computed: {
  38611. containerClass() {
  38612. return ['p-paginator-next p-paginator-element p-link', {
  38613. 'p-disabled': this.$attrs.disabled
  38614. }];
  38615. }
  38616. },
  38617. directives: {
  38618. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38619. }
  38620. };
  38621. const _hoisted_1$3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-right" }, null, -1);
  38622. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  38623. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38624. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38625. class: $options.containerClass,
  38626. type: "button"
  38627. }, [
  38628. _hoisted_1$3
  38629. ], 2)), [
  38630. [_directive_ripple]
  38631. ])
  38632. }
  38633. script$6.render = render$6;
  38634. var script$5 = {
  38635. name: 'PageLinks',
  38636. inheritAttrs: false,
  38637. emits: ['click'],
  38638. props: {
  38639. value: Array,
  38640. page: Number
  38641. },
  38642. methods: {
  38643. onPageLinkClick(event, pageLink) {
  38644. this.$emit('click', {
  38645. originalEvent: event,
  38646. value: pageLink
  38647. });
  38648. }
  38649. },
  38650. directives: {
  38651. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38652. }
  38653. };
  38654. const _hoisted_1$2 = { class: "p-paginator-pages" };
  38655. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  38656. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38657. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", _hoisted_1$2, [
  38658. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.value, (pageLink) => {
  38659. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38660. key: pageLink,
  38661. class: ['p-paginator-page p-paginator-element p-link', {'p-highlight': ((pageLink - 1) === $props.page)}],
  38662. type: "button",
  38663. onClick: $event => ($options.onPageLinkClick($event, pageLink))
  38664. }, [
  38665. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(pageLink), 1)
  38666. ], 10, ["onClick"])), [
  38667. [_directive_ripple]
  38668. ])
  38669. }), 128))
  38670. ]))
  38671. }
  38672. script$5.render = render$5;
  38673. var script$4 = {
  38674. name: 'PrevPageLink',
  38675. computed: {
  38676. containerClass() {
  38677. return ['p-paginator-prev p-paginator-element p-link', {
  38678. 'p-disabled': this.$attrs.disabled
  38679. }];
  38680. }
  38681. },
  38682. directives: {
  38683. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38684. }
  38685. };
  38686. const _hoisted_1$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-left" }, null, -1);
  38687. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  38688. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38689. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38690. class: $options.containerClass,
  38691. type: "button"
  38692. }, [
  38693. _hoisted_1$1
  38694. ], 2)), [
  38695. [_directive_ripple]
  38696. ])
  38697. }
  38698. script$4.render = render$4;
  38699. var script$3 = {
  38700. name: 'RowsPerPageDropdown',
  38701. inheritAttrs: false,
  38702. emits: ['rows-change'],
  38703. props: {
  38704. options: Array,
  38705. rows: Number,
  38706. disabled: Boolean
  38707. },
  38708. methods: {
  38709. onChange(value) {
  38710. this.$emit('rows-change', value);
  38711. }
  38712. },
  38713. computed: {
  38714. rowsOptions() {
  38715. let opts = [];
  38716. if (this.options) {
  38717. for(let i= 0; i < this.options.length; i++) {
  38718. opts.push({label: String(this.options[i]), value: this.options[i]});
  38719. }
  38720. }
  38721. return opts;
  38722. }
  38723. },
  38724. components: {
  38725. 'RPPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  38726. }
  38727. };
  38728. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  38729. const _component_RPPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RPPDropdown");
  38730. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RPPDropdown, {
  38731. modelValue: $props.rows,
  38732. options: $options.rowsOptions,
  38733. optionLabel: "label",
  38734. optionValue: "value",
  38735. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38736. class: "p-paginator-rpp-options",
  38737. disabled: $props.disabled
  38738. }, null, 8, ["modelValue", "options", "disabled"]))
  38739. }
  38740. script$3.render = render$3;
  38741. var script$2 = {
  38742. name: 'JumpToPageDropdown',
  38743. inheritAttrs: false,
  38744. emits: ['page-change'],
  38745. props: {
  38746. page: Number,
  38747. pageCount: Number,
  38748. disabled: Boolean
  38749. },
  38750. methods: {
  38751. onChange(value) {
  38752. this.$emit('page-change', value);
  38753. }
  38754. },
  38755. computed: {
  38756. pageOptions() {
  38757. let opts = [];
  38758. for(let i= 0; i < this.pageCount; i++) {
  38759. opts.push({label: String(i+1), value: i});
  38760. }
  38761. return opts;
  38762. }
  38763. },
  38764. components: {
  38765. 'JTPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  38766. }
  38767. };
  38768. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  38769. const _component_JTPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPDropdown");
  38770. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPDropdown, {
  38771. modelValue: $props.page,
  38772. options: $options.pageOptions,
  38773. optionLabel: "label",
  38774. optionValue: "value",
  38775. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38776. class: "p-paginator-page-options",
  38777. disabled: $props.disabled
  38778. }, null, 8, ["modelValue", "options", "disabled"]))
  38779. }
  38780. script$2.render = render$2;
  38781. var script$1 = {
  38782. name: 'JumpToPageInput',
  38783. inheritAttrs: false,
  38784. emits: ['page-change'],
  38785. props: {
  38786. page: Number,
  38787. pageCount: Number,
  38788. disabled: Boolean
  38789. },
  38790. methods: {
  38791. onChange(value) {
  38792. this.$emit('page-change', value - 1);
  38793. }
  38794. },
  38795. components: {
  38796. 'JTPInput': primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__["default"]
  38797. }
  38798. };
  38799. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  38800. const _component_JTPInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPInput");
  38801. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPInput, {
  38802. modelValue: $props.page,
  38803. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38804. class: "p-paginator-page-input",
  38805. disabled: $props.disabled
  38806. }, null, 8, ["modelValue", "disabled"]))
  38807. }
  38808. script$1.render = render$1;
  38809. var script = {
  38810. name: 'Paginator',
  38811. emits: ['update:first', 'update:rows', 'page'],
  38812. props: {
  38813. totalRecords: {
  38814. type: Number,
  38815. default: 0
  38816. },
  38817. rows: {
  38818. type: Number,
  38819. default: 0
  38820. },
  38821. first: {
  38822. type: Number,
  38823. default: 0
  38824. },
  38825. pageLinkSize: {
  38826. type: Number,
  38827. default: 5
  38828. },
  38829. rowsPerPageOptions: {
  38830. type: Array,
  38831. default: null
  38832. },
  38833. template: {
  38834. type: String,
  38835. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  38836. },
  38837. currentPageReportTemplate: {
  38838. type: null,
  38839. default: '({currentPage} of {totalPages})'
  38840. },
  38841. alwaysShow: {
  38842. type: Boolean,
  38843. default: true
  38844. }
  38845. },
  38846. data() {
  38847. return {
  38848. d_first: this.first,
  38849. d_rows: this.rows
  38850. }
  38851. },
  38852. watch: {
  38853. first(newValue) {
  38854. this.d_first = newValue;
  38855. },
  38856. rows(newValue) {
  38857. this.d_rows = newValue;
  38858. },
  38859. totalRecords(newValue) {
  38860. if (this.page > 0 && newValue && (this.d_first >= newValue)) {
  38861. this.changePage(this.pageCount - 1);
  38862. }
  38863. }
  38864. },
  38865. methods: {
  38866. changePage(p) {
  38867. const pc = this.pageCount;
  38868. if (p >= 0 && p < pc) {
  38869. this.d_first = this.d_rows * p;
  38870. const state = {
  38871. page: p,
  38872. first: this.d_first,
  38873. rows: this.d_rows,
  38874. pageCount: pc
  38875. };
  38876. this.$emit('update:first', this.d_first);
  38877. this.$emit('update:rows', this.d_rows);
  38878. this.$emit('page', state);
  38879. }
  38880. },
  38881. changePageToFirst(event) {
  38882. if(!this.isFirstPage) {
  38883. this.changePage(0);
  38884. }
  38885. event.preventDefault();
  38886. },
  38887. changePageToPrev(event) {
  38888. this.changePage(this.page - 1);
  38889. event.preventDefault();
  38890. },
  38891. changePageLink(event) {
  38892. this.changePage(event.value - 1);
  38893. event.originalEvent.preventDefault();
  38894. },
  38895. changePageToNext(event) {
  38896. this.changePage(this.page + 1);
  38897. event.preventDefault();
  38898. },
  38899. changePageToLast(event) {
  38900. if(!this.isLastPage) {
  38901. this.changePage(this.pageCount - 1);
  38902. }
  38903. event.preventDefault();
  38904. },
  38905. onRowChange(value) {
  38906. this.d_rows = value;
  38907. this.changePage(this.page);
  38908. }
  38909. },
  38910. computed: {
  38911. templateItems() {
  38912. let keys = [];
  38913. this.template.split(' ').map((value) => {
  38914. keys.push(value.trim());
  38915. });
  38916. return keys;
  38917. },
  38918. page() {
  38919. return Math.floor(this.d_first / this.d_rows);
  38920. },
  38921. pageCount() {
  38922. return Math.ceil(this.totalRecords / this.d_rows);
  38923. },
  38924. isFirstPage() {
  38925. return this.page === 0;
  38926. },
  38927. isLastPage() {
  38928. return this.page === this.pageCount - 1;
  38929. },
  38930. calculatePageLinkBoundaries() {
  38931. const numberOfPages = this.pageCount;
  38932. const visiblePages = Math.min(this.pageLinkSize, numberOfPages);
  38933. //calculate range, keep current in middle if necessary
  38934. let start = Math.max(0, Math.ceil(this.page - ((visiblePages) / 2)));
  38935. let end = Math.min(numberOfPages - 1, start + visiblePages - 1);
  38936. //check when approaching to last page
  38937. const delta = this.pageLinkSize - (end - start + 1);
  38938. start = Math.max(0, start - delta);
  38939. return [start, end];
  38940. },
  38941. pageLinks() {
  38942. let pageLinks = [];
  38943. let boundaries = this.calculatePageLinkBoundaries;
  38944. let start = boundaries[0];
  38945. let end = boundaries[1];
  38946. for(var i = start; i <= end; i++) {
  38947. pageLinks.push(i + 1);
  38948. }
  38949. return pageLinks;
  38950. },
  38951. currentState() {
  38952. return {
  38953. page: this.page,
  38954. first: this.d_first,
  38955. rows: this.d_rows
  38956. }
  38957. },
  38958. empty() {
  38959. return this.pageCount === 0;
  38960. },
  38961. currentPage() {
  38962. return this.pageCount > 0 ? this.page + 1 : 0;
  38963. }
  38964. },
  38965. components: {
  38966. 'CurrentPageReport': script$9,
  38967. 'FirstPageLink': script$8,
  38968. 'LastPageLink': script$7,
  38969. 'NextPageLink': script$6,
  38970. 'PageLinks': script$5,
  38971. 'PrevPageLink': script$4,
  38972. 'RowsPerPageDropdown': script$3,
  38973. 'JumpToPageDropdown': script$2,
  38974. 'JumpToPageInput': script$1
  38975. }
  38976. };
  38977. const _hoisted_1 = {
  38978. key: 0,
  38979. class: "p-paginator p-component"
  38980. };
  38981. const _hoisted_2 = {
  38982. key: 0,
  38983. class: "p-paginator-left-content"
  38984. };
  38985. const _hoisted_3 = {
  38986. key: 1,
  38987. class: "p-paginator-right-content"
  38988. };
  38989. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38990. const _component_FirstPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("FirstPageLink");
  38991. const _component_PrevPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PrevPageLink");
  38992. const _component_NextPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("NextPageLink");
  38993. const _component_LastPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LastPageLink");
  38994. const _component_PageLinks = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PageLinks");
  38995. const _component_CurrentPageReport = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("CurrentPageReport");
  38996. const _component_RowsPerPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RowsPerPageDropdown");
  38997. const _component_JumpToPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageDropdown");
  38998. const _component_JumpToPageInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageInput");
  38999. return ($props.alwaysShow ? true : ($options.pageLinks && $options.pageLinks.length > 1))
  39000. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  39001. (_ctx.$slots.start)
  39002. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_2, [
  39003. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "start", { state: $options.currentState })
  39004. ]))
  39005. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  39006. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.templateItems, (item) => {
  39007. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: item }, [
  39008. (item === 'FirstPageLink')
  39009. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_FirstPageLink, {
  39010. key: 0,
  39011. onClick: _cache[1] || (_cache[1] = $event => ($options.changePageToFirst($event))),
  39012. disabled: $options.isFirstPage || $options.empty
  39013. }, null, 8, ["disabled"]))
  39014. : (item === 'PrevPageLink')
  39015. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PrevPageLink, {
  39016. key: 1,
  39017. onClick: _cache[2] || (_cache[2] = $event => ($options.changePageToPrev($event))),
  39018. disabled: $options.isFirstPage || $options.empty
  39019. }, null, 8, ["disabled"]))
  39020. : (item === 'NextPageLink')
  39021. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_NextPageLink, {
  39022. key: 2,
  39023. onClick: _cache[3] || (_cache[3] = $event => ($options.changePageToNext($event))),
  39024. disabled: $options.isLastPage || $options.empty
  39025. }, null, 8, ["disabled"]))
  39026. : (item === 'LastPageLink')
  39027. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_LastPageLink, {
  39028. key: 3,
  39029. onClick: _cache[4] || (_cache[4] = $event => ($options.changePageToLast($event))),
  39030. disabled: $options.isLastPage || $options.empty
  39031. }, null, 8, ["disabled"]))
  39032. : (item === 'PageLinks')
  39033. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PageLinks, {
  39034. key: 4,
  39035. value: $options.pageLinks,
  39036. page: $options.page,
  39037. onClick: _cache[5] || (_cache[5] = $event => ($options.changePageLink($event)))
  39038. }, null, 8, ["value", "page"]))
  39039. : (item === 'CurrentPageReport')
  39040. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_CurrentPageReport, {
  39041. key: 5,
  39042. template: $props.currentPageReportTemplate,
  39043. currentPage: $options.currentPage,
  39044. page: $options.page,
  39045. pageCount: $options.pageCount,
  39046. first: $data.d_first,
  39047. rows: $data.d_rows,
  39048. totalRecords: $props.totalRecords
  39049. }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords"]))
  39050. : (item === 'RowsPerPageDropdown' && $props.rowsPerPageOptions)
  39051. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RowsPerPageDropdown, {
  39052. key: 6,
  39053. rows: $data.d_rows,
  39054. options: $props.rowsPerPageOptions,
  39055. onRowsChange: _cache[6] || (_cache[6] = $event => ($options.onRowChange($event))),
  39056. disabled: $options.empty
  39057. }, null, 8, ["rows", "options", "disabled"]))
  39058. : (item === 'JumpToPageDropdown')
  39059. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageDropdown, {
  39060. key: 7,
  39061. page: $options.page,
  39062. pageCount: $options.pageCount,
  39063. onPageChange: _cache[7] || (_cache[7] = $event => ($options.changePage($event))),
  39064. disabled: $options.empty
  39065. }, null, 8, ["page", "pageCount", "disabled"]))
  39066. : (item === 'JumpToPageInput')
  39067. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageInput, {
  39068. key: 8,
  39069. page: $options.currentPage,
  39070. onPageChange: _cache[8] || (_cache[8] = $event => ($options.changePage($event))),
  39071. disabled: $options.empty
  39072. }, null, 8, ["page", "disabled"]))
  39073. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39074. ], 64))
  39075. }), 128)),
  39076. (_ctx.$slots.end)
  39077. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_3, [
  39078. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "end", { state: $options.currentState })
  39079. ]))
  39080. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39081. ]))
  39082. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39083. }
  39084. function styleInject(css, ref) {
  39085. if ( ref === void 0 ) ref = {};
  39086. var insertAt = ref.insertAt;
  39087. if (!css || typeof document === 'undefined') { return; }
  39088. var head = document.head || document.getElementsByTagName('head')[0];
  39089. var style = document.createElement('style');
  39090. style.type = 'text/css';
  39091. if (insertAt === 'top') {
  39092. if (head.firstChild) {
  39093. head.insertBefore(style, head.firstChild);
  39094. } else {
  39095. head.appendChild(style);
  39096. }
  39097. } else {
  39098. head.appendChild(style);
  39099. }
  39100. if (style.styleSheet) {
  39101. style.styleSheet.cssText = css;
  39102. } else {
  39103. style.appendChild(document.createTextNode(css));
  39104. }
  39105. }
  39106. var css_248z = "\n.p-paginator {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-paginator-left-content {\n\tmargin-right: auto;\n}\n.p-paginator-right-content {\n\tmargin-left: auto;\n}\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 1;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n";
  39107. styleInject(css_248z);
  39108. script.render = render;
  39109. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39110. /***/ }),
  39111. /***/ "./node_modules/primevue/password/password.esm.js":
  39112. /*!********************************************************!*\
  39113. !*** ./node_modules/primevue/password/password.esm.js ***!
  39114. \********************************************************/
  39115. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39116. "use strict";
  39117. __webpack_require__.r(__webpack_exports__);
  39118. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39119. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39120. /* harmony export */ });
  39121. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39122. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  39123. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  39124. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39125. var script = {
  39126. name: 'Password',
  39127. emits: ['update:modelValue'],
  39128. inheritAttrs: false,
  39129. props: {
  39130. modelValue: String,
  39131. promptLabel: {
  39132. type: String,
  39133. default: null
  39134. },
  39135. mediumRegex: {
  39136. type: String,
  39137. default: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})' // eslint-disable-line
  39138. },
  39139. strongRegex: {
  39140. type: String,
  39141. default: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})' // eslint-disable-line
  39142. },
  39143. weakLabel: {
  39144. type: String,
  39145. default: null
  39146. },
  39147. mediumLabel: {
  39148. type: String,
  39149. default: null
  39150. },
  39151. strongLabel: {
  39152. type: String,
  39153. default: null
  39154. },
  39155. feedback: {
  39156. type: Boolean,
  39157. default: true
  39158. },
  39159. appendTo: {
  39160. type: String,
  39161. default: 'body'
  39162. },
  39163. toggleMask: {
  39164. type: Boolean,
  39165. default: false
  39166. },
  39167. hideIcon: {
  39168. type: String,
  39169. default: 'pi pi-eye-slash'
  39170. },
  39171. showIcon: {
  39172. type: String,
  39173. default: 'pi pi-eye'
  39174. },
  39175. inputClass: String,
  39176. inputStyle: null,
  39177. style: null,
  39178. class: String,
  39179. panelClass: String
  39180. },
  39181. data() {
  39182. return {
  39183. overlayVisible: false,
  39184. meter: null,
  39185. infoText: null,
  39186. focused: false,
  39187. unmasked: false
  39188. };
  39189. },
  39190. mediumCheckRegExp: null,
  39191. strongCheckRegExp: null,
  39192. resizeListener: null,
  39193. scrollHandler: null,
  39194. overlay: null,
  39195. mounted() {
  39196. this.infoText = this.promptText;
  39197. this.mediumCheckRegExp = new RegExp(this.mediumRegex);
  39198. this.strongCheckRegExp = new RegExp(this.strongRegex);
  39199. },
  39200. beforeUnmount() {
  39201. this.unbindResizeListener();
  39202. if (this.scrollHandler) {
  39203. this.scrollHandler.destroy();
  39204. this.scrollHandler = null;
  39205. }
  39206. if (this.overlay) {
  39207. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  39208. this.overlay = null;
  39209. }
  39210. },
  39211. methods: {
  39212. onOverlayEnter(el) {
  39213. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  39214. this.alignOverlay();
  39215. this.bindScrollListener();
  39216. this.bindResizeListener();
  39217. },
  39218. onOverlayLeave() {
  39219. this.unbindScrollListener();
  39220. this.unbindResizeListener();
  39221. this.overlay = null;
  39222. },
  39223. onOverlayAfterLeave(el) {
  39224. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  39225. },
  39226. alignOverlay() {
  39227. if (this.appendDisabled) {
  39228. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$refs.input.$el);
  39229. }
  39230. else {
  39231. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.input.$el) + 'px';
  39232. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.input.$el);
  39233. }
  39234. },
  39235. testStrength(str) {
  39236. let level = 0;
  39237. if (this.strongCheckRegExp.test(str))
  39238. level = 3;
  39239. else if (this.mediumCheckRegExp.test(str))
  39240. level = 2;
  39241. else if (str.length)
  39242. level = 1;
  39243. return level;
  39244. },
  39245. onInput(event) {
  39246. this.$emit('update:modelValue', event.target.value);
  39247. },
  39248. onFocus() {
  39249. this.focused = true;
  39250. if (this.feedback) {
  39251. this.overlayVisible = true;
  39252. }
  39253. },
  39254. onBlur() {
  39255. this.focused = false;
  39256. if (this.feedback) {
  39257. this.overlayVisible = false;
  39258. }
  39259. },
  39260. onKeyUp(event) {
  39261. if (this.feedback) {
  39262. const value = event.target.value;
  39263. let label = null;
  39264. let meter = null;
  39265. switch (this.testStrength(value)) {
  39266. case 1:
  39267. label = this.weakText;
  39268. meter = {
  39269. strength: 'weak',
  39270. width: '33.33%'
  39271. };
  39272. break;
  39273. case 2:
  39274. label = this.mediumText;
  39275. meter = {
  39276. strength: 'medium',
  39277. width: '66.66%'
  39278. };
  39279. break;
  39280. case 3:
  39281. label = this.strongText;
  39282. meter = {
  39283. strength: 'strong',
  39284. width: '100%'
  39285. };
  39286. break;
  39287. default:
  39288. label = this.promptText;
  39289. meter = null;
  39290. break;
  39291. }
  39292. this.meter = meter;
  39293. this.infoText = label;
  39294. if (!this.overlayVisible) {
  39295. this.overlayVisible = true;
  39296. }
  39297. }
  39298. },
  39299. bindScrollListener() {
  39300. if (!this.scrollHandler) {
  39301. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.input.$el, () => {
  39302. if (this.overlayVisible) {
  39303. this.overlayVisible = false;
  39304. }
  39305. });
  39306. }
  39307. this.scrollHandler.bindScrollListener();
  39308. },
  39309. unbindScrollListener() {
  39310. if (this.scrollHandler) {
  39311. this.scrollHandler.unbindScrollListener();
  39312. }
  39313. },
  39314. bindResizeListener() {
  39315. if (!this.resizeListener) {
  39316. this.resizeListener = () => {
  39317. if (this.overlayVisible) {
  39318. this.overlayVisible = false;
  39319. }
  39320. };
  39321. window.addEventListener('resize', this.resizeListener);
  39322. }
  39323. },
  39324. unbindResizeListener() {
  39325. if (this.resizeListener) {
  39326. window.removeEventListener('resize', this.resizeListener);
  39327. this.resizeListener = null;
  39328. }
  39329. },
  39330. overlayRef(el) {
  39331. this.overlay = el;
  39332. },
  39333. onMaskToggle() {
  39334. this.unmasked = !this.unmasked;
  39335. },
  39336. onOverlayClick(event) {
  39337. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  39338. originalEvent: event,
  39339. target: this.$el
  39340. });
  39341. }
  39342. },
  39343. computed: {
  39344. containerClass() {
  39345. return ['p-password p-component p-inputwrapper', this.class, {
  39346. 'p-inputwrapper-filled': this.filled,
  39347. 'p-inputwrapper-focus': this.focused,
  39348. 'p-input-icon-right': this.toggleMask
  39349. }];
  39350. },
  39351. inputFieldClass() {
  39352. return ['p-password-input', this.inputClass, {
  39353. 'p-disabled': this.$attrs.disabled
  39354. }];
  39355. },
  39356. panelStyleClass() {
  39357. return ['p-password-panel p-component', this.panelClass, {
  39358. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  39359. 'p-ripple-disabled': this.$primevue.config.ripple === false
  39360. }];
  39361. },
  39362. toggleIconClass() {
  39363. return this.unmasked ? this.hideIcon : this.showIcon;
  39364. },
  39365. strengthClass() {
  39366. return `p-password-strength ${this.meter ? this.meter.strength : ''}`;
  39367. },
  39368. inputType() {
  39369. return this.unmasked ? 'text' : 'password';
  39370. },
  39371. filled() {
  39372. return (this.modelValue != null && this.modelValue.toString().length > 0)
  39373. },
  39374. weakText() {
  39375. return this.weakLabel || this.$primevue.config.locale.weak;
  39376. },
  39377. mediumText() {
  39378. return this.mediumLabel || this.$primevue.config.locale.medium;
  39379. },
  39380. strongText() {
  39381. return this.strongLabel || this.$primevue.config.locale.strong;
  39382. },
  39383. promptText() {
  39384. return this.promptLabel || this.$primevue.config.locale.passwordPrompt;
  39385. },
  39386. appendDisabled() {
  39387. return this.appendTo === 'self';
  39388. },
  39389. appendTarget() {
  39390. return this.appendDisabled ? null : this.appendTo;
  39391. }
  39392. },
  39393. components: {
  39394. 'PInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__["default"]
  39395. }
  39396. };
  39397. const _hoisted_1 = { class: "p-password-meter" };
  39398. const _hoisted_2 = { class: "p-password-info" };
  39399. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39400. const _component_PInputText = (0,vue__WEBPACK_IMPORTED_MODULE_3__.resolveComponent)("PInputText");
  39401. return ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("div", {
  39402. class: $options.containerClass,
  39403. style: $props.style
  39404. }, [
  39405. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(_component_PInputText, (0,vue__WEBPACK_IMPORTED_MODULE_3__.mergeProps)({
  39406. ref: "input",
  39407. class: $options.inputFieldClass,
  39408. style: $props.inputStyle,
  39409. type: $options.inputType,
  39410. value: $props.modelValue,
  39411. onInput: $options.onInput,
  39412. onFocus: $options.onFocus,
  39413. onBlur: $options.onBlur,
  39414. onKeyup: $options.onKeyUp
  39415. }, _ctx.$attrs), null, 16, ["class", "style", "type", "value", "onInput", "onFocus", "onBlur", "onKeyup"]),
  39416. ($props.toggleMask)
  39417. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("i", {
  39418. key: 0,
  39419. class: $options.toggleIconClass,
  39420. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onMaskToggle && $options.onMaskToggle(...args)))
  39421. }, null, 2))
  39422. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true),
  39423. ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_3__.Teleport, {
  39424. to: $options.appendTarget,
  39425. disabled: $options.appendDisabled
  39426. }, [
  39427. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_3__.Transition, {
  39428. name: "p-connected-overlay",
  39429. onEnter: $options.onOverlayEnter,
  39430. onLeave: $options.onOverlayLeave,
  39431. onAfterLeave: $options.onOverlayAfterLeave
  39432. }, {
  39433. default: (0,vue__WEBPACK_IMPORTED_MODULE_3__.withCtx)(() => [
  39434. ($data.overlayVisible)
  39435. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("div", {
  39436. key: 0,
  39437. ref: $options.overlayRef,
  39438. class: $options.panelStyleClass,
  39439. onClick: _cache[2] || (_cache[2] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  39440. }, [
  39441. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "header"),
  39442. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "content", {}, () => [
  39443. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", _hoisted_1, [
  39444. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", {
  39445. class: $options.strengthClass,
  39446. style: {'width': $data.meter ? $data.meter.width : ''}
  39447. }, null, 6)
  39448. ]),
  39449. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_3__.toDisplayString)($data.infoText), 1)
  39450. ]),
  39451. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "footer")
  39452. ], 2))
  39453. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true)
  39454. ]),
  39455. _: 3
  39456. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  39457. ], 8, ["to", "disabled"]))
  39458. ], 6))
  39459. }
  39460. function styleInject(css, ref) {
  39461. if ( ref === void 0 ) ref = {};
  39462. var insertAt = ref.insertAt;
  39463. if (!css || typeof document === 'undefined') { return; }
  39464. var head = document.head || document.getElementsByTagName('head')[0];
  39465. var style = document.createElement('style');
  39466. style.type = 'text/css';
  39467. if (insertAt === 'top') {
  39468. if (head.firstChild) {
  39469. head.insertBefore(style, head.firstChild);
  39470. } else {
  39471. head.appendChild(style);
  39472. }
  39473. } else {
  39474. head.appendChild(style);
  39475. }
  39476. if (style.styleSheet) {
  39477. style.styleSheet.cssText = css;
  39478. } else {
  39479. style.appendChild(document.createTextNode(css));
  39480. }
  39481. }
  39482. var css_248z = "\n.p-password {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-password-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-password .p-password-panel {\n min-width: 100%;\n}\n.p-password-meter {\n height: 10px;\n}\n.p-password-strength {\n height: 100%;\n width: 0;\n -webkit-transition: width 1s ease-in-out;\n transition: width 1s ease-in-out;\n}\n.p-fluid .p-password {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n";
  39483. styleInject(css_248z);
  39484. script.render = render;
  39485. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39486. /***/ }),
  39487. /***/ "./node_modules/primevue/ripple/ripple.esm.js":
  39488. /*!****************************************************!*\
  39489. !*** ./node_modules/primevue/ripple/ripple.esm.js ***!
  39490. \****************************************************/
  39491. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39492. "use strict";
  39493. __webpack_require__.r(__webpack_exports__);
  39494. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39495. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39496. /* harmony export */ });
  39497. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39498. function bindEvents(el) {
  39499. el.addEventListener('mousedown', onMouseDown);
  39500. }
  39501. function unbindEvents(el) {
  39502. el.removeEventListener('mousedown', onMouseDown);
  39503. }
  39504. function create(el) {
  39505. let ink = document.createElement('span');
  39506. ink.className = 'p-ink';
  39507. el.appendChild(ink);
  39508. ink.addEventListener('animationend', onAnimationEnd);
  39509. }
  39510. function remove(el) {
  39511. let ink = getInk(el);
  39512. if (ink) {
  39513. unbindEvents(el);
  39514. ink.removeEventListener('animationend', onAnimationEnd);
  39515. ink.remove();
  39516. }
  39517. }
  39518. function onMouseDown(event) {
  39519. let target = event.currentTarget;
  39520. let ink = getInk(target);
  39521. if (!ink || getComputedStyle(ink, null).display === 'none') {
  39522. return;
  39523. }
  39524. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(ink, 'p-ink-active');
  39525. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink)) {
  39526. let d = Math.max(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target), primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(target));
  39527. ink.style.height = d + 'px';
  39528. ink.style.width = d + 'px';
  39529. }
  39530. let offset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(target);
  39531. let x = event.pageX - offset.left + document.body.scrollTop - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink) / 2;
  39532. let y = event.pageY - offset.top + document.body.scrollLeft - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) / 2;
  39533. ink.style.top = y + 'px';
  39534. ink.style.left = x + 'px';
  39535. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(ink, 'p-ink-active');
  39536. }
  39537. function onAnimationEnd(event) {
  39538. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(event.currentTarget, 'p-ink-active');
  39539. }
  39540. function getInk(el) {
  39541. for (let i = 0; i < el.children.length; i++) {
  39542. if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
  39543. return el.children[i];
  39544. }
  39545. }
  39546. return null;
  39547. }
  39548. const Ripple = {
  39549. mounted(el, binding) {
  39550. if (binding.instance.$primevue && binding.instance.$primevue.config && binding.instance.$primevue.config.ripple) {
  39551. create(el);
  39552. bindEvents(el);
  39553. }
  39554. },
  39555. unmounted(el) {
  39556. remove(el);
  39557. }
  39558. };
  39559. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ripple);
  39560. /***/ }),
  39561. /***/ "./node_modules/primevue/styleclass/styleclass.esm.js":
  39562. /*!************************************************************!*\
  39563. !*** ./node_modules/primevue/styleclass/styleclass.esm.js ***!
  39564. \************************************************************/
  39565. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39566. "use strict";
  39567. __webpack_require__.r(__webpack_exports__);
  39568. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39569. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39570. /* harmony export */ });
  39571. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39572. function bind(el, binding) {
  39573. el.$_pstyleclass_clicklistener = () => {
  39574. const target = resolveTarget(el, binding);
  39575. if (binding.value.toggleClass) {
  39576. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(target, binding.value.toggleClass))
  39577. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.toggleClass);
  39578. else
  39579. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.toggleClass);
  39580. }
  39581. else {
  39582. if (target.offsetParent === null)
  39583. enter(target, el, binding);
  39584. else
  39585. leave(target, binding);
  39586. }
  39587. };
  39588. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39589. }
  39590. function unbind(el) {
  39591. if (el.$_pstyleclass_clicklistener) {
  39592. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39593. el.$_pstyleclass_clicklistener = null;
  39594. }
  39595. unbindDocumentListener(el);
  39596. }
  39597. function enter(target, el, binding) {
  39598. if (binding.value.enterActiveClass) {
  39599. if (!target.$_pstyleclass_animating) {
  39600. target.$_pstyleclass_animating = true;
  39601. if (binding.value.enterActiveClass === 'slidedown') {
  39602. target.style.height = '0px';
  39603. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, 'hidden');
  39604. target.style.maxHeight = target.scrollHeight + 'px';
  39605. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, 'hidden');
  39606. target.style.height = '';
  39607. }
  39608. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterActiveClass);
  39609. if (binding.value.enterClass) {
  39610. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39611. }
  39612. target.$p_styleclass_enterlistener = () => {
  39613. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterActiveClass);
  39614. if (binding.value.enterToClass) {
  39615. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39616. }
  39617. target.removeEventListener('animationend', target.$p_styleclass_enterlistener);
  39618. if (binding.value.enterActiveClass === 'slidedown') {
  39619. target.style.maxHeight = '';
  39620. }
  39621. target.$_pstyleclass_animating = false;
  39622. };
  39623. target.addEventListener('animationend', target.$p_styleclass_enterlistener);
  39624. }
  39625. }
  39626. else {
  39627. if (binding.value.enterClass) {
  39628. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39629. }
  39630. if (binding.value.enterToClass) {
  39631. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39632. }
  39633. }
  39634. if (binding.value.hideOnOutsideClick) {
  39635. bindDocumentListener(target, el, binding);
  39636. }
  39637. }
  39638. function leave(target, binding) {
  39639. if (binding.value.leaveActiveClass) {
  39640. if (!target.$_pstyleclass_animating) {
  39641. target.$_pstyleclass_animating = true;
  39642. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveActiveClass);
  39643. if (binding.value.leaveClass) {
  39644. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39645. }
  39646. target.$p_styleclass_leavelistener = () => {
  39647. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveActiveClass);
  39648. if (binding.value.leaveToClass) {
  39649. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39650. }
  39651. target.removeEventListener('animationend', target.$p_styleclass_leavelistener);
  39652. target.$_pstyleclass_animating = false;
  39653. };
  39654. target.addEventListener('animationend', target.$p_styleclass_leavelistener);
  39655. }
  39656. }
  39657. else {
  39658. if (binding.value.leaveClass) {
  39659. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39660. }
  39661. if (binding.value.leaveToClass) {
  39662. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39663. }
  39664. }
  39665. if (binding.value.hideOnOutsideClick) {
  39666. unbindDocumentListener(target);
  39667. }
  39668. }
  39669. function resolveTarget(el, binding) {
  39670. switch (binding.value.selector) {
  39671. case '@next':
  39672. return el.nextElementSibling;
  39673. case '@prev':
  39674. return el.previousElementSibling;
  39675. case '@parent':
  39676. return el.parentElement;
  39677. case '@grandparent':
  39678. return el.parentElement.parentElement;
  39679. default:
  39680. return document.querySelector(binding.value.selector);
  39681. }
  39682. }
  39683. function bindDocumentListener(target, el, binding) {
  39684. if (!target.$p_styleclass_documentlistener) {
  39685. target.$p_styleclass_documentlistener = (event) => {
  39686. if (!isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') {
  39687. unbindDocumentListener(target);
  39688. }
  39689. else if (isOutsideClick(event, target, el)) {
  39690. leave(target, binding);
  39691. }
  39692. };
  39693. target.ownerDocument.addEventListener('click', target.$p_styleclass_documentlistener);
  39694. }
  39695. }
  39696. function unbindDocumentListener(target) {
  39697. if (target.$p_styleclass_documentlistener) {
  39698. target.ownerDocument.removeEventListener('click', target.$p_styleclass_documentlistener);
  39699. target.$p_styleclass_documentlistener = null;
  39700. }
  39701. }
  39702. function isVisible(target) {
  39703. return target.offsetParent !== null;
  39704. }
  39705. function isOutsideClick(event, target, el) {
  39706. return !el.isSameNode(event.target) && !el.contains(event.target) && !target.contains(event.target);
  39707. }
  39708. const StyleClass = {
  39709. mounted(el, binding) {
  39710. bind(el, binding);
  39711. },
  39712. unmounted(el) {
  39713. unbind(el);
  39714. }
  39715. };
  39716. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StyleClass);
  39717. /***/ }),
  39718. /***/ "./node_modules/primevue/tabpanel/tabpanel.esm.js":
  39719. /*!********************************************************!*\
  39720. !*** ./node_modules/primevue/tabpanel/tabpanel.esm.js ***!
  39721. \********************************************************/
  39722. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39723. "use strict";
  39724. __webpack_require__.r(__webpack_exports__);
  39725. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39726. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39727. /* harmony export */ });
  39728. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39729. var script = {
  39730. name: 'TabPanel',
  39731. props: {
  39732. header: null,
  39733. disabled: Boolean
  39734. }
  39735. };
  39736. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39737. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  39738. }
  39739. script.render = render;
  39740. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39741. /***/ }),
  39742. /***/ "./node_modules/primevue/tabview/tabview.esm.js":
  39743. /*!******************************************************!*\
  39744. !*** ./node_modules/primevue/tabview/tabview.esm.js ***!
  39745. \******************************************************/
  39746. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39747. "use strict";
  39748. __webpack_require__.r(__webpack_exports__);
  39749. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39750. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39751. /* harmony export */ });
  39752. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39753. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  39754. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39755. var script = {
  39756. name: 'TabView',
  39757. emits: ['update:activeIndex', 'tab-change', 'tab-click'],
  39758. props: {
  39759. activeIndex: {
  39760. type: Number,
  39761. default: 0
  39762. },
  39763. lazy: {
  39764. type: Boolean,
  39765. default: false
  39766. },
  39767. scrollable: {
  39768. type: Boolean,
  39769. default: false
  39770. }
  39771. },
  39772. data() {
  39773. return {
  39774. d_activeIndex: this.activeIndex,
  39775. backwardIsDisabled: true,
  39776. forwardIsDisabled: false
  39777. }
  39778. },
  39779. watch: {
  39780. activeIndex(newValue) {
  39781. this.d_activeIndex = newValue;
  39782. this.updateScrollBar(newValue);
  39783. }
  39784. },
  39785. updated() {
  39786. this.updateInkBar();
  39787. },
  39788. mounted() {
  39789. this.updateInkBar();
  39790. },
  39791. methods: {
  39792. onTabClick(event, i) {
  39793. if (!this.isTabDisabled(this.tabs[i]) && i !== this.d_activeIndex) {
  39794. this.d_activeIndex = i;
  39795. this.$emit('update:activeIndex', this.d_activeIndex);
  39796. this.$emit('tab-change', {
  39797. originalEvent: event,
  39798. index: i
  39799. });
  39800. this.updateScrollBar(i);
  39801. }
  39802. this.$emit('tab-click', {
  39803. originalEvent: event,
  39804. index: i
  39805. });
  39806. },
  39807. onTabKeydown(event, i) {
  39808. if (event.which === 13) {
  39809. this.onTabClick(event, i);
  39810. }
  39811. },
  39812. updateInkBar() {
  39813. let tabHeader = this.$refs.nav.children[this.d_activeIndex];
  39814. this.$refs.inkbar.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(tabHeader) + 'px';
  39815. this.$refs.inkbar.style.left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(tabHeader).left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$refs.nav).left + 'px';
  39816. },
  39817. updateScrollBar(index) {
  39818. let tabHeader = this.$refs.nav.children[index];
  39819. tabHeader.scrollIntoView({ block: 'nearest' });
  39820. },
  39821. updateButtonState() {
  39822. const content = this.$refs.content;
  39823. const { scrollLeft, scrollWidth } = content;
  39824. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content);
  39825. this.backwardIsDisabled = scrollLeft === 0;
  39826. this.forwardIsDisabled = parseInt(scrollLeft) === scrollWidth - width;
  39827. },
  39828. getKey(tab, i) {
  39829. return (tab.props && tab.props.header) ? tab.props.header : i;
  39830. },
  39831. isTabDisabled(tab) {
  39832. return (tab.props && tab.props.disabled);
  39833. },
  39834. isTabPanel(child) {
  39835. return child.type.name === 'TabPanel'
  39836. },
  39837. onScroll(event) {
  39838. this.scrollable && this.updateButtonState();
  39839. event.preventDefault();
  39840. },
  39841. getVisibleButtonWidths() {
  39842. const { prevBtn, nextBtn } = this.$refs;
  39843. return [prevBtn, nextBtn].reduce((acc, el) => el ? acc + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(el) : acc, 0);
  39844. },
  39845. navBackward() {
  39846. const content = this.$refs.content;
  39847. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  39848. const pos = content.scrollLeft - width;
  39849. content.scrollLeft = pos <= 0 ? 0 : pos;
  39850. },
  39851. navForward() {
  39852. const content = this.$refs.content;
  39853. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  39854. const pos = content.scrollLeft + width;
  39855. const lastPos = content.scrollWidth - width;
  39856. content.scrollLeft = pos >= lastPos ? lastPos : pos;
  39857. }
  39858. },
  39859. computed: {
  39860. contentClasses() {
  39861. return ['p-tabview p-component', {'p-tabview-scrollable': this.scrollable}];
  39862. },
  39863. prevButtonClasses() {
  39864. return ['p-tabview-nav-prev p-tabview-nav-btn p-link']
  39865. },
  39866. nextButtonClasses() {
  39867. return ['p-tabview-nav-next p-tabview-nav-btn p-link']
  39868. },
  39869. tabs() {
  39870. const tabs = [];
  39871. this.$slots.default().forEach(child => {
  39872. if (this.isTabPanel(child)) {
  39873. tabs.push(child);
  39874. }
  39875. else if (child.children && child.children instanceof Array) {
  39876. child.children.forEach(nestedChild => {
  39877. if (this.isTabPanel(nestedChild)) {
  39878. tabs.push(nestedChild);
  39879. }
  39880. });
  39881. }
  39882. }
  39883. );
  39884. return tabs;
  39885. }
  39886. },
  39887. directives: {
  39888. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  39889. }
  39890. };
  39891. const _hoisted_1 = { class: "p-tabview-nav-container" };
  39892. const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "pi pi-chevron-left" }, null, -1);
  39893. const _hoisted_3 = {
  39894. ref: "nav",
  39895. class: "p-tabview-nav",
  39896. role: "tablist"
  39897. };
  39898. const _hoisted_4 = {
  39899. key: 0,
  39900. class: "p-tabview-title"
  39901. };
  39902. const _hoisted_5 = {
  39903. ref: "inkbar",
  39904. class: "p-tabview-ink-bar"
  39905. };
  39906. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "pi pi-chevron-right" }, null, -1);
  39907. const _hoisted_7 = { class: "p-tabview-panels" };
  39908. const _hoisted_8 = {
  39909. key: 0,
  39910. class: "p-tabview-panel",
  39911. role: "tabpanel"
  39912. };
  39913. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39914. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  39915. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", { class: $options.contentClasses }, [
  39916. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_1, [
  39917. ($props.scrollable && !$data.backwardIsDisabled)
  39918. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  39919. key: 0,
  39920. ref: "prevBtn",
  39921. class: $options.prevButtonClasses,
  39922. onClick: _cache[1] || (_cache[1] = (...args) => ($options.navBackward && $options.navBackward(...args))),
  39923. type: "button"
  39924. }, [
  39925. _hoisted_2
  39926. ], 2)), [
  39927. [_directive_ripple]
  39928. ])
  39929. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  39930. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", {
  39931. ref: "content",
  39932. class: "p-tabview-nav-content",
  39933. onScroll: _cache[2] || (_cache[2] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  39934. }, [
  39935. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("ul", _hoisted_3, [
  39936. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  39937. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("li", {
  39938. role: "presentation",
  39939. key: $options.getKey(tab,i),
  39940. class: [{'p-highlight': ($data.d_activeIndex === i), 'p-disabled': $options.isTabDisabled(tab)}]
  39941. }, [
  39942. (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("a", {
  39943. role: "tab",
  39944. class: "p-tabview-nav-link",
  39945. onClick: $event => ($options.onTabClick($event, i)),
  39946. onKeydown: $event => ($options.onTabKeydown($event, i)),
  39947. tabindex: $options.isTabDisabled(tab) ? null : '0',
  39948. "aria-selected": $data.d_activeIndex === i
  39949. }, [
  39950. (tab.props && tab.props.header)
  39951. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(tab.props.header), 1))
  39952. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  39953. (tab.children && tab.children.header)
  39954. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab.children.header), { key: 1 }))
  39955. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  39956. ], 40, ["onClick", "onKeydown", "tabindex", "aria-selected"]), [
  39957. [_directive_ripple]
  39958. ])
  39959. ], 2))
  39960. }), 128)),
  39961. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("li", _hoisted_5, null, 512)
  39962. ], 512)
  39963. ], 544),
  39964. ($props.scrollable && !$data.forwardIsDisabled)
  39965. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  39966. key: 1,
  39967. ref: "nextBtn",
  39968. class: $options.nextButtonClasses,
  39969. onClick: _cache[3] || (_cache[3] = (...args) => ($options.navForward && $options.navForward(...args))),
  39970. type: "button"
  39971. }, [
  39972. _hoisted_6
  39973. ], 2)), [
  39974. [_directive_ripple]
  39975. ])
  39976. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  39977. ]),
  39978. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_7, [
  39979. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  39980. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  39981. key: $options.getKey(tab,i)
  39982. }, [
  39983. ($props.lazy ? ($data.d_activeIndex === i) : true)
  39984. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", _hoisted_8, [
  39985. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab)))
  39986. ], 512)), [
  39987. [vue__WEBPACK_IMPORTED_MODULE_2__.vShow, $props.lazy ? true: ($data.d_activeIndex === i)]
  39988. ])
  39989. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  39990. ], 64))
  39991. }), 128))
  39992. ])
  39993. ], 2))
  39994. }
  39995. function styleInject(css, ref) {
  39996. if ( ref === void 0 ) ref = {};
  39997. var insertAt = ref.insertAt;
  39998. if (!css || typeof document === 'undefined') { return; }
  39999. var head = document.head || document.getElementsByTagName('head')[0];
  40000. var style = document.createElement('style');
  40001. style.type = 'text/css';
  40002. if (insertAt === 'top') {
  40003. if (head.firstChild) {
  40004. head.insertBefore(style, head.firstChild);
  40005. } else {
  40006. head.appendChild(style);
  40007. }
  40008. } else {
  40009. head.appendChild(style);
  40010. }
  40011. if (style.styleSheet) {
  40012. style.styleSheet.cssText = css;
  40013. } else {
  40014. style.appendChild(document.createTextNode(css));
  40015. }
  40016. }
  40017. var css_248z = "\n.p-tabview-nav-container {\n position: relative;\n}\n.p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n}\n.p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n -ms-scroll-chaining: contain auto;\n overscroll-behavior: contain auto;\n}\n.p-tabview-nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-tabview-nav-link {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabview-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabview-nav-link:focus {\n z-index: 1;\n}\n.p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n}\n.p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-tabview-nav-prev {\n left: 0;\n}\n.p-tabview-nav-next {\n right: 0;\n}\n.p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n}\n";
  40018. styleInject(css_248z);
  40019. script.render = render;
  40020. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  40021. /***/ }),
  40022. /***/ "./node_modules/primevue/tooltip/tooltip.esm.js":
  40023. /*!******************************************************!*\
  40024. !*** ./node_modules/primevue/tooltip/tooltip.esm.js ***!
  40025. \******************************************************/
  40026. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40027. "use strict";
  40028. __webpack_require__.r(__webpack_exports__);
  40029. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40030. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  40031. /* harmony export */ });
  40032. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  40033. function bindEvents(el) {
  40034. const modifiers = el.$_ptooltipModifiers;
  40035. if (modifiers.focus) {
  40036. el.addEventListener('focus', onFocus);
  40037. el.addEventListener('blur', onBlur);
  40038. }
  40039. else {
  40040. el.addEventListener('mouseenter', onMouseEnter);
  40041. el.addEventListener('mouseleave', onMouseLeave);
  40042. el.addEventListener('click', onClick);
  40043. }
  40044. }
  40045. function unbindEvents(el) {
  40046. const modifiers = el.$_ptooltipModifiers;
  40047. if (modifiers.focus) {
  40048. el.removeEventListener('focus', onFocus);
  40049. el.removeEventListener('blur', onBlur);
  40050. }
  40051. else {
  40052. el.removeEventListener('mouseenter', onMouseEnter);
  40053. el.removeEventListener('mouseleave', onMouseLeave);
  40054. el.removeEventListener('click', onClick);
  40055. }
  40056. }
  40057. function bindScrollListener(el) {
  40058. if (!el.$_ptooltipScrollHandler) {
  40059. el.$_ptooltipScrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(el, function() {
  40060. hide(el);
  40061. });
  40062. }
  40063. el.$_ptooltipScrollHandler.bindScrollListener();
  40064. }
  40065. function unbindScrollListener(el) {
  40066. if (el.$_ptooltipScrollHandler) {
  40067. el.$_ptooltipScrollHandler.unbindScrollListener();
  40068. }
  40069. }
  40070. function onMouseEnter(event) {
  40071. show(event.currentTarget);
  40072. }
  40073. function onMouseLeave(event) {
  40074. hide(event.currentTarget);
  40075. }
  40076. function onFocus(event) {
  40077. show(event.currentTarget);
  40078. }
  40079. function onBlur(event) {
  40080. hide(event.currentTarget);
  40081. }
  40082. function onClick(event) {
  40083. hide(event.currentTarget);
  40084. }
  40085. function show(el) {
  40086. if (el.$_ptooltipDisabled) {
  40087. return;
  40088. }
  40089. let tooltipElement = create(el);
  40090. align(el);
  40091. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.fadeIn(tooltipElement, 250);
  40092. window.addEventListener('resize', function onWindowResize() {
  40093. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isAndroid()) {
  40094. hide(el);
  40095. }
  40096. this.removeEventListener('resize', onWindowResize);
  40097. });
  40098. bindScrollListener(el);
  40099. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('tooltip', tooltipElement, el.$_ptooltipZIndex);
  40100. }
  40101. function hide(el) {
  40102. remove(el);
  40103. unbindScrollListener(el);
  40104. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40105. }
  40106. function getTooltipElement(el) {
  40107. return document.getElementById(el.$_ptooltipId);
  40108. }
  40109. function create(el) {
  40110. const id = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_tooltip';
  40111. el.$_ptooltipId = id;
  40112. let container = document.createElement('div');
  40113. container.id = id;
  40114. let tooltipArrow = document.createElement('div');
  40115. tooltipArrow.className = 'p-tooltip-arrow';
  40116. container.appendChild(tooltipArrow);
  40117. let tooltipText = document.createElement('div');
  40118. tooltipText.className = 'p-tooltip-text';
  40119. if (el.$_ptooltipEscape) {
  40120. tooltipText.innerHTML = el.$_ptooltipValue;
  40121. }
  40122. else {
  40123. tooltipText.innerHTML = '';
  40124. tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
  40125. }
  40126. container.appendChild(tooltipText);
  40127. document.body.appendChild(container);
  40128. container.style.display = 'inline-block';
  40129. return container;
  40130. }
  40131. function remove(el) {
  40132. if (el) {
  40133. let tooltipElement = getTooltipElement(el);
  40134. if (tooltipElement && tooltipElement.parentElement) {
  40135. document.body.removeChild(tooltipElement);
  40136. }
  40137. el.$_ptooltipId = null;
  40138. }
  40139. }
  40140. function align(el) {
  40141. const modifiers = el.$_ptooltipModifiers;
  40142. if (modifiers.top) {
  40143. alignTop(el);
  40144. if (isOutOfBounds(el)) {
  40145. alignBottom(el);
  40146. if (isOutOfBounds(el)) {
  40147. alignTop(el);
  40148. }
  40149. }
  40150. }
  40151. else if (modifiers.left) {
  40152. alignLeft(el);
  40153. if (isOutOfBounds(el)) {
  40154. alignRight(el);
  40155. if (isOutOfBounds(el)) {
  40156. alignTop(el);
  40157. if (isOutOfBounds(el)) {
  40158. alignBottom(el);
  40159. if (isOutOfBounds(el)) {
  40160. alignLeft(el);
  40161. }
  40162. }
  40163. }
  40164. }
  40165. }
  40166. else if (modifiers.bottom) {
  40167. alignBottom(el);
  40168. if (isOutOfBounds(el)) {
  40169. alignTop(el);
  40170. if (isOutOfBounds(el)) {
  40171. alignBottom(el);
  40172. }
  40173. }
  40174. }
  40175. else {
  40176. alignRight(el);
  40177. if (isOutOfBounds(el)) {
  40178. alignLeft(el);
  40179. if (isOutOfBounds(el)) {
  40180. alignTop(el);
  40181. if (isOutOfBounds(el)) {
  40182. alignBottom(el);
  40183. if (isOutOfBounds(el)) {
  40184. alignRight(el);
  40185. }
  40186. }
  40187. }
  40188. }
  40189. }
  40190. }
  40191. function getHostOffset(el) {
  40192. let offset = el.getBoundingClientRect();
  40193. let targetLeft = offset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollLeft();
  40194. let targetTop = offset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  40195. return {left: targetLeft, top: targetTop};
  40196. }
  40197. function alignRight(el) {
  40198. preAlign(el, 'right');
  40199. let tooltipElement = getTooltipElement(el);
  40200. let hostOffset = getHostOffset(el);
  40201. let left = hostOffset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el);
  40202. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40203. tooltipElement.style.left = left + 'px';
  40204. tooltipElement.style.top = top + 'px';
  40205. }
  40206. function alignLeft(el) {
  40207. preAlign(el, 'left');
  40208. let tooltipElement = getTooltipElement(el);
  40209. let hostOffset = getHostOffset(el);
  40210. let left = hostOffset.left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40211. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40212. tooltipElement.style.left = left + 'px';
  40213. tooltipElement.style.top = top + 'px';
  40214. }
  40215. function alignTop(el) {
  40216. preAlign(el, 'top');
  40217. let tooltipElement = getTooltipElement(el);
  40218. let hostOffset = getHostOffset(el);
  40219. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40220. let top = hostOffset.top - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40221. tooltipElement.style.left = left + 'px';
  40222. tooltipElement.style.top = top + 'px';
  40223. }
  40224. function alignBottom(el) {
  40225. preAlign(el, 'bottom');
  40226. let tooltipElement = getTooltipElement(el);
  40227. let hostOffset = getHostOffset(el);
  40228. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40229. let top = hostOffset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el);
  40230. tooltipElement.style.left = left + 'px';
  40231. tooltipElement.style.top = top + 'px';
  40232. }
  40233. function preAlign(el, position) {
  40234. let tooltipElement = getTooltipElement(el);
  40235. tooltipElement.style.left = -999 + 'px';
  40236. tooltipElement.style.top = -999 + 'px';
  40237. tooltipElement.className = `p-tooltip p-component p-tooltip-${position} ${el.$_ptooltipClass||''}`;
  40238. }
  40239. function isOutOfBounds(el) {
  40240. let tooltipElement = getTooltipElement(el);
  40241. let offset = tooltipElement.getBoundingClientRect();
  40242. let targetTop = offset.top;
  40243. let targetLeft = offset.left;
  40244. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40245. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40246. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  40247. return (targetLeft + width > viewport.width) || (targetLeft < 0) || (targetTop < 0) || (targetTop + height > viewport.height);
  40248. }
  40249. function getTarget(el) {
  40250. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(el, 'p-inputwrapper') ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(el, 'input'): el;
  40251. }
  40252. function getModifiers(options) {
  40253. // modifiers
  40254. if (options.modifiers && Object.keys(options.modifiers).length) {
  40255. return options.modifiers;
  40256. }
  40257. // arg
  40258. if (options.arg && typeof options.arg === 'object') {
  40259. return Object.entries(options.arg).reduce((acc, [key, val]) => {
  40260. if (key === 'event' || key === 'position') acc[val] = true;
  40261. return acc;
  40262. }, {});
  40263. }
  40264. return {};
  40265. }
  40266. const Tooltip = {
  40267. beforeMount(el, options) {
  40268. let target = getTarget(el);
  40269. target.$_ptooltipModifiers = getModifiers(options);
  40270. if (!options.value) return;
  40271. else if (typeof options.value === 'string') {
  40272. target.$_ptooltipValue = options.value;
  40273. target.$_ptooltipDisabled = false;
  40274. target.$_ptooltipEscape = false;
  40275. target.$_ptooltipClass = null;
  40276. }
  40277. else {
  40278. target.$_ptooltipValue = options.value.value;
  40279. target.$_ptooltipDisabled = options.value.disabled || false;
  40280. target.$_ptooltipEscape = options.value.escape || false;
  40281. target.$_ptooltipClass = options.value.class;
  40282. }
  40283. target.$_ptooltipZIndex = options.instance.$primevue && options.instance.$primevue.config && options.instance.$primevue.config.zIndex.tooltip;
  40284. bindEvents(target);
  40285. },
  40286. unmounted(el) {
  40287. let target = getTarget(el);
  40288. remove(target);
  40289. unbindEvents(target);
  40290. if (target.$_ptooltipScrollHandler) {
  40291. target.$_ptooltipScrollHandler.destroy();
  40292. target.$_ptooltipScrollHandler = null;
  40293. }
  40294. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40295. },
  40296. updated(el, options) {
  40297. let target = getTarget(el);
  40298. target.$_ptooltipModifiers = getModifiers(options);
  40299. if (!options.value) return;
  40300. if (typeof options.value === 'string') {
  40301. target.$_ptooltipValue = options.value;
  40302. target.$_ptooltipDisabled = false;
  40303. target.$_ptooltipEscape = false;
  40304. target.$_ptooltipClass = null;
  40305. }
  40306. else {
  40307. target.$_ptooltipValue = options.value.value;
  40308. target.$_ptooltipDisabled = options.value.disabled || false;
  40309. target.$_ptooltipEscape = options.value.escape || false;
  40310. target.$_ptooltipClass = options.value.class;
  40311. }
  40312. }
  40313. };
  40314. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
  40315. /***/ }),
  40316. /***/ "./node_modules/primevue/utils/utils.esm.js":
  40317. /*!**************************************************!*\
  40318. !*** ./node_modules/primevue/utils/utils.esm.js ***!
  40319. \**************************************************/
  40320. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40321. "use strict";
  40322. __webpack_require__.r(__webpack_exports__);
  40323. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40324. /* harmony export */ "ConnectedOverlayScrollHandler": () => (/* binding */ ConnectedOverlayScrollHandler),
  40325. /* harmony export */ "DomHandler": () => (/* binding */ DomHandler),
  40326. /* harmony export */ "EventBus": () => (/* binding */ primebus),
  40327. /* harmony export */ "ObjectUtils": () => (/* binding */ ObjectUtils),
  40328. /* harmony export */ "UniqueComponentId": () => (/* binding */ UniqueComponentId),
  40329. /* harmony export */ "ZIndexUtils": () => (/* binding */ ZIndexUtils)
  40330. /* harmony export */ });
  40331. var DomHandler = {
  40332. innerWidth(el) {
  40333. let width = el.offsetWidth;
  40334. let style = getComputedStyle(el);
  40335. width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40336. return width;
  40337. },
  40338. width(el) {
  40339. let width = el.offsetWidth;
  40340. let style = getComputedStyle(el);
  40341. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40342. return width;
  40343. },
  40344. getWindowScrollTop() {
  40345. let doc = document.documentElement;
  40346. return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
  40347. },
  40348. getWindowScrollLeft() {
  40349. let doc = document.documentElement;
  40350. return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
  40351. },
  40352. getOuterWidth(el, margin) {
  40353. if (el) {
  40354. let width = el.offsetWidth;
  40355. if (margin) {
  40356. let style = getComputedStyle(el);
  40357. width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
  40358. }
  40359. return width;
  40360. }
  40361. else {
  40362. return 0;
  40363. }
  40364. },
  40365. getOuterHeight(el, margin) {
  40366. if (el) {
  40367. let height = el.offsetHeight;
  40368. if (margin) {
  40369. let style = getComputedStyle(el);
  40370. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40371. }
  40372. return height;
  40373. }
  40374. else {
  40375. return 0;
  40376. }
  40377. },
  40378. getClientHeight(el, margin) {
  40379. if (el) {
  40380. let height = el.clientHeight;
  40381. if (margin) {
  40382. let style = getComputedStyle(el);
  40383. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40384. }
  40385. return height;
  40386. } else {
  40387. return 0;
  40388. }
  40389. },
  40390. getViewport() {
  40391. let win = window,
  40392. d = document,
  40393. e = d.documentElement,
  40394. g = d.getElementsByTagName('body')[0],
  40395. w = win.innerWidth || e.clientWidth || g.clientWidth,
  40396. h = win.innerHeight || e.clientHeight || g.clientHeight;
  40397. return {width: w, height: h};
  40398. },
  40399. getOffset(el) {
  40400. var rect = el.getBoundingClientRect();
  40401. return {
  40402. top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
  40403. left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0),
  40404. };
  40405. },
  40406. index(element) {
  40407. let children = element.parentNode.childNodes;
  40408. let num = 0;
  40409. for (var i = 0; i < children.length; i++) {
  40410. if (children[i] === element) return num;
  40411. if (children[i].nodeType === 1) num++;
  40412. }
  40413. return -1;
  40414. },
  40415. addMultipleClasses(element, className) {
  40416. if (element.classList) {
  40417. let styles = className.split(' ');
  40418. for (let i = 0; i < styles.length; i++) {
  40419. element.classList.add(styles[i]);
  40420. }
  40421. }
  40422. else {
  40423. let styles = className.split(' ');
  40424. for (let i = 0; i < styles.length; i++) {
  40425. element.className += ' ' + styles[i];
  40426. }
  40427. }
  40428. },
  40429. addClass(element, className) {
  40430. if (element.classList)
  40431. element.classList.add(className);
  40432. else
  40433. element.className += ' ' + className;
  40434. },
  40435. removeClass(element, className) {
  40436. if (element.classList)
  40437. element.classList.remove(className);
  40438. else
  40439. element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
  40440. },
  40441. hasClass(element, className) {
  40442. if (element) {
  40443. if (element.classList)
  40444. return element.classList.contains(className);
  40445. else
  40446. return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
  40447. }
  40448. return false;
  40449. },
  40450. find(element, selector) {
  40451. return element.querySelectorAll(selector);
  40452. },
  40453. findSingle(element, selector) {
  40454. return element.querySelector(selector);
  40455. },
  40456. getHeight(el) {
  40457. let height = el.offsetHeight;
  40458. let style = getComputedStyle(el);
  40459. height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
  40460. return height;
  40461. },
  40462. getWidth(el) {
  40463. let width = el.offsetWidth;
  40464. let style = getComputedStyle(el);
  40465. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
  40466. return width;
  40467. },
  40468. absolutePosition(element, target) {
  40469. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40470. let elementOuterHeight = elementDimensions.height;
  40471. let elementOuterWidth = elementDimensions.width;
  40472. let targetOuterHeight = target.offsetHeight;
  40473. let targetOuterWidth = target.offsetWidth;
  40474. let targetOffset = target.getBoundingClientRect();
  40475. let windowScrollTop = this.getWindowScrollTop();
  40476. let windowScrollLeft = this.getWindowScrollLeft();
  40477. let viewport = this.getViewport();
  40478. let top, left;
  40479. if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
  40480. top = targetOffset.top + windowScrollTop - elementOuterHeight;
  40481. element.style.transformOrigin = 'bottom';
  40482. if (top < 0) {
  40483. top = windowScrollTop;
  40484. }
  40485. }
  40486. else {
  40487. top = targetOuterHeight + targetOffset.top + windowScrollTop;
  40488. element.style.transformOrigin = 'top';
  40489. }
  40490. if (targetOffset.left + elementOuterWidth > viewport.width)
  40491. left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
  40492. else
  40493. left = targetOffset.left + windowScrollLeft;
  40494. element.style.top = top + 'px';
  40495. element.style.left = left + 'px';
  40496. },
  40497. relativePosition(element, target) {
  40498. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40499. const targetHeight = target.offsetHeight;
  40500. const targetOffset = target.getBoundingClientRect();
  40501. const viewport = this.getViewport();
  40502. let top, left;
  40503. if ((targetOffset.top + targetHeight + elementDimensions.height) > viewport.height) {
  40504. top = -1 * (elementDimensions.height);
  40505. element.style.transformOrigin = 'bottom';
  40506. if (targetOffset.top + top < 0) {
  40507. top = -1 * targetOffset.top;
  40508. }
  40509. }
  40510. else {
  40511. top = targetHeight;
  40512. element.style.transformOrigin = 'top';
  40513. }
  40514. if (elementDimensions.width > viewport.width) {
  40515. // element wider then viewport and cannot fit on screen (align at left side of viewport)
  40516. left = targetOffset.left * -1;
  40517. }
  40518. else if ((targetOffset.left + elementDimensions.width) > viewport.width) {
  40519. // element wider then viewport but can be fit on screen (align at right side of viewport)
  40520. left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
  40521. }
  40522. else {
  40523. // element fits on screen (align with target)
  40524. left = 0;
  40525. }
  40526. element.style.top = top + 'px';
  40527. element.style.left = left + 'px';
  40528. },
  40529. getParents(element, parents = []) {
  40530. return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
  40531. },
  40532. getScrollableParents(element) {
  40533. let scrollableParents = [];
  40534. if (element) {
  40535. let parents = this.getParents(element);
  40536. const overflowRegex = /(auto|scroll)/;
  40537. const overflowCheck = (node) => {
  40538. let styleDeclaration = window['getComputedStyle'](node, null);
  40539. return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
  40540. };
  40541. for (let parent of parents) {
  40542. let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
  40543. if (scrollSelectors) {
  40544. let selectors = scrollSelectors.split(',');
  40545. for (let selector of selectors) {
  40546. let el = this.findSingle(parent, selector);
  40547. if (el && overflowCheck(el)) {
  40548. scrollableParents.push(el);
  40549. }
  40550. }
  40551. }
  40552. if (parent.nodeType !== 9 && overflowCheck(parent)) {
  40553. scrollableParents.push(parent);
  40554. }
  40555. }
  40556. }
  40557. return scrollableParents;
  40558. },
  40559. getHiddenElementOuterHeight(element) {
  40560. element.style.visibility = 'hidden';
  40561. element.style.display = 'block';
  40562. let elementHeight = element.offsetHeight;
  40563. element.style.display = 'none';
  40564. element.style.visibility = 'visible';
  40565. return elementHeight;
  40566. },
  40567. getHiddenElementOuterWidth(element) {
  40568. element.style.visibility = 'hidden';
  40569. element.style.display = 'block';
  40570. let elementWidth = element.offsetWidth;
  40571. element.style.display = 'none';
  40572. element.style.visibility = 'visible';
  40573. return elementWidth;
  40574. },
  40575. getHiddenElementDimensions(element) {
  40576. var dimensions = {};
  40577. element.style.visibility = 'hidden';
  40578. element.style.display = 'block';
  40579. dimensions.width = element.offsetWidth;
  40580. dimensions.height = element.offsetHeight;
  40581. element.style.display = 'none';
  40582. element.style.visibility = 'visible';
  40583. return dimensions;
  40584. },
  40585. fadeIn(element, duration) {
  40586. element.style.opacity = 0;
  40587. var last = +new Date();
  40588. var opacity = 0;
  40589. var tick = function () {
  40590. opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
  40591. element.style.opacity = opacity;
  40592. last = +new Date();
  40593. if (+opacity < 1) {
  40594. (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
  40595. }
  40596. };
  40597. tick();
  40598. },
  40599. fadeOut(element, ms) {
  40600. var opacity = 1,
  40601. interval = 50,
  40602. duration = ms,
  40603. gap = interval / duration;
  40604. let fading = setInterval(() => {
  40605. opacity -= gap;
  40606. if (opacity <= 0) {
  40607. opacity = 0;
  40608. clearInterval(fading);
  40609. }
  40610. element.style.opacity = opacity;
  40611. }, interval);
  40612. },
  40613. getUserAgent() {
  40614. return navigator.userAgent;
  40615. },
  40616. appendChild(element, target) {
  40617. if(this.isElement(target))
  40618. target.appendChild(element);
  40619. else if(target.el && target.elElement)
  40620. target.elElement.appendChild(element);
  40621. else
  40622. throw new Error('Cannot append ' + target + ' to ' + element);
  40623. },
  40624. scrollInView(container, item) {
  40625. let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
  40626. let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
  40627. let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
  40628. let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
  40629. let containerRect = container.getBoundingClientRect();
  40630. let itemRect = item.getBoundingClientRect();
  40631. let offset = (itemRect.top + document.body.scrollTop) - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
  40632. let scroll = container.scrollTop;
  40633. let elementHeight = container.clientHeight;
  40634. let itemHeight = this.getOuterHeight(item);
  40635. if (offset < 0) {
  40636. container.scrollTop = scroll + offset;
  40637. }
  40638. else if ((offset + itemHeight) > elementHeight) {
  40639. container.scrollTop = scroll + offset - elementHeight + itemHeight;
  40640. }
  40641. },
  40642. clearSelection() {
  40643. if(window.getSelection) {
  40644. if(window.getSelection().empty) {
  40645. window.getSelection().empty();
  40646. } else if(window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
  40647. window.getSelection().removeAllRanges();
  40648. }
  40649. }
  40650. else if(document['selection'] && document['selection'].empty) {
  40651. try {
  40652. document['selection'].empty();
  40653. } catch(error) {
  40654. //ignore IE bug
  40655. }
  40656. }
  40657. },
  40658. calculateScrollbarWidth() {
  40659. if(this.calculatedScrollbarWidth != null)
  40660. return this.calculatedScrollbarWidth;
  40661. let scrollDiv = document.createElement("div");
  40662. scrollDiv.className = "p-scrollbar-measure";
  40663. document.body.appendChild(scrollDiv);
  40664. let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
  40665. document.body.removeChild(scrollDiv);
  40666. this.calculatedScrollbarWidth = scrollbarWidth;
  40667. return scrollbarWidth;
  40668. },
  40669. getBrowser() {
  40670. if(!this.browser) {
  40671. let matched = this.resolveUserAgent();
  40672. this.browser = {};
  40673. if (matched.browser) {
  40674. this.browser[matched.browser] = true;
  40675. this.browser['version'] = matched.version;
  40676. }
  40677. if (this.browser['chrome']) {
  40678. this.browser['webkit'] = true;
  40679. } else if (this.browser['webkit']) {
  40680. this.browser['safari'] = true;
  40681. }
  40682. }
  40683. return this.browser;
  40684. },
  40685. resolveUserAgent() {
  40686. let ua = navigator.userAgent.toLowerCase();
  40687. let match = /(chrome)[ ]([\w.]+)/.exec(ua) ||
  40688. /(webkit)[ ]([\w.]+)/.exec(ua) ||
  40689. /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) ||
  40690. /(msie) ([\w.]+)/.exec(ua) ||
  40691. (ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) ||
  40692. [];
  40693. return {
  40694. browser: match[1] || "",
  40695. version: match[2] || "0"
  40696. };
  40697. },
  40698. isVisible(element) {
  40699. return element.offsetParent != null;
  40700. },
  40701. invokeElementMethod(element, methodName, args) {
  40702. (element)[methodName].apply(element, args);
  40703. },
  40704. getFocusableElements(element) {
  40705. let focusableElements = this.find(element, `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40706. [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40707. input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40708. textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40709. [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`
  40710. );
  40711. let visibleFocusableElements = [];
  40712. for (let focusableElement of focusableElements) {
  40713. if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden")
  40714. visibleFocusableElements.push(focusableElement);
  40715. }
  40716. return visibleFocusableElements;
  40717. },
  40718. getFirstFocusableElement(element) {
  40719. const focusableElements = this.getFocusableElements(element);
  40720. return focusableElements.length > 0 ? focusableElements[0] : null;
  40721. },
  40722. isClickable(element) {
  40723. const targetNode = element.nodeName;
  40724. const parentNode = element.parentElement && element.parentElement.nodeName;
  40725. return (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' ||
  40726. parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' ||
  40727. this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') ||
  40728. this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton')
  40729. );
  40730. },
  40731. applyStyle(element, style) {
  40732. if (typeof style === 'string') {
  40733. element.style.cssText = style;
  40734. }
  40735. else {
  40736. for (let prop in style) {
  40737. element.style[prop] = style[prop];
  40738. }
  40739. }
  40740. },
  40741. isIOS() {
  40742. return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
  40743. },
  40744. isAndroid() {
  40745. return /(android)/i.test(navigator.userAgent);
  40746. },
  40747. isTouchDevice() {
  40748. return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
  40749. },
  40750. exportCSV(csv, filename) {
  40751. let blob = new Blob([csv], {
  40752. type: 'application/csv;charset=utf-8;'
  40753. });
  40754. if (window.navigator.msSaveOrOpenBlob) {
  40755. navigator.msSaveOrOpenBlob(blob, filename + '.csv');
  40756. }
  40757. else {
  40758. let link = document.createElement("a");
  40759. if (link.download !== undefined) {
  40760. link.setAttribute('href', URL.createObjectURL(blob));
  40761. link.setAttribute('download', filename + '.csv');
  40762. link.style.display = 'none';
  40763. document.body.appendChild(link);
  40764. link.click();
  40765. document.body.removeChild(link);
  40766. }
  40767. else {
  40768. csv = 'data:text/csv;charset=utf-8,' + csv;
  40769. window.open(encodeURI(csv));
  40770. }
  40771. }
  40772. }
  40773. };
  40774. class ConnectedOverlayScrollHandler {
  40775. constructor(element, listener = () => {}) {
  40776. this.element = element;
  40777. this.listener = listener;
  40778. }
  40779. bindScrollListener() {
  40780. this.scrollableParents = DomHandler.getScrollableParents(this.element);
  40781. for (let i = 0; i < this.scrollableParents.length; i++) {
  40782. this.scrollableParents[i].addEventListener('scroll', this.listener);
  40783. }
  40784. }
  40785. unbindScrollListener() {
  40786. if (this.scrollableParents) {
  40787. for (let i = 0; i < this.scrollableParents.length; i++) {
  40788. this.scrollableParents[i].removeEventListener('scroll', this.listener);
  40789. }
  40790. }
  40791. }
  40792. destroy() {
  40793. this.unbindScrollListener();
  40794. this.element = null;
  40795. this.listener = null;
  40796. this.scrollableParents = null;
  40797. }
  40798. }
  40799. var ObjectUtils = {
  40800. equals(obj1, obj2, field) {
  40801. if (field)
  40802. return (this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field));
  40803. else
  40804. return this.deepEquals(obj1, obj2);
  40805. },
  40806. deepEquals(a, b) {
  40807. if (a === b) return true;
  40808. if (a && b && typeof a == 'object' && typeof b == 'object') {
  40809. var arrA = Array.isArray(a)
  40810. , arrB = Array.isArray(b)
  40811. , i
  40812. , length
  40813. , key;
  40814. if (arrA && arrB) {
  40815. length = a.length;
  40816. if (length != b.length) return false;
  40817. for (i = length; i-- !== 0;)
  40818. if (!this.deepEquals(a[i], b[i])) return false;
  40819. return true;
  40820. }
  40821. if (arrA != arrB) return false;
  40822. var dateA = a instanceof Date
  40823. , dateB = b instanceof Date;
  40824. if (dateA != dateB) return false;
  40825. if (dateA && dateB) return a.getTime() == b.getTime();
  40826. var regexpA = a instanceof RegExp
  40827. , regexpB = b instanceof RegExp;
  40828. if (regexpA != regexpB) return false;
  40829. if (regexpA && regexpB) return a.toString() == b.toString();
  40830. var keys = Object.keys(a);
  40831. length = keys.length;
  40832. if (length !== Object.keys(b).length)
  40833. return false;
  40834. for (i = length; i-- !== 0;)
  40835. if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
  40836. for (i = length; i-- !== 0;) {
  40837. key = keys[i];
  40838. if (!this.deepEquals(a[key], b[key])) return false;
  40839. }
  40840. return true;
  40841. }
  40842. return a !== a && b !== b;
  40843. },
  40844. resolveFieldData(data, field) {
  40845. if (data && Object.keys(data).length && field) {
  40846. if (this.isFunction(field)) {
  40847. return field(data);
  40848. }
  40849. else if(field.indexOf('.') === -1) {
  40850. return data[field];
  40851. }
  40852. else {
  40853. let fields = field.split('.');
  40854. let value = data;
  40855. for(var i = 0, len = fields.length; i < len; ++i) {
  40856. if (value == null) {
  40857. return null;
  40858. }
  40859. value = value[fields[i]];
  40860. }
  40861. return value;
  40862. }
  40863. }
  40864. else {
  40865. return null;
  40866. }
  40867. },
  40868. isFunction(obj) {
  40869. return !!(obj && obj.constructor && obj.call && obj.apply);
  40870. },
  40871. filter(value, fields, filterValue) {
  40872. var filteredItems = [];
  40873. if (value) {
  40874. for (let item of value) {
  40875. for (let field of fields) {
  40876. if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
  40877. filteredItems.push(item);
  40878. break;
  40879. }
  40880. }
  40881. }
  40882. }
  40883. return filteredItems;
  40884. },
  40885. reorderArray(value, from, to) {
  40886. let target;
  40887. if (value && (from !== to)) {
  40888. if (to >= value.length) {
  40889. target = to - value.length;
  40890. while ((target--) + 1) {
  40891. value.push(undefined);
  40892. }
  40893. }
  40894. value.splice(to, 0, value.splice(from, 1)[0]);
  40895. }
  40896. },
  40897. findIndexInList(value, list) {
  40898. let index = -1;
  40899. if (list) {
  40900. for (let i = 0; i < list.length; i++) {
  40901. if (list[i] === value) {
  40902. index = i;
  40903. break;
  40904. }
  40905. }
  40906. }
  40907. return index;
  40908. },
  40909. contains(value, list) {
  40910. if (value != null && list && list.length) {
  40911. for (let val of list) {
  40912. if (this.equals(value, val))
  40913. return true;
  40914. }
  40915. }
  40916. return false;
  40917. },
  40918. insertIntoOrderedArray(item, index, arr, sourceArr) {
  40919. if (arr.length > 0) {
  40920. let injected = false;
  40921. for (let i = 0; i < arr.length; i++) {
  40922. let currentItemIndex = this.findIndexInList(arr[i], sourceArr);
  40923. if (currentItemIndex > index) {
  40924. arr.splice(i, 0, item);
  40925. injected = true;
  40926. break;
  40927. }
  40928. }
  40929. if (!injected) {
  40930. arr.push(item);
  40931. }
  40932. }
  40933. else {
  40934. arr.push(item);
  40935. }
  40936. },
  40937. removeAccents(str) {
  40938. if (str && str.search(/[\xC0-\xFF]/g) > -1) {
  40939. str = str
  40940. .replace(/[\xC0-\xC5]/g, "A")
  40941. .replace(/[\xC6]/g, "AE")
  40942. .replace(/[\xC7]/g, "C")
  40943. .replace(/[\xC8-\xCB]/g, "E")
  40944. .replace(/[\xCC-\xCF]/g, "I")
  40945. .replace(/[\xD0]/g, "D")
  40946. .replace(/[\xD1]/g, "N")
  40947. .replace(/[\xD2-\xD6\xD8]/g, "O")
  40948. .replace(/[\xD9-\xDC]/g, "U")
  40949. .replace(/[\xDD]/g, "Y")
  40950. .replace(/[\xDE]/g, "P")
  40951. .replace(/[\xE0-\xE5]/g, "a")
  40952. .replace(/[\xE6]/g, "ae")
  40953. .replace(/[\xE7]/g, "c")
  40954. .replace(/[\xE8-\xEB]/g, "e")
  40955. .replace(/[\xEC-\xEF]/g, "i")
  40956. .replace(/[\xF1]/g, "n")
  40957. .replace(/[\xF2-\xF6\xF8]/g, "o")
  40958. .replace(/[\xF9-\xFC]/g, "u")
  40959. .replace(/[\xFE]/g, "p")
  40960. .replace(/[\xFD\xFF]/g, "y");
  40961. }
  40962. return str;
  40963. },
  40964. getVNodeProp(vnode, prop) {
  40965. let props = vnode.props;
  40966. if (props) {
  40967. let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
  40968. let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
  40969. return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
  40970. }
  40971. return null;
  40972. },
  40973. isEmpty(value) {
  40974. return (
  40975. value === null || value === undefined || value === '' ||
  40976. (Array.isArray(value) && value.length === 0) ||
  40977. (!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0)
  40978. );
  40979. },
  40980. isNotEmpty(value) {
  40981. return !this.isEmpty(value);
  40982. }
  40983. };
  40984. function handler() {
  40985. let zIndexes = [];
  40986. const generateZIndex = (key, baseZIndex) => {
  40987. let lastZIndex = zIndexes.length > 0 ? zIndexes[zIndexes.length - 1] : { key, value: baseZIndex };
  40988. let newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
  40989. zIndexes.push({ key, value: newZIndex });
  40990. return newZIndex;
  40991. };
  40992. const revertZIndex = (zIndex) => {
  40993. zIndexes = zIndexes.filter(obj => obj.value !== zIndex);
  40994. };
  40995. const getCurrentZIndex = () => {
  40996. return zIndexes.length > 0 ? zIndexes[zIndexes.length - 1].value : 0;
  40997. };
  40998. const getZIndex = (el) => {
  40999. return el ? parseInt(el.style.zIndex, 10) || 0 : 0
  41000. };
  41001. return {
  41002. get: getZIndex,
  41003. set: (key, el, baseZIndex) => {
  41004. if (el) {
  41005. el.style.zIndex = String(generateZIndex(key, baseZIndex));
  41006. }
  41007. },
  41008. clear: (el) => {
  41009. if (el) {
  41010. revertZIndex(getZIndex(el));
  41011. el.style.zIndex = '';
  41012. }
  41013. },
  41014. getCurrent: () => getCurrentZIndex()
  41015. };
  41016. }
  41017. var ZIndexUtils = handler();
  41018. var lastId = 0;
  41019. function UniqueComponentId (prefix = 'pv_id_') {
  41020. lastId++;
  41021. return `${prefix}${lastId}`;
  41022. }
  41023. function primebus() {
  41024. const allHandlers = new Map();
  41025. return {
  41026. on(type, handler) {
  41027. let handlers = allHandlers.get(type);
  41028. if (!handlers)
  41029. handlers = [handler];
  41030. else
  41031. handlers.push(handler);
  41032. allHandlers.set(type, handlers);
  41033. },
  41034. off(type, handler) {
  41035. let handlers = allHandlers.get(type);
  41036. if (handlers) {
  41037. handlers.splice(handlers.indexOf(handler) >>> 0, 1);
  41038. }
  41039. },
  41040. emit(type, evt) {
  41041. let handlers = allHandlers.get(type);
  41042. if (handlers) {
  41043. handlers.slice().map((handler) => { handler(evt);});
  41044. }
  41045. }
  41046. };
  41047. }
  41048. /***/ }),
  41049. /***/ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js":
  41050. /*!**********************************************************************!*\
  41051. !*** ./node_modules/primevue/virtualscroller/virtualscroller.esm.js ***!
  41052. \**********************************************************************/
  41053. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  41054. "use strict";
  41055. __webpack_require__.r(__webpack_exports__);
  41056. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  41057. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  41058. /* harmony export */ });
  41059. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  41060. var script = {
  41061. name: 'VirtualScroller',
  41062. emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
  41063. props: {
  41064. id: {
  41065. type: String,
  41066. default: null
  41067. },
  41068. style: null,
  41069. class: null,
  41070. items: {
  41071. type: Array,
  41072. default: null
  41073. },
  41074. itemSize: {
  41075. type: [Number,Array],
  41076. default: 0
  41077. },
  41078. scrollHeight: null,
  41079. scrollWidth: null,
  41080. orientation: {
  41081. type: String,
  41082. default: 'vertical'
  41083. },
  41084. numToleratedItems: {
  41085. type: Number,
  41086. default: null
  41087. },
  41088. delay: {
  41089. type: Number,
  41090. default: 0
  41091. },
  41092. lazy: {
  41093. type: Boolean,
  41094. default: false
  41095. },
  41096. disabled: {
  41097. type: Boolean,
  41098. default: false
  41099. },
  41100. loaderDisabled: {
  41101. type: Boolean,
  41102. default: false
  41103. },
  41104. columns: {
  41105. type: Array,
  41106. default: null
  41107. },
  41108. loading: {
  41109. type: Boolean,
  41110. default: false
  41111. },
  41112. showSpacer: {
  41113. type: Boolean,
  41114. default: true
  41115. },
  41116. showLoader: {
  41117. type: Boolean,
  41118. default: false
  41119. }
  41120. },
  41121. data() {
  41122. return {
  41123. first: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41124. last: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41125. numItemsInViewport: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41126. lastScrollPos: this.isBoth() ? { top: 0, left: 0 } : 0,
  41127. d_numToleratedItems: this.numToleratedItems,
  41128. d_loading: this.loading,
  41129. loaderArr: [],
  41130. spacerStyle: {},
  41131. contentStyle: {}
  41132. }
  41133. },
  41134. element: null,
  41135. content: null,
  41136. lastScrollPos: null,
  41137. scrollTimeout: null,
  41138. mounted() {
  41139. this.init();
  41140. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41141. },
  41142. watch: {
  41143. numToleratedItems(newValue) {
  41144. this.d_numToleratedItems = newValue;
  41145. },
  41146. loading(newValue) {
  41147. this.d_loading = newValue;
  41148. },
  41149. items(newValue, oldValue) {
  41150. if (!oldValue || oldValue.length !== (newValue || []).length) {
  41151. this.init();
  41152. }
  41153. },
  41154. orientation() {
  41155. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41156. }
  41157. },
  41158. methods: {
  41159. init() {
  41160. this.setSize();
  41161. this.calculateOptions();
  41162. this.setSpacerSize();
  41163. },
  41164. isVertical() {
  41165. return this.orientation === 'vertical';
  41166. },
  41167. isHorizontal() {
  41168. return this.orientation === 'horizontal';
  41169. },
  41170. isBoth() {
  41171. return this.orientation === 'both';
  41172. },
  41173. scrollTo(options) {
  41174. this.element && this.element.scrollTo(options);
  41175. },
  41176. scrollToIndex(index, behavior = 'auto') {
  41177. const both = this.isBoth();
  41178. const horizontal = this.isHorizontal();
  41179. const first = this.first;
  41180. const { numToleratedItems } = this.calculateNumItems();
  41181. const itemSize = this.itemSize;
  41182. const contentPos = this.getContentPosition();
  41183. const calculateFirst = (_index = 0, _numT) => (_index <= _numT ? 0 : _index);
  41184. const calculateCoord = (_first, _size, _cpos) => (_first * _size) + _cpos;
  41185. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41186. if (both) {
  41187. const newFirst = { rows: calculateFirst(index[0], numToleratedItems[0]), cols: calculateFirst(index[1], numToleratedItems[1]) };
  41188. if (newFirst.rows !== first.rows || newFirst.cols !== first.cols) {
  41189. scrollTo(calculateCoord(newFirst.cols, itemSize[1], contentPos.left), calculateCoord(newFirst.rows, itemSize[0], contentPos.top));
  41190. this.first = newFirst;
  41191. }
  41192. }
  41193. else {
  41194. const newFirst = calculateFirst(index, numToleratedItems);
  41195. if (newFirst !== first) {
  41196. horizontal ? scrollTo(calculateCoord(newFirst, itemSize, contentPos.left), 0) : scrollTo(0, calculateCoord(newFirst, itemSize, contentPos.top));
  41197. this.first = newFirst;
  41198. }
  41199. }
  41200. },
  41201. scrollInView(index, to, behavior = 'auto') {
  41202. if (to) {
  41203. const both = this.isBoth();
  41204. const horizontal = this.isHorizontal();
  41205. const { first, viewport } = this.getRenderedRange();
  41206. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41207. const isToStart = to === 'to-start';
  41208. const isToEnd = to === 'to-end';
  41209. if (isToStart) {
  41210. if (both) {
  41211. if (viewport.first.rows - first.rows > index[0]) {
  41212. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
  41213. }
  41214. else if (viewport.first.cols - first.cols > index[1]) {
  41215. scrollTo((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41216. }
  41217. }
  41218. else {
  41219. if (viewport.first - first > index) {
  41220. const pos = (viewport.first - 1) * this.itemSize;
  41221. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41222. }
  41223. }
  41224. }
  41225. else if (isToEnd) {
  41226. if (both) {
  41227. if (viewport.last.rows - first.rows <= index[0] + 1) {
  41228. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
  41229. }
  41230. else if (viewport.last.cols - first.cols <= index[1] + 1) {
  41231. scrollTo((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41232. }
  41233. }
  41234. else {
  41235. if (viewport.last - first <= index + 1) {
  41236. const pos = (viewport.first + 1) * this.itemSize;
  41237. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41238. }
  41239. }
  41240. }
  41241. }
  41242. else {
  41243. this.scrollToIndex(index, behavior);
  41244. }
  41245. },
  41246. getRenderedRange() {
  41247. const calculateFirstInViewport = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41248. let firstInViewport = this.first;
  41249. let lastInViewport = 0;
  41250. if (this.element) {
  41251. const both = this.isBoth();
  41252. const horizontal = this.isHorizontal();
  41253. const scrollTop = this.element.scrollTop;
  41254. const scrollLeft = this.element.scrollLeft;
  41255. if (both) {
  41256. firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
  41257. lastInViewport = { rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols };
  41258. }
  41259. else {
  41260. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41261. firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
  41262. lastInViewport = firstInViewport + this.numItemsInViewport;
  41263. }
  41264. }
  41265. return {
  41266. first: this.first,
  41267. last: this.last,
  41268. viewport: {
  41269. first: firstInViewport,
  41270. last: lastInViewport
  41271. }
  41272. };
  41273. },
  41274. calculateNumItems() {
  41275. const both = this.isBoth();
  41276. const horizontal = this.isHorizontal();
  41277. const itemSize = this.itemSize;
  41278. const contentPos = this.getContentPosition();
  41279. const contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
  41280. const contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
  41281. const calculateNumItemsInViewport = (_contentSize, _itemSize) => Math.ceil(_contentSize / (_itemSize || _contentSize));
  41282. const calculateNumToleratedItems = (_numItems) => Math.ceil(_numItems / 2);
  41283. const numItemsInViewport = both ?
  41284. { rows: calculateNumItemsInViewport(contentHeight, itemSize[0]), cols: calculateNumItemsInViewport(contentWidth, itemSize[1]) } :
  41285. calculateNumItemsInViewport((horizontal ? contentWidth : contentHeight), itemSize);
  41286. const numToleratedItems = this.d_numToleratedItems || (both ?
  41287. [calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] :
  41288. calculateNumToleratedItems(numItemsInViewport));
  41289. return { numItemsInViewport, numToleratedItems };
  41290. },
  41291. calculateOptions() {
  41292. const both = this.isBoth();
  41293. const first = this.first;
  41294. const { numItemsInViewport, numToleratedItems } = this.calculateNumItems();
  41295. const calculateLast = (_first, _num, _numT, _isCols) => this.getLast(_first + _num + ((_first < _numT ? 2 : 3) * _numT), _isCols);
  41296. const last = both ?
  41297. { rows: calculateLast(first.rows, numItemsInViewport.rows, numToleratedItems[0]), cols: calculateLast(first.cols, numItemsInViewport.cols, numToleratedItems[1], true) } :
  41298. calculateLast(first, numItemsInViewport, numToleratedItems);
  41299. this.last = last;
  41300. this.numItemsInViewport = numItemsInViewport;
  41301. this.d_numToleratedItems = numToleratedItems;
  41302. this.$emit('update:numToleratedItems', this.d_numToleratedItems);
  41303. if (this.showLoader) {
  41304. this.loaderArr = both ?
  41305. Array.from({ length: numItemsInViewport.rows }).map(() => Array.from({ length: numItemsInViewport.cols })) :
  41306. Array.from({ length: numItemsInViewport });
  41307. }
  41308. if (this.lazy) {
  41309. this.$emit('lazy-load', { first, last });
  41310. }
  41311. },
  41312. getLast(last = 0, isCols) {
  41313. if (this.items) {
  41314. return Math.min((isCols ? (this.columns || this.items[0]).length : this.items.length), last);
  41315. }
  41316. return 0;
  41317. },
  41318. getContentPosition() {
  41319. if (this.content) {
  41320. const style = getComputedStyle(this.content);
  41321. const left = parseInt(style.paddingLeft, 10) + Math.max(parseInt(style.left, 10), 0);
  41322. const right = parseInt(style.paddingRight, 10) + Math.max(parseInt(style.right, 10), 0);
  41323. const top = parseInt(style.paddingTop, 10) + Math.max(parseInt(style.top, 10), 0);
  41324. const bottom = parseInt(style.paddingBottom, 10) + Math.max(parseInt(style.bottom, 10), 0);
  41325. return { left, right, top, bottom, x: left + right, y: top + bottom };
  41326. }
  41327. return { left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 };
  41328. },
  41329. setSize() {
  41330. if (this.element) {
  41331. const both = this.isBoth();
  41332. const horizontal = this.isHorizontal();
  41333. const parentElement = this.element.parentElement;
  41334. const width = this.scrollWidth || `${(this.element.offsetWidth || parentElement.offsetWidth)}px`;
  41335. const height = this.scrollHeight || `${(this.element.offsetHeight || parentElement.offsetHeight)}px`;
  41336. const setProp = (_name, _value) => this.element.style[_name] = _value;
  41337. if (both || horizontal) {
  41338. setProp('height', height);
  41339. setProp('width', width);
  41340. }
  41341. else {
  41342. setProp('height', height);
  41343. }
  41344. }
  41345. },
  41346. setSpacerSize() {
  41347. const items = this.items;
  41348. if (items) {
  41349. const both = this.isBoth();
  41350. const horizontal = this.isHorizontal();
  41351. const contentPos = this.getContentPosition();
  41352. const setProp = (_name, _value, _size, _cpos = 0) => this.spacerStyle = { ...this.spacerStyle, ...{ [`${_name}`]: (((_value || []).length * _size) + _cpos) + 'px' } };
  41353. if (both) {
  41354. setProp('height', items, this.itemSize[0], contentPos.y);
  41355. setProp('width', (this.columns || items[1]), this.itemSize[1], contentPos.x);
  41356. }
  41357. else {
  41358. horizontal ? setProp('width', (this.columns || items), this.itemSize, contentPos.x) : setProp('height', items, this.itemSize, contentPos.y);
  41359. }
  41360. }
  41361. },
  41362. setContentPosition(pos) {
  41363. if (this.content) {
  41364. const both = this.isBoth();
  41365. const horizontal = this.isHorizontal();
  41366. const first = pos ? pos.first : this.first;
  41367. const calculateTranslateVal = (_first, _size) => (_first * _size);
  41368. const setTransform = (_x = 0, _y = 0) => {
  41369. this.contentStyle = { ...this.contentStyle, ...{ transform: `translate3d(${_x}px, ${_y}px, 0)` } };
  41370. };
  41371. if (both) {
  41372. setTransform(calculateTranslateVal(first.cols, this.itemSize[1]), calculateTranslateVal(first.rows, this.itemSize[0]));
  41373. }
  41374. else {
  41375. const translateVal = calculateTranslateVal(first, this.itemSize);
  41376. horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
  41377. }
  41378. }
  41379. },
  41380. onScrollPositionChange(event) {
  41381. const target = event.target;
  41382. const both = this.isBoth();
  41383. const horizontal = this.isHorizontal();
  41384. const contentPos = this.getContentPosition();
  41385. const calculateScrollPos = (_pos, _cpos) => _pos ? (_pos > _cpos ? _pos - _cpos : _pos) : 0;
  41386. const calculateCurrentIndex = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41387. const calculateTriggerIndex = (_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41388. return (_currentIndex <= _numT ? _numT : (_isScrollDownOrRight ? (_last - _num - _numT) : (_first + _numT - 1)))
  41389. };
  41390. const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41391. if (_currentIndex <= _numT)
  41392. return 0;
  41393. else
  41394. return Math.max(0, _isScrollDownOrRight ?
  41395. (_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) :
  41396. (_currentIndex > _triggerIndex ? _first : _currentIndex - (2 * _numT)));
  41397. };
  41398. const calculateLast = (_currentIndex, _first, _last, _num, _numT, _isCols) => {
  41399. let lastValue = _first + _num + (2 * _numT);
  41400. if (_currentIndex >= _numT) {
  41401. lastValue += (_numT + 1);
  41402. }
  41403. return this.getLast(lastValue, _isCols);
  41404. };
  41405. const scrollTop = calculateScrollPos(target.scrollTop, contentPos.top);
  41406. const scrollLeft = calculateScrollPos(target.scrollLeft, contentPos.left);
  41407. let newFirst = 0;
  41408. let newLast = this.last;
  41409. let isRangeChanged = false;
  41410. if (both) {
  41411. const isScrollDown = this.lastScrollPos.top <= scrollTop;
  41412. const isScrollRight = this.lastScrollPos.left <= scrollLeft;
  41413. const currentIndex = { rows: calculateCurrentIndex(scrollTop, this.itemSize[0]), cols: calculateCurrentIndex(scrollLeft, this.itemSize[1]) };
  41414. const triggerIndex = {
  41415. rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41416. cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41417. };
  41418. newFirst = {
  41419. rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41420. cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41421. };
  41422. newLast = {
  41423. rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
  41424. cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)
  41425. };
  41426. isRangeChanged = (newFirst.rows !== this.first.rows && newLast.rows !== this.last.rows) || (newFirst.cols !== this.first.cols && newLast.cols !== this.last.cols);
  41427. this.lastScrollPos = { top: scrollTop, left: scrollLeft };
  41428. }
  41429. else {
  41430. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41431. const isScrollDownOrRight = this.lastScrollPos <= scrollPos;
  41432. const currentIndex = calculateCurrentIndex(scrollPos, this.itemSize);
  41433. const triggerIndex = calculateTriggerIndex(currentIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41434. newFirst = calculateFirst(currentIndex, triggerIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41435. newLast = calculateLast(currentIndex, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
  41436. isRangeChanged = newFirst !== this.first && newLast !== this.last;
  41437. this.lastScrollPos = scrollPos;
  41438. }
  41439. return {
  41440. first: newFirst,
  41441. last: newLast,
  41442. isRangeChanged
  41443. }
  41444. },
  41445. onScrollChange(event) {
  41446. const { first, last, isRangeChanged } = this.onScrollPositionChange(event);
  41447. if (isRangeChanged) {
  41448. const newState = { first, last };
  41449. this.setContentPosition(newState);
  41450. this.first = first;
  41451. this.last = last;
  41452. this.$emit('scroll-index-change', newState);
  41453. if (this.lazy) {
  41454. this.$emit('lazy-load', newState);
  41455. }
  41456. }
  41457. },
  41458. onScroll(event) {
  41459. this.$emit('scroll', event);
  41460. if (this.delay) {
  41461. if (this.scrollTimeout) {
  41462. clearTimeout(this.scrollTimeout);
  41463. }
  41464. if (!this.d_loading && this.showLoader) {
  41465. const { isRangeChanged: changed } = this.onScrollPositionChange(event);
  41466. changed && (this.d_loading = true);
  41467. }
  41468. this.scrollTimeout = setTimeout(() => {
  41469. this.onScrollChange(event);
  41470. if (this.d_loading && this.showLoader && !this.lazy) {
  41471. this.d_loading = false;
  41472. }
  41473. }, this.delay);
  41474. }
  41475. else {
  41476. this.onScrollChange(event);
  41477. }
  41478. },
  41479. getOptions(renderedIndex) {
  41480. const count = (this.items || []).length;
  41481. const index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
  41482. return {
  41483. index,
  41484. count,
  41485. first: index === 0,
  41486. last: index === (count - 1),
  41487. even: index % 2 === 0,
  41488. odd: index % 2 !== 0
  41489. };
  41490. },
  41491. getLoaderOptions(index, extOptions) {
  41492. let count = this.loaderArr.length;
  41493. return {
  41494. index,
  41495. count,
  41496. first: index === 0,
  41497. last: index === (count - 1),
  41498. even: index % 2 === 0,
  41499. odd: index % 2 !== 0,
  41500. ...extOptions
  41501. }
  41502. },
  41503. elementRef(el) {
  41504. this.element = el;
  41505. },
  41506. contentRef(el) {
  41507. this.content = el;
  41508. }
  41509. },
  41510. computed: {
  41511. containerClass() {
  41512. return ['p-virtualscroller', {
  41513. 'p-both-scroll': this.isBoth(),
  41514. 'p-horizontal-scroll': this.isHorizontal()
  41515. }, this.class];
  41516. },
  41517. contentClass() {
  41518. return ['p-virtualscroller-content', {
  41519. 'p-virtualscroller-loading': this.d_loading
  41520. }];
  41521. },
  41522. loaderClass() {
  41523. return ['p-virtualscroller-loader', {
  41524. 'p-component-overlay': !this.$slots.loader
  41525. }];
  41526. },
  41527. loadedItems() {
  41528. const items = this.items;
  41529. if (items && !this.d_loading) {
  41530. if (this.isBoth()) {
  41531. return items.slice(this.first.rows, this.last.rows).map(item => this.columns ? item : item.slice(this.first.cols, this.last.cols));
  41532. }
  41533. else if (this.isHorizontal() && this.columns)
  41534. return items;
  41535. else
  41536. return items.slice(this.first, this.last);
  41537. }
  41538. return [];
  41539. },
  41540. loadedRows() {
  41541. return this.d_loading ? (this.loaderDisabled ? this.loaderArr : []) : this.loadedItems;
  41542. },
  41543. loadedColumns() {
  41544. if (this.columns) {
  41545. const both = this.isBoth();
  41546. const horizontal = this.isHorizontal();
  41547. if (both || horizontal) {
  41548. return this.d_loading && this.loaderDisabled ?
  41549. (both ? this.loaderArr[0] : this.loaderArr):
  41550. this.columns.slice((both ? this.first.cols : this.first), (both ? this.last.cols : this.last));
  41551. }
  41552. }
  41553. return this.columns;
  41554. }
  41555. }
  41556. };
  41557. const _hoisted_1 = {
  41558. key: 1,
  41559. class: "p-virtualscroller-loading-icon pi pi-spinner pi-spin"
  41560. };
  41561. function render(_ctx, _cache, $props, $setup, $data, $options) {
  41562. return (!$props.disabled)
  41563. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41564. key: 0,
  41565. ref: $options.elementRef,
  41566. class: $options.containerClass,
  41567. tabindex: 0,
  41568. style: $props.style,
  41569. onScroll: _cache[1] || (_cache[1] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  41570. }, [
  41571. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  41572. styleClass: $options.contentClass,
  41573. items: $options.loadedItems,
  41574. getItemOptions: $options.getOptions,
  41575. loading: $data.d_loading,
  41576. getLoaderOptions: $options.getLoaderOptions,
  41577. itemSize: $props.itemSize,
  41578. rows: $options.loadedRows,
  41579. columns: $options.loadedColumns,
  41580. contentRef: $options.contentRef,
  41581. spacerStyle: $data.spacerStyle,
  41582. contentStyle: $data.contentStyle,
  41583. vertical: $options.isVertical(),
  41584. horizontal: $options.isHorizontal(),
  41585. both: $options.isBoth()
  41586. }, () => [
  41587. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", {
  41588. ref: $options.contentRef,
  41589. class: $options.contentClass,
  41590. style: $data.contentStyle
  41591. }, [
  41592. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.loadedItems, (item, index) => {
  41593. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "item", {
  41594. key: index,
  41595. item: item,
  41596. options: $options.getOptions(index)
  41597. })
  41598. }), 128))
  41599. ], 6)
  41600. ]),
  41601. ($props.showSpacer)
  41602. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41603. key: 0,
  41604. class: "p-virtualscroller-spacer",
  41605. style: $data.spacerStyle
  41606. }, null, 4))
  41607. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  41608. (!$props.loaderDisabled && $props.showLoader && $data.d_loading)
  41609. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41610. key: 1,
  41611. class: $options.loaderClass
  41612. }, [
  41613. (_ctx.$slots && _ctx.$slots.loader)
  41614. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.loaderArr, (_, index) => {
  41615. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "loader", {
  41616. key: index,
  41617. options: $options.getLoaderOptions(index, $options.isBoth() && { numCols: _ctx.d_numItemsInViewport.cols })
  41618. })
  41619. }), 128))
  41620. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("i", _hoisted_1))
  41621. ], 2))
  41622. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  41623. ], 38))
  41624. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [
  41625. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default"),
  41626. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  41627. items: $props.items,
  41628. rows: $props.items,
  41629. columns: $options.loadedColumns
  41630. })
  41631. ], 64))
  41632. }
  41633. function styleInject(css, ref) {
  41634. if ( ref === void 0 ) ref = {};
  41635. var insertAt = ref.insertAt;
  41636. if (!css || typeof document === 'undefined') { return; }
  41637. var head = document.head || document.getElementsByTagName('head')[0];
  41638. var style = document.createElement('style');
  41639. style.type = 'text/css';
  41640. if (insertAt === 'top') {
  41641. if (head.firstChild) {
  41642. head.insertBefore(style, head.firstChild);
  41643. } else {
  41644. head.appendChild(style);
  41645. }
  41646. } else {
  41647. head.appendChild(style);
  41648. }
  41649. if (style.styleSheet) {
  41650. style.styleSheet.cssText = css;
  41651. } else {
  41652. style.appendChild(document.createTextNode(css));
  41653. }
  41654. }
  41655. var css_248z = "\n.p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n}\n.p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n}\n.p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n pointer-events: none;\n}\n.p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-virtualscroller-loader.p-component-overlay {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n";
  41656. styleInject(css_248z);
  41657. script.render = render;
  41658. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  41659. /***/ }),
  41660. /***/ "./node_modules/process/browser.js":
  41661. /*!*****************************************!*\
  41662. !*** ./node_modules/process/browser.js ***!
  41663. \*****************************************/
  41664. /***/ ((module) => {
  41665. // shim for using process in browser
  41666. var process = module.exports = {};
  41667. // cached from whatever global is present so that test runners that stub it
  41668. // don't break things. But we need to wrap it in a try catch in case it is
  41669. // wrapped in strict mode code which doesn't define any globals. It's inside a
  41670. // function because try/catches deoptimize in certain engines.
  41671. var cachedSetTimeout;
  41672. var cachedClearTimeout;
  41673. function defaultSetTimout() {
  41674. throw new Error('setTimeout has not been defined');
  41675. }
  41676. function defaultClearTimeout () {
  41677. throw new Error('clearTimeout has not been defined');
  41678. }
  41679. (function () {
  41680. try {
  41681. if (typeof setTimeout === 'function') {
  41682. cachedSetTimeout = setTimeout;
  41683. } else {
  41684. cachedSetTimeout = defaultSetTimout;
  41685. }
  41686. } catch (e) {
  41687. cachedSetTimeout = defaultSetTimout;
  41688. }
  41689. try {
  41690. if (typeof clearTimeout === 'function') {
  41691. cachedClearTimeout = clearTimeout;
  41692. } else {
  41693. cachedClearTimeout = defaultClearTimeout;
  41694. }
  41695. } catch (e) {
  41696. cachedClearTimeout = defaultClearTimeout;
  41697. }
  41698. } ())
  41699. function runTimeout(fun) {
  41700. if (cachedSetTimeout === setTimeout) {
  41701. //normal enviroments in sane situations
  41702. return setTimeout(fun, 0);
  41703. }
  41704. // if setTimeout wasn't available but was latter defined
  41705. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  41706. cachedSetTimeout = setTimeout;
  41707. return setTimeout(fun, 0);
  41708. }
  41709. try {
  41710. // when when somebody has screwed with setTimeout but no I.E. maddness
  41711. return cachedSetTimeout(fun, 0);
  41712. } catch(e){
  41713. try {
  41714. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  41715. return cachedSetTimeout.call(null, fun, 0);
  41716. } catch(e){
  41717. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  41718. return cachedSetTimeout.call(this, fun, 0);
  41719. }
  41720. }
  41721. }
  41722. function runClearTimeout(marker) {
  41723. if (cachedClearTimeout === clearTimeout) {
  41724. //normal enviroments in sane situations
  41725. return clearTimeout(marker);
  41726. }
  41727. // if clearTimeout wasn't available but was latter defined
  41728. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  41729. cachedClearTimeout = clearTimeout;
  41730. return clearTimeout(marker);
  41731. }
  41732. try {
  41733. // when when somebody has screwed with setTimeout but no I.E. maddness
  41734. return cachedClearTimeout(marker);
  41735. } catch (e){
  41736. try {
  41737. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  41738. return cachedClearTimeout.call(null, marker);
  41739. } catch (e){
  41740. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  41741. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  41742. return cachedClearTimeout.call(this, marker);
  41743. }
  41744. }
  41745. }
  41746. var queue = [];
  41747. var draining = false;
  41748. var currentQueue;
  41749. var queueIndex = -1;
  41750. function cleanUpNextTick() {
  41751. if (!draining || !currentQueue) {
  41752. return;
  41753. }
  41754. draining = false;
  41755. if (currentQueue.length) {
  41756. queue = currentQueue.concat(queue);
  41757. } else {
  41758. queueIndex = -1;
  41759. }
  41760. if (queue.length) {
  41761. drainQueue();
  41762. }
  41763. }
  41764. function drainQueue() {
  41765. if (draining) {
  41766. return;
  41767. }
  41768. var timeout = runTimeout(cleanUpNextTick);
  41769. draining = true;
  41770. var len = queue.length;
  41771. while(len) {
  41772. currentQueue = queue;
  41773. queue = [];
  41774. while (++queueIndex < len) {
  41775. if (currentQueue) {
  41776. currentQueue[queueIndex].run();
  41777. }
  41778. }
  41779. queueIndex = -1;
  41780. len = queue.length;
  41781. }
  41782. currentQueue = null;
  41783. draining = false;
  41784. runClearTimeout(timeout);
  41785. }
  41786. process.nextTick = function (fun) {
  41787. var args = new Array(arguments.length - 1);
  41788. if (arguments.length > 1) {
  41789. for (var i = 1; i < arguments.length; i++) {
  41790. args[i - 1] = arguments[i];
  41791. }
  41792. }
  41793. queue.push(new Item(fun, args));
  41794. if (queue.length === 1 && !draining) {
  41795. runTimeout(drainQueue);
  41796. }
  41797. };
  41798. // v8 likes predictible objects
  41799. function Item(fun, array) {
  41800. this.fun = fun;
  41801. this.array = array;
  41802. }
  41803. Item.prototype.run = function () {
  41804. this.fun.apply(null, this.array);
  41805. };
  41806. process.title = 'browser';
  41807. process.browser = true;
  41808. process.env = {};
  41809. process.argv = [];
  41810. process.version = ''; // empty string to avoid regexp issues
  41811. process.versions = {};
  41812. function noop() {}
  41813. process.on = noop;
  41814. process.addListener = noop;
  41815. process.once = noop;
  41816. process.off = noop;
  41817. process.removeListener = noop;
  41818. process.removeAllListeners = noop;
  41819. process.emit = noop;
  41820. process.prependListener = noop;
  41821. process.prependOnceListener = noop;
  41822. process.listeners = function (name) { return [] }
  41823. process.binding = function (name) {
  41824. throw new Error('process.binding is not supported');
  41825. };
  41826. process.cwd = function () { return '/' };
  41827. process.chdir = function (dir) {
  41828. throw new Error('process.chdir is not supported');
  41829. };
  41830. process.umask = function() { return 0; };
  41831. /***/ }),
  41832. /***/ "./node_modules/quill/dist/quill.js":
  41833. /*!******************************************!*\
  41834. !*** ./node_modules/quill/dist/quill.js ***!
  41835. \******************************************/
  41836. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  41837. /* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js")["Buffer"];
  41838. /*!
  41839. * Quill Editor v1.3.7
  41840. * https://quilljs.com/
  41841. * Copyright (c) 2014, Jason Chen
  41842. * Copyright (c) 2013, salesforce.com
  41843. */
  41844. (function webpackUniversalModuleDefinition(root, factory) {
  41845. if(true)
  41846. module.exports = factory();
  41847. else {}
  41848. })(typeof self !== 'undefined' ? self : this, function() {
  41849. return /******/ (function(modules) { // webpackBootstrap
  41850. /******/ // The module cache
  41851. /******/ var installedModules = {};
  41852. /******/
  41853. /******/ // The require function
  41854. /******/ function __nested_webpack_require_697__(moduleId) {
  41855. /******/
  41856. /******/ // Check if module is in cache
  41857. /******/ if(installedModules[moduleId]) {
  41858. /******/ return installedModules[moduleId].exports;
  41859. /******/ }
  41860. /******/ // Create a new module (and put it into the cache)
  41861. /******/ var module = installedModules[moduleId] = {
  41862. /******/ i: moduleId,
  41863. /******/ l: false,
  41864. /******/ exports: {}
  41865. /******/ };
  41866. /******/
  41867. /******/ // Execute the module function
  41868. /******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_697__);
  41869. /******/
  41870. /******/ // Flag the module as loaded
  41871. /******/ module.l = true;
  41872. /******/
  41873. /******/ // Return the exports of the module
  41874. /******/ return module.exports;
  41875. /******/ }
  41876. /******/
  41877. /******/
  41878. /******/ // expose the modules object (__webpack_modules__)
  41879. /******/ __nested_webpack_require_697__.m = modules;
  41880. /******/
  41881. /******/ // expose the module cache
  41882. /******/ __nested_webpack_require_697__.c = installedModules;
  41883. /******/
  41884. /******/ // define getter function for harmony exports
  41885. /******/ __nested_webpack_require_697__.d = function(exports, name, getter) {
  41886. /******/ if(!__nested_webpack_require_697__.o(exports, name)) {
  41887. /******/ Object.defineProperty(exports, name, {
  41888. /******/ configurable: false,
  41889. /******/ enumerable: true,
  41890. /******/ get: getter
  41891. /******/ });
  41892. /******/ }
  41893. /******/ };
  41894. /******/
  41895. /******/ // getDefaultExport function for compatibility with non-harmony modules
  41896. /******/ __nested_webpack_require_697__.n = function(module) {
  41897. /******/ var getter = module && module.__esModule ?
  41898. /******/ function getDefault() { return module['default']; } :
  41899. /******/ function getModuleExports() { return module; };
  41900. /******/ __nested_webpack_require_697__.d(getter, 'a', getter);
  41901. /******/ return getter;
  41902. /******/ };
  41903. /******/
  41904. /******/ // Object.prototype.hasOwnProperty.call
  41905. /******/ __nested_webpack_require_697__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  41906. /******/
  41907. /******/ // __webpack_public_path__
  41908. /******/ __nested_webpack_require_697__.p = "";
  41909. /******/
  41910. /******/ // Load entry module and return exports
  41911. /******/ return __nested_webpack_require_697__(__nested_webpack_require_697__.s = 109);
  41912. /******/ })
  41913. /************************************************************************/
  41914. /******/ ([
  41915. /* 0 */
  41916. /***/ (function(module, exports, __nested_webpack_require_2976__) {
  41917. "use strict";
  41918. Object.defineProperty(exports, "__esModule", { value: true });
  41919. var container_1 = __nested_webpack_require_2976__(17);
  41920. var format_1 = __nested_webpack_require_2976__(18);
  41921. var leaf_1 = __nested_webpack_require_2976__(19);
  41922. var scroll_1 = __nested_webpack_require_2976__(45);
  41923. var inline_1 = __nested_webpack_require_2976__(46);
  41924. var block_1 = __nested_webpack_require_2976__(47);
  41925. var embed_1 = __nested_webpack_require_2976__(48);
  41926. var text_1 = __nested_webpack_require_2976__(49);
  41927. var attributor_1 = __nested_webpack_require_2976__(12);
  41928. var class_1 = __nested_webpack_require_2976__(32);
  41929. var style_1 = __nested_webpack_require_2976__(33);
  41930. var store_1 = __nested_webpack_require_2976__(31);
  41931. var Registry = __nested_webpack_require_2976__(1);
  41932. var Parchment = {
  41933. Scope: Registry.Scope,
  41934. create: Registry.create,
  41935. find: Registry.find,
  41936. query: Registry.query,
  41937. register: Registry.register,
  41938. Container: container_1.default,
  41939. Format: format_1.default,
  41940. Leaf: leaf_1.default,
  41941. Embed: embed_1.default,
  41942. Scroll: scroll_1.default,
  41943. Block: block_1.default,
  41944. Inline: inline_1.default,
  41945. Text: text_1.default,
  41946. Attributor: {
  41947. Attribute: attributor_1.default,
  41948. Class: class_1.default,
  41949. Style: style_1.default,
  41950. Store: store_1.default,
  41951. },
  41952. };
  41953. exports.default = Parchment;
  41954. /***/ }),
  41955. /* 1 */
  41956. /***/ (function(module, exports, __webpack_require__) {
  41957. "use strict";
  41958. var __extends = (this && this.__extends) || (function () {
  41959. var extendStatics = Object.setPrototypeOf ||
  41960. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  41961. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  41962. return function (d, b) {
  41963. extendStatics(d, b);
  41964. function __() { this.constructor = d; }
  41965. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  41966. };
  41967. })();
  41968. Object.defineProperty(exports, "__esModule", { value: true });
  41969. var ParchmentError = /** @class */ (function (_super) {
  41970. __extends(ParchmentError, _super);
  41971. function ParchmentError(message) {
  41972. var _this = this;
  41973. message = '[Parchment] ' + message;
  41974. _this = _super.call(this, message) || this;
  41975. _this.message = message;
  41976. _this.name = _this.constructor.name;
  41977. return _this;
  41978. }
  41979. return ParchmentError;
  41980. }(Error));
  41981. exports.ParchmentError = ParchmentError;
  41982. var attributes = {};
  41983. var classes = {};
  41984. var tags = {};
  41985. var types = {};
  41986. exports.DATA_KEY = '__blot';
  41987. var Scope;
  41988. (function (Scope) {
  41989. Scope[Scope["TYPE"] = 3] = "TYPE";
  41990. Scope[Scope["LEVEL"] = 12] = "LEVEL";
  41991. Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";
  41992. Scope[Scope["BLOT"] = 14] = "BLOT";
  41993. Scope[Scope["INLINE"] = 7] = "INLINE";
  41994. Scope[Scope["BLOCK"] = 11] = "BLOCK";
  41995. Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
  41996. Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";
  41997. Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
  41998. Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
  41999. Scope[Scope["ANY"] = 15] = "ANY";
  42000. })(Scope = exports.Scope || (exports.Scope = {}));
  42001. function create(input, value) {
  42002. var match = query(input);
  42003. if (match == null) {
  42004. throw new ParchmentError("Unable to create " + input + " blot");
  42005. }
  42006. var BlotClass = match;
  42007. var node =
  42008. // @ts-ignore
  42009. input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);
  42010. return new BlotClass(node, value);
  42011. }
  42012. exports.create = create;
  42013. function find(node, bubble) {
  42014. if (bubble === void 0) { bubble = false; }
  42015. if (node == null)
  42016. return null;
  42017. // @ts-ignore
  42018. if (node[exports.DATA_KEY] != null)
  42019. return node[exports.DATA_KEY].blot;
  42020. if (bubble)
  42021. return find(node.parentNode, bubble);
  42022. return null;
  42023. }
  42024. exports.find = find;
  42025. function query(query, scope) {
  42026. if (scope === void 0) { scope = Scope.ANY; }
  42027. var match;
  42028. if (typeof query === 'string') {
  42029. match = types[query] || attributes[query];
  42030. // @ts-ignore
  42031. }
  42032. else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {
  42033. match = types['text'];
  42034. }
  42035. else if (typeof query === 'number') {
  42036. if (query & Scope.LEVEL & Scope.BLOCK) {
  42037. match = types['block'];
  42038. }
  42039. else if (query & Scope.LEVEL & Scope.INLINE) {
  42040. match = types['inline'];
  42041. }
  42042. }
  42043. else if (query instanceof HTMLElement) {
  42044. var names = (query.getAttribute('class') || '').split(/\s+/);
  42045. for (var i in names) {
  42046. match = classes[names[i]];
  42047. if (match)
  42048. break;
  42049. }
  42050. match = match || tags[query.tagName];
  42051. }
  42052. if (match == null)
  42053. return null;
  42054. // @ts-ignore
  42055. if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
  42056. return match;
  42057. return null;
  42058. }
  42059. exports.query = query;
  42060. function register() {
  42061. var Definitions = [];
  42062. for (var _i = 0; _i < arguments.length; _i++) {
  42063. Definitions[_i] = arguments[_i];
  42064. }
  42065. if (Definitions.length > 1) {
  42066. return Definitions.map(function (d) {
  42067. return register(d);
  42068. });
  42069. }
  42070. var Definition = Definitions[0];
  42071. if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {
  42072. throw new ParchmentError('Invalid definition');
  42073. }
  42074. else if (Definition.blotName === 'abstract') {
  42075. throw new ParchmentError('Cannot register abstract class');
  42076. }
  42077. types[Definition.blotName || Definition.attrName] = Definition;
  42078. if (typeof Definition.keyName === 'string') {
  42079. attributes[Definition.keyName] = Definition;
  42080. }
  42081. else {
  42082. if (Definition.className != null) {
  42083. classes[Definition.className] = Definition;
  42084. }
  42085. if (Definition.tagName != null) {
  42086. if (Array.isArray(Definition.tagName)) {
  42087. Definition.tagName = Definition.tagName.map(function (tagName) {
  42088. return tagName.toUpperCase();
  42089. });
  42090. }
  42091. else {
  42092. Definition.tagName = Definition.tagName.toUpperCase();
  42093. }
  42094. var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
  42095. tagNames.forEach(function (tag) {
  42096. if (tags[tag] == null || Definition.className == null) {
  42097. tags[tag] = Definition;
  42098. }
  42099. });
  42100. }
  42101. }
  42102. return Definition;
  42103. }
  42104. exports.register = register;
  42105. /***/ }),
  42106. /* 2 */
  42107. /***/ (function(module, exports, __nested_webpack_require_9445__) {
  42108. var diff = __nested_webpack_require_9445__(51);
  42109. var equal = __nested_webpack_require_9445__(11);
  42110. var extend = __nested_webpack_require_9445__(3);
  42111. var op = __nested_webpack_require_9445__(20);
  42112. var NULL_CHARACTER = String.fromCharCode(0); // Placeholder char for embed in diff()
  42113. var Delta = function (ops) {
  42114. // Assume we are given a well formed ops
  42115. if (Array.isArray(ops)) {
  42116. this.ops = ops;
  42117. } else if (ops != null && Array.isArray(ops.ops)) {
  42118. this.ops = ops.ops;
  42119. } else {
  42120. this.ops = [];
  42121. }
  42122. };
  42123. Delta.prototype.insert = function (text, attributes) {
  42124. var newOp = {};
  42125. if (text.length === 0) return this;
  42126. newOp.insert = text;
  42127. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42128. newOp.attributes = attributes;
  42129. }
  42130. return this.push(newOp);
  42131. };
  42132. Delta.prototype['delete'] = function (length) {
  42133. if (length <= 0) return this;
  42134. return this.push({ 'delete': length });
  42135. };
  42136. Delta.prototype.retain = function (length, attributes) {
  42137. if (length <= 0) return this;
  42138. var newOp = { retain: length };
  42139. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42140. newOp.attributes = attributes;
  42141. }
  42142. return this.push(newOp);
  42143. };
  42144. Delta.prototype.push = function (newOp) {
  42145. var index = this.ops.length;
  42146. var lastOp = this.ops[index - 1];
  42147. newOp = extend(true, {}, newOp);
  42148. if (typeof lastOp === 'object') {
  42149. if (typeof newOp['delete'] === 'number' && typeof lastOp['delete'] === 'number') {
  42150. this.ops[index - 1] = { 'delete': lastOp['delete'] + newOp['delete'] };
  42151. return this;
  42152. }
  42153. // Since it does not matter if we insert before or after deleting at the same index,
  42154. // always prefer to insert first
  42155. if (typeof lastOp['delete'] === 'number' && newOp.insert != null) {
  42156. index -= 1;
  42157. lastOp = this.ops[index - 1];
  42158. if (typeof lastOp !== 'object') {
  42159. this.ops.unshift(newOp);
  42160. return this;
  42161. }
  42162. }
  42163. if (equal(newOp.attributes, lastOp.attributes)) {
  42164. if (typeof newOp.insert === 'string' && typeof lastOp.insert === 'string') {
  42165. this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };
  42166. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42167. return this;
  42168. } else if (typeof newOp.retain === 'number' && typeof lastOp.retain === 'number') {
  42169. this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };
  42170. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42171. return this;
  42172. }
  42173. }
  42174. }
  42175. if (index === this.ops.length) {
  42176. this.ops.push(newOp);
  42177. } else {
  42178. this.ops.splice(index, 0, newOp);
  42179. }
  42180. return this;
  42181. };
  42182. Delta.prototype.chop = function () {
  42183. var lastOp = this.ops[this.ops.length - 1];
  42184. if (lastOp && lastOp.retain && !lastOp.attributes) {
  42185. this.ops.pop();
  42186. }
  42187. return this;
  42188. };
  42189. Delta.prototype.filter = function (predicate) {
  42190. return this.ops.filter(predicate);
  42191. };
  42192. Delta.prototype.forEach = function (predicate) {
  42193. this.ops.forEach(predicate);
  42194. };
  42195. Delta.prototype.map = function (predicate) {
  42196. return this.ops.map(predicate);
  42197. };
  42198. Delta.prototype.partition = function (predicate) {
  42199. var passed = [], failed = [];
  42200. this.forEach(function(op) {
  42201. var target = predicate(op) ? passed : failed;
  42202. target.push(op);
  42203. });
  42204. return [passed, failed];
  42205. };
  42206. Delta.prototype.reduce = function (predicate, initial) {
  42207. return this.ops.reduce(predicate, initial);
  42208. };
  42209. Delta.prototype.changeLength = function () {
  42210. return this.reduce(function (length, elem) {
  42211. if (elem.insert) {
  42212. return length + op.length(elem);
  42213. } else if (elem.delete) {
  42214. return length - elem.delete;
  42215. }
  42216. return length;
  42217. }, 0);
  42218. };
  42219. Delta.prototype.length = function () {
  42220. return this.reduce(function (length, elem) {
  42221. return length + op.length(elem);
  42222. }, 0);
  42223. };
  42224. Delta.prototype.slice = function (start, end) {
  42225. start = start || 0;
  42226. if (typeof end !== 'number') end = Infinity;
  42227. var ops = [];
  42228. var iter = op.iterator(this.ops);
  42229. var index = 0;
  42230. while (index < end && iter.hasNext()) {
  42231. var nextOp;
  42232. if (index < start) {
  42233. nextOp = iter.next(start - index);
  42234. } else {
  42235. nextOp = iter.next(end - index);
  42236. ops.push(nextOp);
  42237. }
  42238. index += op.length(nextOp);
  42239. }
  42240. return new Delta(ops);
  42241. };
  42242. Delta.prototype.compose = function (other) {
  42243. var thisIter = op.iterator(this.ops);
  42244. var otherIter = op.iterator(other.ops);
  42245. var ops = [];
  42246. var firstOther = otherIter.peek();
  42247. if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) {
  42248. var firstLeft = firstOther.retain;
  42249. while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) {
  42250. firstLeft -= thisIter.peekLength();
  42251. ops.push(thisIter.next());
  42252. }
  42253. if (firstOther.retain - firstLeft > 0) {
  42254. otherIter.next(firstOther.retain - firstLeft);
  42255. }
  42256. }
  42257. var delta = new Delta(ops);
  42258. while (thisIter.hasNext() || otherIter.hasNext()) {
  42259. if (otherIter.peekType() === 'insert') {
  42260. delta.push(otherIter.next());
  42261. } else if (thisIter.peekType() === 'delete') {
  42262. delta.push(thisIter.next());
  42263. } else {
  42264. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42265. var thisOp = thisIter.next(length);
  42266. var otherOp = otherIter.next(length);
  42267. if (typeof otherOp.retain === 'number') {
  42268. var newOp = {};
  42269. if (typeof thisOp.retain === 'number') {
  42270. newOp.retain = length;
  42271. } else {
  42272. newOp.insert = thisOp.insert;
  42273. }
  42274. // Preserve null when composing with a retain, otherwise remove it for inserts
  42275. var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');
  42276. if (attributes) newOp.attributes = attributes;
  42277. delta.push(newOp);
  42278. // Optimization if rest of other is just retain
  42279. if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {
  42280. var rest = new Delta(thisIter.rest());
  42281. return delta.concat(rest).chop();
  42282. }
  42283. // Other op should be delete, we could be an insert or retain
  42284. // Insert + delete cancels out
  42285. } else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') {
  42286. delta.push(otherOp);
  42287. }
  42288. }
  42289. }
  42290. return delta.chop();
  42291. };
  42292. Delta.prototype.concat = function (other) {
  42293. var delta = new Delta(this.ops.slice());
  42294. if (other.ops.length > 0) {
  42295. delta.push(other.ops[0]);
  42296. delta.ops = delta.ops.concat(other.ops.slice(1));
  42297. }
  42298. return delta;
  42299. };
  42300. Delta.prototype.diff = function (other, index) {
  42301. if (this.ops === other.ops) {
  42302. return new Delta();
  42303. }
  42304. var strings = [this, other].map(function (delta) {
  42305. return delta.map(function (op) {
  42306. if (op.insert != null) {
  42307. return typeof op.insert === 'string' ? op.insert : NULL_CHARACTER;
  42308. }
  42309. var prep = (delta === other) ? 'on' : 'with';
  42310. throw new Error('diff() called ' + prep + ' non-document');
  42311. }).join('');
  42312. });
  42313. var delta = new Delta();
  42314. var diffResult = diff(strings[0], strings[1], index);
  42315. var thisIter = op.iterator(this.ops);
  42316. var otherIter = op.iterator(other.ops);
  42317. diffResult.forEach(function (component) {
  42318. var length = component[1].length;
  42319. while (length > 0) {
  42320. var opLength = 0;
  42321. switch (component[0]) {
  42322. case diff.INSERT:
  42323. opLength = Math.min(otherIter.peekLength(), length);
  42324. delta.push(otherIter.next(opLength));
  42325. break;
  42326. case diff.DELETE:
  42327. opLength = Math.min(length, thisIter.peekLength());
  42328. thisIter.next(opLength);
  42329. delta['delete'](opLength);
  42330. break;
  42331. case diff.EQUAL:
  42332. opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);
  42333. var thisOp = thisIter.next(opLength);
  42334. var otherOp = otherIter.next(opLength);
  42335. if (equal(thisOp.insert, otherOp.insert)) {
  42336. delta.retain(opLength, op.attributes.diff(thisOp.attributes, otherOp.attributes));
  42337. } else {
  42338. delta.push(otherOp)['delete'](opLength);
  42339. }
  42340. break;
  42341. }
  42342. length -= opLength;
  42343. }
  42344. });
  42345. return delta.chop();
  42346. };
  42347. Delta.prototype.eachLine = function (predicate, newline) {
  42348. newline = newline || '\n';
  42349. var iter = op.iterator(this.ops);
  42350. var line = new Delta();
  42351. var i = 0;
  42352. while (iter.hasNext()) {
  42353. if (iter.peekType() !== 'insert') return;
  42354. var thisOp = iter.peek();
  42355. var start = op.length(thisOp) - iter.peekLength();
  42356. var index = typeof thisOp.insert === 'string' ?
  42357. thisOp.insert.indexOf(newline, start) - start : -1;
  42358. if (index < 0) {
  42359. line.push(iter.next());
  42360. } else if (index > 0) {
  42361. line.push(iter.next(index));
  42362. } else {
  42363. if (predicate(line, iter.next(1).attributes || {}, i) === false) {
  42364. return;
  42365. }
  42366. i += 1;
  42367. line = new Delta();
  42368. }
  42369. }
  42370. if (line.length() > 0) {
  42371. predicate(line, {}, i);
  42372. }
  42373. };
  42374. Delta.prototype.transform = function (other, priority) {
  42375. priority = !!priority;
  42376. if (typeof other === 'number') {
  42377. return this.transformPosition(other, priority);
  42378. }
  42379. var thisIter = op.iterator(this.ops);
  42380. var otherIter = op.iterator(other.ops);
  42381. var delta = new Delta();
  42382. while (thisIter.hasNext() || otherIter.hasNext()) {
  42383. if (thisIter.peekType() === 'insert' && (priority || otherIter.peekType() !== 'insert')) {
  42384. delta.retain(op.length(thisIter.next()));
  42385. } else if (otherIter.peekType() === 'insert') {
  42386. delta.push(otherIter.next());
  42387. } else {
  42388. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42389. var thisOp = thisIter.next(length);
  42390. var otherOp = otherIter.next(length);
  42391. if (thisOp['delete']) {
  42392. // Our delete either makes their delete redundant or removes their retain
  42393. continue;
  42394. } else if (otherOp['delete']) {
  42395. delta.push(otherOp);
  42396. } else {
  42397. // We retain either their retain or insert
  42398. delta.retain(length, op.attributes.transform(thisOp.attributes, otherOp.attributes, priority));
  42399. }
  42400. }
  42401. }
  42402. return delta.chop();
  42403. };
  42404. Delta.prototype.transformPosition = function (index, priority) {
  42405. priority = !!priority;
  42406. var thisIter = op.iterator(this.ops);
  42407. var offset = 0;
  42408. while (thisIter.hasNext() && offset <= index) {
  42409. var length = thisIter.peekLength();
  42410. var nextType = thisIter.peekType();
  42411. thisIter.next();
  42412. if (nextType === 'delete') {
  42413. index -= Math.min(length, index - offset);
  42414. continue;
  42415. } else if (nextType === 'insert' && (offset < index || !priority)) {
  42416. index += length;
  42417. }
  42418. offset += length;
  42419. }
  42420. return index;
  42421. };
  42422. module.exports = Delta;
  42423. /***/ }),
  42424. /* 3 */
  42425. /***/ (function(module, exports) {
  42426. 'use strict';
  42427. var hasOwn = Object.prototype.hasOwnProperty;
  42428. var toStr = Object.prototype.toString;
  42429. var defineProperty = Object.defineProperty;
  42430. var gOPD = Object.getOwnPropertyDescriptor;
  42431. var isArray = function isArray(arr) {
  42432. if (typeof Array.isArray === 'function') {
  42433. return Array.isArray(arr);
  42434. }
  42435. return toStr.call(arr) === '[object Array]';
  42436. };
  42437. var isPlainObject = function isPlainObject(obj) {
  42438. if (!obj || toStr.call(obj) !== '[object Object]') {
  42439. return false;
  42440. }
  42441. var hasOwnConstructor = hasOwn.call(obj, 'constructor');
  42442. var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
  42443. // Not own constructor property must be Object
  42444. if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
  42445. return false;
  42446. }
  42447. // Own properties are enumerated firstly, so to speed up,
  42448. // if last one is own, then all properties are own.
  42449. var key;
  42450. for (key in obj) { /**/ }
  42451. return typeof key === 'undefined' || hasOwn.call(obj, key);
  42452. };
  42453. // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
  42454. var setProperty = function setProperty(target, options) {
  42455. if (defineProperty && options.name === '__proto__') {
  42456. defineProperty(target, options.name, {
  42457. enumerable: true,
  42458. configurable: true,
  42459. value: options.newValue,
  42460. writable: true
  42461. });
  42462. } else {
  42463. target[options.name] = options.newValue;
  42464. }
  42465. };
  42466. // Return undefined instead of __proto__ if '__proto__' is not an own property
  42467. var getProperty = function getProperty(obj, name) {
  42468. if (name === '__proto__') {
  42469. if (!hasOwn.call(obj, name)) {
  42470. return void 0;
  42471. } else if (gOPD) {
  42472. // In early versions of node, obj['__proto__'] is buggy when obj has
  42473. // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
  42474. return gOPD(obj, name).value;
  42475. }
  42476. }
  42477. return obj[name];
  42478. };
  42479. module.exports = function extend() {
  42480. var options, name, src, copy, copyIsArray, clone;
  42481. var target = arguments[0];
  42482. var i = 1;
  42483. var length = arguments.length;
  42484. var deep = false;
  42485. // Handle a deep copy situation
  42486. if (typeof target === 'boolean') {
  42487. deep = target;
  42488. target = arguments[1] || {};
  42489. // skip the boolean and the target
  42490. i = 2;
  42491. }
  42492. if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {
  42493. target = {};
  42494. }
  42495. for (; i < length; ++i) {
  42496. options = arguments[i];
  42497. // Only deal with non-null/undefined values
  42498. if (options != null) {
  42499. // Extend the base object
  42500. for (name in options) {
  42501. src = getProperty(target, name);
  42502. copy = getProperty(options, name);
  42503. // Prevent never-ending loop
  42504. if (target !== copy) {
  42505. // Recurse if we're merging plain objects or arrays
  42506. if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
  42507. if (copyIsArray) {
  42508. copyIsArray = false;
  42509. clone = src && isArray(src) ? src : [];
  42510. } else {
  42511. clone = src && isPlainObject(src) ? src : {};
  42512. }
  42513. // Never move original objects, clone them
  42514. setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
  42515. // Don't bring in undefined values
  42516. } else if (typeof copy !== 'undefined') {
  42517. setProperty(target, { name: name, newValue: copy });
  42518. }
  42519. }
  42520. }
  42521. }
  42522. }
  42523. // Return the modified object
  42524. return target;
  42525. };
  42526. /***/ }),
  42527. /* 4 */
  42528. /***/ (function(module, exports, __nested_webpack_require_23616__) {
  42529. "use strict";
  42530. Object.defineProperty(exports, "__esModule", {
  42531. value: true
  42532. });
  42533. exports.default = exports.BlockEmbed = exports.bubbleFormats = undefined;
  42534. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42535. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  42536. var _extend = __nested_webpack_require_23616__(3);
  42537. var _extend2 = _interopRequireDefault(_extend);
  42538. var _quillDelta = __nested_webpack_require_23616__(2);
  42539. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  42540. var _parchment = __nested_webpack_require_23616__(0);
  42541. var _parchment2 = _interopRequireDefault(_parchment);
  42542. var _break = __nested_webpack_require_23616__(16);
  42543. var _break2 = _interopRequireDefault(_break);
  42544. var _inline = __nested_webpack_require_23616__(6);
  42545. var _inline2 = _interopRequireDefault(_inline);
  42546. var _text = __nested_webpack_require_23616__(7);
  42547. var _text2 = _interopRequireDefault(_text);
  42548. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42549. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42550. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42551. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  42552. var NEWLINE_LENGTH = 1;
  42553. var BlockEmbed = function (_Parchment$Embed) {
  42554. _inherits(BlockEmbed, _Parchment$Embed);
  42555. function BlockEmbed() {
  42556. _classCallCheck(this, BlockEmbed);
  42557. return _possibleConstructorReturn(this, (BlockEmbed.__proto__ || Object.getPrototypeOf(BlockEmbed)).apply(this, arguments));
  42558. }
  42559. _createClass(BlockEmbed, [{
  42560. key: 'attach',
  42561. value: function attach() {
  42562. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'attach', this).call(this);
  42563. this.attributes = new _parchment2.default.Attributor.Store(this.domNode);
  42564. }
  42565. }, {
  42566. key: 'delta',
  42567. value: function delta() {
  42568. return new _quillDelta2.default().insert(this.value(), (0, _extend2.default)(this.formats(), this.attributes.values()));
  42569. }
  42570. }, {
  42571. key: 'format',
  42572. value: function format(name, value) {
  42573. var attribute = _parchment2.default.query(name, _parchment2.default.Scope.BLOCK_ATTRIBUTE);
  42574. if (attribute != null) {
  42575. this.attributes.attribute(attribute, value);
  42576. }
  42577. }
  42578. }, {
  42579. key: 'formatAt',
  42580. value: function formatAt(index, length, name, value) {
  42581. this.format(name, value);
  42582. }
  42583. }, {
  42584. key: 'insertAt',
  42585. value: function insertAt(index, value, def) {
  42586. if (typeof value === 'string' && value.endsWith('\n')) {
  42587. var block = _parchment2.default.create(Block.blotName);
  42588. this.parent.insertBefore(block, index === 0 ? this : this.next);
  42589. block.insertAt(0, value.slice(0, -1));
  42590. } else {
  42591. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'insertAt', this).call(this, index, value, def);
  42592. }
  42593. }
  42594. }]);
  42595. return BlockEmbed;
  42596. }(_parchment2.default.Embed);
  42597. BlockEmbed.scope = _parchment2.default.Scope.BLOCK_BLOT;
  42598. // It is important for cursor behavior BlockEmbeds use tags that are block level elements
  42599. var Block = function (_Parchment$Block) {
  42600. _inherits(Block, _Parchment$Block);
  42601. function Block(domNode) {
  42602. _classCallCheck(this, Block);
  42603. var _this2 = _possibleConstructorReturn(this, (Block.__proto__ || Object.getPrototypeOf(Block)).call(this, domNode));
  42604. _this2.cache = {};
  42605. return _this2;
  42606. }
  42607. _createClass(Block, [{
  42608. key: 'delta',
  42609. value: function delta() {
  42610. if (this.cache.delta == null) {
  42611. this.cache.delta = this.descendants(_parchment2.default.Leaf).reduce(function (delta, leaf) {
  42612. if (leaf.length() === 0) {
  42613. return delta;
  42614. } else {
  42615. return delta.insert(leaf.value(), bubbleFormats(leaf));
  42616. }
  42617. }, new _quillDelta2.default()).insert('\n', bubbleFormats(this));
  42618. }
  42619. return this.cache.delta;
  42620. }
  42621. }, {
  42622. key: 'deleteAt',
  42623. value: function deleteAt(index, length) {
  42624. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'deleteAt', this).call(this, index, length);
  42625. this.cache = {};
  42626. }
  42627. }, {
  42628. key: 'formatAt',
  42629. value: function formatAt(index, length, name, value) {
  42630. if (length <= 0) return;
  42631. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  42632. if (index + length === this.length()) {
  42633. this.format(name, value);
  42634. }
  42635. } else {
  42636. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'formatAt', this).call(this, index, Math.min(length, this.length() - index - 1), name, value);
  42637. }
  42638. this.cache = {};
  42639. }
  42640. }, {
  42641. key: 'insertAt',
  42642. value: function insertAt(index, value, def) {
  42643. if (def != null) return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, index, value, def);
  42644. if (value.length === 0) return;
  42645. var lines = value.split('\n');
  42646. var text = lines.shift();
  42647. if (text.length > 0) {
  42648. if (index < this.length() - 1 || this.children.tail == null) {
  42649. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, Math.min(index, this.length() - 1), text);
  42650. } else {
  42651. this.children.tail.insertAt(this.children.tail.length(), text);
  42652. }
  42653. this.cache = {};
  42654. }
  42655. var block = this;
  42656. lines.reduce(function (index, line) {
  42657. block = block.split(index, true);
  42658. block.insertAt(0, line);
  42659. return line.length;
  42660. }, index + text.length);
  42661. }
  42662. }, {
  42663. key: 'insertBefore',
  42664. value: function insertBefore(blot, ref) {
  42665. var head = this.children.head;
  42666. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertBefore', this).call(this, blot, ref);
  42667. if (head instanceof _break2.default) {
  42668. head.remove();
  42669. }
  42670. this.cache = {};
  42671. }
  42672. }, {
  42673. key: 'length',
  42674. value: function length() {
  42675. if (this.cache.length == null) {
  42676. this.cache.length = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'length', this).call(this) + NEWLINE_LENGTH;
  42677. }
  42678. return this.cache.length;
  42679. }
  42680. }, {
  42681. key: 'moveChildren',
  42682. value: function moveChildren(target, ref) {
  42683. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'moveChildren', this).call(this, target, ref);
  42684. this.cache = {};
  42685. }
  42686. }, {
  42687. key: 'optimize',
  42688. value: function optimize(context) {
  42689. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'optimize', this).call(this, context);
  42690. this.cache = {};
  42691. }
  42692. }, {
  42693. key: 'path',
  42694. value: function path(index) {
  42695. return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'path', this).call(this, index, true);
  42696. }
  42697. }, {
  42698. key: 'removeChild',
  42699. value: function removeChild(child) {
  42700. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'removeChild', this).call(this, child);
  42701. this.cache = {};
  42702. }
  42703. }, {
  42704. key: 'split',
  42705. value: function split(index) {
  42706. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  42707. if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {
  42708. var clone = this.clone();
  42709. if (index === 0) {
  42710. this.parent.insertBefore(clone, this);
  42711. return this;
  42712. } else {
  42713. this.parent.insertBefore(clone, this.next);
  42714. return clone;
  42715. }
  42716. } else {
  42717. var next = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'split', this).call(this, index, force);
  42718. this.cache = {};
  42719. return next;
  42720. }
  42721. }
  42722. }]);
  42723. return Block;
  42724. }(_parchment2.default.Block);
  42725. Block.blotName = 'block';
  42726. Block.tagName = 'P';
  42727. Block.defaultChild = 'break';
  42728. Block.allowedChildren = [_inline2.default, _parchment2.default.Embed, _text2.default];
  42729. function bubbleFormats(blot) {
  42730. var formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  42731. if (blot == null) return formats;
  42732. if (typeof blot.formats === 'function') {
  42733. formats = (0, _extend2.default)(formats, blot.formats());
  42734. }
  42735. if (blot.parent == null || blot.parent.blotName == 'scroll' || blot.parent.statics.scope !== blot.statics.scope) {
  42736. return formats;
  42737. }
  42738. return bubbleFormats(blot.parent, formats);
  42739. }
  42740. exports.bubbleFormats = bubbleFormats;
  42741. exports.BlockEmbed = BlockEmbed;
  42742. exports.default = Block;
  42743. /***/ }),
  42744. /* 5 */
  42745. /***/ (function(module, exports, __nested_webpack_require_33760__) {
  42746. "use strict";
  42747. Object.defineProperty(exports, "__esModule", {
  42748. value: true
  42749. });
  42750. exports.default = exports.overload = exports.expandConfig = undefined;
  42751. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  42752. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  42753. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42754. __nested_webpack_require_33760__(50);
  42755. var _quillDelta = __nested_webpack_require_33760__(2);
  42756. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  42757. var _editor = __nested_webpack_require_33760__(14);
  42758. var _editor2 = _interopRequireDefault(_editor);
  42759. var _emitter3 = __nested_webpack_require_33760__(8);
  42760. var _emitter4 = _interopRequireDefault(_emitter3);
  42761. var _module = __nested_webpack_require_33760__(9);
  42762. var _module2 = _interopRequireDefault(_module);
  42763. var _parchment = __nested_webpack_require_33760__(0);
  42764. var _parchment2 = _interopRequireDefault(_parchment);
  42765. var _selection = __nested_webpack_require_33760__(15);
  42766. var _selection2 = _interopRequireDefault(_selection);
  42767. var _extend = __nested_webpack_require_33760__(3);
  42768. var _extend2 = _interopRequireDefault(_extend);
  42769. var _logger = __nested_webpack_require_33760__(10);
  42770. var _logger2 = _interopRequireDefault(_logger);
  42771. var _theme = __nested_webpack_require_33760__(34);
  42772. var _theme2 = _interopRequireDefault(_theme);
  42773. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42774. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  42775. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42776. var debug = (0, _logger2.default)('quill');
  42777. var Quill = function () {
  42778. _createClass(Quill, null, [{
  42779. key: 'debug',
  42780. value: function debug(limit) {
  42781. if (limit === true) {
  42782. limit = 'log';
  42783. }
  42784. _logger2.default.level(limit);
  42785. }
  42786. }, {
  42787. key: 'find',
  42788. value: function find(node) {
  42789. return node.__quill || _parchment2.default.find(node);
  42790. }
  42791. }, {
  42792. key: 'import',
  42793. value: function _import(name) {
  42794. if (this.imports[name] == null) {
  42795. debug.error('Cannot import ' + name + '. Are you sure it was registered?');
  42796. }
  42797. return this.imports[name];
  42798. }
  42799. }, {
  42800. key: 'register',
  42801. value: function register(path, target) {
  42802. var _this = this;
  42803. var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  42804. if (typeof path !== 'string') {
  42805. var name = path.attrName || path.blotName;
  42806. if (typeof name === 'string') {
  42807. // register(Blot | Attributor, overwrite)
  42808. this.register('formats/' + name, path, target);
  42809. } else {
  42810. Object.keys(path).forEach(function (key) {
  42811. _this.register(key, path[key], target);
  42812. });
  42813. }
  42814. } else {
  42815. if (this.imports[path] != null && !overwrite) {
  42816. debug.warn('Overwriting ' + path + ' with', target);
  42817. }
  42818. this.imports[path] = target;
  42819. if ((path.startsWith('blots/') || path.startsWith('formats/')) && target.blotName !== 'abstract') {
  42820. _parchment2.default.register(target);
  42821. } else if (path.startsWith('modules') && typeof target.register === 'function') {
  42822. target.register();
  42823. }
  42824. }
  42825. }
  42826. }]);
  42827. function Quill(container) {
  42828. var _this2 = this;
  42829. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  42830. _classCallCheck(this, Quill);
  42831. this.options = expandConfig(container, options);
  42832. this.container = this.options.container;
  42833. if (this.container == null) {
  42834. return debug.error('Invalid Quill container', container);
  42835. }
  42836. if (this.options.debug) {
  42837. Quill.debug(this.options.debug);
  42838. }
  42839. var html = this.container.innerHTML.trim();
  42840. this.container.classList.add('ql-container');
  42841. this.container.innerHTML = '';
  42842. this.container.__quill = this;
  42843. this.root = this.addContainer('ql-editor');
  42844. this.root.classList.add('ql-blank');
  42845. this.root.setAttribute('data-gramm', false);
  42846. this.scrollingContainer = this.options.scrollingContainer || this.root;
  42847. this.emitter = new _emitter4.default();
  42848. this.scroll = _parchment2.default.create(this.root, {
  42849. emitter: this.emitter,
  42850. whitelist: this.options.formats
  42851. });
  42852. this.editor = new _editor2.default(this.scroll);
  42853. this.selection = new _selection2.default(this.scroll, this.emitter);
  42854. this.theme = new this.options.theme(this, this.options);
  42855. this.keyboard = this.theme.addModule('keyboard');
  42856. this.clipboard = this.theme.addModule('clipboard');
  42857. this.history = this.theme.addModule('history');
  42858. this.theme.init();
  42859. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type) {
  42860. if (type === _emitter4.default.events.TEXT_CHANGE) {
  42861. _this2.root.classList.toggle('ql-blank', _this2.editor.isBlank());
  42862. }
  42863. });
  42864. this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function (source, mutations) {
  42865. var range = _this2.selection.lastRange;
  42866. var index = range && range.length === 0 ? range.index : undefined;
  42867. modify.call(_this2, function () {
  42868. return _this2.editor.update(null, mutations, index);
  42869. }, source);
  42870. });
  42871. var contents = this.clipboard.convert('<div class=\'ql-editor\' style="white-space: normal;">' + html + '<p><br></p></div>');
  42872. this.setContents(contents);
  42873. this.history.clear();
  42874. if (this.options.placeholder) {
  42875. this.root.setAttribute('data-placeholder', this.options.placeholder);
  42876. }
  42877. if (this.options.readOnly) {
  42878. this.disable();
  42879. }
  42880. }
  42881. _createClass(Quill, [{
  42882. key: 'addContainer',
  42883. value: function addContainer(container) {
  42884. var refNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  42885. if (typeof container === 'string') {
  42886. var className = container;
  42887. container = document.createElement('div');
  42888. container.classList.add(className);
  42889. }
  42890. this.container.insertBefore(container, refNode);
  42891. return container;
  42892. }
  42893. }, {
  42894. key: 'blur',
  42895. value: function blur() {
  42896. this.selection.setRange(null);
  42897. }
  42898. }, {
  42899. key: 'deleteText',
  42900. value: function deleteText(index, length, source) {
  42901. var _this3 = this;
  42902. var _overload = overload(index, length, source);
  42903. var _overload2 = _slicedToArray(_overload, 4);
  42904. index = _overload2[0];
  42905. length = _overload2[1];
  42906. source = _overload2[3];
  42907. return modify.call(this, function () {
  42908. return _this3.editor.deleteText(index, length);
  42909. }, source, index, -1 * length);
  42910. }
  42911. }, {
  42912. key: 'disable',
  42913. value: function disable() {
  42914. this.enable(false);
  42915. }
  42916. }, {
  42917. key: 'enable',
  42918. value: function enable() {
  42919. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  42920. this.scroll.enable(enabled);
  42921. this.container.classList.toggle('ql-disabled', !enabled);
  42922. }
  42923. }, {
  42924. key: 'focus',
  42925. value: function focus() {
  42926. var scrollTop = this.scrollingContainer.scrollTop;
  42927. this.selection.focus();
  42928. this.scrollingContainer.scrollTop = scrollTop;
  42929. this.scrollIntoView();
  42930. }
  42931. }, {
  42932. key: 'format',
  42933. value: function format(name, value) {
  42934. var _this4 = this;
  42935. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  42936. return modify.call(this, function () {
  42937. var range = _this4.getSelection(true);
  42938. var change = new _quillDelta2.default();
  42939. if (range == null) {
  42940. return change;
  42941. } else if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  42942. change = _this4.editor.formatLine(range.index, range.length, _defineProperty({}, name, value));
  42943. } else if (range.length === 0) {
  42944. _this4.selection.format(name, value);
  42945. return change;
  42946. } else {
  42947. change = _this4.editor.formatText(range.index, range.length, _defineProperty({}, name, value));
  42948. }
  42949. _this4.setSelection(range, _emitter4.default.sources.SILENT);
  42950. return change;
  42951. }, source);
  42952. }
  42953. }, {
  42954. key: 'formatLine',
  42955. value: function formatLine(index, length, name, value, source) {
  42956. var _this5 = this;
  42957. var formats = void 0;
  42958. var _overload3 = overload(index, length, name, value, source);
  42959. var _overload4 = _slicedToArray(_overload3, 4);
  42960. index = _overload4[0];
  42961. length = _overload4[1];
  42962. formats = _overload4[2];
  42963. source = _overload4[3];
  42964. return modify.call(this, function () {
  42965. return _this5.editor.formatLine(index, length, formats);
  42966. }, source, index, 0);
  42967. }
  42968. }, {
  42969. key: 'formatText',
  42970. value: function formatText(index, length, name, value, source) {
  42971. var _this6 = this;
  42972. var formats = void 0;
  42973. var _overload5 = overload(index, length, name, value, source);
  42974. var _overload6 = _slicedToArray(_overload5, 4);
  42975. index = _overload6[0];
  42976. length = _overload6[1];
  42977. formats = _overload6[2];
  42978. source = _overload6[3];
  42979. return modify.call(this, function () {
  42980. return _this6.editor.formatText(index, length, formats);
  42981. }, source, index, 0);
  42982. }
  42983. }, {
  42984. key: 'getBounds',
  42985. value: function getBounds(index) {
  42986. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  42987. var bounds = void 0;
  42988. if (typeof index === 'number') {
  42989. bounds = this.selection.getBounds(index, length);
  42990. } else {
  42991. bounds = this.selection.getBounds(index.index, index.length);
  42992. }
  42993. var containerBounds = this.container.getBoundingClientRect();
  42994. return {
  42995. bottom: bounds.bottom - containerBounds.top,
  42996. height: bounds.height,
  42997. left: bounds.left - containerBounds.left,
  42998. right: bounds.right - containerBounds.left,
  42999. top: bounds.top - containerBounds.top,
  43000. width: bounds.width
  43001. };
  43002. }
  43003. }, {
  43004. key: 'getContents',
  43005. value: function getContents() {
  43006. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43007. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43008. var _overload7 = overload(index, length);
  43009. var _overload8 = _slicedToArray(_overload7, 2);
  43010. index = _overload8[0];
  43011. length = _overload8[1];
  43012. return this.editor.getContents(index, length);
  43013. }
  43014. }, {
  43015. key: 'getFormat',
  43016. value: function getFormat() {
  43017. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getSelection(true);
  43018. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  43019. if (typeof index === 'number') {
  43020. return this.editor.getFormat(index, length);
  43021. } else {
  43022. return this.editor.getFormat(index.index, index.length);
  43023. }
  43024. }
  43025. }, {
  43026. key: 'getIndex',
  43027. value: function getIndex(blot) {
  43028. return blot.offset(this.scroll);
  43029. }
  43030. }, {
  43031. key: 'getLength',
  43032. value: function getLength() {
  43033. return this.scroll.length();
  43034. }
  43035. }, {
  43036. key: 'getLeaf',
  43037. value: function getLeaf(index) {
  43038. return this.scroll.leaf(index);
  43039. }
  43040. }, {
  43041. key: 'getLine',
  43042. value: function getLine(index) {
  43043. return this.scroll.line(index);
  43044. }
  43045. }, {
  43046. key: 'getLines',
  43047. value: function getLines() {
  43048. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43049. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  43050. if (typeof index !== 'number') {
  43051. return this.scroll.lines(index.index, index.length);
  43052. } else {
  43053. return this.scroll.lines(index, length);
  43054. }
  43055. }
  43056. }, {
  43057. key: 'getModule',
  43058. value: function getModule(name) {
  43059. return this.theme.modules[name];
  43060. }
  43061. }, {
  43062. key: 'getSelection',
  43063. value: function getSelection() {
  43064. var focus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  43065. if (focus) this.focus();
  43066. this.update(); // Make sure we access getRange with editor in consistent state
  43067. return this.selection.getRange()[0];
  43068. }
  43069. }, {
  43070. key: 'getText',
  43071. value: function getText() {
  43072. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43073. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43074. var _overload9 = overload(index, length);
  43075. var _overload10 = _slicedToArray(_overload9, 2);
  43076. index = _overload10[0];
  43077. length = _overload10[1];
  43078. return this.editor.getText(index, length);
  43079. }
  43080. }, {
  43081. key: 'hasFocus',
  43082. value: function hasFocus() {
  43083. return this.selection.hasFocus();
  43084. }
  43085. }, {
  43086. key: 'insertEmbed',
  43087. value: function insertEmbed(index, embed, value) {
  43088. var _this7 = this;
  43089. var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Quill.sources.API;
  43090. return modify.call(this, function () {
  43091. return _this7.editor.insertEmbed(index, embed, value);
  43092. }, source, index);
  43093. }
  43094. }, {
  43095. key: 'insertText',
  43096. value: function insertText(index, text, name, value, source) {
  43097. var _this8 = this;
  43098. var formats = void 0;
  43099. var _overload11 = overload(index, 0, name, value, source);
  43100. var _overload12 = _slicedToArray(_overload11, 4);
  43101. index = _overload12[0];
  43102. formats = _overload12[2];
  43103. source = _overload12[3];
  43104. return modify.call(this, function () {
  43105. return _this8.editor.insertText(index, text, formats);
  43106. }, source, index, text.length);
  43107. }
  43108. }, {
  43109. key: 'isEnabled',
  43110. value: function isEnabled() {
  43111. return !this.container.classList.contains('ql-disabled');
  43112. }
  43113. }, {
  43114. key: 'off',
  43115. value: function off() {
  43116. return this.emitter.off.apply(this.emitter, arguments);
  43117. }
  43118. }, {
  43119. key: 'on',
  43120. value: function on() {
  43121. return this.emitter.on.apply(this.emitter, arguments);
  43122. }
  43123. }, {
  43124. key: 'once',
  43125. value: function once() {
  43126. return this.emitter.once.apply(this.emitter, arguments);
  43127. }
  43128. }, {
  43129. key: 'pasteHTML',
  43130. value: function pasteHTML(index, html, source) {
  43131. this.clipboard.dangerouslyPasteHTML(index, html, source);
  43132. }
  43133. }, {
  43134. key: 'removeFormat',
  43135. value: function removeFormat(index, length, source) {
  43136. var _this9 = this;
  43137. var _overload13 = overload(index, length, source);
  43138. var _overload14 = _slicedToArray(_overload13, 4);
  43139. index = _overload14[0];
  43140. length = _overload14[1];
  43141. source = _overload14[3];
  43142. return modify.call(this, function () {
  43143. return _this9.editor.removeFormat(index, length);
  43144. }, source, index);
  43145. }
  43146. }, {
  43147. key: 'scrollIntoView',
  43148. value: function scrollIntoView() {
  43149. this.selection.scrollIntoView(this.scrollingContainer);
  43150. }
  43151. }, {
  43152. key: 'setContents',
  43153. value: function setContents(delta) {
  43154. var _this10 = this;
  43155. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43156. return modify.call(this, function () {
  43157. delta = new _quillDelta2.default(delta);
  43158. var length = _this10.getLength();
  43159. var deleted = _this10.editor.deleteText(0, length);
  43160. var applied = _this10.editor.applyDelta(delta);
  43161. var lastOp = applied.ops[applied.ops.length - 1];
  43162. if (lastOp != null && typeof lastOp.insert === 'string' && lastOp.insert[lastOp.insert.length - 1] === '\n') {
  43163. _this10.editor.deleteText(_this10.getLength() - 1, 1);
  43164. applied.delete(1);
  43165. }
  43166. var ret = deleted.compose(applied);
  43167. return ret;
  43168. }, source);
  43169. }
  43170. }, {
  43171. key: 'setSelection',
  43172. value: function setSelection(index, length, source) {
  43173. if (index == null) {
  43174. this.selection.setRange(null, length || Quill.sources.API);
  43175. } else {
  43176. var _overload15 = overload(index, length, source);
  43177. var _overload16 = _slicedToArray(_overload15, 4);
  43178. index = _overload16[0];
  43179. length = _overload16[1];
  43180. source = _overload16[3];
  43181. this.selection.setRange(new _selection.Range(index, length), source);
  43182. if (source !== _emitter4.default.sources.SILENT) {
  43183. this.selection.scrollIntoView(this.scrollingContainer);
  43184. }
  43185. }
  43186. }
  43187. }, {
  43188. key: 'setText',
  43189. value: function setText(text) {
  43190. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43191. var delta = new _quillDelta2.default().insert(text);
  43192. return this.setContents(delta, source);
  43193. }
  43194. }, {
  43195. key: 'update',
  43196. value: function update() {
  43197. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  43198. var change = this.scroll.update(source); // Will update selection before selection.update() does if text changes
  43199. this.selection.update(source);
  43200. return change;
  43201. }
  43202. }, {
  43203. key: 'updateContents',
  43204. value: function updateContents(delta) {
  43205. var _this11 = this;
  43206. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43207. return modify.call(this, function () {
  43208. delta = new _quillDelta2.default(delta);
  43209. return _this11.editor.applyDelta(delta, source);
  43210. }, source, true);
  43211. }
  43212. }]);
  43213. return Quill;
  43214. }();
  43215. Quill.DEFAULTS = {
  43216. bounds: null,
  43217. formats: null,
  43218. modules: {},
  43219. placeholder: '',
  43220. readOnly: false,
  43221. scrollingContainer: null,
  43222. strict: true,
  43223. theme: 'default'
  43224. };
  43225. Quill.events = _emitter4.default.events;
  43226. Quill.sources = _emitter4.default.sources;
  43227. // eslint-disable-next-line no-undef
  43228. Quill.version = false ? 0 : "1.3.7";
  43229. Quill.imports = {
  43230. 'delta': _quillDelta2.default,
  43231. 'parchment': _parchment2.default,
  43232. 'core/module': _module2.default,
  43233. 'core/theme': _theme2.default
  43234. };
  43235. function expandConfig(container, userConfig) {
  43236. userConfig = (0, _extend2.default)(true, {
  43237. container: container,
  43238. modules: {
  43239. clipboard: true,
  43240. keyboard: true,
  43241. history: true
  43242. }
  43243. }, userConfig);
  43244. if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {
  43245. userConfig.theme = _theme2.default;
  43246. } else {
  43247. userConfig.theme = Quill.import('themes/' + userConfig.theme);
  43248. if (userConfig.theme == null) {
  43249. throw new Error('Invalid theme ' + userConfig.theme + '. Did you register it?');
  43250. }
  43251. }
  43252. var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);
  43253. [themeConfig, userConfig].forEach(function (config) {
  43254. config.modules = config.modules || {};
  43255. Object.keys(config.modules).forEach(function (module) {
  43256. if (config.modules[module] === true) {
  43257. config.modules[module] = {};
  43258. }
  43259. });
  43260. });
  43261. var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));
  43262. var moduleConfig = moduleNames.reduce(function (config, name) {
  43263. var moduleClass = Quill.import('modules/' + name);
  43264. if (moduleClass == null) {
  43265. debug.error('Cannot load ' + name + ' module. Are you sure you registered it?');
  43266. } else {
  43267. config[name] = moduleClass.DEFAULTS || {};
  43268. }
  43269. return config;
  43270. }, {});
  43271. // Special case toolbar shorthand
  43272. if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {
  43273. userConfig.modules.toolbar = {
  43274. container: userConfig.modules.toolbar
  43275. };
  43276. }
  43277. userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);
  43278. ['bounds', 'container', 'scrollingContainer'].forEach(function (key) {
  43279. if (typeof userConfig[key] === 'string') {
  43280. userConfig[key] = document.querySelector(userConfig[key]);
  43281. }
  43282. });
  43283. userConfig.modules = Object.keys(userConfig.modules).reduce(function (config, name) {
  43284. if (userConfig.modules[name]) {
  43285. config[name] = userConfig.modules[name];
  43286. }
  43287. return config;
  43288. }, {});
  43289. return userConfig;
  43290. }
  43291. // Handle selection preservation and TEXT_CHANGE emission
  43292. // common to modification APIs
  43293. function modify(modifier, source, index, shift) {
  43294. if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {
  43295. return new _quillDelta2.default();
  43296. }
  43297. var range = index == null ? null : this.getSelection();
  43298. var oldDelta = this.editor.delta;
  43299. var change = modifier();
  43300. if (range != null) {
  43301. if (index === true) index = range.index;
  43302. if (shift == null) {
  43303. range = shiftRange(range, change, source);
  43304. } else if (shift !== 0) {
  43305. range = shiftRange(range, index, shift, source);
  43306. }
  43307. this.setSelection(range, _emitter4.default.sources.SILENT);
  43308. }
  43309. if (change.length() > 0) {
  43310. var _emitter;
  43311. var args = [_emitter4.default.events.TEXT_CHANGE, change, oldDelta, source];
  43312. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  43313. if (source !== _emitter4.default.sources.SILENT) {
  43314. var _emitter2;
  43315. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  43316. }
  43317. }
  43318. return change;
  43319. }
  43320. function overload(index, length, name, value, source) {
  43321. var formats = {};
  43322. if (typeof index.index === 'number' && typeof index.length === 'number') {
  43323. // Allow for throwaway end (used by insertText/insertEmbed)
  43324. if (typeof length !== 'number') {
  43325. source = value, value = name, name = length, length = index.length, index = index.index;
  43326. } else {
  43327. length = index.length, index = index.index;
  43328. }
  43329. } else if (typeof length !== 'number') {
  43330. source = value, value = name, name = length, length = 0;
  43331. }
  43332. // Handle format being object, two format name/value strings or excluded
  43333. if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
  43334. formats = name;
  43335. source = value;
  43336. } else if (typeof name === 'string') {
  43337. if (value != null) {
  43338. formats[name] = value;
  43339. } else {
  43340. source = name;
  43341. }
  43342. }
  43343. // Handle optional source
  43344. source = source || _emitter4.default.sources.API;
  43345. return [index, length, formats, source];
  43346. }
  43347. function shiftRange(range, index, length, source) {
  43348. if (range == null) return null;
  43349. var start = void 0,
  43350. end = void 0;
  43351. if (index instanceof _quillDelta2.default) {
  43352. var _map = [range.index, range.index + range.length].map(function (pos) {
  43353. return index.transformPosition(pos, source !== _emitter4.default.sources.USER);
  43354. });
  43355. var _map2 = _slicedToArray(_map, 2);
  43356. start = _map2[0];
  43357. end = _map2[1];
  43358. } else {
  43359. var _map3 = [range.index, range.index + range.length].map(function (pos) {
  43360. if (pos < index || pos === index && source === _emitter4.default.sources.USER) return pos;
  43361. if (length >= 0) {
  43362. return pos + length;
  43363. } else {
  43364. return Math.max(index, pos + length);
  43365. }
  43366. });
  43367. var _map4 = _slicedToArray(_map3, 2);
  43368. start = _map4[0];
  43369. end = _map4[1];
  43370. }
  43371. return new _selection.Range(start, end - start);
  43372. }
  43373. exports.expandConfig = expandConfig;
  43374. exports.overload = overload;
  43375. exports.default = Quill;
  43376. /***/ }),
  43377. /* 6 */
  43378. /***/ (function(module, exports, __nested_webpack_require_58401__) {
  43379. "use strict";
  43380. Object.defineProperty(exports, "__esModule", {
  43381. value: true
  43382. });
  43383. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43384. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43385. var _text = __nested_webpack_require_58401__(7);
  43386. var _text2 = _interopRequireDefault(_text);
  43387. var _parchment = __nested_webpack_require_58401__(0);
  43388. var _parchment2 = _interopRequireDefault(_parchment);
  43389. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43390. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43391. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43392. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43393. var Inline = function (_Parchment$Inline) {
  43394. _inherits(Inline, _Parchment$Inline);
  43395. function Inline() {
  43396. _classCallCheck(this, Inline);
  43397. return _possibleConstructorReturn(this, (Inline.__proto__ || Object.getPrototypeOf(Inline)).apply(this, arguments));
  43398. }
  43399. _createClass(Inline, [{
  43400. key: 'formatAt',
  43401. value: function formatAt(index, length, name, value) {
  43402. if (Inline.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {
  43403. var blot = this.isolate(index, length);
  43404. if (value) {
  43405. blot.wrap(name, value);
  43406. }
  43407. } else {
  43408. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'formatAt', this).call(this, index, length, name, value);
  43409. }
  43410. }
  43411. }, {
  43412. key: 'optimize',
  43413. value: function optimize(context) {
  43414. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'optimize', this).call(this, context);
  43415. if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
  43416. var parent = this.parent.isolate(this.offset(), this.length());
  43417. this.moveChildren(parent);
  43418. parent.wrap(this);
  43419. }
  43420. }
  43421. }], [{
  43422. key: 'compare',
  43423. value: function compare(self, other) {
  43424. var selfIndex = Inline.order.indexOf(self);
  43425. var otherIndex = Inline.order.indexOf(other);
  43426. if (selfIndex >= 0 || otherIndex >= 0) {
  43427. return selfIndex - otherIndex;
  43428. } else if (self === other) {
  43429. return 0;
  43430. } else if (self < other) {
  43431. return -1;
  43432. } else {
  43433. return 1;
  43434. }
  43435. }
  43436. }]);
  43437. return Inline;
  43438. }(_parchment2.default.Inline);
  43439. Inline.allowedChildren = [Inline, _parchment2.default.Embed, _text2.default];
  43440. // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
  43441. Inline.order = ['cursor', 'inline', // Must be lower
  43442. 'underline', 'strike', 'italic', 'bold', 'script', 'link', 'code' // Must be higher
  43443. ];
  43444. exports.default = Inline;
  43445. /***/ }),
  43446. /* 7 */
  43447. /***/ (function(module, exports, __nested_webpack_require_62823__) {
  43448. "use strict";
  43449. Object.defineProperty(exports, "__esModule", {
  43450. value: true
  43451. });
  43452. var _parchment = __nested_webpack_require_62823__(0);
  43453. var _parchment2 = _interopRequireDefault(_parchment);
  43454. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43455. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43456. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43457. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43458. var TextBlot = function (_Parchment$Text) {
  43459. _inherits(TextBlot, _Parchment$Text);
  43460. function TextBlot() {
  43461. _classCallCheck(this, TextBlot);
  43462. return _possibleConstructorReturn(this, (TextBlot.__proto__ || Object.getPrototypeOf(TextBlot)).apply(this, arguments));
  43463. }
  43464. return TextBlot;
  43465. }(_parchment2.default.Text);
  43466. exports.default = TextBlot;
  43467. /***/ }),
  43468. /* 8 */
  43469. /***/ (function(module, exports, __nested_webpack_require_64422__) {
  43470. "use strict";
  43471. Object.defineProperty(exports, "__esModule", {
  43472. value: true
  43473. });
  43474. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43475. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43476. var _eventemitter = __nested_webpack_require_64422__(54);
  43477. var _eventemitter2 = _interopRequireDefault(_eventemitter);
  43478. var _logger = __nested_webpack_require_64422__(10);
  43479. var _logger2 = _interopRequireDefault(_logger);
  43480. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43481. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43482. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43483. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43484. var debug = (0, _logger2.default)('quill:events');
  43485. var EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];
  43486. EVENTS.forEach(function (eventName) {
  43487. document.addEventListener(eventName, function () {
  43488. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  43489. args[_key] = arguments[_key];
  43490. }
  43491. [].slice.call(document.querySelectorAll('.ql-container')).forEach(function (node) {
  43492. // TODO use WeakMap
  43493. if (node.__quill && node.__quill.emitter) {
  43494. var _node$__quill$emitter;
  43495. (_node$__quill$emitter = node.__quill.emitter).handleDOM.apply(_node$__quill$emitter, args);
  43496. }
  43497. });
  43498. });
  43499. });
  43500. var Emitter = function (_EventEmitter) {
  43501. _inherits(Emitter, _EventEmitter);
  43502. function Emitter() {
  43503. _classCallCheck(this, Emitter);
  43504. var _this = _possibleConstructorReturn(this, (Emitter.__proto__ || Object.getPrototypeOf(Emitter)).call(this));
  43505. _this.listeners = {};
  43506. _this.on('error', debug.error);
  43507. return _this;
  43508. }
  43509. _createClass(Emitter, [{
  43510. key: 'emit',
  43511. value: function emit() {
  43512. debug.log.apply(debug, arguments);
  43513. _get(Emitter.prototype.__proto__ || Object.getPrototypeOf(Emitter.prototype), 'emit', this).apply(this, arguments);
  43514. }
  43515. }, {
  43516. key: 'handleDOM',
  43517. value: function handleDOM(event) {
  43518. for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  43519. args[_key2 - 1] = arguments[_key2];
  43520. }
  43521. (this.listeners[event.type] || []).forEach(function (_ref) {
  43522. var node = _ref.node,
  43523. handler = _ref.handler;
  43524. if (event.target === node || node.contains(event.target)) {
  43525. handler.apply(undefined, [event].concat(args));
  43526. }
  43527. });
  43528. }
  43529. }, {
  43530. key: 'listenDOM',
  43531. value: function listenDOM(eventName, node, handler) {
  43532. if (!this.listeners[eventName]) {
  43533. this.listeners[eventName] = [];
  43534. }
  43535. this.listeners[eventName].push({ node: node, handler: handler });
  43536. }
  43537. }]);
  43538. return Emitter;
  43539. }(_eventemitter2.default);
  43540. Emitter.events = {
  43541. EDITOR_CHANGE: 'editor-change',
  43542. SCROLL_BEFORE_UPDATE: 'scroll-before-update',
  43543. SCROLL_OPTIMIZE: 'scroll-optimize',
  43544. SCROLL_UPDATE: 'scroll-update',
  43545. SELECTION_CHANGE: 'selection-change',
  43546. TEXT_CHANGE: 'text-change'
  43547. };
  43548. Emitter.sources = {
  43549. API: 'api',
  43550. SILENT: 'silent',
  43551. USER: 'user'
  43552. };
  43553. exports.default = Emitter;
  43554. /***/ }),
  43555. /* 9 */
  43556. /***/ (function(module, exports, __webpack_require__) {
  43557. "use strict";
  43558. Object.defineProperty(exports, "__esModule", {
  43559. value: true
  43560. });
  43561. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43562. var Module = function Module(quill) {
  43563. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43564. _classCallCheck(this, Module);
  43565. this.quill = quill;
  43566. this.options = options;
  43567. };
  43568. Module.DEFAULTS = {};
  43569. exports.default = Module;
  43570. /***/ }),
  43571. /* 10 */
  43572. /***/ (function(module, exports, __webpack_require__) {
  43573. "use strict";
  43574. Object.defineProperty(exports, "__esModule", {
  43575. value: true
  43576. });
  43577. var levels = ['error', 'warn', 'log', 'info'];
  43578. var level = 'warn';
  43579. function debug(method) {
  43580. if (levels.indexOf(method) <= levels.indexOf(level)) {
  43581. var _console;
  43582. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43583. args[_key - 1] = arguments[_key];
  43584. }
  43585. (_console = console)[method].apply(_console, args); // eslint-disable-line no-console
  43586. }
  43587. }
  43588. function namespace(ns) {
  43589. return levels.reduce(function (logger, method) {
  43590. logger[method] = debug.bind(console, method, ns);
  43591. return logger;
  43592. }, {});
  43593. }
  43594. debug.level = namespace.level = function (newLevel) {
  43595. level = newLevel;
  43596. };
  43597. exports.default = namespace;
  43598. /***/ }),
  43599. /* 11 */
  43600. /***/ (function(module, exports, __nested_webpack_require_70685__) {
  43601. var pSlice = Array.prototype.slice;
  43602. var objectKeys = __nested_webpack_require_70685__(52);
  43603. var isArguments = __nested_webpack_require_70685__(53);
  43604. var deepEqual = module.exports = function (actual, expected, opts) {
  43605. if (!opts) opts = {};
  43606. // 7.1. All identical values are equivalent, as determined by ===.
  43607. if (actual === expected) {
  43608. return true;
  43609. } else if (actual instanceof Date && expected instanceof Date) {
  43610. return actual.getTime() === expected.getTime();
  43611. // 7.3. Other pairs that do not both pass typeof value == 'object',
  43612. // equivalence is determined by ==.
  43613. } else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
  43614. return opts.strict ? actual === expected : actual == expected;
  43615. // 7.4. For all other Object pairs, including Array objects, equivalence is
  43616. // determined by having the same number of owned properties (as verified
  43617. // with Object.prototype.hasOwnProperty.call), the same set of keys
  43618. // (although not necessarily the same order), equivalent values for every
  43619. // corresponding key, and an identical 'prototype' property. Note: this
  43620. // accounts for both named and indexed properties on Arrays.
  43621. } else {
  43622. return objEquiv(actual, expected, opts);
  43623. }
  43624. }
  43625. function isUndefinedOrNull(value) {
  43626. return value === null || value === undefined;
  43627. }
  43628. function isBuffer (x) {
  43629. if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;
  43630. if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
  43631. return false;
  43632. }
  43633. if (x.length > 0 && typeof x[0] !== 'number') return false;
  43634. return true;
  43635. }
  43636. function objEquiv(a, b, opts) {
  43637. var i, key;
  43638. if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
  43639. return false;
  43640. // an identical 'prototype' property.
  43641. if (a.prototype !== b.prototype) return false;
  43642. //~~~I've managed to break Object.keys through screwy arguments passing.
  43643. // Converting to array solves the problem.
  43644. if (isArguments(a)) {
  43645. if (!isArguments(b)) {
  43646. return false;
  43647. }
  43648. a = pSlice.call(a);
  43649. b = pSlice.call(b);
  43650. return deepEqual(a, b, opts);
  43651. }
  43652. if (isBuffer(a)) {
  43653. if (!isBuffer(b)) {
  43654. return false;
  43655. }
  43656. if (a.length !== b.length) return false;
  43657. for (i = 0; i < a.length; i++) {
  43658. if (a[i] !== b[i]) return false;
  43659. }
  43660. return true;
  43661. }
  43662. try {
  43663. var ka = objectKeys(a),
  43664. kb = objectKeys(b);
  43665. } catch (e) {//happens when one is a string literal and the other isn't
  43666. return false;
  43667. }
  43668. // having the same number of owned properties (keys incorporates
  43669. // hasOwnProperty)
  43670. if (ka.length != kb.length)
  43671. return false;
  43672. //the same set of keys (although not necessarily the same order),
  43673. ka.sort();
  43674. kb.sort();
  43675. //~~~cheap key test
  43676. for (i = ka.length - 1; i >= 0; i--) {
  43677. if (ka[i] != kb[i])
  43678. return false;
  43679. }
  43680. //equivalent values for every corresponding key, and
  43681. //~~~possibly expensive deep test
  43682. for (i = ka.length - 1; i >= 0; i--) {
  43683. key = ka[i];
  43684. if (!deepEqual(a[key], b[key], opts)) return false;
  43685. }
  43686. return typeof a === typeof b;
  43687. }
  43688. /***/ }),
  43689. /* 12 */
  43690. /***/ (function(module, exports, __nested_webpack_require_73804__) {
  43691. "use strict";
  43692. Object.defineProperty(exports, "__esModule", { value: true });
  43693. var Registry = __nested_webpack_require_73804__(1);
  43694. var Attributor = /** @class */ (function () {
  43695. function Attributor(attrName, keyName, options) {
  43696. if (options === void 0) { options = {}; }
  43697. this.attrName = attrName;
  43698. this.keyName = keyName;
  43699. var attributeBit = Registry.Scope.TYPE & Registry.Scope.ATTRIBUTE;
  43700. if (options.scope != null) {
  43701. // Ignore type bits, force attribute bit
  43702. this.scope = (options.scope & Registry.Scope.LEVEL) | attributeBit;
  43703. }
  43704. else {
  43705. this.scope = Registry.Scope.ATTRIBUTE;
  43706. }
  43707. if (options.whitelist != null)
  43708. this.whitelist = options.whitelist;
  43709. }
  43710. Attributor.keys = function (node) {
  43711. return [].map.call(node.attributes, function (item) {
  43712. return item.name;
  43713. });
  43714. };
  43715. Attributor.prototype.add = function (node, value) {
  43716. if (!this.canAdd(node, value))
  43717. return false;
  43718. node.setAttribute(this.keyName, value);
  43719. return true;
  43720. };
  43721. Attributor.prototype.canAdd = function (node, value) {
  43722. var match = Registry.query(node, Registry.Scope.BLOT & (this.scope | Registry.Scope.TYPE));
  43723. if (match == null)
  43724. return false;
  43725. if (this.whitelist == null)
  43726. return true;
  43727. if (typeof value === 'string') {
  43728. return this.whitelist.indexOf(value.replace(/["']/g, '')) > -1;
  43729. }
  43730. else {
  43731. return this.whitelist.indexOf(value) > -1;
  43732. }
  43733. };
  43734. Attributor.prototype.remove = function (node) {
  43735. node.removeAttribute(this.keyName);
  43736. };
  43737. Attributor.prototype.value = function (node) {
  43738. var value = node.getAttribute(this.keyName);
  43739. if (this.canAdd(node, value) && value) {
  43740. return value;
  43741. }
  43742. return '';
  43743. };
  43744. return Attributor;
  43745. }());
  43746. exports.default = Attributor;
  43747. /***/ }),
  43748. /* 13 */
  43749. /***/ (function(module, exports, __nested_webpack_require_75851__) {
  43750. "use strict";
  43751. Object.defineProperty(exports, "__esModule", {
  43752. value: true
  43753. });
  43754. exports.default = exports.Code = undefined;
  43755. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  43756. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43757. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43758. var _quillDelta = __nested_webpack_require_75851__(2);
  43759. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  43760. var _parchment = __nested_webpack_require_75851__(0);
  43761. var _parchment2 = _interopRequireDefault(_parchment);
  43762. var _block = __nested_webpack_require_75851__(4);
  43763. var _block2 = _interopRequireDefault(_block);
  43764. var _inline = __nested_webpack_require_75851__(6);
  43765. var _inline2 = _interopRequireDefault(_inline);
  43766. var _text = __nested_webpack_require_75851__(7);
  43767. var _text2 = _interopRequireDefault(_text);
  43768. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43769. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43770. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43771. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43772. var Code = function (_Inline) {
  43773. _inherits(Code, _Inline);
  43774. function Code() {
  43775. _classCallCheck(this, Code);
  43776. return _possibleConstructorReturn(this, (Code.__proto__ || Object.getPrototypeOf(Code)).apply(this, arguments));
  43777. }
  43778. return Code;
  43779. }(_inline2.default);
  43780. Code.blotName = 'code';
  43781. Code.tagName = 'CODE';
  43782. var CodeBlock = function (_Block) {
  43783. _inherits(CodeBlock, _Block);
  43784. function CodeBlock() {
  43785. _classCallCheck(this, CodeBlock);
  43786. return _possibleConstructorReturn(this, (CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock)).apply(this, arguments));
  43787. }
  43788. _createClass(CodeBlock, [{
  43789. key: 'delta',
  43790. value: function delta() {
  43791. var _this3 = this;
  43792. var text = this.domNode.textContent;
  43793. if (text.endsWith('\n')) {
  43794. // Should always be true
  43795. text = text.slice(0, -1);
  43796. }
  43797. return text.split('\n').reduce(function (delta, frag) {
  43798. return delta.insert(frag).insert('\n', _this3.formats());
  43799. }, new _quillDelta2.default());
  43800. }
  43801. }, {
  43802. key: 'format',
  43803. value: function format(name, value) {
  43804. if (name === this.statics.blotName && value) return;
  43805. var _descendant = this.descendant(_text2.default, this.length() - 1),
  43806. _descendant2 = _slicedToArray(_descendant, 1),
  43807. text = _descendant2[0];
  43808. if (text != null) {
  43809. text.deleteAt(text.length() - 1, 1);
  43810. }
  43811. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'format', this).call(this, name, value);
  43812. }
  43813. }, {
  43814. key: 'formatAt',
  43815. value: function formatAt(index, length, name, value) {
  43816. if (length === 0) return;
  43817. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {
  43818. return;
  43819. }
  43820. var nextNewline = this.newlineIndex(index);
  43821. if (nextNewline < 0 || nextNewline >= index + length) return;
  43822. var prevNewline = this.newlineIndex(index, true) + 1;
  43823. var isolateLength = nextNewline - prevNewline + 1;
  43824. var blot = this.isolate(prevNewline, isolateLength);
  43825. var next = blot.next;
  43826. blot.format(name, value);
  43827. if (next instanceof CodeBlock) {
  43828. next.formatAt(0, index - prevNewline + length - isolateLength, name, value);
  43829. }
  43830. }
  43831. }, {
  43832. key: 'insertAt',
  43833. value: function insertAt(index, value, def) {
  43834. if (def != null) return;
  43835. var _descendant3 = this.descendant(_text2.default, index),
  43836. _descendant4 = _slicedToArray(_descendant3, 2),
  43837. text = _descendant4[0],
  43838. offset = _descendant4[1];
  43839. text.insertAt(offset, value);
  43840. }
  43841. }, {
  43842. key: 'length',
  43843. value: function length() {
  43844. var length = this.domNode.textContent.length;
  43845. if (!this.domNode.textContent.endsWith('\n')) {
  43846. return length + 1;
  43847. }
  43848. return length;
  43849. }
  43850. }, {
  43851. key: 'newlineIndex',
  43852. value: function newlineIndex(searchIndex) {
  43853. var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  43854. if (!reverse) {
  43855. var offset = this.domNode.textContent.slice(searchIndex).indexOf('\n');
  43856. return offset > -1 ? searchIndex + offset : -1;
  43857. } else {
  43858. return this.domNode.textContent.slice(0, searchIndex).lastIndexOf('\n');
  43859. }
  43860. }
  43861. }, {
  43862. key: 'optimize',
  43863. value: function optimize(context) {
  43864. if (!this.domNode.textContent.endsWith('\n')) {
  43865. this.appendChild(_parchment2.default.create('text', '\n'));
  43866. }
  43867. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'optimize', this).call(this, context);
  43868. var next = this.next;
  43869. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === next.statics.formats(next.domNode)) {
  43870. next.optimize(context);
  43871. next.moveChildren(this);
  43872. next.remove();
  43873. }
  43874. }
  43875. }, {
  43876. key: 'replace',
  43877. value: function replace(target) {
  43878. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'replace', this).call(this, target);
  43879. [].slice.call(this.domNode.querySelectorAll('*')).forEach(function (node) {
  43880. var blot = _parchment2.default.find(node);
  43881. if (blot == null) {
  43882. node.parentNode.removeChild(node);
  43883. } else if (blot instanceof _parchment2.default.Embed) {
  43884. blot.remove();
  43885. } else {
  43886. blot.unwrap();
  43887. }
  43888. });
  43889. }
  43890. }], [{
  43891. key: 'create',
  43892. value: function create(value) {
  43893. var domNode = _get(CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock), 'create', this).call(this, value);
  43894. domNode.setAttribute('spellcheck', false);
  43895. return domNode;
  43896. }
  43897. }, {
  43898. key: 'formats',
  43899. value: function formats() {
  43900. return true;
  43901. }
  43902. }]);
  43903. return CodeBlock;
  43904. }(_block2.default);
  43905. CodeBlock.blotName = 'code-block';
  43906. CodeBlock.tagName = 'PRE';
  43907. CodeBlock.TAB = ' ';
  43908. exports.Code = Code;
  43909. exports.default = CodeBlock;
  43910. /***/ }),
  43911. /* 14 */
  43912. /***/ (function(module, exports, __nested_webpack_require_84272__) {
  43913. "use strict";
  43914. Object.defineProperty(exports, "__esModule", {
  43915. value: true
  43916. });
  43917. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  43918. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  43919. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43920. var _quillDelta = __nested_webpack_require_84272__(2);
  43921. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  43922. var _op = __nested_webpack_require_84272__(20);
  43923. var _op2 = _interopRequireDefault(_op);
  43924. var _parchment = __nested_webpack_require_84272__(0);
  43925. var _parchment2 = _interopRequireDefault(_parchment);
  43926. var _code = __nested_webpack_require_84272__(13);
  43927. var _code2 = _interopRequireDefault(_code);
  43928. var _cursor = __nested_webpack_require_84272__(24);
  43929. var _cursor2 = _interopRequireDefault(_cursor);
  43930. var _block = __nested_webpack_require_84272__(4);
  43931. var _block2 = _interopRequireDefault(_block);
  43932. var _break = __nested_webpack_require_84272__(16);
  43933. var _break2 = _interopRequireDefault(_break);
  43934. var _clone = __nested_webpack_require_84272__(21);
  43935. var _clone2 = _interopRequireDefault(_clone);
  43936. var _deepEqual = __nested_webpack_require_84272__(11);
  43937. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  43938. var _extend = __nested_webpack_require_84272__(3);
  43939. var _extend2 = _interopRequireDefault(_extend);
  43940. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43941. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  43942. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43943. var ASCII = /^[ -~]*$/;
  43944. var Editor = function () {
  43945. function Editor(scroll) {
  43946. _classCallCheck(this, Editor);
  43947. this.scroll = scroll;
  43948. this.delta = this.getDelta();
  43949. }
  43950. _createClass(Editor, [{
  43951. key: 'applyDelta',
  43952. value: function applyDelta(delta) {
  43953. var _this = this;
  43954. var consumeNextNewline = false;
  43955. this.scroll.update();
  43956. var scrollLength = this.scroll.length();
  43957. this.scroll.batchStart();
  43958. delta = normalizeDelta(delta);
  43959. delta.reduce(function (index, op) {
  43960. var length = op.retain || op.delete || op.insert.length || 1;
  43961. var attributes = op.attributes || {};
  43962. if (op.insert != null) {
  43963. if (typeof op.insert === 'string') {
  43964. var text = op.insert;
  43965. if (text.endsWith('\n') && consumeNextNewline) {
  43966. consumeNextNewline = false;
  43967. text = text.slice(0, -1);
  43968. }
  43969. if (index >= scrollLength && !text.endsWith('\n')) {
  43970. consumeNextNewline = true;
  43971. }
  43972. _this.scroll.insertAt(index, text);
  43973. var _scroll$line = _this.scroll.line(index),
  43974. _scroll$line2 = _slicedToArray(_scroll$line, 2),
  43975. line = _scroll$line2[0],
  43976. offset = _scroll$line2[1];
  43977. var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));
  43978. if (line instanceof _block2.default) {
  43979. var _line$descendant = line.descendant(_parchment2.default.Leaf, offset),
  43980. _line$descendant2 = _slicedToArray(_line$descendant, 1),
  43981. leaf = _line$descendant2[0];
  43982. formats = (0, _extend2.default)(formats, (0, _block.bubbleFormats)(leaf));
  43983. }
  43984. attributes = _op2.default.attributes.diff(formats, attributes) || {};
  43985. } else if (_typeof(op.insert) === 'object') {
  43986. var key = Object.keys(op.insert)[0]; // There should only be one key
  43987. if (key == null) return index;
  43988. _this.scroll.insertAt(index, key, op.insert[key]);
  43989. }
  43990. scrollLength += length;
  43991. }
  43992. Object.keys(attributes).forEach(function (name) {
  43993. _this.scroll.formatAt(index, length, name, attributes[name]);
  43994. });
  43995. return index + length;
  43996. }, 0);
  43997. delta.reduce(function (index, op) {
  43998. if (typeof op.delete === 'number') {
  43999. _this.scroll.deleteAt(index, op.delete);
  44000. return index;
  44001. }
  44002. return index + (op.retain || op.insert.length || 1);
  44003. }, 0);
  44004. this.scroll.batchEnd();
  44005. return this.update(delta);
  44006. }
  44007. }, {
  44008. key: 'deleteText',
  44009. value: function deleteText(index, length) {
  44010. this.scroll.deleteAt(index, length);
  44011. return this.update(new _quillDelta2.default().retain(index).delete(length));
  44012. }
  44013. }, {
  44014. key: 'formatLine',
  44015. value: function formatLine(index, length) {
  44016. var _this2 = this;
  44017. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44018. this.scroll.update();
  44019. Object.keys(formats).forEach(function (format) {
  44020. if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format]) return;
  44021. var lines = _this2.scroll.lines(index, Math.max(length, 1));
  44022. var lengthRemaining = length;
  44023. lines.forEach(function (line) {
  44024. var lineLength = line.length();
  44025. if (!(line instanceof _code2.default)) {
  44026. line.format(format, formats[format]);
  44027. } else {
  44028. var codeIndex = index - line.offset(_this2.scroll);
  44029. var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;
  44030. line.formatAt(codeIndex, codeLength, format, formats[format]);
  44031. }
  44032. lengthRemaining -= lineLength;
  44033. });
  44034. });
  44035. this.scroll.optimize();
  44036. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44037. }
  44038. }, {
  44039. key: 'formatText',
  44040. value: function formatText(index, length) {
  44041. var _this3 = this;
  44042. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44043. Object.keys(formats).forEach(function (format) {
  44044. _this3.scroll.formatAt(index, length, format, formats[format]);
  44045. });
  44046. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44047. }
  44048. }, {
  44049. key: 'getContents',
  44050. value: function getContents(index, length) {
  44051. return this.delta.slice(index, index + length);
  44052. }
  44053. }, {
  44054. key: 'getDelta',
  44055. value: function getDelta() {
  44056. return this.scroll.lines().reduce(function (delta, line) {
  44057. return delta.concat(line.delta());
  44058. }, new _quillDelta2.default());
  44059. }
  44060. }, {
  44061. key: 'getFormat',
  44062. value: function getFormat(index) {
  44063. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44064. var lines = [],
  44065. leaves = [];
  44066. if (length === 0) {
  44067. this.scroll.path(index).forEach(function (path) {
  44068. var _path = _slicedToArray(path, 1),
  44069. blot = _path[0];
  44070. if (blot instanceof _block2.default) {
  44071. lines.push(blot);
  44072. } else if (blot instanceof _parchment2.default.Leaf) {
  44073. leaves.push(blot);
  44074. }
  44075. });
  44076. } else {
  44077. lines = this.scroll.lines(index, length);
  44078. leaves = this.scroll.descendants(_parchment2.default.Leaf, index, length);
  44079. }
  44080. var formatsArr = [lines, leaves].map(function (blots) {
  44081. if (blots.length === 0) return {};
  44082. var formats = (0, _block.bubbleFormats)(blots.shift());
  44083. while (Object.keys(formats).length > 0) {
  44084. var blot = blots.shift();
  44085. if (blot == null) return formats;
  44086. formats = combineFormats((0, _block.bubbleFormats)(blot), formats);
  44087. }
  44088. return formats;
  44089. });
  44090. return _extend2.default.apply(_extend2.default, formatsArr);
  44091. }
  44092. }, {
  44093. key: 'getText',
  44094. value: function getText(index, length) {
  44095. return this.getContents(index, length).filter(function (op) {
  44096. return typeof op.insert === 'string';
  44097. }).map(function (op) {
  44098. return op.insert;
  44099. }).join('');
  44100. }
  44101. }, {
  44102. key: 'insertEmbed',
  44103. value: function insertEmbed(index, embed, value) {
  44104. this.scroll.insertAt(index, embed, value);
  44105. return this.update(new _quillDelta2.default().retain(index).insert(_defineProperty({}, embed, value)));
  44106. }
  44107. }, {
  44108. key: 'insertText',
  44109. value: function insertText(index, text) {
  44110. var _this4 = this;
  44111. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44112. text = text.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44113. this.scroll.insertAt(index, text);
  44114. Object.keys(formats).forEach(function (format) {
  44115. _this4.scroll.formatAt(index, text.length, format, formats[format]);
  44116. });
  44117. return this.update(new _quillDelta2.default().retain(index).insert(text, (0, _clone2.default)(formats)));
  44118. }
  44119. }, {
  44120. key: 'isBlank',
  44121. value: function isBlank() {
  44122. if (this.scroll.children.length == 0) return true;
  44123. if (this.scroll.children.length > 1) return false;
  44124. var block = this.scroll.children.head;
  44125. if (block.statics.blotName !== _block2.default.blotName) return false;
  44126. if (block.children.length > 1) return false;
  44127. return block.children.head instanceof _break2.default;
  44128. }
  44129. }, {
  44130. key: 'removeFormat',
  44131. value: function removeFormat(index, length) {
  44132. var text = this.getText(index, length);
  44133. var _scroll$line3 = this.scroll.line(index + length),
  44134. _scroll$line4 = _slicedToArray(_scroll$line3, 2),
  44135. line = _scroll$line4[0],
  44136. offset = _scroll$line4[1];
  44137. var suffixLength = 0,
  44138. suffix = new _quillDelta2.default();
  44139. if (line != null) {
  44140. if (!(line instanceof _code2.default)) {
  44141. suffixLength = line.length() - offset;
  44142. } else {
  44143. suffixLength = line.newlineIndex(offset) - offset + 1;
  44144. }
  44145. suffix = line.delta().slice(offset, offset + suffixLength - 1).insert('\n');
  44146. }
  44147. var contents = this.getContents(index, length + suffixLength);
  44148. var diff = contents.diff(new _quillDelta2.default().insert(text).concat(suffix));
  44149. var delta = new _quillDelta2.default().retain(index).concat(diff);
  44150. return this.applyDelta(delta);
  44151. }
  44152. }, {
  44153. key: 'update',
  44154. value: function update(change) {
  44155. var mutations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  44156. var cursorIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
  44157. var oldDelta = this.delta;
  44158. if (mutations.length === 1 && mutations[0].type === 'characterData' && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {
  44159. // Optimization for character changes
  44160. var textBlot = _parchment2.default.find(mutations[0].target);
  44161. var formats = (0, _block.bubbleFormats)(textBlot);
  44162. var index = textBlot.offset(this.scroll);
  44163. var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, '');
  44164. var oldText = new _quillDelta2.default().insert(oldValue);
  44165. var newText = new _quillDelta2.default().insert(textBlot.value());
  44166. var diffDelta = new _quillDelta2.default().retain(index).concat(oldText.diff(newText, cursorIndex));
  44167. change = diffDelta.reduce(function (delta, op) {
  44168. if (op.insert) {
  44169. return delta.insert(op.insert, formats);
  44170. } else {
  44171. return delta.push(op);
  44172. }
  44173. }, new _quillDelta2.default());
  44174. this.delta = oldDelta.compose(change);
  44175. } else {
  44176. this.delta = this.getDelta();
  44177. if (!change || !(0, _deepEqual2.default)(oldDelta.compose(change), this.delta)) {
  44178. change = oldDelta.diff(this.delta, cursorIndex);
  44179. }
  44180. }
  44181. return change;
  44182. }
  44183. }]);
  44184. return Editor;
  44185. }();
  44186. function combineFormats(formats, combined) {
  44187. return Object.keys(combined).reduce(function (merged, name) {
  44188. if (formats[name] == null) return merged;
  44189. if (combined[name] === formats[name]) {
  44190. merged[name] = combined[name];
  44191. } else if (Array.isArray(combined[name])) {
  44192. if (combined[name].indexOf(formats[name]) < 0) {
  44193. merged[name] = combined[name].concat([formats[name]]);
  44194. }
  44195. } else {
  44196. merged[name] = [combined[name], formats[name]];
  44197. }
  44198. return merged;
  44199. }, {});
  44200. }
  44201. function normalizeDelta(delta) {
  44202. return delta.reduce(function (delta, op) {
  44203. if (op.insert === 1) {
  44204. var attributes = (0, _clone2.default)(op.attributes);
  44205. delete attributes['image'];
  44206. return delta.insert({ image: op.attributes.image }, attributes);
  44207. }
  44208. if (op.attributes != null && (op.attributes.list === true || op.attributes.bullet === true)) {
  44209. op = (0, _clone2.default)(op);
  44210. if (op.attributes.list) {
  44211. op.attributes.list = 'ordered';
  44212. } else {
  44213. op.attributes.list = 'bullet';
  44214. delete op.attributes.bullet;
  44215. }
  44216. }
  44217. if (typeof op.insert === 'string') {
  44218. var text = op.insert.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44219. return delta.insert(text, op.attributes);
  44220. }
  44221. return delta.push(op);
  44222. }, new _quillDelta2.default());
  44223. }
  44224. exports.default = Editor;
  44225. /***/ }),
  44226. /* 15 */
  44227. /***/ (function(module, exports, __nested_webpack_require_98688__) {
  44228. "use strict";
  44229. Object.defineProperty(exports, "__esModule", {
  44230. value: true
  44231. });
  44232. exports.default = exports.Range = undefined;
  44233. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44234. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44235. var _parchment = __nested_webpack_require_98688__(0);
  44236. var _parchment2 = _interopRequireDefault(_parchment);
  44237. var _clone = __nested_webpack_require_98688__(21);
  44238. var _clone2 = _interopRequireDefault(_clone);
  44239. var _deepEqual = __nested_webpack_require_98688__(11);
  44240. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  44241. var _emitter3 = __nested_webpack_require_98688__(8);
  44242. var _emitter4 = _interopRequireDefault(_emitter3);
  44243. var _logger = __nested_webpack_require_98688__(10);
  44244. var _logger2 = _interopRequireDefault(_logger);
  44245. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44246. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  44247. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44248. var debug = (0, _logger2.default)('quill:selection');
  44249. var Range = function Range(index) {
  44250. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44251. _classCallCheck(this, Range);
  44252. this.index = index;
  44253. this.length = length;
  44254. };
  44255. var Selection = function () {
  44256. function Selection(scroll, emitter) {
  44257. var _this = this;
  44258. _classCallCheck(this, Selection);
  44259. this.emitter = emitter;
  44260. this.scroll = scroll;
  44261. this.composing = false;
  44262. this.mouseDown = false;
  44263. this.root = this.scroll.domNode;
  44264. this.cursor = _parchment2.default.create('cursor', this);
  44265. // savedRange is last non-null range
  44266. this.lastRange = this.savedRange = new Range(0, 0);
  44267. this.handleComposition();
  44268. this.handleDragging();
  44269. this.emitter.listenDOM('selectionchange', document, function () {
  44270. if (!_this.mouseDown) {
  44271. setTimeout(_this.update.bind(_this, _emitter4.default.sources.USER), 1);
  44272. }
  44273. });
  44274. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type, delta) {
  44275. if (type === _emitter4.default.events.TEXT_CHANGE && delta.length() > 0) {
  44276. _this.update(_emitter4.default.sources.SILENT);
  44277. }
  44278. });
  44279. this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE, function () {
  44280. if (!_this.hasFocus()) return;
  44281. var native = _this.getNativeRange();
  44282. if (native == null) return;
  44283. if (native.start.node === _this.cursor.textNode) return; // cursor.restore() will handle
  44284. // TODO unclear if this has negative side effects
  44285. _this.emitter.once(_emitter4.default.events.SCROLL_UPDATE, function () {
  44286. try {
  44287. _this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);
  44288. } catch (ignored) {}
  44289. });
  44290. });
  44291. this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE, function (mutations, context) {
  44292. if (context.range) {
  44293. var _context$range = context.range,
  44294. startNode = _context$range.startNode,
  44295. startOffset = _context$range.startOffset,
  44296. endNode = _context$range.endNode,
  44297. endOffset = _context$range.endOffset;
  44298. _this.setNativeRange(startNode, startOffset, endNode, endOffset);
  44299. }
  44300. });
  44301. this.update(_emitter4.default.sources.SILENT);
  44302. }
  44303. _createClass(Selection, [{
  44304. key: 'handleComposition',
  44305. value: function handleComposition() {
  44306. var _this2 = this;
  44307. this.root.addEventListener('compositionstart', function () {
  44308. _this2.composing = true;
  44309. });
  44310. this.root.addEventListener('compositionend', function () {
  44311. _this2.composing = false;
  44312. if (_this2.cursor.parent) {
  44313. var range = _this2.cursor.restore();
  44314. if (!range) return;
  44315. setTimeout(function () {
  44316. _this2.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);
  44317. }, 1);
  44318. }
  44319. });
  44320. }
  44321. }, {
  44322. key: 'handleDragging',
  44323. value: function handleDragging() {
  44324. var _this3 = this;
  44325. this.emitter.listenDOM('mousedown', document.body, function () {
  44326. _this3.mouseDown = true;
  44327. });
  44328. this.emitter.listenDOM('mouseup', document.body, function () {
  44329. _this3.mouseDown = false;
  44330. _this3.update(_emitter4.default.sources.USER);
  44331. });
  44332. }
  44333. }, {
  44334. key: 'focus',
  44335. value: function focus() {
  44336. if (this.hasFocus()) return;
  44337. this.root.focus();
  44338. this.setRange(this.savedRange);
  44339. }
  44340. }, {
  44341. key: 'format',
  44342. value: function format(_format, value) {
  44343. if (this.scroll.whitelist != null && !this.scroll.whitelist[_format]) return;
  44344. this.scroll.update();
  44345. var nativeRange = this.getNativeRange();
  44346. if (nativeRange == null || !nativeRange.native.collapsed || _parchment2.default.query(_format, _parchment2.default.Scope.BLOCK)) return;
  44347. if (nativeRange.start.node !== this.cursor.textNode) {
  44348. var blot = _parchment2.default.find(nativeRange.start.node, false);
  44349. if (blot == null) return;
  44350. // TODO Give blot ability to not split
  44351. if (blot instanceof _parchment2.default.Leaf) {
  44352. var after = blot.split(nativeRange.start.offset);
  44353. blot.parent.insertBefore(this.cursor, after);
  44354. } else {
  44355. blot.insertBefore(this.cursor, nativeRange.start.node); // Should never happen
  44356. }
  44357. this.cursor.attach();
  44358. }
  44359. this.cursor.format(_format, value);
  44360. this.scroll.optimize();
  44361. this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);
  44362. this.update();
  44363. }
  44364. }, {
  44365. key: 'getBounds',
  44366. value: function getBounds(index) {
  44367. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44368. var scrollLength = this.scroll.length();
  44369. index = Math.min(index, scrollLength - 1);
  44370. length = Math.min(index + length, scrollLength - 1) - index;
  44371. var node = void 0,
  44372. _scroll$leaf = this.scroll.leaf(index),
  44373. _scroll$leaf2 = _slicedToArray(_scroll$leaf, 2),
  44374. leaf = _scroll$leaf2[0],
  44375. offset = _scroll$leaf2[1];
  44376. if (leaf == null) return null;
  44377. var _leaf$position = leaf.position(offset, true);
  44378. var _leaf$position2 = _slicedToArray(_leaf$position, 2);
  44379. node = _leaf$position2[0];
  44380. offset = _leaf$position2[1];
  44381. var range = document.createRange();
  44382. if (length > 0) {
  44383. range.setStart(node, offset);
  44384. var _scroll$leaf3 = this.scroll.leaf(index + length);
  44385. var _scroll$leaf4 = _slicedToArray(_scroll$leaf3, 2);
  44386. leaf = _scroll$leaf4[0];
  44387. offset = _scroll$leaf4[1];
  44388. if (leaf == null) return null;
  44389. var _leaf$position3 = leaf.position(offset, true);
  44390. var _leaf$position4 = _slicedToArray(_leaf$position3, 2);
  44391. node = _leaf$position4[0];
  44392. offset = _leaf$position4[1];
  44393. range.setEnd(node, offset);
  44394. return range.getBoundingClientRect();
  44395. } else {
  44396. var side = 'left';
  44397. var rect = void 0;
  44398. if (node instanceof Text) {
  44399. if (offset < node.data.length) {
  44400. range.setStart(node, offset);
  44401. range.setEnd(node, offset + 1);
  44402. } else {
  44403. range.setStart(node, offset - 1);
  44404. range.setEnd(node, offset);
  44405. side = 'right';
  44406. }
  44407. rect = range.getBoundingClientRect();
  44408. } else {
  44409. rect = leaf.domNode.getBoundingClientRect();
  44410. if (offset > 0) side = 'right';
  44411. }
  44412. return {
  44413. bottom: rect.top + rect.height,
  44414. height: rect.height,
  44415. left: rect[side],
  44416. right: rect[side],
  44417. top: rect.top,
  44418. width: 0
  44419. };
  44420. }
  44421. }
  44422. }, {
  44423. key: 'getNativeRange',
  44424. value: function getNativeRange() {
  44425. var selection = document.getSelection();
  44426. if (selection == null || selection.rangeCount <= 0) return null;
  44427. var nativeRange = selection.getRangeAt(0);
  44428. if (nativeRange == null) return null;
  44429. var range = this.normalizeNative(nativeRange);
  44430. debug.info('getNativeRange', range);
  44431. return range;
  44432. }
  44433. }, {
  44434. key: 'getRange',
  44435. value: function getRange() {
  44436. var normalized = this.getNativeRange();
  44437. if (normalized == null) return [null, null];
  44438. var range = this.normalizedToRange(normalized);
  44439. return [range, normalized];
  44440. }
  44441. }, {
  44442. key: 'hasFocus',
  44443. value: function hasFocus() {
  44444. return document.activeElement === this.root;
  44445. }
  44446. }, {
  44447. key: 'normalizedToRange',
  44448. value: function normalizedToRange(range) {
  44449. var _this4 = this;
  44450. var positions = [[range.start.node, range.start.offset]];
  44451. if (!range.native.collapsed) {
  44452. positions.push([range.end.node, range.end.offset]);
  44453. }
  44454. var indexes = positions.map(function (position) {
  44455. var _position = _slicedToArray(position, 2),
  44456. node = _position[0],
  44457. offset = _position[1];
  44458. var blot = _parchment2.default.find(node, true);
  44459. var index = blot.offset(_this4.scroll);
  44460. if (offset === 0) {
  44461. return index;
  44462. } else if (blot instanceof _parchment2.default.Container) {
  44463. return index + blot.length();
  44464. } else {
  44465. return index + blot.index(node, offset);
  44466. }
  44467. });
  44468. var end = Math.min(Math.max.apply(Math, _toConsumableArray(indexes)), this.scroll.length() - 1);
  44469. var start = Math.min.apply(Math, [end].concat(_toConsumableArray(indexes)));
  44470. return new Range(start, end - start);
  44471. }
  44472. }, {
  44473. key: 'normalizeNative',
  44474. value: function normalizeNative(nativeRange) {
  44475. if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {
  44476. return null;
  44477. }
  44478. var range = {
  44479. start: { node: nativeRange.startContainer, offset: nativeRange.startOffset },
  44480. end: { node: nativeRange.endContainer, offset: nativeRange.endOffset },
  44481. native: nativeRange
  44482. };
  44483. [range.start, range.end].forEach(function (position) {
  44484. var node = position.node,
  44485. offset = position.offset;
  44486. while (!(node instanceof Text) && node.childNodes.length > 0) {
  44487. if (node.childNodes.length > offset) {
  44488. node = node.childNodes[offset];
  44489. offset = 0;
  44490. } else if (node.childNodes.length === offset) {
  44491. node = node.lastChild;
  44492. offset = node instanceof Text ? node.data.length : node.childNodes.length + 1;
  44493. } else {
  44494. break;
  44495. }
  44496. }
  44497. position.node = node, position.offset = offset;
  44498. });
  44499. return range;
  44500. }
  44501. }, {
  44502. key: 'rangeToNative',
  44503. value: function rangeToNative(range) {
  44504. var _this5 = this;
  44505. var indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];
  44506. var args = [];
  44507. var scrollLength = this.scroll.length();
  44508. indexes.forEach(function (index, i) {
  44509. index = Math.min(scrollLength - 1, index);
  44510. var node = void 0,
  44511. _scroll$leaf5 = _this5.scroll.leaf(index),
  44512. _scroll$leaf6 = _slicedToArray(_scroll$leaf5, 2),
  44513. leaf = _scroll$leaf6[0],
  44514. offset = _scroll$leaf6[1];
  44515. var _leaf$position5 = leaf.position(offset, i !== 0);
  44516. var _leaf$position6 = _slicedToArray(_leaf$position5, 2);
  44517. node = _leaf$position6[0];
  44518. offset = _leaf$position6[1];
  44519. args.push(node, offset);
  44520. });
  44521. if (args.length < 2) {
  44522. args = args.concat(args);
  44523. }
  44524. return args;
  44525. }
  44526. }, {
  44527. key: 'scrollIntoView',
  44528. value: function scrollIntoView(scrollingContainer) {
  44529. var range = this.lastRange;
  44530. if (range == null) return;
  44531. var bounds = this.getBounds(range.index, range.length);
  44532. if (bounds == null) return;
  44533. var limit = this.scroll.length() - 1;
  44534. var _scroll$line = this.scroll.line(Math.min(range.index, limit)),
  44535. _scroll$line2 = _slicedToArray(_scroll$line, 1),
  44536. first = _scroll$line2[0];
  44537. var last = first;
  44538. if (range.length > 0) {
  44539. var _scroll$line3 = this.scroll.line(Math.min(range.index + range.length, limit));
  44540. var _scroll$line4 = _slicedToArray(_scroll$line3, 1);
  44541. last = _scroll$line4[0];
  44542. }
  44543. if (first == null || last == null) return;
  44544. var scrollBounds = scrollingContainer.getBoundingClientRect();
  44545. if (bounds.top < scrollBounds.top) {
  44546. scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;
  44547. } else if (bounds.bottom > scrollBounds.bottom) {
  44548. scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;
  44549. }
  44550. }
  44551. }, {
  44552. key: 'setNativeRange',
  44553. value: function setNativeRange(startNode, startOffset) {
  44554. var endNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : startNode;
  44555. var endOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : startOffset;
  44556. var force = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  44557. debug.info('setNativeRange', startNode, startOffset, endNode, endOffset);
  44558. if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {
  44559. return;
  44560. }
  44561. var selection = document.getSelection();
  44562. if (selection == null) return;
  44563. if (startNode != null) {
  44564. if (!this.hasFocus()) this.root.focus();
  44565. var native = (this.getNativeRange() || {}).native;
  44566. if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {
  44567. if (startNode.tagName == "BR") {
  44568. startOffset = [].indexOf.call(startNode.parentNode.childNodes, startNode);
  44569. startNode = startNode.parentNode;
  44570. }
  44571. if (endNode.tagName == "BR") {
  44572. endOffset = [].indexOf.call(endNode.parentNode.childNodes, endNode);
  44573. endNode = endNode.parentNode;
  44574. }
  44575. var range = document.createRange();
  44576. range.setStart(startNode, startOffset);
  44577. range.setEnd(endNode, endOffset);
  44578. selection.removeAllRanges();
  44579. selection.addRange(range);
  44580. }
  44581. } else {
  44582. selection.removeAllRanges();
  44583. this.root.blur();
  44584. document.body.focus(); // root.blur() not enough on IE11+Travis+SauceLabs (but not local VMs)
  44585. }
  44586. }
  44587. }, {
  44588. key: 'setRange',
  44589. value: function setRange(range) {
  44590. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  44591. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  44592. if (typeof force === 'string') {
  44593. source = force;
  44594. force = false;
  44595. }
  44596. debug.info('setRange', range);
  44597. if (range != null) {
  44598. var args = this.rangeToNative(range);
  44599. this.setNativeRange.apply(this, _toConsumableArray(args).concat([force]));
  44600. } else {
  44601. this.setNativeRange(null);
  44602. }
  44603. this.update(source);
  44604. }
  44605. }, {
  44606. key: 'update',
  44607. value: function update() {
  44608. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  44609. var oldRange = this.lastRange;
  44610. var _getRange = this.getRange(),
  44611. _getRange2 = _slicedToArray(_getRange, 2),
  44612. lastRange = _getRange2[0],
  44613. nativeRange = _getRange2[1];
  44614. this.lastRange = lastRange;
  44615. if (this.lastRange != null) {
  44616. this.savedRange = this.lastRange;
  44617. }
  44618. if (!(0, _deepEqual2.default)(oldRange, this.lastRange)) {
  44619. var _emitter;
  44620. if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {
  44621. this.cursor.restore();
  44622. }
  44623. var args = [_emitter4.default.events.SELECTION_CHANGE, (0, _clone2.default)(this.lastRange), (0, _clone2.default)(oldRange), source];
  44624. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  44625. if (source !== _emitter4.default.sources.SILENT) {
  44626. var _emitter2;
  44627. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  44628. }
  44629. }
  44630. }
  44631. }]);
  44632. return Selection;
  44633. }();
  44634. function contains(parent, descendant) {
  44635. try {
  44636. // Firefox inserts inaccessible nodes around video elements
  44637. descendant.parentNode;
  44638. } catch (e) {
  44639. return false;
  44640. }
  44641. // IE11 has bug with Text nodes
  44642. // https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrect
  44643. if (descendant instanceof Text) {
  44644. descendant = descendant.parentNode;
  44645. }
  44646. return parent.contains(descendant);
  44647. }
  44648. exports.Range = Range;
  44649. exports.default = Selection;
  44650. /***/ }),
  44651. /* 16 */
  44652. /***/ (function(module, exports, __nested_webpack_require_116908__) {
  44653. "use strict";
  44654. Object.defineProperty(exports, "__esModule", {
  44655. value: true
  44656. });
  44657. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44658. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  44659. var _parchment = __nested_webpack_require_116908__(0);
  44660. var _parchment2 = _interopRequireDefault(_parchment);
  44661. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44662. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44663. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44664. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  44665. var Break = function (_Parchment$Embed) {
  44666. _inherits(Break, _Parchment$Embed);
  44667. function Break() {
  44668. _classCallCheck(this, Break);
  44669. return _possibleConstructorReturn(this, (Break.__proto__ || Object.getPrototypeOf(Break)).apply(this, arguments));
  44670. }
  44671. _createClass(Break, [{
  44672. key: 'insertInto',
  44673. value: function insertInto(parent, ref) {
  44674. if (parent.children.length === 0) {
  44675. _get(Break.prototype.__proto__ || Object.getPrototypeOf(Break.prototype), 'insertInto', this).call(this, parent, ref);
  44676. } else {
  44677. this.remove();
  44678. }
  44679. }
  44680. }, {
  44681. key: 'length',
  44682. value: function length() {
  44683. return 0;
  44684. }
  44685. }, {
  44686. key: 'value',
  44687. value: function value() {
  44688. return '';
  44689. }
  44690. }], [{
  44691. key: 'value',
  44692. value: function value() {
  44693. return undefined;
  44694. }
  44695. }]);
  44696. return Break;
  44697. }(_parchment2.default.Embed);
  44698. Break.blotName = 'break';
  44699. Break.tagName = 'BR';
  44700. exports.default = Break;
  44701. /***/ }),
  44702. /* 17 */
  44703. /***/ (function(module, exports, __nested_webpack_require_120162__) {
  44704. "use strict";
  44705. var __extends = (this && this.__extends) || (function () {
  44706. var extendStatics = Object.setPrototypeOf ||
  44707. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  44708. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  44709. return function (d, b) {
  44710. extendStatics(d, b);
  44711. function __() { this.constructor = d; }
  44712. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  44713. };
  44714. })();
  44715. Object.defineProperty(exports, "__esModule", { value: true });
  44716. var linked_list_1 = __nested_webpack_require_120162__(44);
  44717. var shadow_1 = __nested_webpack_require_120162__(30);
  44718. var Registry = __nested_webpack_require_120162__(1);
  44719. var ContainerBlot = /** @class */ (function (_super) {
  44720. __extends(ContainerBlot, _super);
  44721. function ContainerBlot(domNode) {
  44722. var _this = _super.call(this, domNode) || this;
  44723. _this.build();
  44724. return _this;
  44725. }
  44726. ContainerBlot.prototype.appendChild = function (other) {
  44727. this.insertBefore(other);
  44728. };
  44729. ContainerBlot.prototype.attach = function () {
  44730. _super.prototype.attach.call(this);
  44731. this.children.forEach(function (child) {
  44732. child.attach();
  44733. });
  44734. };
  44735. ContainerBlot.prototype.build = function () {
  44736. var _this = this;
  44737. this.children = new linked_list_1.default();
  44738. // Need to be reversed for if DOM nodes already in order
  44739. [].slice
  44740. .call(this.domNode.childNodes)
  44741. .reverse()
  44742. .forEach(function (node) {
  44743. try {
  44744. var child = makeBlot(node);
  44745. _this.insertBefore(child, _this.children.head || undefined);
  44746. }
  44747. catch (err) {
  44748. if (err instanceof Registry.ParchmentError)
  44749. return;
  44750. else
  44751. throw err;
  44752. }
  44753. });
  44754. };
  44755. ContainerBlot.prototype.deleteAt = function (index, length) {
  44756. if (index === 0 && length === this.length()) {
  44757. return this.remove();
  44758. }
  44759. this.children.forEachAt(index, length, function (child, offset, length) {
  44760. child.deleteAt(offset, length);
  44761. });
  44762. };
  44763. ContainerBlot.prototype.descendant = function (criteria, index) {
  44764. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  44765. if ((criteria.blotName == null && criteria(child)) ||
  44766. (criteria.blotName != null && child instanceof criteria)) {
  44767. return [child, offset];
  44768. }
  44769. else if (child instanceof ContainerBlot) {
  44770. return child.descendant(criteria, offset);
  44771. }
  44772. else {
  44773. return [null, -1];
  44774. }
  44775. };
  44776. ContainerBlot.prototype.descendants = function (criteria, index, length) {
  44777. if (index === void 0) { index = 0; }
  44778. if (length === void 0) { length = Number.MAX_VALUE; }
  44779. var descendants = [];
  44780. var lengthLeft = length;
  44781. this.children.forEachAt(index, length, function (child, index, length) {
  44782. if ((criteria.blotName == null && criteria(child)) ||
  44783. (criteria.blotName != null && child instanceof criteria)) {
  44784. descendants.push(child);
  44785. }
  44786. if (child instanceof ContainerBlot) {
  44787. descendants = descendants.concat(child.descendants(criteria, index, lengthLeft));
  44788. }
  44789. lengthLeft -= length;
  44790. });
  44791. return descendants;
  44792. };
  44793. ContainerBlot.prototype.detach = function () {
  44794. this.children.forEach(function (child) {
  44795. child.detach();
  44796. });
  44797. _super.prototype.detach.call(this);
  44798. };
  44799. ContainerBlot.prototype.formatAt = function (index, length, name, value) {
  44800. this.children.forEachAt(index, length, function (child, offset, length) {
  44801. child.formatAt(offset, length, name, value);
  44802. });
  44803. };
  44804. ContainerBlot.prototype.insertAt = function (index, value, def) {
  44805. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  44806. if (child) {
  44807. child.insertAt(offset, value, def);
  44808. }
  44809. else {
  44810. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  44811. this.appendChild(blot);
  44812. }
  44813. };
  44814. ContainerBlot.prototype.insertBefore = function (childBlot, refBlot) {
  44815. if (this.statics.allowedChildren != null &&
  44816. !this.statics.allowedChildren.some(function (child) {
  44817. return childBlot instanceof child;
  44818. })) {
  44819. throw new Registry.ParchmentError("Cannot insert " + childBlot.statics.blotName + " into " + this.statics.blotName);
  44820. }
  44821. childBlot.insertInto(this, refBlot);
  44822. };
  44823. ContainerBlot.prototype.length = function () {
  44824. return this.children.reduce(function (memo, child) {
  44825. return memo + child.length();
  44826. }, 0);
  44827. };
  44828. ContainerBlot.prototype.moveChildren = function (targetParent, refNode) {
  44829. this.children.forEach(function (child) {
  44830. targetParent.insertBefore(child, refNode);
  44831. });
  44832. };
  44833. ContainerBlot.prototype.optimize = function (context) {
  44834. _super.prototype.optimize.call(this, context);
  44835. if (this.children.length === 0) {
  44836. if (this.statics.defaultChild != null) {
  44837. var child = Registry.create(this.statics.defaultChild);
  44838. this.appendChild(child);
  44839. child.optimize(context);
  44840. }
  44841. else {
  44842. this.remove();
  44843. }
  44844. }
  44845. };
  44846. ContainerBlot.prototype.path = function (index, inclusive) {
  44847. if (inclusive === void 0) { inclusive = false; }
  44848. var _a = this.children.find(index, inclusive), child = _a[0], offset = _a[1];
  44849. var position = [[this, index]];
  44850. if (child instanceof ContainerBlot) {
  44851. return position.concat(child.path(offset, inclusive));
  44852. }
  44853. else if (child != null) {
  44854. position.push([child, offset]);
  44855. }
  44856. return position;
  44857. };
  44858. ContainerBlot.prototype.removeChild = function (child) {
  44859. this.children.remove(child);
  44860. };
  44861. ContainerBlot.prototype.replace = function (target) {
  44862. if (target instanceof ContainerBlot) {
  44863. target.moveChildren(this);
  44864. }
  44865. _super.prototype.replace.call(this, target);
  44866. };
  44867. ContainerBlot.prototype.split = function (index, force) {
  44868. if (force === void 0) { force = false; }
  44869. if (!force) {
  44870. if (index === 0)
  44871. return this;
  44872. if (index === this.length())
  44873. return this.next;
  44874. }
  44875. var after = this.clone();
  44876. this.parent.insertBefore(after, this.next);
  44877. this.children.forEachAt(index, this.length(), function (child, offset, length) {
  44878. child = child.split(offset, force);
  44879. after.appendChild(child);
  44880. });
  44881. return after;
  44882. };
  44883. ContainerBlot.prototype.unwrap = function () {
  44884. this.moveChildren(this.parent, this.next);
  44885. this.remove();
  44886. };
  44887. ContainerBlot.prototype.update = function (mutations, context) {
  44888. var _this = this;
  44889. var addedNodes = [];
  44890. var removedNodes = [];
  44891. mutations.forEach(function (mutation) {
  44892. if (mutation.target === _this.domNode && mutation.type === 'childList') {
  44893. addedNodes.push.apply(addedNodes, mutation.addedNodes);
  44894. removedNodes.push.apply(removedNodes, mutation.removedNodes);
  44895. }
  44896. });
  44897. removedNodes.forEach(function (node) {
  44898. // Check node has actually been removed
  44899. // One exception is Chrome does not immediately remove IFRAMEs
  44900. // from DOM but MutationRecord is correct in its reported removal
  44901. if (node.parentNode != null &&
  44902. // @ts-ignore
  44903. node.tagName !== 'IFRAME' &&
  44904. document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  44905. return;
  44906. }
  44907. var blot = Registry.find(node);
  44908. if (blot == null)
  44909. return;
  44910. if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {
  44911. blot.detach();
  44912. }
  44913. });
  44914. addedNodes
  44915. .filter(function (node) {
  44916. return node.parentNode == _this.domNode;
  44917. })
  44918. .sort(function (a, b) {
  44919. if (a === b)
  44920. return 0;
  44921. if (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) {
  44922. return 1;
  44923. }
  44924. return -1;
  44925. })
  44926. .forEach(function (node) {
  44927. var refBlot = null;
  44928. if (node.nextSibling != null) {
  44929. refBlot = Registry.find(node.nextSibling);
  44930. }
  44931. var blot = makeBlot(node);
  44932. if (blot.next != refBlot || blot.next == null) {
  44933. if (blot.parent != null) {
  44934. blot.parent.removeChild(_this);
  44935. }
  44936. _this.insertBefore(blot, refBlot || undefined);
  44937. }
  44938. });
  44939. };
  44940. return ContainerBlot;
  44941. }(shadow_1.default));
  44942. function makeBlot(node) {
  44943. var blot = Registry.find(node);
  44944. if (blot == null) {
  44945. try {
  44946. blot = Registry.create(node);
  44947. }
  44948. catch (e) {
  44949. blot = Registry.create(Registry.Scope.INLINE);
  44950. [].slice.call(node.childNodes).forEach(function (child) {
  44951. // @ts-ignore
  44952. blot.domNode.appendChild(child);
  44953. });
  44954. if (node.parentNode) {
  44955. node.parentNode.replaceChild(blot.domNode, node);
  44956. }
  44957. blot.attach();
  44958. }
  44959. }
  44960. return blot;
  44961. }
  44962. exports.default = ContainerBlot;
  44963. /***/ }),
  44964. /* 18 */
  44965. /***/ (function(module, exports, __nested_webpack_require_130088__) {
  44966. "use strict";
  44967. var __extends = (this && this.__extends) || (function () {
  44968. var extendStatics = Object.setPrototypeOf ||
  44969. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  44970. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  44971. return function (d, b) {
  44972. extendStatics(d, b);
  44973. function __() { this.constructor = d; }
  44974. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  44975. };
  44976. })();
  44977. Object.defineProperty(exports, "__esModule", { value: true });
  44978. var attributor_1 = __nested_webpack_require_130088__(12);
  44979. var store_1 = __nested_webpack_require_130088__(31);
  44980. var container_1 = __nested_webpack_require_130088__(17);
  44981. var Registry = __nested_webpack_require_130088__(1);
  44982. var FormatBlot = /** @class */ (function (_super) {
  44983. __extends(FormatBlot, _super);
  44984. function FormatBlot(domNode) {
  44985. var _this = _super.call(this, domNode) || this;
  44986. _this.attributes = new store_1.default(_this.domNode);
  44987. return _this;
  44988. }
  44989. FormatBlot.formats = function (domNode) {
  44990. if (typeof this.tagName === 'string') {
  44991. return true;
  44992. }
  44993. else if (Array.isArray(this.tagName)) {
  44994. return domNode.tagName.toLowerCase();
  44995. }
  44996. return undefined;
  44997. };
  44998. FormatBlot.prototype.format = function (name, value) {
  44999. var format = Registry.query(name);
  45000. if (format instanceof attributor_1.default) {
  45001. this.attributes.attribute(format, value);
  45002. }
  45003. else if (value) {
  45004. if (format != null && (name !== this.statics.blotName || this.formats()[name] !== value)) {
  45005. this.replaceWith(name, value);
  45006. }
  45007. }
  45008. };
  45009. FormatBlot.prototype.formats = function () {
  45010. var formats = this.attributes.values();
  45011. var format = this.statics.formats(this.domNode);
  45012. if (format != null) {
  45013. formats[this.statics.blotName] = format;
  45014. }
  45015. return formats;
  45016. };
  45017. FormatBlot.prototype.replaceWith = function (name, value) {
  45018. var replacement = _super.prototype.replaceWith.call(this, name, value);
  45019. this.attributes.copy(replacement);
  45020. return replacement;
  45021. };
  45022. FormatBlot.prototype.update = function (mutations, context) {
  45023. var _this = this;
  45024. _super.prototype.update.call(this, mutations, context);
  45025. if (mutations.some(function (mutation) {
  45026. return mutation.target === _this.domNode && mutation.type === 'attributes';
  45027. })) {
  45028. this.attributes.build();
  45029. }
  45030. };
  45031. FormatBlot.prototype.wrap = function (name, value) {
  45032. var wrapper = _super.prototype.wrap.call(this, name, value);
  45033. if (wrapper instanceof FormatBlot && wrapper.statics.scope === this.statics.scope) {
  45034. this.attributes.move(wrapper);
  45035. }
  45036. return wrapper;
  45037. };
  45038. return FormatBlot;
  45039. }(container_1.default));
  45040. exports.default = FormatBlot;
  45041. /***/ }),
  45042. /* 19 */
  45043. /***/ (function(module, exports, __nested_webpack_require_133111__) {
  45044. "use strict";
  45045. var __extends = (this && this.__extends) || (function () {
  45046. var extendStatics = Object.setPrototypeOf ||
  45047. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45048. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45049. return function (d, b) {
  45050. extendStatics(d, b);
  45051. function __() { this.constructor = d; }
  45052. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45053. };
  45054. })();
  45055. Object.defineProperty(exports, "__esModule", { value: true });
  45056. var shadow_1 = __nested_webpack_require_133111__(30);
  45057. var Registry = __nested_webpack_require_133111__(1);
  45058. var LeafBlot = /** @class */ (function (_super) {
  45059. __extends(LeafBlot, _super);
  45060. function LeafBlot() {
  45061. return _super !== null && _super.apply(this, arguments) || this;
  45062. }
  45063. LeafBlot.value = function (domNode) {
  45064. return true;
  45065. };
  45066. LeafBlot.prototype.index = function (node, offset) {
  45067. if (this.domNode === node ||
  45068. this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  45069. return Math.min(offset, 1);
  45070. }
  45071. return -1;
  45072. };
  45073. LeafBlot.prototype.position = function (index, inclusive) {
  45074. var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
  45075. if (index > 0)
  45076. offset += 1;
  45077. return [this.parent.domNode, offset];
  45078. };
  45079. LeafBlot.prototype.value = function () {
  45080. var _a;
  45081. return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;
  45082. };
  45083. LeafBlot.scope = Registry.Scope.INLINE_BLOT;
  45084. return LeafBlot;
  45085. }(shadow_1.default));
  45086. exports.default = LeafBlot;
  45087. /***/ }),
  45088. /* 20 */
  45089. /***/ (function(module, exports, __nested_webpack_require_134898__) {
  45090. var equal = __nested_webpack_require_134898__(11);
  45091. var extend = __nested_webpack_require_134898__(3);
  45092. var lib = {
  45093. attributes: {
  45094. compose: function (a, b, keepNull) {
  45095. if (typeof a !== 'object') a = {};
  45096. if (typeof b !== 'object') b = {};
  45097. var attributes = extend(true, {}, b);
  45098. if (!keepNull) {
  45099. attributes = Object.keys(attributes).reduce(function (copy, key) {
  45100. if (attributes[key] != null) {
  45101. copy[key] = attributes[key];
  45102. }
  45103. return copy;
  45104. }, {});
  45105. }
  45106. for (var key in a) {
  45107. if (a[key] !== undefined && b[key] === undefined) {
  45108. attributes[key] = a[key];
  45109. }
  45110. }
  45111. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45112. },
  45113. diff: function(a, b) {
  45114. if (typeof a !== 'object') a = {};
  45115. if (typeof b !== 'object') b = {};
  45116. var attributes = Object.keys(a).concat(Object.keys(b)).reduce(function (attributes, key) {
  45117. if (!equal(a[key], b[key])) {
  45118. attributes[key] = b[key] === undefined ? null : b[key];
  45119. }
  45120. return attributes;
  45121. }, {});
  45122. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45123. },
  45124. transform: function (a, b, priority) {
  45125. if (typeof a !== 'object') return b;
  45126. if (typeof b !== 'object') return undefined;
  45127. if (!priority) return b; // b simply overwrites us without priority
  45128. var attributes = Object.keys(b).reduce(function (attributes, key) {
  45129. if (a[key] === undefined) attributes[key] = b[key]; // null is a valid value
  45130. return attributes;
  45131. }, {});
  45132. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45133. }
  45134. },
  45135. iterator: function (ops) {
  45136. return new Iterator(ops);
  45137. },
  45138. length: function (op) {
  45139. if (typeof op['delete'] === 'number') {
  45140. return op['delete'];
  45141. } else if (typeof op.retain === 'number') {
  45142. return op.retain;
  45143. } else {
  45144. return typeof op.insert === 'string' ? op.insert.length : 1;
  45145. }
  45146. }
  45147. };
  45148. function Iterator(ops) {
  45149. this.ops = ops;
  45150. this.index = 0;
  45151. this.offset = 0;
  45152. };
  45153. Iterator.prototype.hasNext = function () {
  45154. return this.peekLength() < Infinity;
  45155. };
  45156. Iterator.prototype.next = function (length) {
  45157. if (!length) length = Infinity;
  45158. var nextOp = this.ops[this.index];
  45159. if (nextOp) {
  45160. var offset = this.offset;
  45161. var opLength = lib.length(nextOp)
  45162. if (length >= opLength - offset) {
  45163. length = opLength - offset;
  45164. this.index += 1;
  45165. this.offset = 0;
  45166. } else {
  45167. this.offset += length;
  45168. }
  45169. if (typeof nextOp['delete'] === 'number') {
  45170. return { 'delete': length };
  45171. } else {
  45172. var retOp = {};
  45173. if (nextOp.attributes) {
  45174. retOp.attributes = nextOp.attributes;
  45175. }
  45176. if (typeof nextOp.retain === 'number') {
  45177. retOp.retain = length;
  45178. } else if (typeof nextOp.insert === 'string') {
  45179. retOp.insert = nextOp.insert.substr(offset, length);
  45180. } else {
  45181. // offset should === 0, length should === 1
  45182. retOp.insert = nextOp.insert;
  45183. }
  45184. return retOp;
  45185. }
  45186. } else {
  45187. return { retain: Infinity };
  45188. }
  45189. };
  45190. Iterator.prototype.peek = function () {
  45191. return this.ops[this.index];
  45192. };
  45193. Iterator.prototype.peekLength = function () {
  45194. if (this.ops[this.index]) {
  45195. // Should never return 0 if our index is being managed correctly
  45196. return lib.length(this.ops[this.index]) - this.offset;
  45197. } else {
  45198. return Infinity;
  45199. }
  45200. };
  45201. Iterator.prototype.peekType = function () {
  45202. if (this.ops[this.index]) {
  45203. if (typeof this.ops[this.index]['delete'] === 'number') {
  45204. return 'delete';
  45205. } else if (typeof this.ops[this.index].retain === 'number') {
  45206. return 'retain';
  45207. } else {
  45208. return 'insert';
  45209. }
  45210. }
  45211. return 'retain';
  45212. };
  45213. Iterator.prototype.rest = function () {
  45214. if (!this.hasNext()) {
  45215. return [];
  45216. } else if (this.offset === 0) {
  45217. return this.ops.slice(this.index);
  45218. } else {
  45219. var offset = this.offset;
  45220. var index = this.index;
  45221. var next = this.next();
  45222. var rest = this.ops.slice(this.index);
  45223. this.offset = offset;
  45224. this.index = index;
  45225. return [next].concat(rest);
  45226. }
  45227. };
  45228. module.exports = lib;
  45229. /***/ }),
  45230. /* 21 */
  45231. /***/ (function(module, exports) {
  45232. var clone = (function() {
  45233. 'use strict';
  45234. function _instanceof(obj, type) {
  45235. return type != null && obj instanceof type;
  45236. }
  45237. var nativeMap;
  45238. try {
  45239. nativeMap = Map;
  45240. } catch(_) {
  45241. // maybe a reference error because no `Map`. Give it a dummy value that no
  45242. // value will ever be an instanceof.
  45243. nativeMap = function() {};
  45244. }
  45245. var nativeSet;
  45246. try {
  45247. nativeSet = Set;
  45248. } catch(_) {
  45249. nativeSet = function() {};
  45250. }
  45251. var nativePromise;
  45252. try {
  45253. nativePromise = Promise;
  45254. } catch(_) {
  45255. nativePromise = function() {};
  45256. }
  45257. /**
  45258. * Clones (copies) an Object using deep copying.
  45259. *
  45260. * This function supports circular references by default, but if you are certain
  45261. * there are no circular references in your object, you can save some CPU time
  45262. * by calling clone(obj, false).
  45263. *
  45264. * Caution: if `circular` is false and `parent` contains circular references,
  45265. * your program may enter an infinite loop and crash.
  45266. *
  45267. * @param `parent` - the object to be cloned
  45268. * @param `circular` - set to true if the object to be cloned may contain
  45269. * circular references. (optional - true by default)
  45270. * @param `depth` - set to a number if the object is only to be cloned to
  45271. * a particular depth. (optional - defaults to Infinity)
  45272. * @param `prototype` - sets the prototype to be used when cloning an object.
  45273. * (optional - defaults to parent prototype).
  45274. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  45275. * should be cloned as well. Non-enumerable properties on the prototype
  45276. * chain will be ignored. (optional - false by default)
  45277. */
  45278. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  45279. if (typeof circular === 'object') {
  45280. depth = circular.depth;
  45281. prototype = circular.prototype;
  45282. includeNonEnumerable = circular.includeNonEnumerable;
  45283. circular = circular.circular;
  45284. }
  45285. // maintain two arrays for circular references, where corresponding parents
  45286. // and children have the same index
  45287. var allParents = [];
  45288. var allChildren = [];
  45289. var useBuffer = typeof Buffer != 'undefined';
  45290. if (typeof circular == 'undefined')
  45291. circular = true;
  45292. if (typeof depth == 'undefined')
  45293. depth = Infinity;
  45294. // recurse this function so we don't reset allParents and allChildren
  45295. function _clone(parent, depth) {
  45296. // cloning null always returns null
  45297. if (parent === null)
  45298. return null;
  45299. if (depth === 0)
  45300. return parent;
  45301. var child;
  45302. var proto;
  45303. if (typeof parent != 'object') {
  45304. return parent;
  45305. }
  45306. if (_instanceof(parent, nativeMap)) {
  45307. child = new nativeMap();
  45308. } else if (_instanceof(parent, nativeSet)) {
  45309. child = new nativeSet();
  45310. } else if (_instanceof(parent, nativePromise)) {
  45311. child = new nativePromise(function (resolve, reject) {
  45312. parent.then(function(value) {
  45313. resolve(_clone(value, depth - 1));
  45314. }, function(err) {
  45315. reject(_clone(err, depth - 1));
  45316. });
  45317. });
  45318. } else if (clone.__isArray(parent)) {
  45319. child = [];
  45320. } else if (clone.__isRegExp(parent)) {
  45321. child = new RegExp(parent.source, __getRegExpFlags(parent));
  45322. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  45323. } else if (clone.__isDate(parent)) {
  45324. child = new Date(parent.getTime());
  45325. } else if (useBuffer && Buffer.isBuffer(parent)) {
  45326. if (Buffer.allocUnsafe) {
  45327. // Node.js >= 4.5.0
  45328. child = Buffer.allocUnsafe(parent.length);
  45329. } else {
  45330. // Older Node.js versions
  45331. child = new Buffer(parent.length);
  45332. }
  45333. parent.copy(child);
  45334. return child;
  45335. } else if (_instanceof(parent, Error)) {
  45336. child = Object.create(parent);
  45337. } else {
  45338. if (typeof prototype == 'undefined') {
  45339. proto = Object.getPrototypeOf(parent);
  45340. child = Object.create(proto);
  45341. }
  45342. else {
  45343. child = Object.create(prototype);
  45344. proto = prototype;
  45345. }
  45346. }
  45347. if (circular) {
  45348. var index = allParents.indexOf(parent);
  45349. if (index != -1) {
  45350. return allChildren[index];
  45351. }
  45352. allParents.push(parent);
  45353. allChildren.push(child);
  45354. }
  45355. if (_instanceof(parent, nativeMap)) {
  45356. parent.forEach(function(value, key) {
  45357. var keyChild = _clone(key, depth - 1);
  45358. var valueChild = _clone(value, depth - 1);
  45359. child.set(keyChild, valueChild);
  45360. });
  45361. }
  45362. if (_instanceof(parent, nativeSet)) {
  45363. parent.forEach(function(value) {
  45364. var entryChild = _clone(value, depth - 1);
  45365. child.add(entryChild);
  45366. });
  45367. }
  45368. for (var i in parent) {
  45369. var attrs;
  45370. if (proto) {
  45371. attrs = Object.getOwnPropertyDescriptor(proto, i);
  45372. }
  45373. if (attrs && attrs.set == null) {
  45374. continue;
  45375. }
  45376. child[i] = _clone(parent[i], depth - 1);
  45377. }
  45378. if (Object.getOwnPropertySymbols) {
  45379. var symbols = Object.getOwnPropertySymbols(parent);
  45380. for (var i = 0; i < symbols.length; i++) {
  45381. // Don't need to worry about cloning a symbol because it is a primitive,
  45382. // like a number or string.
  45383. var symbol = symbols[i];
  45384. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  45385. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  45386. continue;
  45387. }
  45388. child[symbol] = _clone(parent[symbol], depth - 1);
  45389. if (!descriptor.enumerable) {
  45390. Object.defineProperty(child, symbol, {
  45391. enumerable: false
  45392. });
  45393. }
  45394. }
  45395. }
  45396. if (includeNonEnumerable) {
  45397. var allPropertyNames = Object.getOwnPropertyNames(parent);
  45398. for (var i = 0; i < allPropertyNames.length; i++) {
  45399. var propertyName = allPropertyNames[i];
  45400. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  45401. if (descriptor && descriptor.enumerable) {
  45402. continue;
  45403. }
  45404. child[propertyName] = _clone(parent[propertyName], depth - 1);
  45405. Object.defineProperty(child, propertyName, {
  45406. enumerable: false
  45407. });
  45408. }
  45409. }
  45410. return child;
  45411. }
  45412. return _clone(parent, depth);
  45413. }
  45414. /**
  45415. * Simple flat clone using prototype, accepts only objects, usefull for property
  45416. * override on FLAT configuration object (no nested props).
  45417. *
  45418. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  45419. * works.
  45420. */
  45421. clone.clonePrototype = function clonePrototype(parent) {
  45422. if (parent === null)
  45423. return null;
  45424. var c = function () {};
  45425. c.prototype = parent;
  45426. return new c();
  45427. };
  45428. // private utility functions
  45429. function __objToStr(o) {
  45430. return Object.prototype.toString.call(o);
  45431. }
  45432. clone.__objToStr = __objToStr;
  45433. function __isDate(o) {
  45434. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  45435. }
  45436. clone.__isDate = __isDate;
  45437. function __isArray(o) {
  45438. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  45439. }
  45440. clone.__isArray = __isArray;
  45441. function __isRegExp(o) {
  45442. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  45443. }
  45444. clone.__isRegExp = __isRegExp;
  45445. function __getRegExpFlags(re) {
  45446. var flags = '';
  45447. if (re.global) flags += 'g';
  45448. if (re.ignoreCase) flags += 'i';
  45449. if (re.multiline) flags += 'm';
  45450. return flags;
  45451. }
  45452. clone.__getRegExpFlags = __getRegExpFlags;
  45453. return clone;
  45454. })();
  45455. if (typeof module === 'object' && module.exports) {
  45456. module.exports = clone;
  45457. }
  45458. /***/ }),
  45459. /* 22 */
  45460. /***/ (function(module, exports, __nested_webpack_require_146497__) {
  45461. "use strict";
  45462. Object.defineProperty(exports, "__esModule", {
  45463. value: true
  45464. });
  45465. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  45466. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45467. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  45468. var _parchment = __nested_webpack_require_146497__(0);
  45469. var _parchment2 = _interopRequireDefault(_parchment);
  45470. var _emitter = __nested_webpack_require_146497__(8);
  45471. var _emitter2 = _interopRequireDefault(_emitter);
  45472. var _block = __nested_webpack_require_146497__(4);
  45473. var _block2 = _interopRequireDefault(_block);
  45474. var _break = __nested_webpack_require_146497__(16);
  45475. var _break2 = _interopRequireDefault(_break);
  45476. var _code = __nested_webpack_require_146497__(13);
  45477. var _code2 = _interopRequireDefault(_code);
  45478. var _container = __nested_webpack_require_146497__(25);
  45479. var _container2 = _interopRequireDefault(_container);
  45480. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45481. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45482. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45483. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45484. function isLine(blot) {
  45485. return blot instanceof _block2.default || blot instanceof _block.BlockEmbed;
  45486. }
  45487. var Scroll = function (_Parchment$Scroll) {
  45488. _inherits(Scroll, _Parchment$Scroll);
  45489. function Scroll(domNode, config) {
  45490. _classCallCheck(this, Scroll);
  45491. var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, domNode));
  45492. _this.emitter = config.emitter;
  45493. if (Array.isArray(config.whitelist)) {
  45494. _this.whitelist = config.whitelist.reduce(function (whitelist, format) {
  45495. whitelist[format] = true;
  45496. return whitelist;
  45497. }, {});
  45498. }
  45499. // Some reason fixes composition issues with character languages in Windows/Chrome, Safari
  45500. _this.domNode.addEventListener('DOMNodeInserted', function () {});
  45501. _this.optimize();
  45502. _this.enable();
  45503. return _this;
  45504. }
  45505. _createClass(Scroll, [{
  45506. key: 'batchStart',
  45507. value: function batchStart() {
  45508. this.batch = true;
  45509. }
  45510. }, {
  45511. key: 'batchEnd',
  45512. value: function batchEnd() {
  45513. this.batch = false;
  45514. this.optimize();
  45515. }
  45516. }, {
  45517. key: 'deleteAt',
  45518. value: function deleteAt(index, length) {
  45519. var _line = this.line(index),
  45520. _line2 = _slicedToArray(_line, 2),
  45521. first = _line2[0],
  45522. offset = _line2[1];
  45523. var _line3 = this.line(index + length),
  45524. _line4 = _slicedToArray(_line3, 1),
  45525. last = _line4[0];
  45526. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'deleteAt', this).call(this, index, length);
  45527. if (last != null && first !== last && offset > 0) {
  45528. if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {
  45529. this.optimize();
  45530. return;
  45531. }
  45532. if (first instanceof _code2.default) {
  45533. var newlineIndex = first.newlineIndex(first.length(), true);
  45534. if (newlineIndex > -1) {
  45535. first = first.split(newlineIndex + 1);
  45536. if (first === last) {
  45537. this.optimize();
  45538. return;
  45539. }
  45540. }
  45541. } else if (last instanceof _code2.default) {
  45542. var _newlineIndex = last.newlineIndex(0);
  45543. if (_newlineIndex > -1) {
  45544. last.split(_newlineIndex + 1);
  45545. }
  45546. }
  45547. var ref = last.children.head instanceof _break2.default ? null : last.children.head;
  45548. first.moveChildren(last, ref);
  45549. first.remove();
  45550. }
  45551. this.optimize();
  45552. }
  45553. }, {
  45554. key: 'enable',
  45555. value: function enable() {
  45556. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  45557. this.domNode.setAttribute('contenteditable', enabled);
  45558. }
  45559. }, {
  45560. key: 'formatAt',
  45561. value: function formatAt(index, length, format, value) {
  45562. if (this.whitelist != null && !this.whitelist[format]) return;
  45563. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'formatAt', this).call(this, index, length, format, value);
  45564. this.optimize();
  45565. }
  45566. }, {
  45567. key: 'insertAt',
  45568. value: function insertAt(index, value, def) {
  45569. if (def != null && this.whitelist != null && !this.whitelist[value]) return;
  45570. if (index >= this.length()) {
  45571. if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {
  45572. var blot = _parchment2.default.create(this.statics.defaultChild);
  45573. this.appendChild(blot);
  45574. if (def == null && value.endsWith('\n')) {
  45575. value = value.slice(0, -1);
  45576. }
  45577. blot.insertAt(0, value, def);
  45578. } else {
  45579. var embed = _parchment2.default.create(value, def);
  45580. this.appendChild(embed);
  45581. }
  45582. } else {
  45583. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertAt', this).call(this, index, value, def);
  45584. }
  45585. this.optimize();
  45586. }
  45587. }, {
  45588. key: 'insertBefore',
  45589. value: function insertBefore(blot, ref) {
  45590. if (blot.statics.scope === _parchment2.default.Scope.INLINE_BLOT) {
  45591. var wrapper = _parchment2.default.create(this.statics.defaultChild);
  45592. wrapper.appendChild(blot);
  45593. blot = wrapper;
  45594. }
  45595. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertBefore', this).call(this, blot, ref);
  45596. }
  45597. }, {
  45598. key: 'leaf',
  45599. value: function leaf(index) {
  45600. return this.path(index).pop() || [null, -1];
  45601. }
  45602. }, {
  45603. key: 'line',
  45604. value: function line(index) {
  45605. if (index === this.length()) {
  45606. return this.line(index - 1);
  45607. }
  45608. return this.descendant(isLine, index);
  45609. }
  45610. }, {
  45611. key: 'lines',
  45612. value: function lines() {
  45613. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  45614. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  45615. var getLines = function getLines(blot, index, length) {
  45616. var lines = [],
  45617. lengthLeft = length;
  45618. blot.children.forEachAt(index, length, function (child, index, length) {
  45619. if (isLine(child)) {
  45620. lines.push(child);
  45621. } else if (child instanceof _parchment2.default.Container) {
  45622. lines = lines.concat(getLines(child, index, lengthLeft));
  45623. }
  45624. lengthLeft -= length;
  45625. });
  45626. return lines;
  45627. };
  45628. return getLines(this, index, length);
  45629. }
  45630. }, {
  45631. key: 'optimize',
  45632. value: function optimize() {
  45633. var mutations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  45634. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  45635. if (this.batch === true) return;
  45636. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'optimize', this).call(this, mutations, context);
  45637. if (mutations.length > 0) {
  45638. this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE, mutations, context);
  45639. }
  45640. }
  45641. }, {
  45642. key: 'path',
  45643. value: function path(index) {
  45644. return _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'path', this).call(this, index).slice(1); // Exclude self
  45645. }
  45646. }, {
  45647. key: 'update',
  45648. value: function update(mutations) {
  45649. if (this.batch === true) return;
  45650. var source = _emitter2.default.sources.USER;
  45651. if (typeof mutations === 'string') {
  45652. source = mutations;
  45653. }
  45654. if (!Array.isArray(mutations)) {
  45655. mutations = this.observer.takeRecords();
  45656. }
  45657. if (mutations.length > 0) {
  45658. this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE, source, mutations);
  45659. }
  45660. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'update', this).call(this, mutations.concat([])); // pass copy
  45661. if (mutations.length > 0) {
  45662. this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE, source, mutations);
  45663. }
  45664. }
  45665. }]);
  45666. return Scroll;
  45667. }(_parchment2.default.Scroll);
  45668. Scroll.blotName = 'scroll';
  45669. Scroll.className = 'ql-editor';
  45670. Scroll.tagName = 'DIV';
  45671. Scroll.defaultChild = 'block';
  45672. Scroll.allowedChildren = [_block2.default, _block.BlockEmbed, _container2.default];
  45673. exports.default = Scroll;
  45674. /***/ }),
  45675. /* 23 */
  45676. /***/ (function(module, exports, __nested_webpack_require_157111__) {
  45677. "use strict";
  45678. Object.defineProperty(exports, "__esModule", {
  45679. value: true
  45680. });
  45681. exports.SHORTKEY = exports.default = undefined;
  45682. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  45683. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  45684. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45685. var _clone = __nested_webpack_require_157111__(21);
  45686. var _clone2 = _interopRequireDefault(_clone);
  45687. var _deepEqual = __nested_webpack_require_157111__(11);
  45688. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  45689. var _extend = __nested_webpack_require_157111__(3);
  45690. var _extend2 = _interopRequireDefault(_extend);
  45691. var _quillDelta = __nested_webpack_require_157111__(2);
  45692. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  45693. var _op = __nested_webpack_require_157111__(20);
  45694. var _op2 = _interopRequireDefault(_op);
  45695. var _parchment = __nested_webpack_require_157111__(0);
  45696. var _parchment2 = _interopRequireDefault(_parchment);
  45697. var _quill = __nested_webpack_require_157111__(5);
  45698. var _quill2 = _interopRequireDefault(_quill);
  45699. var _logger = __nested_webpack_require_157111__(10);
  45700. var _logger2 = _interopRequireDefault(_logger);
  45701. var _module = __nested_webpack_require_157111__(9);
  45702. var _module2 = _interopRequireDefault(_module);
  45703. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45704. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  45705. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45706. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45707. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45708. var debug = (0, _logger2.default)('quill:keyboard');
  45709. var SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';
  45710. var Keyboard = function (_Module) {
  45711. _inherits(Keyboard, _Module);
  45712. _createClass(Keyboard, null, [{
  45713. key: 'match',
  45714. value: function match(evt, binding) {
  45715. binding = normalize(binding);
  45716. if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(function (key) {
  45717. return !!binding[key] !== evt[key] && binding[key] !== null;
  45718. })) {
  45719. return false;
  45720. }
  45721. return binding.key === (evt.which || evt.keyCode);
  45722. }
  45723. }]);
  45724. function Keyboard(quill, options) {
  45725. _classCallCheck(this, Keyboard);
  45726. var _this = _possibleConstructorReturn(this, (Keyboard.__proto__ || Object.getPrototypeOf(Keyboard)).call(this, quill, options));
  45727. _this.bindings = {};
  45728. Object.keys(_this.options.bindings).forEach(function (name) {
  45729. if (name === 'list autofill' && quill.scroll.whitelist != null && !quill.scroll.whitelist['list']) {
  45730. return;
  45731. }
  45732. if (_this.options.bindings[name]) {
  45733. _this.addBinding(_this.options.bindings[name]);
  45734. }
  45735. });
  45736. _this.addBinding({ key: Keyboard.keys.ENTER, shiftKey: null }, handleEnter);
  45737. _this.addBinding({ key: Keyboard.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function () {});
  45738. if (/Firefox/i.test(navigator.userAgent)) {
  45739. // Need to handle delete and backspace for Firefox in the general case #1171
  45740. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true }, handleBackspace);
  45741. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true }, handleDelete);
  45742. } else {
  45743. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);
  45744. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);
  45745. }
  45746. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
  45747. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);
  45748. _this.addBinding({ key: Keyboard.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: true, offset: 0 }, handleBackspace);
  45749. _this.listen();
  45750. return _this;
  45751. }
  45752. _createClass(Keyboard, [{
  45753. key: 'addBinding',
  45754. value: function addBinding(key) {
  45755. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  45756. var handler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  45757. var binding = normalize(key);
  45758. if (binding == null || binding.key == null) {
  45759. return debug.warn('Attempted to add invalid keyboard binding', binding);
  45760. }
  45761. if (typeof context === 'function') {
  45762. context = { handler: context };
  45763. }
  45764. if (typeof handler === 'function') {
  45765. handler = { handler: handler };
  45766. }
  45767. binding = (0, _extend2.default)(binding, context, handler);
  45768. this.bindings[binding.key] = this.bindings[binding.key] || [];
  45769. this.bindings[binding.key].push(binding);
  45770. }
  45771. }, {
  45772. key: 'listen',
  45773. value: function listen() {
  45774. var _this2 = this;
  45775. this.quill.root.addEventListener('keydown', function (evt) {
  45776. if (evt.defaultPrevented) return;
  45777. var which = evt.which || evt.keyCode;
  45778. var bindings = (_this2.bindings[which] || []).filter(function (binding) {
  45779. return Keyboard.match(evt, binding);
  45780. });
  45781. if (bindings.length === 0) return;
  45782. var range = _this2.quill.getSelection();
  45783. if (range == null || !_this2.quill.hasFocus()) return;
  45784. var _quill$getLine = _this2.quill.getLine(range.index),
  45785. _quill$getLine2 = _slicedToArray(_quill$getLine, 2),
  45786. line = _quill$getLine2[0],
  45787. offset = _quill$getLine2[1];
  45788. var _quill$getLeaf = _this2.quill.getLeaf(range.index),
  45789. _quill$getLeaf2 = _slicedToArray(_quill$getLeaf, 2),
  45790. leafStart = _quill$getLeaf2[0],
  45791. offsetStart = _quill$getLeaf2[1];
  45792. var _ref = range.length === 0 ? [leafStart, offsetStart] : _this2.quill.getLeaf(range.index + range.length),
  45793. _ref2 = _slicedToArray(_ref, 2),
  45794. leafEnd = _ref2[0],
  45795. offsetEnd = _ref2[1];
  45796. var prefixText = leafStart instanceof _parchment2.default.Text ? leafStart.value().slice(0, offsetStart) : '';
  45797. var suffixText = leafEnd instanceof _parchment2.default.Text ? leafEnd.value().slice(offsetEnd) : '';
  45798. var curContext = {
  45799. collapsed: range.length === 0,
  45800. empty: range.length === 0 && line.length() <= 1,
  45801. format: _this2.quill.getFormat(range),
  45802. offset: offset,
  45803. prefix: prefixText,
  45804. suffix: suffixText
  45805. };
  45806. var prevented = bindings.some(function (binding) {
  45807. if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) return false;
  45808. if (binding.empty != null && binding.empty !== curContext.empty) return false;
  45809. if (binding.offset != null && binding.offset !== curContext.offset) return false;
  45810. if (Array.isArray(binding.format)) {
  45811. // any format is present
  45812. if (binding.format.every(function (name) {
  45813. return curContext.format[name] == null;
  45814. })) {
  45815. return false;
  45816. }
  45817. } else if (_typeof(binding.format) === 'object') {
  45818. // all formats must match
  45819. if (!Object.keys(binding.format).every(function (name) {
  45820. if (binding.format[name] === true) return curContext.format[name] != null;
  45821. if (binding.format[name] === false) return curContext.format[name] == null;
  45822. return (0, _deepEqual2.default)(binding.format[name], curContext.format[name]);
  45823. })) {
  45824. return false;
  45825. }
  45826. }
  45827. if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) return false;
  45828. if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) return false;
  45829. return binding.handler.call(_this2, range, curContext) !== true;
  45830. });
  45831. if (prevented) {
  45832. evt.preventDefault();
  45833. }
  45834. });
  45835. }
  45836. }]);
  45837. return Keyboard;
  45838. }(_module2.default);
  45839. Keyboard.keys = {
  45840. BACKSPACE: 8,
  45841. TAB: 9,
  45842. ENTER: 13,
  45843. ESCAPE: 27,
  45844. LEFT: 37,
  45845. UP: 38,
  45846. RIGHT: 39,
  45847. DOWN: 40,
  45848. DELETE: 46
  45849. };
  45850. Keyboard.DEFAULTS = {
  45851. bindings: {
  45852. 'bold': makeFormatHandler('bold'),
  45853. 'italic': makeFormatHandler('italic'),
  45854. 'underline': makeFormatHandler('underline'),
  45855. 'indent': {
  45856. // highlight tab or tab at beginning of list, indent or blockquote
  45857. key: Keyboard.keys.TAB,
  45858. format: ['blockquote', 'indent', 'list'],
  45859. handler: function handler(range, context) {
  45860. if (context.collapsed && context.offset !== 0) return true;
  45861. this.quill.format('indent', '+1', _quill2.default.sources.USER);
  45862. }
  45863. },
  45864. 'outdent': {
  45865. key: Keyboard.keys.TAB,
  45866. shiftKey: true,
  45867. format: ['blockquote', 'indent', 'list'],
  45868. // highlight tab or tab at beginning of list, indent or blockquote
  45869. handler: function handler(range, context) {
  45870. if (context.collapsed && context.offset !== 0) return true;
  45871. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  45872. }
  45873. },
  45874. 'outdent backspace': {
  45875. key: Keyboard.keys.BACKSPACE,
  45876. collapsed: true,
  45877. shiftKey: null,
  45878. metaKey: null,
  45879. ctrlKey: null,
  45880. altKey: null,
  45881. format: ['indent', 'list'],
  45882. offset: 0,
  45883. handler: function handler(range, context) {
  45884. if (context.format.indent != null) {
  45885. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  45886. } else if (context.format.list != null) {
  45887. this.quill.format('list', false, _quill2.default.sources.USER);
  45888. }
  45889. }
  45890. },
  45891. 'indent code-block': makeCodeBlockHandler(true),
  45892. 'outdent code-block': makeCodeBlockHandler(false),
  45893. 'remove tab': {
  45894. key: Keyboard.keys.TAB,
  45895. shiftKey: true,
  45896. collapsed: true,
  45897. prefix: /\t$/,
  45898. handler: function handler(range) {
  45899. this.quill.deleteText(range.index - 1, 1, _quill2.default.sources.USER);
  45900. }
  45901. },
  45902. 'tab': {
  45903. key: Keyboard.keys.TAB,
  45904. handler: function handler(range) {
  45905. this.quill.history.cutoff();
  45906. var delta = new _quillDelta2.default().retain(range.index).delete(range.length).insert('\t');
  45907. this.quill.updateContents(delta, _quill2.default.sources.USER);
  45908. this.quill.history.cutoff();
  45909. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  45910. }
  45911. },
  45912. 'list empty enter': {
  45913. key: Keyboard.keys.ENTER,
  45914. collapsed: true,
  45915. format: ['list'],
  45916. empty: true,
  45917. handler: function handler(range, context) {
  45918. this.quill.format('list', false, _quill2.default.sources.USER);
  45919. if (context.format.indent) {
  45920. this.quill.format('indent', false, _quill2.default.sources.USER);
  45921. }
  45922. }
  45923. },
  45924. 'checklist enter': {
  45925. key: Keyboard.keys.ENTER,
  45926. collapsed: true,
  45927. format: { list: 'checked' },
  45928. handler: function handler(range) {
  45929. var _quill$getLine3 = this.quill.getLine(range.index),
  45930. _quill$getLine4 = _slicedToArray(_quill$getLine3, 2),
  45931. line = _quill$getLine4[0],
  45932. offset = _quill$getLine4[1];
  45933. var formats = (0, _extend2.default)({}, line.formats(), { list: 'checked' });
  45934. var delta = new _quillDelta2.default().retain(range.index).insert('\n', formats).retain(line.length() - offset - 1).retain(1, { list: 'unchecked' });
  45935. this.quill.updateContents(delta, _quill2.default.sources.USER);
  45936. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  45937. this.quill.scrollIntoView();
  45938. }
  45939. },
  45940. 'header enter': {
  45941. key: Keyboard.keys.ENTER,
  45942. collapsed: true,
  45943. format: ['header'],
  45944. suffix: /^$/,
  45945. handler: function handler(range, context) {
  45946. var _quill$getLine5 = this.quill.getLine(range.index),
  45947. _quill$getLine6 = _slicedToArray(_quill$getLine5, 2),
  45948. line = _quill$getLine6[0],
  45949. offset = _quill$getLine6[1];
  45950. var delta = new _quillDelta2.default().retain(range.index).insert('\n', context.format).retain(line.length() - offset - 1).retain(1, { header: null });
  45951. this.quill.updateContents(delta, _quill2.default.sources.USER);
  45952. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  45953. this.quill.scrollIntoView();
  45954. }
  45955. },
  45956. 'list autofill': {
  45957. key: ' ',
  45958. collapsed: true,
  45959. format: { list: false },
  45960. prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
  45961. handler: function handler(range, context) {
  45962. var length = context.prefix.length;
  45963. var _quill$getLine7 = this.quill.getLine(range.index),
  45964. _quill$getLine8 = _slicedToArray(_quill$getLine7, 2),
  45965. line = _quill$getLine8[0],
  45966. offset = _quill$getLine8[1];
  45967. if (offset > length) return true;
  45968. var value = void 0;
  45969. switch (context.prefix.trim()) {
  45970. case '[]':case '[ ]':
  45971. value = 'unchecked';
  45972. break;
  45973. case '[x]':
  45974. value = 'checked';
  45975. break;
  45976. case '-':case '*':
  45977. value = 'bullet';
  45978. break;
  45979. default:
  45980. value = 'ordered';
  45981. }
  45982. this.quill.insertText(range.index, ' ', _quill2.default.sources.USER);
  45983. this.quill.history.cutoff();
  45984. var delta = new _quillDelta2.default().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, { list: value });
  45985. this.quill.updateContents(delta, _quill2.default.sources.USER);
  45986. this.quill.history.cutoff();
  45987. this.quill.setSelection(range.index - length, _quill2.default.sources.SILENT);
  45988. }
  45989. },
  45990. 'code exit': {
  45991. key: Keyboard.keys.ENTER,
  45992. collapsed: true,
  45993. format: ['code-block'],
  45994. prefix: /\n\n$/,
  45995. suffix: /^\s+$/,
  45996. handler: function handler(range) {
  45997. var _quill$getLine9 = this.quill.getLine(range.index),
  45998. _quill$getLine10 = _slicedToArray(_quill$getLine9, 2),
  45999. line = _quill$getLine10[0],
  46000. offset = _quill$getLine10[1];
  46001. var delta = new _quillDelta2.default().retain(range.index + line.length() - offset - 2).retain(1, { 'code-block': null }).delete(1);
  46002. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46003. }
  46004. },
  46005. 'embed left': makeEmbedArrowHandler(Keyboard.keys.LEFT, false),
  46006. 'embed left shift': makeEmbedArrowHandler(Keyboard.keys.LEFT, true),
  46007. 'embed right': makeEmbedArrowHandler(Keyboard.keys.RIGHT, false),
  46008. 'embed right shift': makeEmbedArrowHandler(Keyboard.keys.RIGHT, true)
  46009. }
  46010. };
  46011. function makeEmbedArrowHandler(key, shiftKey) {
  46012. var _ref3;
  46013. var where = key === Keyboard.keys.LEFT ? 'prefix' : 'suffix';
  46014. return _ref3 = {
  46015. key: key,
  46016. shiftKey: shiftKey,
  46017. altKey: null
  46018. }, _defineProperty(_ref3, where, /^$/), _defineProperty(_ref3, 'handler', function handler(range) {
  46019. var index = range.index;
  46020. if (key === Keyboard.keys.RIGHT) {
  46021. index += range.length + 1;
  46022. }
  46023. var _quill$getLeaf3 = this.quill.getLeaf(index),
  46024. _quill$getLeaf4 = _slicedToArray(_quill$getLeaf3, 1),
  46025. leaf = _quill$getLeaf4[0];
  46026. if (!(leaf instanceof _parchment2.default.Embed)) return true;
  46027. if (key === Keyboard.keys.LEFT) {
  46028. if (shiftKey) {
  46029. this.quill.setSelection(range.index - 1, range.length + 1, _quill2.default.sources.USER);
  46030. } else {
  46031. this.quill.setSelection(range.index - 1, _quill2.default.sources.USER);
  46032. }
  46033. } else {
  46034. if (shiftKey) {
  46035. this.quill.setSelection(range.index, range.length + 1, _quill2.default.sources.USER);
  46036. } else {
  46037. this.quill.setSelection(range.index + range.length + 1, _quill2.default.sources.USER);
  46038. }
  46039. }
  46040. return false;
  46041. }), _ref3;
  46042. }
  46043. function handleBackspace(range, context) {
  46044. if (range.index === 0 || this.quill.getLength() <= 1) return;
  46045. var _quill$getLine11 = this.quill.getLine(range.index),
  46046. _quill$getLine12 = _slicedToArray(_quill$getLine11, 1),
  46047. line = _quill$getLine12[0];
  46048. var formats = {};
  46049. if (context.offset === 0) {
  46050. var _quill$getLine13 = this.quill.getLine(range.index - 1),
  46051. _quill$getLine14 = _slicedToArray(_quill$getLine13, 1),
  46052. prev = _quill$getLine14[0];
  46053. if (prev != null && prev.length() > 1) {
  46054. var curFormats = line.formats();
  46055. var prevFormats = this.quill.getFormat(range.index - 1, 1);
  46056. formats = _op2.default.attributes.diff(curFormats, prevFormats) || {};
  46057. }
  46058. }
  46059. // Check for astral symbols
  46060. var length = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix) ? 2 : 1;
  46061. this.quill.deleteText(range.index - length, length, _quill2.default.sources.USER);
  46062. if (Object.keys(formats).length > 0) {
  46063. this.quill.formatLine(range.index - length, length, formats, _quill2.default.sources.USER);
  46064. }
  46065. this.quill.focus();
  46066. }
  46067. function handleDelete(range, context) {
  46068. // Check for astral symbols
  46069. var length = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix) ? 2 : 1;
  46070. if (range.index >= this.quill.getLength() - length) return;
  46071. var formats = {},
  46072. nextLength = 0;
  46073. var _quill$getLine15 = this.quill.getLine(range.index),
  46074. _quill$getLine16 = _slicedToArray(_quill$getLine15, 1),
  46075. line = _quill$getLine16[0];
  46076. if (context.offset >= line.length() - 1) {
  46077. var _quill$getLine17 = this.quill.getLine(range.index + 1),
  46078. _quill$getLine18 = _slicedToArray(_quill$getLine17, 1),
  46079. next = _quill$getLine18[0];
  46080. if (next) {
  46081. var curFormats = line.formats();
  46082. var nextFormats = this.quill.getFormat(range.index, 1);
  46083. formats = _op2.default.attributes.diff(curFormats, nextFormats) || {};
  46084. nextLength = next.length();
  46085. }
  46086. }
  46087. this.quill.deleteText(range.index, length, _quill2.default.sources.USER);
  46088. if (Object.keys(formats).length > 0) {
  46089. this.quill.formatLine(range.index + nextLength - 1, length, formats, _quill2.default.sources.USER);
  46090. }
  46091. }
  46092. function handleDeleteRange(range) {
  46093. var lines = this.quill.getLines(range);
  46094. var formats = {};
  46095. if (lines.length > 1) {
  46096. var firstFormats = lines[0].formats();
  46097. var lastFormats = lines[lines.length - 1].formats();
  46098. formats = _op2.default.attributes.diff(lastFormats, firstFormats) || {};
  46099. }
  46100. this.quill.deleteText(range, _quill2.default.sources.USER);
  46101. if (Object.keys(formats).length > 0) {
  46102. this.quill.formatLine(range.index, 1, formats, _quill2.default.sources.USER);
  46103. }
  46104. this.quill.setSelection(range.index, _quill2.default.sources.SILENT);
  46105. this.quill.focus();
  46106. }
  46107. function handleEnter(range, context) {
  46108. var _this3 = this;
  46109. if (range.length > 0) {
  46110. this.quill.scroll.deleteAt(range.index, range.length); // So we do not trigger text-change
  46111. }
  46112. var lineFormats = Object.keys(context.format).reduce(function (lineFormats, format) {
  46113. if (_parchment2.default.query(format, _parchment2.default.Scope.BLOCK) && !Array.isArray(context.format[format])) {
  46114. lineFormats[format] = context.format[format];
  46115. }
  46116. return lineFormats;
  46117. }, {});
  46118. this.quill.insertText(range.index, '\n', lineFormats, _quill2.default.sources.USER);
  46119. // Earlier scroll.deleteAt might have messed up our selection,
  46120. // so insertText's built in selection preservation is not reliable
  46121. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46122. this.quill.focus();
  46123. Object.keys(context.format).forEach(function (name) {
  46124. if (lineFormats[name] != null) return;
  46125. if (Array.isArray(context.format[name])) return;
  46126. if (name === 'link') return;
  46127. _this3.quill.format(name, context.format[name], _quill2.default.sources.USER);
  46128. });
  46129. }
  46130. function makeCodeBlockHandler(indent) {
  46131. return {
  46132. key: Keyboard.keys.TAB,
  46133. shiftKey: !indent,
  46134. format: { 'code-block': true },
  46135. handler: function handler(range) {
  46136. var CodeBlock = _parchment2.default.query('code-block');
  46137. var index = range.index,
  46138. length = range.length;
  46139. var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index),
  46140. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  46141. block = _quill$scroll$descend2[0],
  46142. offset = _quill$scroll$descend2[1];
  46143. if (block == null) return;
  46144. var scrollIndex = this.quill.getIndex(block);
  46145. var start = block.newlineIndex(offset, true) + 1;
  46146. var end = block.newlineIndex(scrollIndex + offset + length);
  46147. var lines = block.domNode.textContent.slice(start, end).split('\n');
  46148. offset = 0;
  46149. lines.forEach(function (line, i) {
  46150. if (indent) {
  46151. block.insertAt(start + offset, CodeBlock.TAB);
  46152. offset += CodeBlock.TAB.length;
  46153. if (i === 0) {
  46154. index += CodeBlock.TAB.length;
  46155. } else {
  46156. length += CodeBlock.TAB.length;
  46157. }
  46158. } else if (line.startsWith(CodeBlock.TAB)) {
  46159. block.deleteAt(start + offset, CodeBlock.TAB.length);
  46160. offset -= CodeBlock.TAB.length;
  46161. if (i === 0) {
  46162. index -= CodeBlock.TAB.length;
  46163. } else {
  46164. length -= CodeBlock.TAB.length;
  46165. }
  46166. }
  46167. offset += line.length + 1;
  46168. });
  46169. this.quill.update(_quill2.default.sources.USER);
  46170. this.quill.setSelection(index, length, _quill2.default.sources.SILENT);
  46171. }
  46172. };
  46173. }
  46174. function makeFormatHandler(format) {
  46175. return {
  46176. key: format[0].toUpperCase(),
  46177. shortKey: true,
  46178. handler: function handler(range, context) {
  46179. this.quill.format(format, !context.format[format], _quill2.default.sources.USER);
  46180. }
  46181. };
  46182. }
  46183. function normalize(binding) {
  46184. if (typeof binding === 'string' || typeof binding === 'number') {
  46185. return normalize({ key: binding });
  46186. }
  46187. if ((typeof binding === 'undefined' ? 'undefined' : _typeof(binding)) === 'object') {
  46188. binding = (0, _clone2.default)(binding, false);
  46189. }
  46190. if (typeof binding.key === 'string') {
  46191. if (Keyboard.keys[binding.key.toUpperCase()] != null) {
  46192. binding.key = Keyboard.keys[binding.key.toUpperCase()];
  46193. } else if (binding.key.length === 1) {
  46194. binding.key = binding.key.toUpperCase().charCodeAt(0);
  46195. } else {
  46196. return null;
  46197. }
  46198. }
  46199. if (binding.shortKey) {
  46200. binding[SHORTKEY] = binding.shortKey;
  46201. delete binding.shortKey;
  46202. }
  46203. return binding;
  46204. }
  46205. exports.default = Keyboard;
  46206. exports.SHORTKEY = SHORTKEY;
  46207. /***/ }),
  46208. /* 24 */
  46209. /***/ (function(module, exports, __nested_webpack_require_181454__) {
  46210. "use strict";
  46211. Object.defineProperty(exports, "__esModule", {
  46212. value: true
  46213. });
  46214. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  46215. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46216. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46217. var _parchment = __nested_webpack_require_181454__(0);
  46218. var _parchment2 = _interopRequireDefault(_parchment);
  46219. var _text = __nested_webpack_require_181454__(7);
  46220. var _text2 = _interopRequireDefault(_text);
  46221. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46222. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46223. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46224. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46225. var Cursor = function (_Parchment$Embed) {
  46226. _inherits(Cursor, _Parchment$Embed);
  46227. _createClass(Cursor, null, [{
  46228. key: 'value',
  46229. value: function value() {
  46230. return undefined;
  46231. }
  46232. }]);
  46233. function Cursor(domNode, selection) {
  46234. _classCallCheck(this, Cursor);
  46235. var _this = _possibleConstructorReturn(this, (Cursor.__proto__ || Object.getPrototypeOf(Cursor)).call(this, domNode));
  46236. _this.selection = selection;
  46237. _this.textNode = document.createTextNode(Cursor.CONTENTS);
  46238. _this.domNode.appendChild(_this.textNode);
  46239. _this._length = 0;
  46240. return _this;
  46241. }
  46242. _createClass(Cursor, [{
  46243. key: 'detach',
  46244. value: function detach() {
  46245. // super.detach() will also clear domNode.__blot
  46246. if (this.parent != null) this.parent.removeChild(this);
  46247. }
  46248. }, {
  46249. key: 'format',
  46250. value: function format(name, value) {
  46251. if (this._length !== 0) {
  46252. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'format', this).call(this, name, value);
  46253. }
  46254. var target = this,
  46255. index = 0;
  46256. while (target != null && target.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {
  46257. index += target.offset(target.parent);
  46258. target = target.parent;
  46259. }
  46260. if (target != null) {
  46261. this._length = Cursor.CONTENTS.length;
  46262. target.optimize();
  46263. target.formatAt(index, Cursor.CONTENTS.length, name, value);
  46264. this._length = 0;
  46265. }
  46266. }
  46267. }, {
  46268. key: 'index',
  46269. value: function index(node, offset) {
  46270. if (node === this.textNode) return 0;
  46271. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'index', this).call(this, node, offset);
  46272. }
  46273. }, {
  46274. key: 'length',
  46275. value: function length() {
  46276. return this._length;
  46277. }
  46278. }, {
  46279. key: 'position',
  46280. value: function position() {
  46281. return [this.textNode, this.textNode.data.length];
  46282. }
  46283. }, {
  46284. key: 'remove',
  46285. value: function remove() {
  46286. _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'remove', this).call(this);
  46287. this.parent = null;
  46288. }
  46289. }, {
  46290. key: 'restore',
  46291. value: function restore() {
  46292. if (this.selection.composing || this.parent == null) return;
  46293. var textNode = this.textNode;
  46294. var range = this.selection.getNativeRange();
  46295. var restoreText = void 0,
  46296. start = void 0,
  46297. end = void 0;
  46298. if (range != null && range.start.node === textNode && range.end.node === textNode) {
  46299. var _ref = [textNode, range.start.offset, range.end.offset];
  46300. restoreText = _ref[0];
  46301. start = _ref[1];
  46302. end = _ref[2];
  46303. }
  46304. // Link format will insert text outside of anchor tag
  46305. while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
  46306. this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
  46307. }
  46308. if (this.textNode.data !== Cursor.CONTENTS) {
  46309. var text = this.textNode.data.split(Cursor.CONTENTS).join('');
  46310. if (this.next instanceof _text2.default) {
  46311. restoreText = this.next.domNode;
  46312. this.next.insertAt(0, text);
  46313. this.textNode.data = Cursor.CONTENTS;
  46314. } else {
  46315. this.textNode.data = text;
  46316. this.parent.insertBefore(_parchment2.default.create(this.textNode), this);
  46317. this.textNode = document.createTextNode(Cursor.CONTENTS);
  46318. this.domNode.appendChild(this.textNode);
  46319. }
  46320. }
  46321. this.remove();
  46322. if (start != null) {
  46323. var _map = [start, end].map(function (offset) {
  46324. return Math.max(0, Math.min(restoreText.data.length, offset - 1));
  46325. });
  46326. var _map2 = _slicedToArray(_map, 2);
  46327. start = _map2[0];
  46328. end = _map2[1];
  46329. return {
  46330. startNode: restoreText,
  46331. startOffset: start,
  46332. endNode: restoreText,
  46333. endOffset: end
  46334. };
  46335. }
  46336. }
  46337. }, {
  46338. key: 'update',
  46339. value: function update(mutations, context) {
  46340. var _this2 = this;
  46341. if (mutations.some(function (mutation) {
  46342. return mutation.type === 'characterData' && mutation.target === _this2.textNode;
  46343. })) {
  46344. var range = this.restore();
  46345. if (range) context.range = range;
  46346. }
  46347. }
  46348. }, {
  46349. key: 'value',
  46350. value: function value() {
  46351. return '';
  46352. }
  46353. }]);
  46354. return Cursor;
  46355. }(_parchment2.default.Embed);
  46356. Cursor.blotName = 'cursor';
  46357. Cursor.className = 'ql-cursor';
  46358. Cursor.tagName = 'span';
  46359. Cursor.CONTENTS = '\uFEFF'; // Zero width no break space
  46360. exports.default = Cursor;
  46361. /***/ }),
  46362. /* 25 */
  46363. /***/ (function(module, exports, __nested_webpack_require_189100__) {
  46364. "use strict";
  46365. Object.defineProperty(exports, "__esModule", {
  46366. value: true
  46367. });
  46368. var _parchment = __nested_webpack_require_189100__(0);
  46369. var _parchment2 = _interopRequireDefault(_parchment);
  46370. var _block = __nested_webpack_require_189100__(4);
  46371. var _block2 = _interopRequireDefault(_block);
  46372. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46373. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46374. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46375. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46376. var Container = function (_Parchment$Container) {
  46377. _inherits(Container, _Parchment$Container);
  46378. function Container() {
  46379. _classCallCheck(this, Container);
  46380. return _possibleConstructorReturn(this, (Container.__proto__ || Object.getPrototypeOf(Container)).apply(this, arguments));
  46381. }
  46382. return Container;
  46383. }(_parchment2.default.Container);
  46384. Container.allowedChildren = [_block2.default, _block.BlockEmbed, Container];
  46385. exports.default = Container;
  46386. /***/ }),
  46387. /* 26 */
  46388. /***/ (function(module, exports, __nested_webpack_require_190886__) {
  46389. "use strict";
  46390. Object.defineProperty(exports, "__esModule", {
  46391. value: true
  46392. });
  46393. exports.ColorStyle = exports.ColorClass = exports.ColorAttributor = undefined;
  46394. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46395. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46396. var _parchment = __nested_webpack_require_190886__(0);
  46397. var _parchment2 = _interopRequireDefault(_parchment);
  46398. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46399. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46400. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46401. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46402. var ColorAttributor = function (_Parchment$Attributor) {
  46403. _inherits(ColorAttributor, _Parchment$Attributor);
  46404. function ColorAttributor() {
  46405. _classCallCheck(this, ColorAttributor);
  46406. return _possibleConstructorReturn(this, (ColorAttributor.__proto__ || Object.getPrototypeOf(ColorAttributor)).apply(this, arguments));
  46407. }
  46408. _createClass(ColorAttributor, [{
  46409. key: 'value',
  46410. value: function value(domNode) {
  46411. var value = _get(ColorAttributor.prototype.__proto__ || Object.getPrototypeOf(ColorAttributor.prototype), 'value', this).call(this, domNode);
  46412. if (!value.startsWith('rgb(')) return value;
  46413. value = value.replace(/^[^\d]+/, '').replace(/[^\d]+$/, '');
  46414. return '#' + value.split(',').map(function (component) {
  46415. return ('00' + parseInt(component).toString(16)).slice(-2);
  46416. }).join('');
  46417. }
  46418. }]);
  46419. return ColorAttributor;
  46420. }(_parchment2.default.Attributor.Style);
  46421. var ColorClass = new _parchment2.default.Attributor.Class('color', 'ql-color', {
  46422. scope: _parchment2.default.Scope.INLINE
  46423. });
  46424. var ColorStyle = new ColorAttributor('color', 'color', {
  46425. scope: _parchment2.default.Scope.INLINE
  46426. });
  46427. exports.ColorAttributor = ColorAttributor;
  46428. exports.ColorClass = ColorClass;
  46429. exports.ColorStyle = ColorStyle;
  46430. /***/ }),
  46431. /* 27 */
  46432. /***/ (function(module, exports, __nested_webpack_require_194529__) {
  46433. "use strict";
  46434. Object.defineProperty(exports, "__esModule", {
  46435. value: true
  46436. });
  46437. exports.sanitize = exports.default = undefined;
  46438. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46439. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46440. var _inline = __nested_webpack_require_194529__(6);
  46441. var _inline2 = _interopRequireDefault(_inline);
  46442. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46443. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46444. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46445. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46446. var Link = function (_Inline) {
  46447. _inherits(Link, _Inline);
  46448. function Link() {
  46449. _classCallCheck(this, Link);
  46450. return _possibleConstructorReturn(this, (Link.__proto__ || Object.getPrototypeOf(Link)).apply(this, arguments));
  46451. }
  46452. _createClass(Link, [{
  46453. key: 'format',
  46454. value: function format(name, value) {
  46455. if (name !== this.statics.blotName || !value) return _get(Link.prototype.__proto__ || Object.getPrototypeOf(Link.prototype), 'format', this).call(this, name, value);
  46456. value = this.constructor.sanitize(value);
  46457. this.domNode.setAttribute('href', value);
  46458. }
  46459. }], [{
  46460. key: 'create',
  46461. value: function create(value) {
  46462. var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value);
  46463. value = this.sanitize(value);
  46464. node.setAttribute('href', value);
  46465. node.setAttribute('rel', 'noopener noreferrer');
  46466. node.setAttribute('target', '_blank');
  46467. return node;
  46468. }
  46469. }, {
  46470. key: 'formats',
  46471. value: function formats(domNode) {
  46472. return domNode.getAttribute('href');
  46473. }
  46474. }, {
  46475. key: 'sanitize',
  46476. value: function sanitize(url) {
  46477. return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
  46478. }
  46479. }]);
  46480. return Link;
  46481. }(_inline2.default);
  46482. Link.blotName = 'link';
  46483. Link.tagName = 'A';
  46484. Link.SANITIZED_URL = 'about:blank';
  46485. Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];
  46486. function _sanitize(url, protocols) {
  46487. var anchor = document.createElement('a');
  46488. anchor.href = url;
  46489. var protocol = anchor.href.slice(0, anchor.href.indexOf(':'));
  46490. return protocols.indexOf(protocol) > -1;
  46491. }
  46492. exports.default = Link;
  46493. exports.sanitize = _sanitize;
  46494. /***/ }),
  46495. /* 28 */
  46496. /***/ (function(module, exports, __nested_webpack_require_198559__) {
  46497. "use strict";
  46498. Object.defineProperty(exports, "__esModule", {
  46499. value: true
  46500. });
  46501. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  46502. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46503. var _keyboard = __nested_webpack_require_198559__(23);
  46504. var _keyboard2 = _interopRequireDefault(_keyboard);
  46505. var _dropdown = __nested_webpack_require_198559__(107);
  46506. var _dropdown2 = _interopRequireDefault(_dropdown);
  46507. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46508. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46509. var optionsCounter = 0;
  46510. function toggleAriaAttribute(element, attribute) {
  46511. element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));
  46512. }
  46513. var Picker = function () {
  46514. function Picker(select) {
  46515. var _this = this;
  46516. _classCallCheck(this, Picker);
  46517. this.select = select;
  46518. this.container = document.createElement('span');
  46519. this.buildPicker();
  46520. this.select.style.display = 'none';
  46521. this.select.parentNode.insertBefore(this.container, this.select);
  46522. this.label.addEventListener('mousedown', function () {
  46523. _this.togglePicker();
  46524. });
  46525. this.label.addEventListener('keydown', function (event) {
  46526. switch (event.keyCode) {
  46527. // Allows the "Enter" key to open the picker
  46528. case _keyboard2.default.keys.ENTER:
  46529. _this.togglePicker();
  46530. break;
  46531. // Allows the "Escape" key to close the picker
  46532. case _keyboard2.default.keys.ESCAPE:
  46533. _this.escape();
  46534. event.preventDefault();
  46535. break;
  46536. default:
  46537. }
  46538. });
  46539. this.select.addEventListener('change', this.update.bind(this));
  46540. }
  46541. _createClass(Picker, [{
  46542. key: 'togglePicker',
  46543. value: function togglePicker() {
  46544. this.container.classList.toggle('ql-expanded');
  46545. // Toggle aria-expanded and aria-hidden to make the picker accessible
  46546. toggleAriaAttribute(this.label, 'aria-expanded');
  46547. toggleAriaAttribute(this.options, 'aria-hidden');
  46548. }
  46549. }, {
  46550. key: 'buildItem',
  46551. value: function buildItem(option) {
  46552. var _this2 = this;
  46553. var item = document.createElement('span');
  46554. item.tabIndex = '0';
  46555. item.setAttribute('role', 'button');
  46556. item.classList.add('ql-picker-item');
  46557. if (option.hasAttribute('value')) {
  46558. item.setAttribute('data-value', option.getAttribute('value'));
  46559. }
  46560. if (option.textContent) {
  46561. item.setAttribute('data-label', option.textContent);
  46562. }
  46563. item.addEventListener('click', function () {
  46564. _this2.selectItem(item, true);
  46565. });
  46566. item.addEventListener('keydown', function (event) {
  46567. switch (event.keyCode) {
  46568. // Allows the "Enter" key to select an item
  46569. case _keyboard2.default.keys.ENTER:
  46570. _this2.selectItem(item, true);
  46571. event.preventDefault();
  46572. break;
  46573. // Allows the "Escape" key to close the picker
  46574. case _keyboard2.default.keys.ESCAPE:
  46575. _this2.escape();
  46576. event.preventDefault();
  46577. break;
  46578. default:
  46579. }
  46580. });
  46581. return item;
  46582. }
  46583. }, {
  46584. key: 'buildLabel',
  46585. value: function buildLabel() {
  46586. var label = document.createElement('span');
  46587. label.classList.add('ql-picker-label');
  46588. label.innerHTML = _dropdown2.default;
  46589. label.tabIndex = '0';
  46590. label.setAttribute('role', 'button');
  46591. label.setAttribute('aria-expanded', 'false');
  46592. this.container.appendChild(label);
  46593. return label;
  46594. }
  46595. }, {
  46596. key: 'buildOptions',
  46597. value: function buildOptions() {
  46598. var _this3 = this;
  46599. var options = document.createElement('span');
  46600. options.classList.add('ql-picker-options');
  46601. // Don't want screen readers to read this until options are visible
  46602. options.setAttribute('aria-hidden', 'true');
  46603. options.tabIndex = '-1';
  46604. // Need a unique id for aria-controls
  46605. options.id = 'ql-picker-options-' + optionsCounter;
  46606. optionsCounter += 1;
  46607. this.label.setAttribute('aria-controls', options.id);
  46608. this.options = options;
  46609. [].slice.call(this.select.options).forEach(function (option) {
  46610. var item = _this3.buildItem(option);
  46611. options.appendChild(item);
  46612. if (option.selected === true) {
  46613. _this3.selectItem(item);
  46614. }
  46615. });
  46616. this.container.appendChild(options);
  46617. }
  46618. }, {
  46619. key: 'buildPicker',
  46620. value: function buildPicker() {
  46621. var _this4 = this;
  46622. [].slice.call(this.select.attributes).forEach(function (item) {
  46623. _this4.container.setAttribute(item.name, item.value);
  46624. });
  46625. this.container.classList.add('ql-picker');
  46626. this.label = this.buildLabel();
  46627. this.buildOptions();
  46628. }
  46629. }, {
  46630. key: 'escape',
  46631. value: function escape() {
  46632. var _this5 = this;
  46633. // Close menu and return focus to trigger label
  46634. this.close();
  46635. // Need setTimeout for accessibility to ensure that the browser executes
  46636. // focus on the next process thread and after any DOM content changes
  46637. setTimeout(function () {
  46638. return _this5.label.focus();
  46639. }, 1);
  46640. }
  46641. }, {
  46642. key: 'close',
  46643. value: function close() {
  46644. this.container.classList.remove('ql-expanded');
  46645. this.label.setAttribute('aria-expanded', 'false');
  46646. this.options.setAttribute('aria-hidden', 'true');
  46647. }
  46648. }, {
  46649. key: 'selectItem',
  46650. value: function selectItem(item) {
  46651. var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  46652. var selected = this.container.querySelector('.ql-selected');
  46653. if (item === selected) return;
  46654. if (selected != null) {
  46655. selected.classList.remove('ql-selected');
  46656. }
  46657. if (item == null) return;
  46658. item.classList.add('ql-selected');
  46659. this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);
  46660. if (item.hasAttribute('data-value')) {
  46661. this.label.setAttribute('data-value', item.getAttribute('data-value'));
  46662. } else {
  46663. this.label.removeAttribute('data-value');
  46664. }
  46665. if (item.hasAttribute('data-label')) {
  46666. this.label.setAttribute('data-label', item.getAttribute('data-label'));
  46667. } else {
  46668. this.label.removeAttribute('data-label');
  46669. }
  46670. if (trigger) {
  46671. if (typeof Event === 'function') {
  46672. this.select.dispatchEvent(new Event('change'));
  46673. } else if ((typeof Event === 'undefined' ? 'undefined' : _typeof(Event)) === 'object') {
  46674. // IE11
  46675. var event = document.createEvent('Event');
  46676. event.initEvent('change', true, true);
  46677. this.select.dispatchEvent(event);
  46678. }
  46679. this.close();
  46680. }
  46681. }
  46682. }, {
  46683. key: 'update',
  46684. value: function update() {
  46685. var option = void 0;
  46686. if (this.select.selectedIndex > -1) {
  46687. var item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];
  46688. option = this.select.options[this.select.selectedIndex];
  46689. this.selectItem(item);
  46690. } else {
  46691. this.selectItem(null);
  46692. }
  46693. var isActive = option != null && option !== this.select.querySelector('option[selected]');
  46694. this.label.classList.toggle('ql-active', isActive);
  46695. }
  46696. }]);
  46697. return Picker;
  46698. }();
  46699. exports.default = Picker;
  46700. /***/ }),
  46701. /* 29 */
  46702. /***/ (function(module, exports, __nested_webpack_require_206753__) {
  46703. "use strict";
  46704. Object.defineProperty(exports, "__esModule", {
  46705. value: true
  46706. });
  46707. var _parchment = __nested_webpack_require_206753__(0);
  46708. var _parchment2 = _interopRequireDefault(_parchment);
  46709. var _quill = __nested_webpack_require_206753__(5);
  46710. var _quill2 = _interopRequireDefault(_quill);
  46711. var _block = __nested_webpack_require_206753__(4);
  46712. var _block2 = _interopRequireDefault(_block);
  46713. var _break = __nested_webpack_require_206753__(16);
  46714. var _break2 = _interopRequireDefault(_break);
  46715. var _container = __nested_webpack_require_206753__(25);
  46716. var _container2 = _interopRequireDefault(_container);
  46717. var _cursor = __nested_webpack_require_206753__(24);
  46718. var _cursor2 = _interopRequireDefault(_cursor);
  46719. var _embed = __nested_webpack_require_206753__(35);
  46720. var _embed2 = _interopRequireDefault(_embed);
  46721. var _inline = __nested_webpack_require_206753__(6);
  46722. var _inline2 = _interopRequireDefault(_inline);
  46723. var _scroll = __nested_webpack_require_206753__(22);
  46724. var _scroll2 = _interopRequireDefault(_scroll);
  46725. var _text = __nested_webpack_require_206753__(7);
  46726. var _text2 = _interopRequireDefault(_text);
  46727. var _clipboard = __nested_webpack_require_206753__(55);
  46728. var _clipboard2 = _interopRequireDefault(_clipboard);
  46729. var _history = __nested_webpack_require_206753__(42);
  46730. var _history2 = _interopRequireDefault(_history);
  46731. var _keyboard = __nested_webpack_require_206753__(23);
  46732. var _keyboard2 = _interopRequireDefault(_keyboard);
  46733. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46734. _quill2.default.register({
  46735. 'blots/block': _block2.default,
  46736. 'blots/block/embed': _block.BlockEmbed,
  46737. 'blots/break': _break2.default,
  46738. 'blots/container': _container2.default,
  46739. 'blots/cursor': _cursor2.default,
  46740. 'blots/embed': _embed2.default,
  46741. 'blots/inline': _inline2.default,
  46742. 'blots/scroll': _scroll2.default,
  46743. 'blots/text': _text2.default,
  46744. 'modules/clipboard': _clipboard2.default,
  46745. 'modules/history': _history2.default,
  46746. 'modules/keyboard': _keyboard2.default
  46747. });
  46748. _parchment2.default.register(_block2.default, _break2.default, _cursor2.default, _inline2.default, _scroll2.default, _text2.default);
  46749. exports.default = _quill2.default;
  46750. /***/ }),
  46751. /* 30 */
  46752. /***/ (function(module, exports, __nested_webpack_require_208833__) {
  46753. "use strict";
  46754. Object.defineProperty(exports, "__esModule", { value: true });
  46755. var Registry = __nested_webpack_require_208833__(1);
  46756. var ShadowBlot = /** @class */ (function () {
  46757. function ShadowBlot(domNode) {
  46758. this.domNode = domNode;
  46759. // @ts-ignore
  46760. this.domNode[Registry.DATA_KEY] = { blot: this };
  46761. }
  46762. Object.defineProperty(ShadowBlot.prototype, "statics", {
  46763. // Hack for accessing inherited static methods
  46764. get: function () {
  46765. return this.constructor;
  46766. },
  46767. enumerable: true,
  46768. configurable: true
  46769. });
  46770. ShadowBlot.create = function (value) {
  46771. if (this.tagName == null) {
  46772. throw new Registry.ParchmentError('Blot definition missing tagName');
  46773. }
  46774. var node;
  46775. if (Array.isArray(this.tagName)) {
  46776. if (typeof value === 'string') {
  46777. value = value.toUpperCase();
  46778. if (parseInt(value).toString() === value) {
  46779. value = parseInt(value);
  46780. }
  46781. }
  46782. if (typeof value === 'number') {
  46783. node = document.createElement(this.tagName[value - 1]);
  46784. }
  46785. else if (this.tagName.indexOf(value) > -1) {
  46786. node = document.createElement(value);
  46787. }
  46788. else {
  46789. node = document.createElement(this.tagName[0]);
  46790. }
  46791. }
  46792. else {
  46793. node = document.createElement(this.tagName);
  46794. }
  46795. if (this.className) {
  46796. node.classList.add(this.className);
  46797. }
  46798. return node;
  46799. };
  46800. ShadowBlot.prototype.attach = function () {
  46801. if (this.parent != null) {
  46802. this.scroll = this.parent.scroll;
  46803. }
  46804. };
  46805. ShadowBlot.prototype.clone = function () {
  46806. var domNode = this.domNode.cloneNode(false);
  46807. return Registry.create(domNode);
  46808. };
  46809. ShadowBlot.prototype.detach = function () {
  46810. if (this.parent != null)
  46811. this.parent.removeChild(this);
  46812. // @ts-ignore
  46813. delete this.domNode[Registry.DATA_KEY];
  46814. };
  46815. ShadowBlot.prototype.deleteAt = function (index, length) {
  46816. var blot = this.isolate(index, length);
  46817. blot.remove();
  46818. };
  46819. ShadowBlot.prototype.formatAt = function (index, length, name, value) {
  46820. var blot = this.isolate(index, length);
  46821. if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
  46822. blot.wrap(name, value);
  46823. }
  46824. else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
  46825. var parent = Registry.create(this.statics.scope);
  46826. blot.wrap(parent);
  46827. parent.format(name, value);
  46828. }
  46829. };
  46830. ShadowBlot.prototype.insertAt = function (index, value, def) {
  46831. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  46832. var ref = this.split(index);
  46833. this.parent.insertBefore(blot, ref);
  46834. };
  46835. ShadowBlot.prototype.insertInto = function (parentBlot, refBlot) {
  46836. if (refBlot === void 0) { refBlot = null; }
  46837. if (this.parent != null) {
  46838. this.parent.children.remove(this);
  46839. }
  46840. var refDomNode = null;
  46841. parentBlot.children.insertBefore(this, refBlot);
  46842. if (refBlot != null) {
  46843. refDomNode = refBlot.domNode;
  46844. }
  46845. if (this.domNode.parentNode != parentBlot.domNode ||
  46846. this.domNode.nextSibling != refDomNode) {
  46847. parentBlot.domNode.insertBefore(this.domNode, refDomNode);
  46848. }
  46849. this.parent = parentBlot;
  46850. this.attach();
  46851. };
  46852. ShadowBlot.prototype.isolate = function (index, length) {
  46853. var target = this.split(index);
  46854. target.split(length);
  46855. return target;
  46856. };
  46857. ShadowBlot.prototype.length = function () {
  46858. return 1;
  46859. };
  46860. ShadowBlot.prototype.offset = function (root) {
  46861. if (root === void 0) { root = this.parent; }
  46862. if (this.parent == null || this == root)
  46863. return 0;
  46864. return this.parent.children.offset(this) + this.parent.offset(root);
  46865. };
  46866. ShadowBlot.prototype.optimize = function (context) {
  46867. // TODO clean up once we use WeakMap
  46868. // @ts-ignore
  46869. if (this.domNode[Registry.DATA_KEY] != null) {
  46870. // @ts-ignore
  46871. delete this.domNode[Registry.DATA_KEY].mutations;
  46872. }
  46873. };
  46874. ShadowBlot.prototype.remove = function () {
  46875. if (this.domNode.parentNode != null) {
  46876. this.domNode.parentNode.removeChild(this.domNode);
  46877. }
  46878. this.detach();
  46879. };
  46880. ShadowBlot.prototype.replace = function (target) {
  46881. if (target.parent == null)
  46882. return;
  46883. target.parent.insertBefore(this, target.next);
  46884. target.remove();
  46885. };
  46886. ShadowBlot.prototype.replaceWith = function (name, value) {
  46887. var replacement = typeof name === 'string' ? Registry.create(name, value) : name;
  46888. replacement.replace(this);
  46889. return replacement;
  46890. };
  46891. ShadowBlot.prototype.split = function (index, force) {
  46892. return index === 0 ? this : this.next;
  46893. };
  46894. ShadowBlot.prototype.update = function (mutations, context) {
  46895. // Nothing to do by default
  46896. };
  46897. ShadowBlot.prototype.wrap = function (name, value) {
  46898. var wrapper = typeof name === 'string' ? Registry.create(name, value) : name;
  46899. if (this.parent != null) {
  46900. this.parent.insertBefore(wrapper, this.next);
  46901. }
  46902. wrapper.appendChild(this);
  46903. return wrapper;
  46904. };
  46905. ShadowBlot.blotName = 'abstract';
  46906. return ShadowBlot;
  46907. }());
  46908. exports.default = ShadowBlot;
  46909. /***/ }),
  46910. /* 31 */
  46911. /***/ (function(module, exports, __nested_webpack_require_214530__) {
  46912. "use strict";
  46913. Object.defineProperty(exports, "__esModule", { value: true });
  46914. var attributor_1 = __nested_webpack_require_214530__(12);
  46915. var class_1 = __nested_webpack_require_214530__(32);
  46916. var style_1 = __nested_webpack_require_214530__(33);
  46917. var Registry = __nested_webpack_require_214530__(1);
  46918. var AttributorStore = /** @class */ (function () {
  46919. function AttributorStore(domNode) {
  46920. this.attributes = {};
  46921. this.domNode = domNode;
  46922. this.build();
  46923. }
  46924. AttributorStore.prototype.attribute = function (attribute, value) {
  46925. // verb
  46926. if (value) {
  46927. if (attribute.add(this.domNode, value)) {
  46928. if (attribute.value(this.domNode) != null) {
  46929. this.attributes[attribute.attrName] = attribute;
  46930. }
  46931. else {
  46932. delete this.attributes[attribute.attrName];
  46933. }
  46934. }
  46935. }
  46936. else {
  46937. attribute.remove(this.domNode);
  46938. delete this.attributes[attribute.attrName];
  46939. }
  46940. };
  46941. AttributorStore.prototype.build = function () {
  46942. var _this = this;
  46943. this.attributes = {};
  46944. var attributes = attributor_1.default.keys(this.domNode);
  46945. var classes = class_1.default.keys(this.domNode);
  46946. var styles = style_1.default.keys(this.domNode);
  46947. attributes
  46948. .concat(classes)
  46949. .concat(styles)
  46950. .forEach(function (name) {
  46951. var attr = Registry.query(name, Registry.Scope.ATTRIBUTE);
  46952. if (attr instanceof attributor_1.default) {
  46953. _this.attributes[attr.attrName] = attr;
  46954. }
  46955. });
  46956. };
  46957. AttributorStore.prototype.copy = function (target) {
  46958. var _this = this;
  46959. Object.keys(this.attributes).forEach(function (key) {
  46960. var value = _this.attributes[key].value(_this.domNode);
  46961. target.format(key, value);
  46962. });
  46963. };
  46964. AttributorStore.prototype.move = function (target) {
  46965. var _this = this;
  46966. this.copy(target);
  46967. Object.keys(this.attributes).forEach(function (key) {
  46968. _this.attributes[key].remove(_this.domNode);
  46969. });
  46970. this.attributes = {};
  46971. };
  46972. AttributorStore.prototype.values = function () {
  46973. var _this = this;
  46974. return Object.keys(this.attributes).reduce(function (attributes, name) {
  46975. attributes[name] = _this.attributes[name].value(_this.domNode);
  46976. return attributes;
  46977. }, {});
  46978. };
  46979. return AttributorStore;
  46980. }());
  46981. exports.default = AttributorStore;
  46982. /***/ }),
  46983. /* 32 */
  46984. /***/ (function(module, exports, __nested_webpack_require_217128__) {
  46985. "use strict";
  46986. var __extends = (this && this.__extends) || (function () {
  46987. var extendStatics = Object.setPrototypeOf ||
  46988. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  46989. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  46990. return function (d, b) {
  46991. extendStatics(d, b);
  46992. function __() { this.constructor = d; }
  46993. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  46994. };
  46995. })();
  46996. Object.defineProperty(exports, "__esModule", { value: true });
  46997. var attributor_1 = __nested_webpack_require_217128__(12);
  46998. function match(node, prefix) {
  46999. var className = node.getAttribute('class') || '';
  47000. return className.split(/\s+/).filter(function (name) {
  47001. return name.indexOf(prefix + "-") === 0;
  47002. });
  47003. }
  47004. var ClassAttributor = /** @class */ (function (_super) {
  47005. __extends(ClassAttributor, _super);
  47006. function ClassAttributor() {
  47007. return _super !== null && _super.apply(this, arguments) || this;
  47008. }
  47009. ClassAttributor.keys = function (node) {
  47010. return (node.getAttribute('class') || '').split(/\s+/).map(function (name) {
  47011. return name
  47012. .split('-')
  47013. .slice(0, -1)
  47014. .join('-');
  47015. });
  47016. };
  47017. ClassAttributor.prototype.add = function (node, value) {
  47018. if (!this.canAdd(node, value))
  47019. return false;
  47020. this.remove(node);
  47021. node.classList.add(this.keyName + "-" + value);
  47022. return true;
  47023. };
  47024. ClassAttributor.prototype.remove = function (node) {
  47025. var matches = match(node, this.keyName);
  47026. matches.forEach(function (name) {
  47027. node.classList.remove(name);
  47028. });
  47029. if (node.classList.length === 0) {
  47030. node.removeAttribute('class');
  47031. }
  47032. };
  47033. ClassAttributor.prototype.value = function (node) {
  47034. var result = match(node, this.keyName)[0] || '';
  47035. var value = result.slice(this.keyName.length + 1); // +1 for hyphen
  47036. return this.canAdd(node, value) ? value : '';
  47037. };
  47038. return ClassAttributor;
  47039. }(attributor_1.default));
  47040. exports.default = ClassAttributor;
  47041. /***/ }),
  47042. /* 33 */
  47043. /***/ (function(module, exports, __nested_webpack_require_219372__) {
  47044. "use strict";
  47045. var __extends = (this && this.__extends) || (function () {
  47046. var extendStatics = Object.setPrototypeOf ||
  47047. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47048. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47049. return function (d, b) {
  47050. extendStatics(d, b);
  47051. function __() { this.constructor = d; }
  47052. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47053. };
  47054. })();
  47055. Object.defineProperty(exports, "__esModule", { value: true });
  47056. var attributor_1 = __nested_webpack_require_219372__(12);
  47057. function camelize(name) {
  47058. var parts = name.split('-');
  47059. var rest = parts
  47060. .slice(1)
  47061. .map(function (part) {
  47062. return part[0].toUpperCase() + part.slice(1);
  47063. })
  47064. .join('');
  47065. return parts[0] + rest;
  47066. }
  47067. var StyleAttributor = /** @class */ (function (_super) {
  47068. __extends(StyleAttributor, _super);
  47069. function StyleAttributor() {
  47070. return _super !== null && _super.apply(this, arguments) || this;
  47071. }
  47072. StyleAttributor.keys = function (node) {
  47073. return (node.getAttribute('style') || '').split(';').map(function (value) {
  47074. var arr = value.split(':');
  47075. return arr[0].trim();
  47076. });
  47077. };
  47078. StyleAttributor.prototype.add = function (node, value) {
  47079. if (!this.canAdd(node, value))
  47080. return false;
  47081. // @ts-ignore
  47082. node.style[camelize(this.keyName)] = value;
  47083. return true;
  47084. };
  47085. StyleAttributor.prototype.remove = function (node) {
  47086. // @ts-ignore
  47087. node.style[camelize(this.keyName)] = '';
  47088. if (!node.getAttribute('style')) {
  47089. node.removeAttribute('style');
  47090. }
  47091. };
  47092. StyleAttributor.prototype.value = function (node) {
  47093. // @ts-ignore
  47094. var value = node.style[camelize(this.keyName)];
  47095. return this.canAdd(node, value) ? value : '';
  47096. };
  47097. return StyleAttributor;
  47098. }(attributor_1.default));
  47099. exports.default = StyleAttributor;
  47100. /***/ }),
  47101. /* 34 */
  47102. /***/ (function(module, exports, __webpack_require__) {
  47103. "use strict";
  47104. Object.defineProperty(exports, "__esModule", {
  47105. value: true
  47106. });
  47107. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47108. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47109. var Theme = function () {
  47110. function Theme(quill, options) {
  47111. _classCallCheck(this, Theme);
  47112. this.quill = quill;
  47113. this.options = options;
  47114. this.modules = {};
  47115. }
  47116. _createClass(Theme, [{
  47117. key: 'init',
  47118. value: function init() {
  47119. var _this = this;
  47120. Object.keys(this.options.modules).forEach(function (name) {
  47121. if (_this.modules[name] == null) {
  47122. _this.addModule(name);
  47123. }
  47124. });
  47125. }
  47126. }, {
  47127. key: 'addModule',
  47128. value: function addModule(name) {
  47129. var moduleClass = this.quill.constructor.import('modules/' + name);
  47130. this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {});
  47131. return this.modules[name];
  47132. }
  47133. }]);
  47134. return Theme;
  47135. }();
  47136. Theme.DEFAULTS = {
  47137. modules: {}
  47138. };
  47139. Theme.themes = {
  47140. 'default': Theme
  47141. };
  47142. exports.default = Theme;
  47143. /***/ }),
  47144. /* 35 */
  47145. /***/ (function(module, exports, __nested_webpack_require_223199__) {
  47146. "use strict";
  47147. Object.defineProperty(exports, "__esModule", {
  47148. value: true
  47149. });
  47150. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47151. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47152. var _parchment = __nested_webpack_require_223199__(0);
  47153. var _parchment2 = _interopRequireDefault(_parchment);
  47154. var _text = __nested_webpack_require_223199__(7);
  47155. var _text2 = _interopRequireDefault(_text);
  47156. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47157. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47158. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47159. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47160. var GUARD_TEXT = '\uFEFF';
  47161. var Embed = function (_Parchment$Embed) {
  47162. _inherits(Embed, _Parchment$Embed);
  47163. function Embed(node) {
  47164. _classCallCheck(this, Embed);
  47165. var _this = _possibleConstructorReturn(this, (Embed.__proto__ || Object.getPrototypeOf(Embed)).call(this, node));
  47166. _this.contentNode = document.createElement('span');
  47167. _this.contentNode.setAttribute('contenteditable', false);
  47168. [].slice.call(_this.domNode.childNodes).forEach(function (childNode) {
  47169. _this.contentNode.appendChild(childNode);
  47170. });
  47171. _this.leftGuard = document.createTextNode(GUARD_TEXT);
  47172. _this.rightGuard = document.createTextNode(GUARD_TEXT);
  47173. _this.domNode.appendChild(_this.leftGuard);
  47174. _this.domNode.appendChild(_this.contentNode);
  47175. _this.domNode.appendChild(_this.rightGuard);
  47176. return _this;
  47177. }
  47178. _createClass(Embed, [{
  47179. key: 'index',
  47180. value: function index(node, offset) {
  47181. if (node === this.leftGuard) return 0;
  47182. if (node === this.rightGuard) return 1;
  47183. return _get(Embed.prototype.__proto__ || Object.getPrototypeOf(Embed.prototype), 'index', this).call(this, node, offset);
  47184. }
  47185. }, {
  47186. key: 'restore',
  47187. value: function restore(node) {
  47188. var range = void 0,
  47189. textNode = void 0;
  47190. var text = node.data.split(GUARD_TEXT).join('');
  47191. if (node === this.leftGuard) {
  47192. if (this.prev instanceof _text2.default) {
  47193. var prevLength = this.prev.length();
  47194. this.prev.insertAt(prevLength, text);
  47195. range = {
  47196. startNode: this.prev.domNode,
  47197. startOffset: prevLength + text.length
  47198. };
  47199. } else {
  47200. textNode = document.createTextNode(text);
  47201. this.parent.insertBefore(_parchment2.default.create(textNode), this);
  47202. range = {
  47203. startNode: textNode,
  47204. startOffset: text.length
  47205. };
  47206. }
  47207. } else if (node === this.rightGuard) {
  47208. if (this.next instanceof _text2.default) {
  47209. this.next.insertAt(0, text);
  47210. range = {
  47211. startNode: this.next.domNode,
  47212. startOffset: text.length
  47213. };
  47214. } else {
  47215. textNode = document.createTextNode(text);
  47216. this.parent.insertBefore(_parchment2.default.create(textNode), this.next);
  47217. range = {
  47218. startNode: textNode,
  47219. startOffset: text.length
  47220. };
  47221. }
  47222. }
  47223. node.data = GUARD_TEXT;
  47224. return range;
  47225. }
  47226. }, {
  47227. key: 'update',
  47228. value: function update(mutations, context) {
  47229. var _this2 = this;
  47230. mutations.forEach(function (mutation) {
  47231. if (mutation.type === 'characterData' && (mutation.target === _this2.leftGuard || mutation.target === _this2.rightGuard)) {
  47232. var range = _this2.restore(mutation.target);
  47233. if (range) context.range = range;
  47234. }
  47235. });
  47236. }
  47237. }]);
  47238. return Embed;
  47239. }(_parchment2.default.Embed);
  47240. exports.default = Embed;
  47241. /***/ }),
  47242. /* 36 */
  47243. /***/ (function(module, exports, __nested_webpack_require_228527__) {
  47244. "use strict";
  47245. Object.defineProperty(exports, "__esModule", {
  47246. value: true
  47247. });
  47248. exports.AlignStyle = exports.AlignClass = exports.AlignAttribute = undefined;
  47249. var _parchment = __nested_webpack_require_228527__(0);
  47250. var _parchment2 = _interopRequireDefault(_parchment);
  47251. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47252. var config = {
  47253. scope: _parchment2.default.Scope.BLOCK,
  47254. whitelist: ['right', 'center', 'justify']
  47255. };
  47256. var AlignAttribute = new _parchment2.default.Attributor.Attribute('align', 'align', config);
  47257. var AlignClass = new _parchment2.default.Attributor.Class('align', 'ql-align', config);
  47258. var AlignStyle = new _parchment2.default.Attributor.Style('align', 'text-align', config);
  47259. exports.AlignAttribute = AlignAttribute;
  47260. exports.AlignClass = AlignClass;
  47261. exports.AlignStyle = AlignStyle;
  47262. /***/ }),
  47263. /* 37 */
  47264. /***/ (function(module, exports, __nested_webpack_require_229442__) {
  47265. "use strict";
  47266. Object.defineProperty(exports, "__esModule", {
  47267. value: true
  47268. });
  47269. exports.BackgroundStyle = exports.BackgroundClass = undefined;
  47270. var _parchment = __nested_webpack_require_229442__(0);
  47271. var _parchment2 = _interopRequireDefault(_parchment);
  47272. var _color = __nested_webpack_require_229442__(26);
  47273. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47274. var BackgroundClass = new _parchment2.default.Attributor.Class('background', 'ql-bg', {
  47275. scope: _parchment2.default.Scope.INLINE
  47276. });
  47277. var BackgroundStyle = new _color.ColorAttributor('background', 'background-color', {
  47278. scope: _parchment2.default.Scope.INLINE
  47279. });
  47280. exports.BackgroundClass = BackgroundClass;
  47281. exports.BackgroundStyle = BackgroundStyle;
  47282. /***/ }),
  47283. /* 38 */
  47284. /***/ (function(module, exports, __nested_webpack_require_230249__) {
  47285. "use strict";
  47286. Object.defineProperty(exports, "__esModule", {
  47287. value: true
  47288. });
  47289. exports.DirectionStyle = exports.DirectionClass = exports.DirectionAttribute = undefined;
  47290. var _parchment = __nested_webpack_require_230249__(0);
  47291. var _parchment2 = _interopRequireDefault(_parchment);
  47292. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47293. var config = {
  47294. scope: _parchment2.default.Scope.BLOCK,
  47295. whitelist: ['rtl']
  47296. };
  47297. var DirectionAttribute = new _parchment2.default.Attributor.Attribute('direction', 'dir', config);
  47298. var DirectionClass = new _parchment2.default.Attributor.Class('direction', 'ql-direction', config);
  47299. var DirectionStyle = new _parchment2.default.Attributor.Style('direction', 'direction', config);
  47300. exports.DirectionAttribute = DirectionAttribute;
  47301. exports.DirectionClass = DirectionClass;
  47302. exports.DirectionStyle = DirectionStyle;
  47303. /***/ }),
  47304. /* 39 */
  47305. /***/ (function(module, exports, __nested_webpack_require_231202__) {
  47306. "use strict";
  47307. Object.defineProperty(exports, "__esModule", {
  47308. value: true
  47309. });
  47310. exports.FontClass = exports.FontStyle = undefined;
  47311. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47312. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47313. var _parchment = __nested_webpack_require_231202__(0);
  47314. var _parchment2 = _interopRequireDefault(_parchment);
  47315. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47316. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47317. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47318. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47319. var config = {
  47320. scope: _parchment2.default.Scope.INLINE,
  47321. whitelist: ['serif', 'monospace']
  47322. };
  47323. var FontClass = new _parchment2.default.Attributor.Class('font', 'ql-font', config);
  47324. var FontStyleAttributor = function (_Parchment$Attributor) {
  47325. _inherits(FontStyleAttributor, _Parchment$Attributor);
  47326. function FontStyleAttributor() {
  47327. _classCallCheck(this, FontStyleAttributor);
  47328. return _possibleConstructorReturn(this, (FontStyleAttributor.__proto__ || Object.getPrototypeOf(FontStyleAttributor)).apply(this, arguments));
  47329. }
  47330. _createClass(FontStyleAttributor, [{
  47331. key: 'value',
  47332. value: function value(node) {
  47333. return _get(FontStyleAttributor.prototype.__proto__ || Object.getPrototypeOf(FontStyleAttributor.prototype), 'value', this).call(this, node).replace(/["']/g, '');
  47334. }
  47335. }]);
  47336. return FontStyleAttributor;
  47337. }(_parchment2.default.Attributor.Style);
  47338. var FontStyle = new FontStyleAttributor('font', 'font-family', config);
  47339. exports.FontStyle = FontStyle;
  47340. exports.FontClass = FontClass;
  47341. /***/ }),
  47342. /* 40 */
  47343. /***/ (function(module, exports, __nested_webpack_require_234578__) {
  47344. "use strict";
  47345. Object.defineProperty(exports, "__esModule", {
  47346. value: true
  47347. });
  47348. exports.SizeStyle = exports.SizeClass = undefined;
  47349. var _parchment = __nested_webpack_require_234578__(0);
  47350. var _parchment2 = _interopRequireDefault(_parchment);
  47351. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47352. var SizeClass = new _parchment2.default.Attributor.Class('size', 'ql-size', {
  47353. scope: _parchment2.default.Scope.INLINE,
  47354. whitelist: ['small', 'large', 'huge']
  47355. });
  47356. var SizeStyle = new _parchment2.default.Attributor.Style('size', 'font-size', {
  47357. scope: _parchment2.default.Scope.INLINE,
  47358. whitelist: ['10px', '18px', '32px']
  47359. });
  47360. exports.SizeClass = SizeClass;
  47361. exports.SizeStyle = SizeStyle;
  47362. /***/ }),
  47363. /* 41 */
  47364. /***/ (function(module, exports, __nested_webpack_require_235375__) {
  47365. "use strict";
  47366. module.exports = {
  47367. 'align': {
  47368. '': __nested_webpack_require_235375__(76),
  47369. 'center': __nested_webpack_require_235375__(77),
  47370. 'right': __nested_webpack_require_235375__(78),
  47371. 'justify': __nested_webpack_require_235375__(79)
  47372. },
  47373. 'background': __nested_webpack_require_235375__(80),
  47374. 'blockquote': __nested_webpack_require_235375__(81),
  47375. 'bold': __nested_webpack_require_235375__(82),
  47376. 'clean': __nested_webpack_require_235375__(83),
  47377. 'code': __nested_webpack_require_235375__(58),
  47378. 'code-block': __nested_webpack_require_235375__(58),
  47379. 'color': __nested_webpack_require_235375__(84),
  47380. 'direction': {
  47381. '': __nested_webpack_require_235375__(85),
  47382. 'rtl': __nested_webpack_require_235375__(86)
  47383. },
  47384. 'float': {
  47385. 'center': __nested_webpack_require_235375__(87),
  47386. 'full': __nested_webpack_require_235375__(88),
  47387. 'left': __nested_webpack_require_235375__(89),
  47388. 'right': __nested_webpack_require_235375__(90)
  47389. },
  47390. 'formula': __nested_webpack_require_235375__(91),
  47391. 'header': {
  47392. '1': __nested_webpack_require_235375__(92),
  47393. '2': __nested_webpack_require_235375__(93)
  47394. },
  47395. 'italic': __nested_webpack_require_235375__(94),
  47396. 'image': __nested_webpack_require_235375__(95),
  47397. 'indent': {
  47398. '+1': __nested_webpack_require_235375__(96),
  47399. '-1': __nested_webpack_require_235375__(97)
  47400. },
  47401. 'link': __nested_webpack_require_235375__(98),
  47402. 'list': {
  47403. 'ordered': __nested_webpack_require_235375__(99),
  47404. 'bullet': __nested_webpack_require_235375__(100),
  47405. 'check': __nested_webpack_require_235375__(101)
  47406. },
  47407. 'script': {
  47408. 'sub': __nested_webpack_require_235375__(102),
  47409. 'super': __nested_webpack_require_235375__(103)
  47410. },
  47411. 'strike': __nested_webpack_require_235375__(104),
  47412. 'underline': __nested_webpack_require_235375__(105),
  47413. 'video': __nested_webpack_require_235375__(106)
  47414. };
  47415. /***/ }),
  47416. /* 42 */
  47417. /***/ (function(module, exports, __nested_webpack_require_236844__) {
  47418. "use strict";
  47419. Object.defineProperty(exports, "__esModule", {
  47420. value: true
  47421. });
  47422. exports.getLastChangeIndex = exports.default = undefined;
  47423. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47424. var _parchment = __nested_webpack_require_236844__(0);
  47425. var _parchment2 = _interopRequireDefault(_parchment);
  47426. var _quill = __nested_webpack_require_236844__(5);
  47427. var _quill2 = _interopRequireDefault(_quill);
  47428. var _module = __nested_webpack_require_236844__(9);
  47429. var _module2 = _interopRequireDefault(_module);
  47430. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47431. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47432. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47433. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47434. var History = function (_Module) {
  47435. _inherits(History, _Module);
  47436. function History(quill, options) {
  47437. _classCallCheck(this, History);
  47438. var _this = _possibleConstructorReturn(this, (History.__proto__ || Object.getPrototypeOf(History)).call(this, quill, options));
  47439. _this.lastRecorded = 0;
  47440. _this.ignoreChange = false;
  47441. _this.clear();
  47442. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (eventName, delta, oldDelta, source) {
  47443. if (eventName !== _quill2.default.events.TEXT_CHANGE || _this.ignoreChange) return;
  47444. if (!_this.options.userOnly || source === _quill2.default.sources.USER) {
  47445. _this.record(delta, oldDelta);
  47446. } else {
  47447. _this.transform(delta);
  47448. }
  47449. });
  47450. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true }, _this.undo.bind(_this));
  47451. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true, shiftKey: true }, _this.redo.bind(_this));
  47452. if (/Win/i.test(navigator.platform)) {
  47453. _this.quill.keyboard.addBinding({ key: 'Y', shortKey: true }, _this.redo.bind(_this));
  47454. }
  47455. return _this;
  47456. }
  47457. _createClass(History, [{
  47458. key: 'change',
  47459. value: function change(source, dest) {
  47460. if (this.stack[source].length === 0) return;
  47461. var delta = this.stack[source].pop();
  47462. this.stack[dest].push(delta);
  47463. this.lastRecorded = 0;
  47464. this.ignoreChange = true;
  47465. this.quill.updateContents(delta[source], _quill2.default.sources.USER);
  47466. this.ignoreChange = false;
  47467. var index = getLastChangeIndex(delta[source]);
  47468. this.quill.setSelection(index);
  47469. }
  47470. }, {
  47471. key: 'clear',
  47472. value: function clear() {
  47473. this.stack = { undo: [], redo: [] };
  47474. }
  47475. }, {
  47476. key: 'cutoff',
  47477. value: function cutoff() {
  47478. this.lastRecorded = 0;
  47479. }
  47480. }, {
  47481. key: 'record',
  47482. value: function record(changeDelta, oldDelta) {
  47483. if (changeDelta.ops.length === 0) return;
  47484. this.stack.redo = [];
  47485. var undoDelta = this.quill.getContents().diff(oldDelta);
  47486. var timestamp = Date.now();
  47487. if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {
  47488. var delta = this.stack.undo.pop();
  47489. undoDelta = undoDelta.compose(delta.undo);
  47490. changeDelta = delta.redo.compose(changeDelta);
  47491. } else {
  47492. this.lastRecorded = timestamp;
  47493. }
  47494. this.stack.undo.push({
  47495. redo: changeDelta,
  47496. undo: undoDelta
  47497. });
  47498. if (this.stack.undo.length > this.options.maxStack) {
  47499. this.stack.undo.shift();
  47500. }
  47501. }
  47502. }, {
  47503. key: 'redo',
  47504. value: function redo() {
  47505. this.change('redo', 'undo');
  47506. }
  47507. }, {
  47508. key: 'transform',
  47509. value: function transform(delta) {
  47510. this.stack.undo.forEach(function (change) {
  47511. change.undo = delta.transform(change.undo, true);
  47512. change.redo = delta.transform(change.redo, true);
  47513. });
  47514. this.stack.redo.forEach(function (change) {
  47515. change.undo = delta.transform(change.undo, true);
  47516. change.redo = delta.transform(change.redo, true);
  47517. });
  47518. }
  47519. }, {
  47520. key: 'undo',
  47521. value: function undo() {
  47522. this.change('undo', 'redo');
  47523. }
  47524. }]);
  47525. return History;
  47526. }(_module2.default);
  47527. History.DEFAULTS = {
  47528. delay: 1000,
  47529. maxStack: 100,
  47530. userOnly: false
  47531. };
  47532. function endsWithNewlineChange(delta) {
  47533. var lastOp = delta.ops[delta.ops.length - 1];
  47534. if (lastOp == null) return false;
  47535. if (lastOp.insert != null) {
  47536. return typeof lastOp.insert === 'string' && lastOp.insert.endsWith('\n');
  47537. }
  47538. if (lastOp.attributes != null) {
  47539. return Object.keys(lastOp.attributes).some(function (attr) {
  47540. return _parchment2.default.query(attr, _parchment2.default.Scope.BLOCK) != null;
  47541. });
  47542. }
  47543. return false;
  47544. }
  47545. function getLastChangeIndex(delta) {
  47546. var deleteLength = delta.reduce(function (length, op) {
  47547. length += op.delete || 0;
  47548. return length;
  47549. }, 0);
  47550. var changeIndex = delta.length() - deleteLength;
  47551. if (endsWithNewlineChange(delta)) {
  47552. changeIndex -= 1;
  47553. }
  47554. return changeIndex;
  47555. }
  47556. exports.default = History;
  47557. exports.getLastChangeIndex = getLastChangeIndex;
  47558. /***/ }),
  47559. /* 43 */
  47560. /***/ (function(module, exports, __nested_webpack_require_242979__) {
  47561. "use strict";
  47562. Object.defineProperty(exports, "__esModule", {
  47563. value: true
  47564. });
  47565. exports.default = exports.BaseTooltip = undefined;
  47566. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47567. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47568. var _extend = __nested_webpack_require_242979__(3);
  47569. var _extend2 = _interopRequireDefault(_extend);
  47570. var _quillDelta = __nested_webpack_require_242979__(2);
  47571. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  47572. var _emitter = __nested_webpack_require_242979__(8);
  47573. var _emitter2 = _interopRequireDefault(_emitter);
  47574. var _keyboard = __nested_webpack_require_242979__(23);
  47575. var _keyboard2 = _interopRequireDefault(_keyboard);
  47576. var _theme = __nested_webpack_require_242979__(34);
  47577. var _theme2 = _interopRequireDefault(_theme);
  47578. var _colorPicker = __nested_webpack_require_242979__(59);
  47579. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  47580. var _iconPicker = __nested_webpack_require_242979__(60);
  47581. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  47582. var _picker = __nested_webpack_require_242979__(28);
  47583. var _picker2 = _interopRequireDefault(_picker);
  47584. var _tooltip = __nested_webpack_require_242979__(61);
  47585. var _tooltip2 = _interopRequireDefault(_tooltip);
  47586. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47587. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47588. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47589. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47590. var ALIGNS = [false, 'center', 'right', 'justify'];
  47591. var COLORS = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"];
  47592. var FONTS = [false, 'serif', 'monospace'];
  47593. var HEADERS = ['1', '2', '3', false];
  47594. var SIZES = ['small', false, 'large', 'huge'];
  47595. var BaseTheme = function (_Theme) {
  47596. _inherits(BaseTheme, _Theme);
  47597. function BaseTheme(quill, options) {
  47598. _classCallCheck(this, BaseTheme);
  47599. var _this = _possibleConstructorReturn(this, (BaseTheme.__proto__ || Object.getPrototypeOf(BaseTheme)).call(this, quill, options));
  47600. var listener = function listener(e) {
  47601. if (!document.body.contains(quill.root)) {
  47602. return document.body.removeEventListener('click', listener);
  47603. }
  47604. if (_this.tooltip != null && !_this.tooltip.root.contains(e.target) && document.activeElement !== _this.tooltip.textbox && !_this.quill.hasFocus()) {
  47605. _this.tooltip.hide();
  47606. }
  47607. if (_this.pickers != null) {
  47608. _this.pickers.forEach(function (picker) {
  47609. if (!picker.container.contains(e.target)) {
  47610. picker.close();
  47611. }
  47612. });
  47613. }
  47614. };
  47615. quill.emitter.listenDOM('click', document.body, listener);
  47616. return _this;
  47617. }
  47618. _createClass(BaseTheme, [{
  47619. key: 'addModule',
  47620. value: function addModule(name) {
  47621. var module = _get(BaseTheme.prototype.__proto__ || Object.getPrototypeOf(BaseTheme.prototype), 'addModule', this).call(this, name);
  47622. if (name === 'toolbar') {
  47623. this.extendToolbar(module);
  47624. }
  47625. return module;
  47626. }
  47627. }, {
  47628. key: 'buildButtons',
  47629. value: function buildButtons(buttons, icons) {
  47630. buttons.forEach(function (button) {
  47631. var className = button.getAttribute('class') || '';
  47632. className.split(/\s+/).forEach(function (name) {
  47633. if (!name.startsWith('ql-')) return;
  47634. name = name.slice('ql-'.length);
  47635. if (icons[name] == null) return;
  47636. if (name === 'direction') {
  47637. button.innerHTML = icons[name][''] + icons[name]['rtl'];
  47638. } else if (typeof icons[name] === 'string') {
  47639. button.innerHTML = icons[name];
  47640. } else {
  47641. var value = button.value || '';
  47642. if (value != null && icons[name][value]) {
  47643. button.innerHTML = icons[name][value];
  47644. }
  47645. }
  47646. });
  47647. });
  47648. }
  47649. }, {
  47650. key: 'buildPickers',
  47651. value: function buildPickers(selects, icons) {
  47652. var _this2 = this;
  47653. this.pickers = selects.map(function (select) {
  47654. if (select.classList.contains('ql-align')) {
  47655. if (select.querySelector('option') == null) {
  47656. fillSelect(select, ALIGNS);
  47657. }
  47658. return new _iconPicker2.default(select, icons.align);
  47659. } else if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {
  47660. var format = select.classList.contains('ql-background') ? 'background' : 'color';
  47661. if (select.querySelector('option') == null) {
  47662. fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');
  47663. }
  47664. return new _colorPicker2.default(select, icons[format]);
  47665. } else {
  47666. if (select.querySelector('option') == null) {
  47667. if (select.classList.contains('ql-font')) {
  47668. fillSelect(select, FONTS);
  47669. } else if (select.classList.contains('ql-header')) {
  47670. fillSelect(select, HEADERS);
  47671. } else if (select.classList.contains('ql-size')) {
  47672. fillSelect(select, SIZES);
  47673. }
  47674. }
  47675. return new _picker2.default(select);
  47676. }
  47677. });
  47678. var update = function update() {
  47679. _this2.pickers.forEach(function (picker) {
  47680. picker.update();
  47681. });
  47682. };
  47683. this.quill.on(_emitter2.default.events.EDITOR_CHANGE, update);
  47684. }
  47685. }]);
  47686. return BaseTheme;
  47687. }(_theme2.default);
  47688. BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
  47689. modules: {
  47690. toolbar: {
  47691. handlers: {
  47692. formula: function formula() {
  47693. this.quill.theme.tooltip.edit('formula');
  47694. },
  47695. image: function image() {
  47696. var _this3 = this;
  47697. var fileInput = this.container.querySelector('input.ql-image[type=file]');
  47698. if (fileInput == null) {
  47699. fileInput = document.createElement('input');
  47700. fileInput.setAttribute('type', 'file');
  47701. fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon');
  47702. fileInput.classList.add('ql-image');
  47703. fileInput.addEventListener('change', function () {
  47704. if (fileInput.files != null && fileInput.files[0] != null) {
  47705. var reader = new FileReader();
  47706. reader.onload = function (e) {
  47707. var range = _this3.quill.getSelection(true);
  47708. _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);
  47709. _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
  47710. fileInput.value = "";
  47711. };
  47712. reader.readAsDataURL(fileInput.files[0]);
  47713. }
  47714. });
  47715. this.container.appendChild(fileInput);
  47716. }
  47717. fileInput.click();
  47718. },
  47719. video: function video() {
  47720. this.quill.theme.tooltip.edit('video');
  47721. }
  47722. }
  47723. }
  47724. }
  47725. });
  47726. var BaseTooltip = function (_Tooltip) {
  47727. _inherits(BaseTooltip, _Tooltip);
  47728. function BaseTooltip(quill, boundsContainer) {
  47729. _classCallCheck(this, BaseTooltip);
  47730. var _this4 = _possibleConstructorReturn(this, (BaseTooltip.__proto__ || Object.getPrototypeOf(BaseTooltip)).call(this, quill, boundsContainer));
  47731. _this4.textbox = _this4.root.querySelector('input[type="text"]');
  47732. _this4.listen();
  47733. return _this4;
  47734. }
  47735. _createClass(BaseTooltip, [{
  47736. key: 'listen',
  47737. value: function listen() {
  47738. var _this5 = this;
  47739. this.textbox.addEventListener('keydown', function (event) {
  47740. if (_keyboard2.default.match(event, 'enter')) {
  47741. _this5.save();
  47742. event.preventDefault();
  47743. } else if (_keyboard2.default.match(event, 'escape')) {
  47744. _this5.cancel();
  47745. event.preventDefault();
  47746. }
  47747. });
  47748. }
  47749. }, {
  47750. key: 'cancel',
  47751. value: function cancel() {
  47752. this.hide();
  47753. }
  47754. }, {
  47755. key: 'edit',
  47756. value: function edit() {
  47757. var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';
  47758. var preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  47759. this.root.classList.remove('ql-hidden');
  47760. this.root.classList.add('ql-editing');
  47761. if (preview != null) {
  47762. this.textbox.value = preview;
  47763. } else if (mode !== this.root.getAttribute('data-mode')) {
  47764. this.textbox.value = '';
  47765. }
  47766. this.position(this.quill.getBounds(this.quill.selection.savedRange));
  47767. this.textbox.select();
  47768. this.textbox.setAttribute('placeholder', this.textbox.getAttribute('data-' + mode) || '');
  47769. this.root.setAttribute('data-mode', mode);
  47770. }
  47771. }, {
  47772. key: 'restoreFocus',
  47773. value: function restoreFocus() {
  47774. var scrollTop = this.quill.scrollingContainer.scrollTop;
  47775. this.quill.focus();
  47776. this.quill.scrollingContainer.scrollTop = scrollTop;
  47777. }
  47778. }, {
  47779. key: 'save',
  47780. value: function save() {
  47781. var value = this.textbox.value;
  47782. switch (this.root.getAttribute('data-mode')) {
  47783. case 'link':
  47784. {
  47785. var scrollTop = this.quill.root.scrollTop;
  47786. if (this.linkRange) {
  47787. this.quill.formatText(this.linkRange, 'link', value, _emitter2.default.sources.USER);
  47788. delete this.linkRange;
  47789. } else {
  47790. this.restoreFocus();
  47791. this.quill.format('link', value, _emitter2.default.sources.USER);
  47792. }
  47793. this.quill.root.scrollTop = scrollTop;
  47794. break;
  47795. }
  47796. case 'video':
  47797. {
  47798. value = extractVideoUrl(value);
  47799. } // eslint-disable-next-line no-fallthrough
  47800. case 'formula':
  47801. {
  47802. if (!value) break;
  47803. var range = this.quill.getSelection(true);
  47804. if (range != null) {
  47805. var index = range.index + range.length;
  47806. this.quill.insertEmbed(index, this.root.getAttribute('data-mode'), value, _emitter2.default.sources.USER);
  47807. if (this.root.getAttribute('data-mode') === 'formula') {
  47808. this.quill.insertText(index + 1, ' ', _emitter2.default.sources.USER);
  47809. }
  47810. this.quill.setSelection(index + 2, _emitter2.default.sources.USER);
  47811. }
  47812. break;
  47813. }
  47814. default:
  47815. }
  47816. this.textbox.value = '';
  47817. this.hide();
  47818. }
  47819. }]);
  47820. return BaseTooltip;
  47821. }(_tooltip2.default);
  47822. function extractVideoUrl(url) {
  47823. var match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
  47824. if (match) {
  47825. return (match[1] || 'https') + '://www.youtube.com/embed/' + match[2] + '?showinfo=0';
  47826. }
  47827. if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
  47828. // eslint-disable-line no-cond-assign
  47829. return (match[1] || 'https') + '://player.vimeo.com/video/' + match[2] + '/';
  47830. }
  47831. return url;
  47832. }
  47833. function fillSelect(select, values) {
  47834. var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  47835. values.forEach(function (value) {
  47836. var option = document.createElement('option');
  47837. if (value === defaultValue) {
  47838. option.setAttribute('selected', 'selected');
  47839. } else {
  47840. option.setAttribute('value', value);
  47841. }
  47842. select.appendChild(option);
  47843. });
  47844. }
  47845. exports.BaseTooltip = BaseTooltip;
  47846. exports.default = BaseTheme;
  47847. /***/ }),
  47848. /* 44 */
  47849. /***/ (function(module, exports, __webpack_require__) {
  47850. "use strict";
  47851. Object.defineProperty(exports, "__esModule", { value: true });
  47852. var LinkedList = /** @class */ (function () {
  47853. function LinkedList() {
  47854. this.head = this.tail = null;
  47855. this.length = 0;
  47856. }
  47857. LinkedList.prototype.append = function () {
  47858. var nodes = [];
  47859. for (var _i = 0; _i < arguments.length; _i++) {
  47860. nodes[_i] = arguments[_i];
  47861. }
  47862. this.insertBefore(nodes[0], null);
  47863. if (nodes.length > 1) {
  47864. this.append.apply(this, nodes.slice(1));
  47865. }
  47866. };
  47867. LinkedList.prototype.contains = function (node) {
  47868. var cur, next = this.iterator();
  47869. while ((cur = next())) {
  47870. if (cur === node)
  47871. return true;
  47872. }
  47873. return false;
  47874. };
  47875. LinkedList.prototype.insertBefore = function (node, refNode) {
  47876. if (!node)
  47877. return;
  47878. node.next = refNode;
  47879. if (refNode != null) {
  47880. node.prev = refNode.prev;
  47881. if (refNode.prev != null) {
  47882. refNode.prev.next = node;
  47883. }
  47884. refNode.prev = node;
  47885. if (refNode === this.head) {
  47886. this.head = node;
  47887. }
  47888. }
  47889. else if (this.tail != null) {
  47890. this.tail.next = node;
  47891. node.prev = this.tail;
  47892. this.tail = node;
  47893. }
  47894. else {
  47895. node.prev = null;
  47896. this.head = this.tail = node;
  47897. }
  47898. this.length += 1;
  47899. };
  47900. LinkedList.prototype.offset = function (target) {
  47901. var index = 0, cur = this.head;
  47902. while (cur != null) {
  47903. if (cur === target)
  47904. return index;
  47905. index += cur.length();
  47906. cur = cur.next;
  47907. }
  47908. return -1;
  47909. };
  47910. LinkedList.prototype.remove = function (node) {
  47911. if (!this.contains(node))
  47912. return;
  47913. if (node.prev != null)
  47914. node.prev.next = node.next;
  47915. if (node.next != null)
  47916. node.next.prev = node.prev;
  47917. if (node === this.head)
  47918. this.head = node.next;
  47919. if (node === this.tail)
  47920. this.tail = node.prev;
  47921. this.length -= 1;
  47922. };
  47923. LinkedList.prototype.iterator = function (curNode) {
  47924. if (curNode === void 0) { curNode = this.head; }
  47925. // TODO use yield when we can
  47926. return function () {
  47927. var ret = curNode;
  47928. if (curNode != null)
  47929. curNode = curNode.next;
  47930. return ret;
  47931. };
  47932. };
  47933. LinkedList.prototype.find = function (index, inclusive) {
  47934. if (inclusive === void 0) { inclusive = false; }
  47935. var cur, next = this.iterator();
  47936. while ((cur = next())) {
  47937. var length = cur.length();
  47938. if (index < length ||
  47939. (inclusive && index === length && (cur.next == null || cur.next.length() !== 0))) {
  47940. return [cur, index];
  47941. }
  47942. index -= length;
  47943. }
  47944. return [null, 0];
  47945. };
  47946. LinkedList.prototype.forEach = function (callback) {
  47947. var cur, next = this.iterator();
  47948. while ((cur = next())) {
  47949. callback(cur);
  47950. }
  47951. };
  47952. LinkedList.prototype.forEachAt = function (index, length, callback) {
  47953. if (length <= 0)
  47954. return;
  47955. var _a = this.find(index), startNode = _a[0], offset = _a[1];
  47956. var cur, curIndex = index - offset, next = this.iterator(startNode);
  47957. while ((cur = next()) && curIndex < index + length) {
  47958. var curLength = cur.length();
  47959. if (index > curIndex) {
  47960. callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));
  47961. }
  47962. else {
  47963. callback(cur, 0, Math.min(curLength, index + length - curIndex));
  47964. }
  47965. curIndex += curLength;
  47966. }
  47967. };
  47968. LinkedList.prototype.map = function (callback) {
  47969. return this.reduce(function (memo, cur) {
  47970. memo.push(callback(cur));
  47971. return memo;
  47972. }, []);
  47973. };
  47974. LinkedList.prototype.reduce = function (callback, memo) {
  47975. var cur, next = this.iterator();
  47976. while ((cur = next())) {
  47977. memo = callback(memo, cur);
  47978. }
  47979. return memo;
  47980. };
  47981. return LinkedList;
  47982. }());
  47983. exports.default = LinkedList;
  47984. /***/ }),
  47985. /* 45 */
  47986. /***/ (function(module, exports, __nested_webpack_require_260796__) {
  47987. "use strict";
  47988. var __extends = (this && this.__extends) || (function () {
  47989. var extendStatics = Object.setPrototypeOf ||
  47990. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47991. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47992. return function (d, b) {
  47993. extendStatics(d, b);
  47994. function __() { this.constructor = d; }
  47995. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47996. };
  47997. })();
  47998. Object.defineProperty(exports, "__esModule", { value: true });
  47999. var container_1 = __nested_webpack_require_260796__(17);
  48000. var Registry = __nested_webpack_require_260796__(1);
  48001. var OBSERVER_CONFIG = {
  48002. attributes: true,
  48003. characterData: true,
  48004. characterDataOldValue: true,
  48005. childList: true,
  48006. subtree: true,
  48007. };
  48008. var MAX_OPTIMIZE_ITERATIONS = 100;
  48009. var ScrollBlot = /** @class */ (function (_super) {
  48010. __extends(ScrollBlot, _super);
  48011. function ScrollBlot(node) {
  48012. var _this = _super.call(this, node) || this;
  48013. _this.scroll = _this;
  48014. _this.observer = new MutationObserver(function (mutations) {
  48015. _this.update(mutations);
  48016. });
  48017. _this.observer.observe(_this.domNode, OBSERVER_CONFIG);
  48018. _this.attach();
  48019. return _this;
  48020. }
  48021. ScrollBlot.prototype.detach = function () {
  48022. _super.prototype.detach.call(this);
  48023. this.observer.disconnect();
  48024. };
  48025. ScrollBlot.prototype.deleteAt = function (index, length) {
  48026. this.update();
  48027. if (index === 0 && length === this.length()) {
  48028. this.children.forEach(function (child) {
  48029. child.remove();
  48030. });
  48031. }
  48032. else {
  48033. _super.prototype.deleteAt.call(this, index, length);
  48034. }
  48035. };
  48036. ScrollBlot.prototype.formatAt = function (index, length, name, value) {
  48037. this.update();
  48038. _super.prototype.formatAt.call(this, index, length, name, value);
  48039. };
  48040. ScrollBlot.prototype.insertAt = function (index, value, def) {
  48041. this.update();
  48042. _super.prototype.insertAt.call(this, index, value, def);
  48043. };
  48044. ScrollBlot.prototype.optimize = function (mutations, context) {
  48045. var _this = this;
  48046. if (mutations === void 0) { mutations = []; }
  48047. if (context === void 0) { context = {}; }
  48048. _super.prototype.optimize.call(this, context);
  48049. // We must modify mutations directly, cannot make copy and then modify
  48050. var records = [].slice.call(this.observer.takeRecords());
  48051. // Array.push currently seems to be implemented by a non-tail recursive function
  48052. // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());
  48053. while (records.length > 0)
  48054. mutations.push(records.pop());
  48055. // TODO use WeakMap
  48056. var mark = function (blot, markParent) {
  48057. if (markParent === void 0) { markParent = true; }
  48058. if (blot == null || blot === _this)
  48059. return;
  48060. if (blot.domNode.parentNode == null)
  48061. return;
  48062. // @ts-ignore
  48063. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48064. // @ts-ignore
  48065. blot.domNode[Registry.DATA_KEY].mutations = [];
  48066. }
  48067. if (markParent)
  48068. mark(blot.parent);
  48069. };
  48070. var optimize = function (blot) {
  48071. // Post-order traversal
  48072. if (
  48073. // @ts-ignore
  48074. blot.domNode[Registry.DATA_KEY] == null ||
  48075. // @ts-ignore
  48076. blot.domNode[Registry.DATA_KEY].mutations == null) {
  48077. return;
  48078. }
  48079. if (blot instanceof container_1.default) {
  48080. blot.children.forEach(optimize);
  48081. }
  48082. blot.optimize(context);
  48083. };
  48084. var remaining = mutations;
  48085. for (var i = 0; remaining.length > 0; i += 1) {
  48086. if (i >= MAX_OPTIMIZE_ITERATIONS) {
  48087. throw new Error('[Parchment] Maximum optimize iterations reached');
  48088. }
  48089. remaining.forEach(function (mutation) {
  48090. var blot = Registry.find(mutation.target, true);
  48091. if (blot == null)
  48092. return;
  48093. if (blot.domNode === mutation.target) {
  48094. if (mutation.type === 'childList') {
  48095. mark(Registry.find(mutation.previousSibling, false));
  48096. [].forEach.call(mutation.addedNodes, function (node) {
  48097. var child = Registry.find(node, false);
  48098. mark(child, false);
  48099. if (child instanceof container_1.default) {
  48100. child.children.forEach(function (grandChild) {
  48101. mark(grandChild, false);
  48102. });
  48103. }
  48104. });
  48105. }
  48106. else if (mutation.type === 'attributes') {
  48107. mark(blot.prev);
  48108. }
  48109. }
  48110. mark(blot);
  48111. });
  48112. this.children.forEach(optimize);
  48113. remaining = [].slice.call(this.observer.takeRecords());
  48114. records = remaining.slice();
  48115. while (records.length > 0)
  48116. mutations.push(records.pop());
  48117. }
  48118. };
  48119. ScrollBlot.prototype.update = function (mutations, context) {
  48120. var _this = this;
  48121. if (context === void 0) { context = {}; }
  48122. mutations = mutations || this.observer.takeRecords();
  48123. // TODO use WeakMap
  48124. mutations
  48125. .map(function (mutation) {
  48126. var blot = Registry.find(mutation.target, true);
  48127. if (blot == null)
  48128. return null;
  48129. // @ts-ignore
  48130. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48131. // @ts-ignore
  48132. blot.domNode[Registry.DATA_KEY].mutations = [mutation];
  48133. return blot;
  48134. }
  48135. else {
  48136. // @ts-ignore
  48137. blot.domNode[Registry.DATA_KEY].mutations.push(mutation);
  48138. return null;
  48139. }
  48140. })
  48141. .forEach(function (blot) {
  48142. if (blot == null ||
  48143. blot === _this ||
  48144. //@ts-ignore
  48145. blot.domNode[Registry.DATA_KEY] == null)
  48146. return;
  48147. // @ts-ignore
  48148. blot.update(blot.domNode[Registry.DATA_KEY].mutations || [], context);
  48149. });
  48150. // @ts-ignore
  48151. if (this.domNode[Registry.DATA_KEY].mutations != null) {
  48152. // @ts-ignore
  48153. _super.prototype.update.call(this, this.domNode[Registry.DATA_KEY].mutations, context);
  48154. }
  48155. this.optimize(mutations, context);
  48156. };
  48157. ScrollBlot.blotName = 'scroll';
  48158. ScrollBlot.defaultChild = 'block';
  48159. ScrollBlot.scope = Registry.Scope.BLOCK_BLOT;
  48160. ScrollBlot.tagName = 'DIV';
  48161. return ScrollBlot;
  48162. }(container_1.default));
  48163. exports.default = ScrollBlot;
  48164. /***/ }),
  48165. /* 46 */
  48166. /***/ (function(module, exports, __nested_webpack_require_267910__) {
  48167. "use strict";
  48168. var __extends = (this && this.__extends) || (function () {
  48169. var extendStatics = Object.setPrototypeOf ||
  48170. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48171. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48172. return function (d, b) {
  48173. extendStatics(d, b);
  48174. function __() { this.constructor = d; }
  48175. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48176. };
  48177. })();
  48178. Object.defineProperty(exports, "__esModule", { value: true });
  48179. var format_1 = __nested_webpack_require_267910__(18);
  48180. var Registry = __nested_webpack_require_267910__(1);
  48181. // Shallow object comparison
  48182. function isEqual(obj1, obj2) {
  48183. if (Object.keys(obj1).length !== Object.keys(obj2).length)
  48184. return false;
  48185. // @ts-ignore
  48186. for (var prop in obj1) {
  48187. // @ts-ignore
  48188. if (obj1[prop] !== obj2[prop])
  48189. return false;
  48190. }
  48191. return true;
  48192. }
  48193. var InlineBlot = /** @class */ (function (_super) {
  48194. __extends(InlineBlot, _super);
  48195. function InlineBlot() {
  48196. return _super !== null && _super.apply(this, arguments) || this;
  48197. }
  48198. InlineBlot.formats = function (domNode) {
  48199. if (domNode.tagName === InlineBlot.tagName)
  48200. return undefined;
  48201. return _super.formats.call(this, domNode);
  48202. };
  48203. InlineBlot.prototype.format = function (name, value) {
  48204. var _this = this;
  48205. if (name === this.statics.blotName && !value) {
  48206. this.children.forEach(function (child) {
  48207. if (!(child instanceof format_1.default)) {
  48208. child = child.wrap(InlineBlot.blotName, true);
  48209. }
  48210. _this.attributes.copy(child);
  48211. });
  48212. this.unwrap();
  48213. }
  48214. else {
  48215. _super.prototype.format.call(this, name, value);
  48216. }
  48217. };
  48218. InlineBlot.prototype.formatAt = function (index, length, name, value) {
  48219. if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {
  48220. var blot = this.isolate(index, length);
  48221. blot.format(name, value);
  48222. }
  48223. else {
  48224. _super.prototype.formatAt.call(this, index, length, name, value);
  48225. }
  48226. };
  48227. InlineBlot.prototype.optimize = function (context) {
  48228. _super.prototype.optimize.call(this, context);
  48229. var formats = this.formats();
  48230. if (Object.keys(formats).length === 0) {
  48231. return this.unwrap(); // unformatted span
  48232. }
  48233. var next = this.next;
  48234. if (next instanceof InlineBlot && next.prev === this && isEqual(formats, next.formats())) {
  48235. next.moveChildren(this);
  48236. next.remove();
  48237. }
  48238. };
  48239. InlineBlot.blotName = 'inline';
  48240. InlineBlot.scope = Registry.Scope.INLINE_BLOT;
  48241. InlineBlot.tagName = 'SPAN';
  48242. return InlineBlot;
  48243. }(format_1.default));
  48244. exports.default = InlineBlot;
  48245. /***/ }),
  48246. /* 47 */
  48247. /***/ (function(module, exports, __nested_webpack_require_270902__) {
  48248. "use strict";
  48249. var __extends = (this && this.__extends) || (function () {
  48250. var extendStatics = Object.setPrototypeOf ||
  48251. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48252. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48253. return function (d, b) {
  48254. extendStatics(d, b);
  48255. function __() { this.constructor = d; }
  48256. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48257. };
  48258. })();
  48259. Object.defineProperty(exports, "__esModule", { value: true });
  48260. var format_1 = __nested_webpack_require_270902__(18);
  48261. var Registry = __nested_webpack_require_270902__(1);
  48262. var BlockBlot = /** @class */ (function (_super) {
  48263. __extends(BlockBlot, _super);
  48264. function BlockBlot() {
  48265. return _super !== null && _super.apply(this, arguments) || this;
  48266. }
  48267. BlockBlot.formats = function (domNode) {
  48268. var tagName = Registry.query(BlockBlot.blotName).tagName;
  48269. if (domNode.tagName === tagName)
  48270. return undefined;
  48271. return _super.formats.call(this, domNode);
  48272. };
  48273. BlockBlot.prototype.format = function (name, value) {
  48274. if (Registry.query(name, Registry.Scope.BLOCK) == null) {
  48275. return;
  48276. }
  48277. else if (name === this.statics.blotName && !value) {
  48278. this.replaceWith(BlockBlot.blotName);
  48279. }
  48280. else {
  48281. _super.prototype.format.call(this, name, value);
  48282. }
  48283. };
  48284. BlockBlot.prototype.formatAt = function (index, length, name, value) {
  48285. if (Registry.query(name, Registry.Scope.BLOCK) != null) {
  48286. this.format(name, value);
  48287. }
  48288. else {
  48289. _super.prototype.formatAt.call(this, index, length, name, value);
  48290. }
  48291. };
  48292. BlockBlot.prototype.insertAt = function (index, value, def) {
  48293. if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {
  48294. // Insert text or inline
  48295. _super.prototype.insertAt.call(this, index, value, def);
  48296. }
  48297. else {
  48298. var after = this.split(index);
  48299. var blot = Registry.create(value, def);
  48300. after.parent.insertBefore(blot, after);
  48301. }
  48302. };
  48303. BlockBlot.prototype.update = function (mutations, context) {
  48304. if (navigator.userAgent.match(/Trident/)) {
  48305. this.build();
  48306. }
  48307. else {
  48308. _super.prototype.update.call(this, mutations, context);
  48309. }
  48310. };
  48311. BlockBlot.blotName = 'block';
  48312. BlockBlot.scope = Registry.Scope.BLOCK_BLOT;
  48313. BlockBlot.tagName = 'P';
  48314. return BlockBlot;
  48315. }(format_1.default));
  48316. exports.default = BlockBlot;
  48317. /***/ }),
  48318. /* 48 */
  48319. /***/ (function(module, exports, __nested_webpack_require_273610__) {
  48320. "use strict";
  48321. var __extends = (this && this.__extends) || (function () {
  48322. var extendStatics = Object.setPrototypeOf ||
  48323. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48324. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48325. return function (d, b) {
  48326. extendStatics(d, b);
  48327. function __() { this.constructor = d; }
  48328. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48329. };
  48330. })();
  48331. Object.defineProperty(exports, "__esModule", { value: true });
  48332. var leaf_1 = __nested_webpack_require_273610__(19);
  48333. var EmbedBlot = /** @class */ (function (_super) {
  48334. __extends(EmbedBlot, _super);
  48335. function EmbedBlot() {
  48336. return _super !== null && _super.apply(this, arguments) || this;
  48337. }
  48338. EmbedBlot.formats = function (domNode) {
  48339. return undefined;
  48340. };
  48341. EmbedBlot.prototype.format = function (name, value) {
  48342. // super.formatAt wraps, which is what we want in general,
  48343. // but this allows subclasses to overwrite for formats
  48344. // that just apply to particular embeds
  48345. _super.prototype.formatAt.call(this, 0, this.length(), name, value);
  48346. };
  48347. EmbedBlot.prototype.formatAt = function (index, length, name, value) {
  48348. if (index === 0 && length === this.length()) {
  48349. this.format(name, value);
  48350. }
  48351. else {
  48352. _super.prototype.formatAt.call(this, index, length, name, value);
  48353. }
  48354. };
  48355. EmbedBlot.prototype.formats = function () {
  48356. return this.statics.formats(this.domNode);
  48357. };
  48358. return EmbedBlot;
  48359. }(leaf_1.default));
  48360. exports.default = EmbedBlot;
  48361. /***/ }),
  48362. /* 49 */
  48363. /***/ (function(module, exports, __nested_webpack_require_275351__) {
  48364. "use strict";
  48365. var __extends = (this && this.__extends) || (function () {
  48366. var extendStatics = Object.setPrototypeOf ||
  48367. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48368. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48369. return function (d, b) {
  48370. extendStatics(d, b);
  48371. function __() { this.constructor = d; }
  48372. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48373. };
  48374. })();
  48375. Object.defineProperty(exports, "__esModule", { value: true });
  48376. var leaf_1 = __nested_webpack_require_275351__(19);
  48377. var Registry = __nested_webpack_require_275351__(1);
  48378. var TextBlot = /** @class */ (function (_super) {
  48379. __extends(TextBlot, _super);
  48380. function TextBlot(node) {
  48381. var _this = _super.call(this, node) || this;
  48382. _this.text = _this.statics.value(_this.domNode);
  48383. return _this;
  48384. }
  48385. TextBlot.create = function (value) {
  48386. return document.createTextNode(value);
  48387. };
  48388. TextBlot.value = function (domNode) {
  48389. var text = domNode.data;
  48390. // @ts-ignore
  48391. if (text['normalize'])
  48392. text = text['normalize']();
  48393. return text;
  48394. };
  48395. TextBlot.prototype.deleteAt = function (index, length) {
  48396. this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);
  48397. };
  48398. TextBlot.prototype.index = function (node, offset) {
  48399. if (this.domNode === node) {
  48400. return offset;
  48401. }
  48402. return -1;
  48403. };
  48404. TextBlot.prototype.insertAt = function (index, value, def) {
  48405. if (def == null) {
  48406. this.text = this.text.slice(0, index) + value + this.text.slice(index);
  48407. this.domNode.data = this.text;
  48408. }
  48409. else {
  48410. _super.prototype.insertAt.call(this, index, value, def);
  48411. }
  48412. };
  48413. TextBlot.prototype.length = function () {
  48414. return this.text.length;
  48415. };
  48416. TextBlot.prototype.optimize = function (context) {
  48417. _super.prototype.optimize.call(this, context);
  48418. this.text = this.statics.value(this.domNode);
  48419. if (this.text.length === 0) {
  48420. this.remove();
  48421. }
  48422. else if (this.next instanceof TextBlot && this.next.prev === this) {
  48423. this.insertAt(this.length(), this.next.value());
  48424. this.next.remove();
  48425. }
  48426. };
  48427. TextBlot.prototype.position = function (index, inclusive) {
  48428. if (inclusive === void 0) { inclusive = false; }
  48429. return [this.domNode, index];
  48430. };
  48431. TextBlot.prototype.split = function (index, force) {
  48432. if (force === void 0) { force = false; }
  48433. if (!force) {
  48434. if (index === 0)
  48435. return this;
  48436. if (index === this.length())
  48437. return this.next;
  48438. }
  48439. var after = Registry.create(this.domNode.splitText(index));
  48440. this.parent.insertBefore(after, this.next);
  48441. this.text = this.statics.value(this.domNode);
  48442. return after;
  48443. };
  48444. TextBlot.prototype.update = function (mutations, context) {
  48445. var _this = this;
  48446. if (mutations.some(function (mutation) {
  48447. return mutation.type === 'characterData' && mutation.target === _this.domNode;
  48448. })) {
  48449. this.text = this.statics.value(this.domNode);
  48450. }
  48451. };
  48452. TextBlot.prototype.value = function () {
  48453. return this.text;
  48454. };
  48455. TextBlot.blotName = 'text';
  48456. TextBlot.scope = Registry.Scope.INLINE_BLOT;
  48457. return TextBlot;
  48458. }(leaf_1.default));
  48459. exports.default = TextBlot;
  48460. /***/ }),
  48461. /* 50 */
  48462. /***/ (function(module, exports, __webpack_require__) {
  48463. "use strict";
  48464. var elem = document.createElement('div');
  48465. elem.classList.toggle('test-class', false);
  48466. if (elem.classList.contains('test-class')) {
  48467. var _toggle = DOMTokenList.prototype.toggle;
  48468. DOMTokenList.prototype.toggle = function (token, force) {
  48469. if (arguments.length > 1 && !this.contains(token) === !force) {
  48470. return force;
  48471. } else {
  48472. return _toggle.call(this, token);
  48473. }
  48474. };
  48475. }
  48476. if (!String.prototype.startsWith) {
  48477. String.prototype.startsWith = function (searchString, position) {
  48478. position = position || 0;
  48479. return this.substr(position, searchString.length) === searchString;
  48480. };
  48481. }
  48482. if (!String.prototype.endsWith) {
  48483. String.prototype.endsWith = function (searchString, position) {
  48484. var subjectString = this.toString();
  48485. if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
  48486. position = subjectString.length;
  48487. }
  48488. position -= searchString.length;
  48489. var lastIndex = subjectString.indexOf(searchString, position);
  48490. return lastIndex !== -1 && lastIndex === position;
  48491. };
  48492. }
  48493. if (!Array.prototype.find) {
  48494. Object.defineProperty(Array.prototype, "find", {
  48495. value: function value(predicate) {
  48496. if (this === null) {
  48497. throw new TypeError('Array.prototype.find called on null or undefined');
  48498. }
  48499. if (typeof predicate !== 'function') {
  48500. throw new TypeError('predicate must be a function');
  48501. }
  48502. var list = Object(this);
  48503. var length = list.length >>> 0;
  48504. var thisArg = arguments[1];
  48505. var value;
  48506. for (var i = 0; i < length; i++) {
  48507. value = list[i];
  48508. if (predicate.call(thisArg, value, i, list)) {
  48509. return value;
  48510. }
  48511. }
  48512. return undefined;
  48513. }
  48514. });
  48515. }
  48516. document.addEventListener("DOMContentLoaded", function () {
  48517. // Disable resizing in Firefox
  48518. document.execCommand("enableObjectResizing", false, false);
  48519. // Disable automatic linkifying in IE11
  48520. document.execCommand("autoUrlDetect", false, false);
  48521. });
  48522. /***/ }),
  48523. /* 51 */
  48524. /***/ (function(module, exports) {
  48525. /**
  48526. * This library modifies the diff-patch-match library by Neil Fraser
  48527. * by removing the patch and match functionality and certain advanced
  48528. * options in the diff function. The original license is as follows:
  48529. *
  48530. * ===
  48531. *
  48532. * Diff Match and Patch
  48533. *
  48534. * Copyright 2006 Google Inc.
  48535. * http://code.google.com/p/google-diff-match-patch/
  48536. *
  48537. * Licensed under the Apache License, Version 2.0 (the "License");
  48538. * you may not use this file except in compliance with the License.
  48539. * You may obtain a copy of the License at
  48540. *
  48541. * http://www.apache.org/licenses/LICENSE-2.0
  48542. *
  48543. * Unless required by applicable law or agreed to in writing, software
  48544. * distributed under the License is distributed on an "AS IS" BASIS,
  48545. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  48546. * See the License for the specific language governing permissions and
  48547. * limitations under the License.
  48548. */
  48549. /**
  48550. * The data structure representing a diff is an array of tuples:
  48551. * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
  48552. * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
  48553. */
  48554. var DIFF_DELETE = -1;
  48555. var DIFF_INSERT = 1;
  48556. var DIFF_EQUAL = 0;
  48557. /**
  48558. * Find the differences between two texts. Simplifies the problem by stripping
  48559. * any common prefix or suffix off the texts before diffing.
  48560. * @param {string} text1 Old string to be diffed.
  48561. * @param {string} text2 New string to be diffed.
  48562. * @param {Int} cursor_pos Expected edit position in text1 (optional)
  48563. * @return {Array} Array of diff tuples.
  48564. */
  48565. function diff_main(text1, text2, cursor_pos) {
  48566. // Check for equality (speedup).
  48567. if (text1 == text2) {
  48568. if (text1) {
  48569. return [[DIFF_EQUAL, text1]];
  48570. }
  48571. return [];
  48572. }
  48573. // Check cursor_pos within bounds
  48574. if (cursor_pos < 0 || text1.length < cursor_pos) {
  48575. cursor_pos = null;
  48576. }
  48577. // Trim off common prefix (speedup).
  48578. var commonlength = diff_commonPrefix(text1, text2);
  48579. var commonprefix = text1.substring(0, commonlength);
  48580. text1 = text1.substring(commonlength);
  48581. text2 = text2.substring(commonlength);
  48582. // Trim off common suffix (speedup).
  48583. commonlength = diff_commonSuffix(text1, text2);
  48584. var commonsuffix = text1.substring(text1.length - commonlength);
  48585. text1 = text1.substring(0, text1.length - commonlength);
  48586. text2 = text2.substring(0, text2.length - commonlength);
  48587. // Compute the diff on the middle block.
  48588. var diffs = diff_compute_(text1, text2);
  48589. // Restore the prefix and suffix.
  48590. if (commonprefix) {
  48591. diffs.unshift([DIFF_EQUAL, commonprefix]);
  48592. }
  48593. if (commonsuffix) {
  48594. diffs.push([DIFF_EQUAL, commonsuffix]);
  48595. }
  48596. diff_cleanupMerge(diffs);
  48597. if (cursor_pos != null) {
  48598. diffs = fix_cursor(diffs, cursor_pos);
  48599. }
  48600. diffs = fix_emoji(diffs);
  48601. return diffs;
  48602. };
  48603. /**
  48604. * Find the differences between two texts. Assumes that the texts do not
  48605. * have any common prefix or suffix.
  48606. * @param {string} text1 Old string to be diffed.
  48607. * @param {string} text2 New string to be diffed.
  48608. * @return {Array} Array of diff tuples.
  48609. */
  48610. function diff_compute_(text1, text2) {
  48611. var diffs;
  48612. if (!text1) {
  48613. // Just add some text (speedup).
  48614. return [[DIFF_INSERT, text2]];
  48615. }
  48616. if (!text2) {
  48617. // Just delete some text (speedup).
  48618. return [[DIFF_DELETE, text1]];
  48619. }
  48620. var longtext = text1.length > text2.length ? text1 : text2;
  48621. var shorttext = text1.length > text2.length ? text2 : text1;
  48622. var i = longtext.indexOf(shorttext);
  48623. if (i != -1) {
  48624. // Shorter text is inside the longer text (speedup).
  48625. diffs = [[DIFF_INSERT, longtext.substring(0, i)],
  48626. [DIFF_EQUAL, shorttext],
  48627. [DIFF_INSERT, longtext.substring(i + shorttext.length)]];
  48628. // Swap insertions for deletions if diff is reversed.
  48629. if (text1.length > text2.length) {
  48630. diffs[0][0] = diffs[2][0] = DIFF_DELETE;
  48631. }
  48632. return diffs;
  48633. }
  48634. if (shorttext.length == 1) {
  48635. // Single character string.
  48636. // After the previous speedup, the character can't be an equality.
  48637. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  48638. }
  48639. // Check to see if the problem can be split in two.
  48640. var hm = diff_halfMatch_(text1, text2);
  48641. if (hm) {
  48642. // A half-match was found, sort out the return data.
  48643. var text1_a = hm[0];
  48644. var text1_b = hm[1];
  48645. var text2_a = hm[2];
  48646. var text2_b = hm[3];
  48647. var mid_common = hm[4];
  48648. // Send both pairs off for separate processing.
  48649. var diffs_a = diff_main(text1_a, text2_a);
  48650. var diffs_b = diff_main(text1_b, text2_b);
  48651. // Merge the results.
  48652. return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);
  48653. }
  48654. return diff_bisect_(text1, text2);
  48655. };
  48656. /**
  48657. * Find the 'middle snake' of a diff, split the problem in two
  48658. * and return the recursively constructed diff.
  48659. * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
  48660. * @param {string} text1 Old string to be diffed.
  48661. * @param {string} text2 New string to be diffed.
  48662. * @return {Array} Array of diff tuples.
  48663. * @private
  48664. */
  48665. function diff_bisect_(text1, text2) {
  48666. // Cache the text lengths to prevent multiple calls.
  48667. var text1_length = text1.length;
  48668. var text2_length = text2.length;
  48669. var max_d = Math.ceil((text1_length + text2_length) / 2);
  48670. var v_offset = max_d;
  48671. var v_length = 2 * max_d;
  48672. var v1 = new Array(v_length);
  48673. var v2 = new Array(v_length);
  48674. // Setting all elements to -1 is faster in Chrome & Firefox than mixing
  48675. // integers and undefined.
  48676. for (var x = 0; x < v_length; x++) {
  48677. v1[x] = -1;
  48678. v2[x] = -1;
  48679. }
  48680. v1[v_offset + 1] = 0;
  48681. v2[v_offset + 1] = 0;
  48682. var delta = text1_length - text2_length;
  48683. // If the total number of characters is odd, then the front path will collide
  48684. // with the reverse path.
  48685. var front = (delta % 2 != 0);
  48686. // Offsets for start and end of k loop.
  48687. // Prevents mapping of space beyond the grid.
  48688. var k1start = 0;
  48689. var k1end = 0;
  48690. var k2start = 0;
  48691. var k2end = 0;
  48692. for (var d = 0; d < max_d; d++) {
  48693. // Walk the front path one step.
  48694. for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {
  48695. var k1_offset = v_offset + k1;
  48696. var x1;
  48697. if (k1 == -d || (k1 != d && v1[k1_offset - 1] < v1[k1_offset + 1])) {
  48698. x1 = v1[k1_offset + 1];
  48699. } else {
  48700. x1 = v1[k1_offset - 1] + 1;
  48701. }
  48702. var y1 = x1 - k1;
  48703. while (x1 < text1_length && y1 < text2_length &&
  48704. text1.charAt(x1) == text2.charAt(y1)) {
  48705. x1++;
  48706. y1++;
  48707. }
  48708. v1[k1_offset] = x1;
  48709. if (x1 > text1_length) {
  48710. // Ran off the right of the graph.
  48711. k1end += 2;
  48712. } else if (y1 > text2_length) {
  48713. // Ran off the bottom of the graph.
  48714. k1start += 2;
  48715. } else if (front) {
  48716. var k2_offset = v_offset + delta - k1;
  48717. if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] != -1) {
  48718. // Mirror x2 onto top-left coordinate system.
  48719. var x2 = text1_length - v2[k2_offset];
  48720. if (x1 >= x2) {
  48721. // Overlap detected.
  48722. return diff_bisectSplit_(text1, text2, x1, y1);
  48723. }
  48724. }
  48725. }
  48726. }
  48727. // Walk the reverse path one step.
  48728. for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {
  48729. var k2_offset = v_offset + k2;
  48730. var x2;
  48731. if (k2 == -d || (k2 != d && v2[k2_offset - 1] < v2[k2_offset + 1])) {
  48732. x2 = v2[k2_offset + 1];
  48733. } else {
  48734. x2 = v2[k2_offset - 1] + 1;
  48735. }
  48736. var y2 = x2 - k2;
  48737. while (x2 < text1_length && y2 < text2_length &&
  48738. text1.charAt(text1_length - x2 - 1) ==
  48739. text2.charAt(text2_length - y2 - 1)) {
  48740. x2++;
  48741. y2++;
  48742. }
  48743. v2[k2_offset] = x2;
  48744. if (x2 > text1_length) {
  48745. // Ran off the left of the graph.
  48746. k2end += 2;
  48747. } else if (y2 > text2_length) {
  48748. // Ran off the top of the graph.
  48749. k2start += 2;
  48750. } else if (!front) {
  48751. var k1_offset = v_offset + delta - k2;
  48752. if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] != -1) {
  48753. var x1 = v1[k1_offset];
  48754. var y1 = v_offset + x1 - k1_offset;
  48755. // Mirror x2 onto top-left coordinate system.
  48756. x2 = text1_length - x2;
  48757. if (x1 >= x2) {
  48758. // Overlap detected.
  48759. return diff_bisectSplit_(text1, text2, x1, y1);
  48760. }
  48761. }
  48762. }
  48763. }
  48764. }
  48765. // Diff took too long and hit the deadline or
  48766. // number of diffs equals number of characters, no commonality at all.
  48767. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  48768. };
  48769. /**
  48770. * Given the location of the 'middle snake', split the diff in two parts
  48771. * and recurse.
  48772. * @param {string} text1 Old string to be diffed.
  48773. * @param {string} text2 New string to be diffed.
  48774. * @param {number} x Index of split point in text1.
  48775. * @param {number} y Index of split point in text2.
  48776. * @return {Array} Array of diff tuples.
  48777. */
  48778. function diff_bisectSplit_(text1, text2, x, y) {
  48779. var text1a = text1.substring(0, x);
  48780. var text2a = text2.substring(0, y);
  48781. var text1b = text1.substring(x);
  48782. var text2b = text2.substring(y);
  48783. // Compute both diffs serially.
  48784. var diffs = diff_main(text1a, text2a);
  48785. var diffsb = diff_main(text1b, text2b);
  48786. return diffs.concat(diffsb);
  48787. };
  48788. /**
  48789. * Determine the common prefix of two strings.
  48790. * @param {string} text1 First string.
  48791. * @param {string} text2 Second string.
  48792. * @return {number} The number of characters common to the start of each
  48793. * string.
  48794. */
  48795. function diff_commonPrefix(text1, text2) {
  48796. // Quick check for common null cases.
  48797. if (!text1 || !text2 || text1.charAt(0) != text2.charAt(0)) {
  48798. return 0;
  48799. }
  48800. // Binary search.
  48801. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  48802. var pointermin = 0;
  48803. var pointermax = Math.min(text1.length, text2.length);
  48804. var pointermid = pointermax;
  48805. var pointerstart = 0;
  48806. while (pointermin < pointermid) {
  48807. if (text1.substring(pointerstart, pointermid) ==
  48808. text2.substring(pointerstart, pointermid)) {
  48809. pointermin = pointermid;
  48810. pointerstart = pointermin;
  48811. } else {
  48812. pointermax = pointermid;
  48813. }
  48814. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  48815. }
  48816. return pointermid;
  48817. };
  48818. /**
  48819. * Determine the common suffix of two strings.
  48820. * @param {string} text1 First string.
  48821. * @param {string} text2 Second string.
  48822. * @return {number} The number of characters common to the end of each string.
  48823. */
  48824. function diff_commonSuffix(text1, text2) {
  48825. // Quick check for common null cases.
  48826. if (!text1 || !text2 ||
  48827. text1.charAt(text1.length - 1) != text2.charAt(text2.length - 1)) {
  48828. return 0;
  48829. }
  48830. // Binary search.
  48831. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  48832. var pointermin = 0;
  48833. var pointermax = Math.min(text1.length, text2.length);
  48834. var pointermid = pointermax;
  48835. var pointerend = 0;
  48836. while (pointermin < pointermid) {
  48837. if (text1.substring(text1.length - pointermid, text1.length - pointerend) ==
  48838. text2.substring(text2.length - pointermid, text2.length - pointerend)) {
  48839. pointermin = pointermid;
  48840. pointerend = pointermin;
  48841. } else {
  48842. pointermax = pointermid;
  48843. }
  48844. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  48845. }
  48846. return pointermid;
  48847. };
  48848. /**
  48849. * Do the two texts share a substring which is at least half the length of the
  48850. * longer text?
  48851. * This speedup can produce non-minimal diffs.
  48852. * @param {string} text1 First string.
  48853. * @param {string} text2 Second string.
  48854. * @return {Array.<string>} Five element Array, containing the prefix of
  48855. * text1, the suffix of text1, the prefix of text2, the suffix of
  48856. * text2 and the common middle. Or null if there was no match.
  48857. */
  48858. function diff_halfMatch_(text1, text2) {
  48859. var longtext = text1.length > text2.length ? text1 : text2;
  48860. var shorttext = text1.length > text2.length ? text2 : text1;
  48861. if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
  48862. return null; // Pointless.
  48863. }
  48864. /**
  48865. * Does a substring of shorttext exist within longtext such that the substring
  48866. * is at least half the length of longtext?
  48867. * Closure, but does not reference any external variables.
  48868. * @param {string} longtext Longer string.
  48869. * @param {string} shorttext Shorter string.
  48870. * @param {number} i Start index of quarter length substring within longtext.
  48871. * @return {Array.<string>} Five element Array, containing the prefix of
  48872. * longtext, the suffix of longtext, the prefix of shorttext, the suffix
  48873. * of shorttext and the common middle. Or null if there was no match.
  48874. * @private
  48875. */
  48876. function diff_halfMatchI_(longtext, shorttext, i) {
  48877. // Start with a 1/4 length substring at position i as a seed.
  48878. var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));
  48879. var j = -1;
  48880. var best_common = '';
  48881. var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
  48882. while ((j = shorttext.indexOf(seed, j + 1)) != -1) {
  48883. var prefixLength = diff_commonPrefix(longtext.substring(i),
  48884. shorttext.substring(j));
  48885. var suffixLength = diff_commonSuffix(longtext.substring(0, i),
  48886. shorttext.substring(0, j));
  48887. if (best_common.length < suffixLength + prefixLength) {
  48888. best_common = shorttext.substring(j - suffixLength, j) +
  48889. shorttext.substring(j, j + prefixLength);
  48890. best_longtext_a = longtext.substring(0, i - suffixLength);
  48891. best_longtext_b = longtext.substring(i + prefixLength);
  48892. best_shorttext_a = shorttext.substring(0, j - suffixLength);
  48893. best_shorttext_b = shorttext.substring(j + prefixLength);
  48894. }
  48895. }
  48896. if (best_common.length * 2 >= longtext.length) {
  48897. return [best_longtext_a, best_longtext_b,
  48898. best_shorttext_a, best_shorttext_b, best_common];
  48899. } else {
  48900. return null;
  48901. }
  48902. }
  48903. // First check if the second quarter is the seed for a half-match.
  48904. var hm1 = diff_halfMatchI_(longtext, shorttext,
  48905. Math.ceil(longtext.length / 4));
  48906. // Check again based on the third quarter.
  48907. var hm2 = diff_halfMatchI_(longtext, shorttext,
  48908. Math.ceil(longtext.length / 2));
  48909. var hm;
  48910. if (!hm1 && !hm2) {
  48911. return null;
  48912. } else if (!hm2) {
  48913. hm = hm1;
  48914. } else if (!hm1) {
  48915. hm = hm2;
  48916. } else {
  48917. // Both matched. Select the longest.
  48918. hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
  48919. }
  48920. // A half-match was found, sort out the return data.
  48921. var text1_a, text1_b, text2_a, text2_b;
  48922. if (text1.length > text2.length) {
  48923. text1_a = hm[0];
  48924. text1_b = hm[1];
  48925. text2_a = hm[2];
  48926. text2_b = hm[3];
  48927. } else {
  48928. text2_a = hm[0];
  48929. text2_b = hm[1];
  48930. text1_a = hm[2];
  48931. text1_b = hm[3];
  48932. }
  48933. var mid_common = hm[4];
  48934. return [text1_a, text1_b, text2_a, text2_b, mid_common];
  48935. };
  48936. /**
  48937. * Reorder and merge like edit sections. Merge equalities.
  48938. * Any edit section can move as long as it doesn't cross an equality.
  48939. * @param {Array} diffs Array of diff tuples.
  48940. */
  48941. function diff_cleanupMerge(diffs) {
  48942. diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.
  48943. var pointer = 0;
  48944. var count_delete = 0;
  48945. var count_insert = 0;
  48946. var text_delete = '';
  48947. var text_insert = '';
  48948. var commonlength;
  48949. while (pointer < diffs.length) {
  48950. switch (diffs[pointer][0]) {
  48951. case DIFF_INSERT:
  48952. count_insert++;
  48953. text_insert += diffs[pointer][1];
  48954. pointer++;
  48955. break;
  48956. case DIFF_DELETE:
  48957. count_delete++;
  48958. text_delete += diffs[pointer][1];
  48959. pointer++;
  48960. break;
  48961. case DIFF_EQUAL:
  48962. // Upon reaching an equality, check for prior redundancies.
  48963. if (count_delete + count_insert > 1) {
  48964. if (count_delete !== 0 && count_insert !== 0) {
  48965. // Factor out any common prefixies.
  48966. commonlength = diff_commonPrefix(text_insert, text_delete);
  48967. if (commonlength !== 0) {
  48968. if ((pointer - count_delete - count_insert) > 0 &&
  48969. diffs[pointer - count_delete - count_insert - 1][0] ==
  48970. DIFF_EQUAL) {
  48971. diffs[pointer - count_delete - count_insert - 1][1] +=
  48972. text_insert.substring(0, commonlength);
  48973. } else {
  48974. diffs.splice(0, 0, [DIFF_EQUAL,
  48975. text_insert.substring(0, commonlength)]);
  48976. pointer++;
  48977. }
  48978. text_insert = text_insert.substring(commonlength);
  48979. text_delete = text_delete.substring(commonlength);
  48980. }
  48981. // Factor out any common suffixies.
  48982. commonlength = diff_commonSuffix(text_insert, text_delete);
  48983. if (commonlength !== 0) {
  48984. diffs[pointer][1] = text_insert.substring(text_insert.length -
  48985. commonlength) + diffs[pointer][1];
  48986. text_insert = text_insert.substring(0, text_insert.length -
  48987. commonlength);
  48988. text_delete = text_delete.substring(0, text_delete.length -
  48989. commonlength);
  48990. }
  48991. }
  48992. // Delete the offending records and add the merged ones.
  48993. if (count_delete === 0) {
  48994. diffs.splice(pointer - count_insert,
  48995. count_delete + count_insert, [DIFF_INSERT, text_insert]);
  48996. } else if (count_insert === 0) {
  48997. diffs.splice(pointer - count_delete,
  48998. count_delete + count_insert, [DIFF_DELETE, text_delete]);
  48999. } else {
  49000. diffs.splice(pointer - count_delete - count_insert,
  49001. count_delete + count_insert, [DIFF_DELETE, text_delete],
  49002. [DIFF_INSERT, text_insert]);
  49003. }
  49004. pointer = pointer - count_delete - count_insert +
  49005. (count_delete ? 1 : 0) + (count_insert ? 1 : 0) + 1;
  49006. } else if (pointer !== 0 && diffs[pointer - 1][0] == DIFF_EQUAL) {
  49007. // Merge this equality with the previous one.
  49008. diffs[pointer - 1][1] += diffs[pointer][1];
  49009. diffs.splice(pointer, 1);
  49010. } else {
  49011. pointer++;
  49012. }
  49013. count_insert = 0;
  49014. count_delete = 0;
  49015. text_delete = '';
  49016. text_insert = '';
  49017. break;
  49018. }
  49019. }
  49020. if (diffs[diffs.length - 1][1] === '') {
  49021. diffs.pop(); // Remove the dummy entry at the end.
  49022. }
  49023. // Second pass: look for single edits surrounded on both sides by equalities
  49024. // which can be shifted sideways to eliminate an equality.
  49025. // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
  49026. var changes = false;
  49027. pointer = 1;
  49028. // Intentionally ignore the first and last element (don't need checking).
  49029. while (pointer < diffs.length - 1) {
  49030. if (diffs[pointer - 1][0] == DIFF_EQUAL &&
  49031. diffs[pointer + 1][0] == DIFF_EQUAL) {
  49032. // This is a single edit surrounded by equalities.
  49033. if (diffs[pointer][1].substring(diffs[pointer][1].length -
  49034. diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {
  49035. // Shift the edit over the previous equality.
  49036. diffs[pointer][1] = diffs[pointer - 1][1] +
  49037. diffs[pointer][1].substring(0, diffs[pointer][1].length -
  49038. diffs[pointer - 1][1].length);
  49039. diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
  49040. diffs.splice(pointer - 1, 1);
  49041. changes = true;
  49042. } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==
  49043. diffs[pointer + 1][1]) {
  49044. // Shift the edit over the next equality.
  49045. diffs[pointer - 1][1] += diffs[pointer + 1][1];
  49046. diffs[pointer][1] =
  49047. diffs[pointer][1].substring(diffs[pointer + 1][1].length) +
  49048. diffs[pointer + 1][1];
  49049. diffs.splice(pointer + 1, 1);
  49050. changes = true;
  49051. }
  49052. }
  49053. pointer++;
  49054. }
  49055. // If shifts were made, the diff needs reordering and another shift sweep.
  49056. if (changes) {
  49057. diff_cleanupMerge(diffs);
  49058. }
  49059. };
  49060. var diff = diff_main;
  49061. diff.INSERT = DIFF_INSERT;
  49062. diff.DELETE = DIFF_DELETE;
  49063. diff.EQUAL = DIFF_EQUAL;
  49064. module.exports = diff;
  49065. /*
  49066. * Modify a diff such that the cursor position points to the start of a change:
  49067. * E.g.
  49068. * cursor_normalize_diff([[DIFF_EQUAL, 'abc']], 1)
  49069. * => [1, [[DIFF_EQUAL, 'a'], [DIFF_EQUAL, 'bc']]]
  49070. * cursor_normalize_diff([[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xyz']], 2)
  49071. * => [2, [[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xy'], [DIFF_DELETE, 'z']]]
  49072. *
  49073. * @param {Array} diffs Array of diff tuples
  49074. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49075. * @return {Array} A tuple [cursor location in the modified diff, modified diff]
  49076. */
  49077. function cursor_normalize_diff (diffs, cursor_pos) {
  49078. if (cursor_pos === 0) {
  49079. return [DIFF_EQUAL, diffs];
  49080. }
  49081. for (var current_pos = 0, i = 0; i < diffs.length; i++) {
  49082. var d = diffs[i];
  49083. if (d[0] === DIFF_DELETE || d[0] === DIFF_EQUAL) {
  49084. var next_pos = current_pos + d[1].length;
  49085. if (cursor_pos === next_pos) {
  49086. return [i + 1, diffs];
  49087. } else if (cursor_pos < next_pos) {
  49088. // copy to prevent side effects
  49089. diffs = diffs.slice();
  49090. // split d into two diff changes
  49091. var split_pos = cursor_pos - current_pos;
  49092. var d_left = [d[0], d[1].slice(0, split_pos)];
  49093. var d_right = [d[0], d[1].slice(split_pos)];
  49094. diffs.splice(i, 1, d_left, d_right);
  49095. return [i + 1, diffs];
  49096. } else {
  49097. current_pos = next_pos;
  49098. }
  49099. }
  49100. }
  49101. throw new Error('cursor_pos is out of bounds!')
  49102. }
  49103. /*
  49104. * Modify a diff such that the edit position is "shifted" to the proposed edit location (cursor_position).
  49105. *
  49106. * Case 1)
  49107. * Check if a naive shift is possible:
  49108. * [0, X], [ 1, Y] -> [ 1, Y], [0, X] (if X + Y === Y + X)
  49109. * [0, X], [-1, Y] -> [-1, Y], [0, X] (if X + Y === Y + X) - holds same result
  49110. * Case 2)
  49111. * Check if the following shifts are possible:
  49112. * [0, 'pre'], [ 1, 'prefix'] -> [ 1, 'pre'], [0, 'pre'], [ 1, 'fix']
  49113. * [0, 'pre'], [-1, 'prefix'] -> [-1, 'pre'], [0, 'pre'], [-1, 'fix']
  49114. * ^ ^
  49115. * d d_next
  49116. *
  49117. * @param {Array} diffs Array of diff tuples
  49118. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49119. * @return {Array} Array of diff tuples
  49120. */
  49121. function fix_cursor (diffs, cursor_pos) {
  49122. var norm = cursor_normalize_diff(diffs, cursor_pos);
  49123. var ndiffs = norm[1];
  49124. var cursor_pointer = norm[0];
  49125. var d = ndiffs[cursor_pointer];
  49126. var d_next = ndiffs[cursor_pointer + 1];
  49127. if (d == null) {
  49128. // Text was deleted from end of original string,
  49129. // cursor is now out of bounds in new string
  49130. return diffs;
  49131. } else if (d[0] !== DIFF_EQUAL) {
  49132. // A modification happened at the cursor location.
  49133. // This is the expected outcome, so we can return the original diff.
  49134. return diffs;
  49135. } else {
  49136. if (d_next != null && d[1] + d_next[1] === d_next[1] + d[1]) {
  49137. // Case 1)
  49138. // It is possible to perform a naive shift
  49139. ndiffs.splice(cursor_pointer, 2, d_next, d)
  49140. return merge_tuples(ndiffs, cursor_pointer, 2)
  49141. } else if (d_next != null && d_next[1].indexOf(d[1]) === 0) {
  49142. // Case 2)
  49143. // d[1] is a prefix of d_next[1]
  49144. // We can assume that d_next[0] !== 0, since d[0] === 0
  49145. // Shift edit locations..
  49146. ndiffs.splice(cursor_pointer, 2, [d_next[0], d[1]], [0, d[1]]);
  49147. var suffix = d_next[1].slice(d[1].length);
  49148. if (suffix.length > 0) {
  49149. ndiffs.splice(cursor_pointer + 2, 0, [d_next[0], suffix]);
  49150. }
  49151. return merge_tuples(ndiffs, cursor_pointer, 3)
  49152. } else {
  49153. // Not possible to perform any modification
  49154. return diffs;
  49155. }
  49156. }
  49157. }
  49158. /*
  49159. * Check diff did not split surrogate pairs.
  49160. * Ex. [0, '\uD83D'], [-1, '\uDC36'], [1, '\uDC2F'] -> [-1, '\uD83D\uDC36'], [1, '\uD83D\uDC2F']
  49161. * '\uD83D\uDC36' === '🐶', '\uD83D\uDC2F' === '🐯'
  49162. *
  49163. * @param {Array} diffs Array of diff tuples
  49164. * @return {Array} Array of diff tuples
  49165. */
  49166. function fix_emoji (diffs) {
  49167. var compact = false;
  49168. var starts_with_pair_end = function(str) {
  49169. return str.charCodeAt(0) >= 0xDC00 && str.charCodeAt(0) <= 0xDFFF;
  49170. }
  49171. var ends_with_pair_start = function(str) {
  49172. return str.charCodeAt(str.length-1) >= 0xD800 && str.charCodeAt(str.length-1) <= 0xDBFF;
  49173. }
  49174. for (var i = 2; i < diffs.length; i += 1) {
  49175. if (diffs[i-2][0] === DIFF_EQUAL && ends_with_pair_start(diffs[i-2][1]) &&
  49176. diffs[i-1][0] === DIFF_DELETE && starts_with_pair_end(diffs[i-1][1]) &&
  49177. diffs[i][0] === DIFF_INSERT && starts_with_pair_end(diffs[i][1])) {
  49178. compact = true;
  49179. diffs[i-1][1] = diffs[i-2][1].slice(-1) + diffs[i-1][1];
  49180. diffs[i][1] = diffs[i-2][1].slice(-1) + diffs[i][1];
  49181. diffs[i-2][1] = diffs[i-2][1].slice(0, -1);
  49182. }
  49183. }
  49184. if (!compact) {
  49185. return diffs;
  49186. }
  49187. var fixed_diffs = [];
  49188. for (var i = 0; i < diffs.length; i += 1) {
  49189. if (diffs[i][1].length > 0) {
  49190. fixed_diffs.push(diffs[i]);
  49191. }
  49192. }
  49193. return fixed_diffs;
  49194. }
  49195. /*
  49196. * Try to merge tuples with their neigbors in a given range.
  49197. * E.g. [0, 'a'], [0, 'b'] -> [0, 'ab']
  49198. *
  49199. * @param {Array} diffs Array of diff tuples.
  49200. * @param {Int} start Position of the first element to merge (diffs[start] is also merged with diffs[start - 1]).
  49201. * @param {Int} length Number of consecutive elements to check.
  49202. * @return {Array} Array of merged diff tuples.
  49203. */
  49204. function merge_tuples (diffs, start, length) {
  49205. // Check from (start-1) to (start+length).
  49206. for (var i = start + length - 1; i >= 0 && i >= start - 1; i--) {
  49207. if (i + 1 < diffs.length) {
  49208. var left_d = diffs[i];
  49209. var right_d = diffs[i+1];
  49210. if (left_d[0] === right_d[1]) {
  49211. diffs.splice(i, 2, [left_d[0], left_d[1] + right_d[1]]);
  49212. }
  49213. }
  49214. }
  49215. return diffs;
  49216. }
  49217. /***/ }),
  49218. /* 52 */
  49219. /***/ (function(module, exports) {
  49220. exports = module.exports = typeof Object.keys === 'function'
  49221. ? Object.keys : shim;
  49222. exports.shim = shim;
  49223. function shim (obj) {
  49224. var keys = [];
  49225. for (var key in obj) keys.push(key);
  49226. return keys;
  49227. }
  49228. /***/ }),
  49229. /* 53 */
  49230. /***/ (function(module, exports) {
  49231. var supportsArgumentsClass = (function(){
  49232. return Object.prototype.toString.call(arguments)
  49233. })() == '[object Arguments]';
  49234. exports = module.exports = supportsArgumentsClass ? supported : unsupported;
  49235. exports.supported = supported;
  49236. function supported(object) {
  49237. return Object.prototype.toString.call(object) == '[object Arguments]';
  49238. };
  49239. exports.unsupported = unsupported;
  49240. function unsupported(object){
  49241. return object &&
  49242. typeof object == 'object' &&
  49243. typeof object.length == 'number' &&
  49244. Object.prototype.hasOwnProperty.call(object, 'callee') &&
  49245. !Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
  49246. false;
  49247. };
  49248. /***/ }),
  49249. /* 54 */
  49250. /***/ (function(module, exports) {
  49251. 'use strict';
  49252. var has = Object.prototype.hasOwnProperty
  49253. , prefix = '~';
  49254. /**
  49255. * Constructor to create a storage for our `EE` objects.
  49256. * An `Events` instance is a plain object whose properties are event names.
  49257. *
  49258. * @constructor
  49259. * @api private
  49260. */
  49261. function Events() {}
  49262. //
  49263. // We try to not inherit from `Object.prototype`. In some engines creating an
  49264. // instance in this way is faster than calling `Object.create(null)` directly.
  49265. // If `Object.create(null)` is not supported we prefix the event names with a
  49266. // character to make sure that the built-in object properties are not
  49267. // overridden or used as an attack vector.
  49268. //
  49269. if (Object.create) {
  49270. Events.prototype = Object.create(null);
  49271. //
  49272. // This hack is needed because the `__proto__` property is still inherited in
  49273. // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
  49274. //
  49275. if (!new Events().__proto__) prefix = false;
  49276. }
  49277. /**
  49278. * Representation of a single event listener.
  49279. *
  49280. * @param {Function} fn The listener function.
  49281. * @param {Mixed} context The context to invoke the listener with.
  49282. * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
  49283. * @constructor
  49284. * @api private
  49285. */
  49286. function EE(fn, context, once) {
  49287. this.fn = fn;
  49288. this.context = context;
  49289. this.once = once || false;
  49290. }
  49291. /**
  49292. * Minimal `EventEmitter` interface that is molded against the Node.js
  49293. * `EventEmitter` interface.
  49294. *
  49295. * @constructor
  49296. * @api public
  49297. */
  49298. function EventEmitter() {
  49299. this._events = new Events();
  49300. this._eventsCount = 0;
  49301. }
  49302. /**
  49303. * Return an array listing the events for which the emitter has registered
  49304. * listeners.
  49305. *
  49306. * @returns {Array}
  49307. * @api public
  49308. */
  49309. EventEmitter.prototype.eventNames = function eventNames() {
  49310. var names = []
  49311. , events
  49312. , name;
  49313. if (this._eventsCount === 0) return names;
  49314. for (name in (events = this._events)) {
  49315. if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
  49316. }
  49317. if (Object.getOwnPropertySymbols) {
  49318. return names.concat(Object.getOwnPropertySymbols(events));
  49319. }
  49320. return names;
  49321. };
  49322. /**
  49323. * Return the listeners registered for a given event.
  49324. *
  49325. * @param {String|Symbol} event The event name.
  49326. * @param {Boolean} exists Only check if there are listeners.
  49327. * @returns {Array|Boolean}
  49328. * @api public
  49329. */
  49330. EventEmitter.prototype.listeners = function listeners(event, exists) {
  49331. var evt = prefix ? prefix + event : event
  49332. , available = this._events[evt];
  49333. if (exists) return !!available;
  49334. if (!available) return [];
  49335. if (available.fn) return [available.fn];
  49336. for (var i = 0, l = available.length, ee = new Array(l); i < l; i++) {
  49337. ee[i] = available[i].fn;
  49338. }
  49339. return ee;
  49340. };
  49341. /**
  49342. * Calls each of the listeners registered for a given event.
  49343. *
  49344. * @param {String|Symbol} event The event name.
  49345. * @returns {Boolean} `true` if the event had listeners, else `false`.
  49346. * @api public
  49347. */
  49348. EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
  49349. var evt = prefix ? prefix + event : event;
  49350. if (!this._events[evt]) return false;
  49351. var listeners = this._events[evt]
  49352. , len = arguments.length
  49353. , args
  49354. , i;
  49355. if (listeners.fn) {
  49356. if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
  49357. switch (len) {
  49358. case 1: return listeners.fn.call(listeners.context), true;
  49359. case 2: return listeners.fn.call(listeners.context, a1), true;
  49360. case 3: return listeners.fn.call(listeners.context, a1, a2), true;
  49361. case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
  49362. case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
  49363. case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
  49364. }
  49365. for (i = 1, args = new Array(len -1); i < len; i++) {
  49366. args[i - 1] = arguments[i];
  49367. }
  49368. listeners.fn.apply(listeners.context, args);
  49369. } else {
  49370. var length = listeners.length
  49371. , j;
  49372. for (i = 0; i < length; i++) {
  49373. if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
  49374. switch (len) {
  49375. case 1: listeners[i].fn.call(listeners[i].context); break;
  49376. case 2: listeners[i].fn.call(listeners[i].context, a1); break;
  49377. case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
  49378. case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
  49379. default:
  49380. if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
  49381. args[j - 1] = arguments[j];
  49382. }
  49383. listeners[i].fn.apply(listeners[i].context, args);
  49384. }
  49385. }
  49386. }
  49387. return true;
  49388. };
  49389. /**
  49390. * Add a listener for a given event.
  49391. *
  49392. * @param {String|Symbol} event The event name.
  49393. * @param {Function} fn The listener function.
  49394. * @param {Mixed} [context=this] The context to invoke the listener with.
  49395. * @returns {EventEmitter} `this`.
  49396. * @api public
  49397. */
  49398. EventEmitter.prototype.on = function on(event, fn, context) {
  49399. var listener = new EE(fn, context || this)
  49400. , evt = prefix ? prefix + event : event;
  49401. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49402. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49403. else this._events[evt] = [this._events[evt], listener];
  49404. return this;
  49405. };
  49406. /**
  49407. * Add a one-time listener for a given event.
  49408. *
  49409. * @param {String|Symbol} event The event name.
  49410. * @param {Function} fn The listener function.
  49411. * @param {Mixed} [context=this] The context to invoke the listener with.
  49412. * @returns {EventEmitter} `this`.
  49413. * @api public
  49414. */
  49415. EventEmitter.prototype.once = function once(event, fn, context) {
  49416. var listener = new EE(fn, context || this, true)
  49417. , evt = prefix ? prefix + event : event;
  49418. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49419. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49420. else this._events[evt] = [this._events[evt], listener];
  49421. return this;
  49422. };
  49423. /**
  49424. * Remove the listeners of a given event.
  49425. *
  49426. * @param {String|Symbol} event The event name.
  49427. * @param {Function} fn Only remove the listeners that match this function.
  49428. * @param {Mixed} context Only remove the listeners that have this context.
  49429. * @param {Boolean} once Only remove one-time listeners.
  49430. * @returns {EventEmitter} `this`.
  49431. * @api public
  49432. */
  49433. EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
  49434. var evt = prefix ? prefix + event : event;
  49435. if (!this._events[evt]) return this;
  49436. if (!fn) {
  49437. if (--this._eventsCount === 0) this._events = new Events();
  49438. else delete this._events[evt];
  49439. return this;
  49440. }
  49441. var listeners = this._events[evt];
  49442. if (listeners.fn) {
  49443. if (
  49444. listeners.fn === fn
  49445. && (!once || listeners.once)
  49446. && (!context || listeners.context === context)
  49447. ) {
  49448. if (--this._eventsCount === 0) this._events = new Events();
  49449. else delete this._events[evt];
  49450. }
  49451. } else {
  49452. for (var i = 0, events = [], length = listeners.length; i < length; i++) {
  49453. if (
  49454. listeners[i].fn !== fn
  49455. || (once && !listeners[i].once)
  49456. || (context && listeners[i].context !== context)
  49457. ) {
  49458. events.push(listeners[i]);
  49459. }
  49460. }
  49461. //
  49462. // Reset the array, or remove it completely if we have no more listeners.
  49463. //
  49464. if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
  49465. else if (--this._eventsCount === 0) this._events = new Events();
  49466. else delete this._events[evt];
  49467. }
  49468. return this;
  49469. };
  49470. /**
  49471. * Remove all listeners, or those of the specified event.
  49472. *
  49473. * @param {String|Symbol} [event] The event name.
  49474. * @returns {EventEmitter} `this`.
  49475. * @api public
  49476. */
  49477. EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
  49478. var evt;
  49479. if (event) {
  49480. evt = prefix ? prefix + event : event;
  49481. if (this._events[evt]) {
  49482. if (--this._eventsCount === 0) this._events = new Events();
  49483. else delete this._events[evt];
  49484. }
  49485. } else {
  49486. this._events = new Events();
  49487. this._eventsCount = 0;
  49488. }
  49489. return this;
  49490. };
  49491. //
  49492. // Alias methods names because people roll like that.
  49493. //
  49494. EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
  49495. EventEmitter.prototype.addListener = EventEmitter.prototype.on;
  49496. //
  49497. // This function doesn't apply anymore.
  49498. //
  49499. EventEmitter.prototype.setMaxListeners = function setMaxListeners() {
  49500. return this;
  49501. };
  49502. //
  49503. // Expose the prefix.
  49504. //
  49505. EventEmitter.prefixed = prefix;
  49506. //
  49507. // Allow `EventEmitter` to be imported as module namespace.
  49508. //
  49509. EventEmitter.EventEmitter = EventEmitter;
  49510. //
  49511. // Expose the module.
  49512. //
  49513. if ('undefined' !== typeof module) {
  49514. module.exports = EventEmitter;
  49515. }
  49516. /***/ }),
  49517. /* 55 */
  49518. /***/ (function(module, exports, __nested_webpack_require_316416__) {
  49519. "use strict";
  49520. Object.defineProperty(exports, "__esModule", {
  49521. value: true
  49522. });
  49523. exports.matchText = exports.matchSpacing = exports.matchNewline = exports.matchBlot = exports.matchAttributor = exports.default = undefined;
  49524. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  49525. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  49526. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  49527. var _extend2 = __nested_webpack_require_316416__(3);
  49528. var _extend3 = _interopRequireDefault(_extend2);
  49529. var _quillDelta = __nested_webpack_require_316416__(2);
  49530. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  49531. var _parchment = __nested_webpack_require_316416__(0);
  49532. var _parchment2 = _interopRequireDefault(_parchment);
  49533. var _quill = __nested_webpack_require_316416__(5);
  49534. var _quill2 = _interopRequireDefault(_quill);
  49535. var _logger = __nested_webpack_require_316416__(10);
  49536. var _logger2 = _interopRequireDefault(_logger);
  49537. var _module = __nested_webpack_require_316416__(9);
  49538. var _module2 = _interopRequireDefault(_module);
  49539. var _align = __nested_webpack_require_316416__(36);
  49540. var _background = __nested_webpack_require_316416__(37);
  49541. var _code = __nested_webpack_require_316416__(13);
  49542. var _code2 = _interopRequireDefault(_code);
  49543. var _color = __nested_webpack_require_316416__(26);
  49544. var _direction = __nested_webpack_require_316416__(38);
  49545. var _font = __nested_webpack_require_316416__(39);
  49546. var _size = __nested_webpack_require_316416__(40);
  49547. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  49548. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  49549. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  49550. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  49551. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  49552. var debug = (0, _logger2.default)('quill:clipboard');
  49553. var DOM_KEY = '__ql-matcher';
  49554. var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['style', matchIgnore]];
  49555. var ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function (memo, attr) {
  49556. memo[attr.keyName] = attr;
  49557. return memo;
  49558. }, {});
  49559. var STYLE_ATTRIBUTORS = [_align.AlignStyle, _background.BackgroundStyle, _color.ColorStyle, _direction.DirectionStyle, _font.FontStyle, _size.SizeStyle].reduce(function (memo, attr) {
  49560. memo[attr.keyName] = attr;
  49561. return memo;
  49562. }, {});
  49563. var Clipboard = function (_Module) {
  49564. _inherits(Clipboard, _Module);
  49565. function Clipboard(quill, options) {
  49566. _classCallCheck(this, Clipboard);
  49567. var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this, quill, options));
  49568. _this.quill.root.addEventListener('paste', _this.onPaste.bind(_this));
  49569. _this.container = _this.quill.addContainer('ql-clipboard');
  49570. _this.container.setAttribute('contenteditable', true);
  49571. _this.container.setAttribute('tabindex', -1);
  49572. _this.matchers = [];
  49573. CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function (_ref) {
  49574. var _ref2 = _slicedToArray(_ref, 2),
  49575. selector = _ref2[0],
  49576. matcher = _ref2[1];
  49577. if (!options.matchVisual && matcher === matchSpacing) return;
  49578. _this.addMatcher(selector, matcher);
  49579. });
  49580. return _this;
  49581. }
  49582. _createClass(Clipboard, [{
  49583. key: 'addMatcher',
  49584. value: function addMatcher(selector, matcher) {
  49585. this.matchers.push([selector, matcher]);
  49586. }
  49587. }, {
  49588. key: 'convert',
  49589. value: function convert(html) {
  49590. if (typeof html === 'string') {
  49591. this.container.innerHTML = html.replace(/\>\r?\n +\</g, '><'); // Remove spaces between tags
  49592. return this.convert();
  49593. }
  49594. var formats = this.quill.getFormat(this.quill.selection.savedRange.index);
  49595. if (formats[_code2.default.blotName]) {
  49596. var text = this.container.innerText;
  49597. this.container.innerHTML = '';
  49598. return new _quillDelta2.default().insert(text, _defineProperty({}, _code2.default.blotName, formats[_code2.default.blotName]));
  49599. }
  49600. var _prepareMatching = this.prepareMatching(),
  49601. _prepareMatching2 = _slicedToArray(_prepareMatching, 2),
  49602. elementMatchers = _prepareMatching2[0],
  49603. textMatchers = _prepareMatching2[1];
  49604. var delta = traverse(this.container, elementMatchers, textMatchers);
  49605. // Remove trailing newline
  49606. if (deltaEndsWith(delta, '\n') && delta.ops[delta.ops.length - 1].attributes == null) {
  49607. delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));
  49608. }
  49609. debug.log('convert', this.container.innerHTML, delta);
  49610. this.container.innerHTML = '';
  49611. return delta;
  49612. }
  49613. }, {
  49614. key: 'dangerouslyPasteHTML',
  49615. value: function dangerouslyPasteHTML(index, html) {
  49616. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _quill2.default.sources.API;
  49617. if (typeof index === 'string') {
  49618. this.quill.setContents(this.convert(index), html);
  49619. this.quill.setSelection(0, _quill2.default.sources.SILENT);
  49620. } else {
  49621. var paste = this.convert(html);
  49622. this.quill.updateContents(new _quillDelta2.default().retain(index).concat(paste), source);
  49623. this.quill.setSelection(index + paste.length(), _quill2.default.sources.SILENT);
  49624. }
  49625. }
  49626. }, {
  49627. key: 'onPaste',
  49628. value: function onPaste(e) {
  49629. var _this2 = this;
  49630. if (e.defaultPrevented || !this.quill.isEnabled()) return;
  49631. var range = this.quill.getSelection();
  49632. var delta = new _quillDelta2.default().retain(range.index);
  49633. var scrollTop = this.quill.scrollingContainer.scrollTop;
  49634. this.container.focus();
  49635. this.quill.selection.update(_quill2.default.sources.SILENT);
  49636. setTimeout(function () {
  49637. delta = delta.concat(_this2.convert()).delete(range.length);
  49638. _this2.quill.updateContents(delta, _quill2.default.sources.USER);
  49639. // range.length contributes to delta.length()
  49640. _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
  49641. _this2.quill.scrollingContainer.scrollTop = scrollTop;
  49642. _this2.quill.focus();
  49643. }, 1);
  49644. }
  49645. }, {
  49646. key: 'prepareMatching',
  49647. value: function prepareMatching() {
  49648. var _this3 = this;
  49649. var elementMatchers = [],
  49650. textMatchers = [];
  49651. this.matchers.forEach(function (pair) {
  49652. var _pair = _slicedToArray(pair, 2),
  49653. selector = _pair[0],
  49654. matcher = _pair[1];
  49655. switch (selector) {
  49656. case Node.TEXT_NODE:
  49657. textMatchers.push(matcher);
  49658. break;
  49659. case Node.ELEMENT_NODE:
  49660. elementMatchers.push(matcher);
  49661. break;
  49662. default:
  49663. [].forEach.call(_this3.container.querySelectorAll(selector), function (node) {
  49664. // TODO use weakmap
  49665. node[DOM_KEY] = node[DOM_KEY] || [];
  49666. node[DOM_KEY].push(matcher);
  49667. });
  49668. break;
  49669. }
  49670. });
  49671. return [elementMatchers, textMatchers];
  49672. }
  49673. }]);
  49674. return Clipboard;
  49675. }(_module2.default);
  49676. Clipboard.DEFAULTS = {
  49677. matchers: [],
  49678. matchVisual: true
  49679. };
  49680. function applyFormat(delta, format, value) {
  49681. if ((typeof format === 'undefined' ? 'undefined' : _typeof(format)) === 'object') {
  49682. return Object.keys(format).reduce(function (delta, key) {
  49683. return applyFormat(delta, key, format[key]);
  49684. }, delta);
  49685. } else {
  49686. return delta.reduce(function (delta, op) {
  49687. if (op.attributes && op.attributes[format]) {
  49688. return delta.push(op);
  49689. } else {
  49690. return delta.insert(op.insert, (0, _extend3.default)({}, _defineProperty({}, format, value), op.attributes));
  49691. }
  49692. }, new _quillDelta2.default());
  49693. }
  49694. }
  49695. function computeStyle(node) {
  49696. if (node.nodeType !== Node.ELEMENT_NODE) return {};
  49697. var DOM_KEY = '__ql-computed-style';
  49698. return node[DOM_KEY] || (node[DOM_KEY] = window.getComputedStyle(node));
  49699. }
  49700. function deltaEndsWith(delta, text) {
  49701. var endText = "";
  49702. for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {
  49703. var op = delta.ops[i];
  49704. if (typeof op.insert !== 'string') break;
  49705. endText = op.insert + endText;
  49706. }
  49707. return endText.slice(-1 * text.length) === text;
  49708. }
  49709. function isLine(node) {
  49710. if (node.childNodes.length === 0) return false; // Exclude embed blocks
  49711. var style = computeStyle(node);
  49712. return ['block', 'list-item'].indexOf(style.display) > -1;
  49713. }
  49714. function traverse(node, elementMatchers, textMatchers) {
  49715. // Post-order
  49716. if (node.nodeType === node.TEXT_NODE) {
  49717. return textMatchers.reduce(function (delta, matcher) {
  49718. return matcher(node, delta);
  49719. }, new _quillDelta2.default());
  49720. } else if (node.nodeType === node.ELEMENT_NODE) {
  49721. return [].reduce.call(node.childNodes || [], function (delta, childNode) {
  49722. var childrenDelta = traverse(childNode, elementMatchers, textMatchers);
  49723. if (childNode.nodeType === node.ELEMENT_NODE) {
  49724. childrenDelta = elementMatchers.reduce(function (childrenDelta, matcher) {
  49725. return matcher(childNode, childrenDelta);
  49726. }, childrenDelta);
  49727. childrenDelta = (childNode[DOM_KEY] || []).reduce(function (childrenDelta, matcher) {
  49728. return matcher(childNode, childrenDelta);
  49729. }, childrenDelta);
  49730. }
  49731. return delta.concat(childrenDelta);
  49732. }, new _quillDelta2.default());
  49733. } else {
  49734. return new _quillDelta2.default();
  49735. }
  49736. }
  49737. function matchAlias(format, node, delta) {
  49738. return applyFormat(delta, format, true);
  49739. }
  49740. function matchAttributor(node, delta) {
  49741. var attributes = _parchment2.default.Attributor.Attribute.keys(node);
  49742. var classes = _parchment2.default.Attributor.Class.keys(node);
  49743. var styles = _parchment2.default.Attributor.Style.keys(node);
  49744. var formats = {};
  49745. attributes.concat(classes).concat(styles).forEach(function (name) {
  49746. var attr = _parchment2.default.query(name, _parchment2.default.Scope.ATTRIBUTE);
  49747. if (attr != null) {
  49748. formats[attr.attrName] = attr.value(node);
  49749. if (formats[attr.attrName]) return;
  49750. }
  49751. attr = ATTRIBUTE_ATTRIBUTORS[name];
  49752. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  49753. formats[attr.attrName] = attr.value(node) || undefined;
  49754. }
  49755. attr = STYLE_ATTRIBUTORS[name];
  49756. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  49757. attr = STYLE_ATTRIBUTORS[name];
  49758. formats[attr.attrName] = attr.value(node) || undefined;
  49759. }
  49760. });
  49761. if (Object.keys(formats).length > 0) {
  49762. delta = applyFormat(delta, formats);
  49763. }
  49764. return delta;
  49765. }
  49766. function matchBlot(node, delta) {
  49767. var match = _parchment2.default.query(node);
  49768. if (match == null) return delta;
  49769. if (match.prototype instanceof _parchment2.default.Embed) {
  49770. var embed = {};
  49771. var value = match.value(node);
  49772. if (value != null) {
  49773. embed[match.blotName] = value;
  49774. delta = new _quillDelta2.default().insert(embed, match.formats(node));
  49775. }
  49776. } else if (typeof match.formats === 'function') {
  49777. delta = applyFormat(delta, match.blotName, match.formats(node));
  49778. }
  49779. return delta;
  49780. }
  49781. function matchBreak(node, delta) {
  49782. if (!deltaEndsWith(delta, '\n')) {
  49783. delta.insert('\n');
  49784. }
  49785. return delta;
  49786. }
  49787. function matchIgnore() {
  49788. return new _quillDelta2.default();
  49789. }
  49790. function matchIndent(node, delta) {
  49791. var match = _parchment2.default.query(node);
  49792. if (match == null || match.blotName !== 'list-item' || !deltaEndsWith(delta, '\n')) {
  49793. return delta;
  49794. }
  49795. var indent = -1,
  49796. parent = node.parentNode;
  49797. while (!parent.classList.contains('ql-clipboard')) {
  49798. if ((_parchment2.default.query(parent) || {}).blotName === 'list') {
  49799. indent += 1;
  49800. }
  49801. parent = parent.parentNode;
  49802. }
  49803. if (indent <= 0) return delta;
  49804. return delta.compose(new _quillDelta2.default().retain(delta.length() - 1).retain(1, { indent: indent }));
  49805. }
  49806. function matchNewline(node, delta) {
  49807. if (!deltaEndsWith(delta, '\n')) {
  49808. if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {
  49809. delta.insert('\n');
  49810. }
  49811. }
  49812. return delta;
  49813. }
  49814. function matchSpacing(node, delta) {
  49815. if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, '\n\n')) {
  49816. var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);
  49817. if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {
  49818. delta.insert('\n');
  49819. }
  49820. }
  49821. return delta;
  49822. }
  49823. function matchStyles(node, delta) {
  49824. var formats = {};
  49825. var style = node.style || {};
  49826. if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {
  49827. formats.italic = true;
  49828. }
  49829. if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') || parseInt(computeStyle(node).fontWeight) >= 700)) {
  49830. formats.bold = true;
  49831. }
  49832. if (Object.keys(formats).length > 0) {
  49833. delta = applyFormat(delta, formats);
  49834. }
  49835. if (parseFloat(style.textIndent || 0) > 0) {
  49836. // Could be 0.5in
  49837. delta = new _quillDelta2.default().insert('\t').concat(delta);
  49838. }
  49839. return delta;
  49840. }
  49841. function matchText(node, delta) {
  49842. var text = node.data;
  49843. // Word represents empty line with <o:p>&nbsp;</o:p>
  49844. if (node.parentNode.tagName === 'O:P') {
  49845. return delta.insert(text.trim());
  49846. }
  49847. if (text.trim().length === 0 && node.parentNode.classList.contains('ql-clipboard')) {
  49848. return delta;
  49849. }
  49850. if (!computeStyle(node.parentNode).whiteSpace.startsWith('pre')) {
  49851. // eslint-disable-next-line func-style
  49852. var replacer = function replacer(collapse, match) {
  49853. match = match.replace(/[^\u00a0]/g, ''); // \u00a0 is nbsp;
  49854. return match.length < 1 && collapse ? ' ' : match;
  49855. };
  49856. text = text.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
  49857. text = text.replace(/\s\s+/g, replacer.bind(replacer, true)); // collapse whitespace
  49858. if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {
  49859. text = text.replace(/^\s+/, replacer.bind(replacer, false));
  49860. }
  49861. if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {
  49862. text = text.replace(/\s+$/, replacer.bind(replacer, false));
  49863. }
  49864. }
  49865. return delta.insert(text);
  49866. }
  49867. exports.default = Clipboard;
  49868. exports.matchAttributor = matchAttributor;
  49869. exports.matchBlot = matchBlot;
  49870. exports.matchNewline = matchNewline;
  49871. exports.matchSpacing = matchSpacing;
  49872. exports.matchText = matchText;
  49873. /***/ }),
  49874. /* 56 */
  49875. /***/ (function(module, exports, __nested_webpack_require_333274__) {
  49876. "use strict";
  49877. Object.defineProperty(exports, "__esModule", {
  49878. value: true
  49879. });
  49880. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  49881. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  49882. var _inline = __nested_webpack_require_333274__(6);
  49883. var _inline2 = _interopRequireDefault(_inline);
  49884. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  49885. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  49886. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  49887. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  49888. var Bold = function (_Inline) {
  49889. _inherits(Bold, _Inline);
  49890. function Bold() {
  49891. _classCallCheck(this, Bold);
  49892. return _possibleConstructorReturn(this, (Bold.__proto__ || Object.getPrototypeOf(Bold)).apply(this, arguments));
  49893. }
  49894. _createClass(Bold, [{
  49895. key: 'optimize',
  49896. value: function optimize(context) {
  49897. _get(Bold.prototype.__proto__ || Object.getPrototypeOf(Bold.prototype), 'optimize', this).call(this, context);
  49898. if (this.domNode.tagName !== this.statics.tagName[0]) {
  49899. this.replaceWith(this.statics.blotName);
  49900. }
  49901. }
  49902. }], [{
  49903. key: 'create',
  49904. value: function create() {
  49905. return _get(Bold.__proto__ || Object.getPrototypeOf(Bold), 'create', this).call(this);
  49906. }
  49907. }, {
  49908. key: 'formats',
  49909. value: function formats() {
  49910. return true;
  49911. }
  49912. }]);
  49913. return Bold;
  49914. }(_inline2.default);
  49915. Bold.blotName = 'bold';
  49916. Bold.tagName = ['STRONG', 'B'];
  49917. exports.default = Bold;
  49918. /***/ }),
  49919. /* 57 */
  49920. /***/ (function(module, exports, __nested_webpack_require_336502__) {
  49921. "use strict";
  49922. Object.defineProperty(exports, "__esModule", {
  49923. value: true
  49924. });
  49925. exports.addControls = exports.default = undefined;
  49926. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  49927. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  49928. var _quillDelta = __nested_webpack_require_336502__(2);
  49929. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  49930. var _parchment = __nested_webpack_require_336502__(0);
  49931. var _parchment2 = _interopRequireDefault(_parchment);
  49932. var _quill = __nested_webpack_require_336502__(5);
  49933. var _quill2 = _interopRequireDefault(_quill);
  49934. var _logger = __nested_webpack_require_336502__(10);
  49935. var _logger2 = _interopRequireDefault(_logger);
  49936. var _module = __nested_webpack_require_336502__(9);
  49937. var _module2 = _interopRequireDefault(_module);
  49938. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  49939. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  49940. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  49941. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  49942. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  49943. var debug = (0, _logger2.default)('quill:toolbar');
  49944. var Toolbar = function (_Module) {
  49945. _inherits(Toolbar, _Module);
  49946. function Toolbar(quill, options) {
  49947. _classCallCheck(this, Toolbar);
  49948. var _this = _possibleConstructorReturn(this, (Toolbar.__proto__ || Object.getPrototypeOf(Toolbar)).call(this, quill, options));
  49949. if (Array.isArray(_this.options.container)) {
  49950. var container = document.createElement('div');
  49951. addControls(container, _this.options.container);
  49952. quill.container.parentNode.insertBefore(container, quill.container);
  49953. _this.container = container;
  49954. } else if (typeof _this.options.container === 'string') {
  49955. _this.container = document.querySelector(_this.options.container);
  49956. } else {
  49957. _this.container = _this.options.container;
  49958. }
  49959. if (!(_this.container instanceof HTMLElement)) {
  49960. var _ret;
  49961. return _ret = debug.error('Container required for toolbar', _this.options), _possibleConstructorReturn(_this, _ret);
  49962. }
  49963. _this.container.classList.add('ql-toolbar');
  49964. _this.controls = [];
  49965. _this.handlers = {};
  49966. Object.keys(_this.options.handlers).forEach(function (format) {
  49967. _this.addHandler(format, _this.options.handlers[format]);
  49968. });
  49969. [].forEach.call(_this.container.querySelectorAll('button, select'), function (input) {
  49970. _this.attach(input);
  49971. });
  49972. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (type, range) {
  49973. if (type === _quill2.default.events.SELECTION_CHANGE) {
  49974. _this.update(range);
  49975. }
  49976. });
  49977. _this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  49978. var _this$quill$selection = _this.quill.selection.getRange(),
  49979. _this$quill$selection2 = _slicedToArray(_this$quill$selection, 1),
  49980. range = _this$quill$selection2[0]; // quill.getSelection triggers update
  49981. _this.update(range);
  49982. });
  49983. return _this;
  49984. }
  49985. _createClass(Toolbar, [{
  49986. key: 'addHandler',
  49987. value: function addHandler(format, handler) {
  49988. this.handlers[format] = handler;
  49989. }
  49990. }, {
  49991. key: 'attach',
  49992. value: function attach(input) {
  49993. var _this2 = this;
  49994. var format = [].find.call(input.classList, function (className) {
  49995. return className.indexOf('ql-') === 0;
  49996. });
  49997. if (!format) return;
  49998. format = format.slice('ql-'.length);
  49999. if (input.tagName === 'BUTTON') {
  50000. input.setAttribute('type', 'button');
  50001. }
  50002. if (this.handlers[format] == null) {
  50003. if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[format] == null) {
  50004. debug.warn('ignoring attaching to disabled format', format, input);
  50005. return;
  50006. }
  50007. if (_parchment2.default.query(format) == null) {
  50008. debug.warn('ignoring attaching to nonexistent format', format, input);
  50009. return;
  50010. }
  50011. }
  50012. var eventName = input.tagName === 'SELECT' ? 'change' : 'click';
  50013. input.addEventListener(eventName, function (e) {
  50014. var value = void 0;
  50015. if (input.tagName === 'SELECT') {
  50016. if (input.selectedIndex < 0) return;
  50017. var selected = input.options[input.selectedIndex];
  50018. if (selected.hasAttribute('selected')) {
  50019. value = false;
  50020. } else {
  50021. value = selected.value || false;
  50022. }
  50023. } else {
  50024. if (input.classList.contains('ql-active')) {
  50025. value = false;
  50026. } else {
  50027. value = input.value || !input.hasAttribute('value');
  50028. }
  50029. e.preventDefault();
  50030. }
  50031. _this2.quill.focus();
  50032. var _quill$selection$getR = _this2.quill.selection.getRange(),
  50033. _quill$selection$getR2 = _slicedToArray(_quill$selection$getR, 1),
  50034. range = _quill$selection$getR2[0];
  50035. if (_this2.handlers[format] != null) {
  50036. _this2.handlers[format].call(_this2, value);
  50037. } else if (_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed) {
  50038. value = prompt('Enter ' + format);
  50039. if (!value) return;
  50040. _this2.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert(_defineProperty({}, format, value)), _quill2.default.sources.USER);
  50041. } else {
  50042. _this2.quill.format(format, value, _quill2.default.sources.USER);
  50043. }
  50044. _this2.update(range);
  50045. });
  50046. // TODO use weakmap
  50047. this.controls.push([format, input]);
  50048. }
  50049. }, {
  50050. key: 'update',
  50051. value: function update(range) {
  50052. var formats = range == null ? {} : this.quill.getFormat(range);
  50053. this.controls.forEach(function (pair) {
  50054. var _pair = _slicedToArray(pair, 2),
  50055. format = _pair[0],
  50056. input = _pair[1];
  50057. if (input.tagName === 'SELECT') {
  50058. var option = void 0;
  50059. if (range == null) {
  50060. option = null;
  50061. } else if (formats[format] == null) {
  50062. option = input.querySelector('option[selected]');
  50063. } else if (!Array.isArray(formats[format])) {
  50064. var value = formats[format];
  50065. if (typeof value === 'string') {
  50066. value = value.replace(/\"/g, '\\"');
  50067. }
  50068. option = input.querySelector('option[value="' + value + '"]');
  50069. }
  50070. if (option == null) {
  50071. input.value = ''; // TODO make configurable?
  50072. input.selectedIndex = -1;
  50073. } else {
  50074. option.selected = true;
  50075. }
  50076. } else {
  50077. if (range == null) {
  50078. input.classList.remove('ql-active');
  50079. } else if (input.hasAttribute('value')) {
  50080. // both being null should match (default values)
  50081. // '1' should match with 1 (headers)
  50082. var isActive = formats[format] === input.getAttribute('value') || formats[format] != null && formats[format].toString() === input.getAttribute('value') || formats[format] == null && !input.getAttribute('value');
  50083. input.classList.toggle('ql-active', isActive);
  50084. } else {
  50085. input.classList.toggle('ql-active', formats[format] != null);
  50086. }
  50087. }
  50088. });
  50089. }
  50090. }]);
  50091. return Toolbar;
  50092. }(_module2.default);
  50093. Toolbar.DEFAULTS = {};
  50094. function addButton(container, format, value) {
  50095. var input = document.createElement('button');
  50096. input.setAttribute('type', 'button');
  50097. input.classList.add('ql-' + format);
  50098. if (value != null) {
  50099. input.value = value;
  50100. }
  50101. container.appendChild(input);
  50102. }
  50103. function addControls(container, groups) {
  50104. if (!Array.isArray(groups[0])) {
  50105. groups = [groups];
  50106. }
  50107. groups.forEach(function (controls) {
  50108. var group = document.createElement('span');
  50109. group.classList.add('ql-formats');
  50110. controls.forEach(function (control) {
  50111. if (typeof control === 'string') {
  50112. addButton(group, control);
  50113. } else {
  50114. var format = Object.keys(control)[0];
  50115. var value = control[format];
  50116. if (Array.isArray(value)) {
  50117. addSelect(group, format, value);
  50118. } else {
  50119. addButton(group, format, value);
  50120. }
  50121. }
  50122. });
  50123. container.appendChild(group);
  50124. });
  50125. }
  50126. function addSelect(container, format, values) {
  50127. var input = document.createElement('select');
  50128. input.classList.add('ql-' + format);
  50129. values.forEach(function (value) {
  50130. var option = document.createElement('option');
  50131. if (value !== false) {
  50132. option.setAttribute('value', value);
  50133. } else {
  50134. option.setAttribute('selected', 'selected');
  50135. }
  50136. input.appendChild(option);
  50137. });
  50138. container.appendChild(input);
  50139. }
  50140. Toolbar.DEFAULTS = {
  50141. container: null,
  50142. handlers: {
  50143. clean: function clean() {
  50144. var _this3 = this;
  50145. var range = this.quill.getSelection();
  50146. if (range == null) return;
  50147. if (range.length == 0) {
  50148. var formats = this.quill.getFormat();
  50149. Object.keys(formats).forEach(function (name) {
  50150. // Clean functionality in existing apps only clean inline formats
  50151. if (_parchment2.default.query(name, _parchment2.default.Scope.INLINE) != null) {
  50152. _this3.quill.format(name, false);
  50153. }
  50154. });
  50155. } else {
  50156. this.quill.removeFormat(range, _quill2.default.sources.USER);
  50157. }
  50158. },
  50159. direction: function direction(value) {
  50160. var align = this.quill.getFormat()['align'];
  50161. if (value === 'rtl' && align == null) {
  50162. this.quill.format('align', 'right', _quill2.default.sources.USER);
  50163. } else if (!value && align === 'right') {
  50164. this.quill.format('align', false, _quill2.default.sources.USER);
  50165. }
  50166. this.quill.format('direction', value, _quill2.default.sources.USER);
  50167. },
  50168. indent: function indent(value) {
  50169. var range = this.quill.getSelection();
  50170. var formats = this.quill.getFormat(range);
  50171. var indent = parseInt(formats.indent || 0);
  50172. if (value === '+1' || value === '-1') {
  50173. var modifier = value === '+1' ? 1 : -1;
  50174. if (formats.direction === 'rtl') modifier *= -1;
  50175. this.quill.format('indent', indent + modifier, _quill2.default.sources.USER);
  50176. }
  50177. },
  50178. link: function link(value) {
  50179. if (value === true) {
  50180. value = prompt('Enter link URL:');
  50181. }
  50182. this.quill.format('link', value, _quill2.default.sources.USER);
  50183. },
  50184. list: function list(value) {
  50185. var range = this.quill.getSelection();
  50186. var formats = this.quill.getFormat(range);
  50187. if (value === 'check') {
  50188. if (formats['list'] === 'checked' || formats['list'] === 'unchecked') {
  50189. this.quill.format('list', false, _quill2.default.sources.USER);
  50190. } else {
  50191. this.quill.format('list', 'unchecked', _quill2.default.sources.USER);
  50192. }
  50193. } else {
  50194. this.quill.format('list', value, _quill2.default.sources.USER);
  50195. }
  50196. }
  50197. }
  50198. };
  50199. exports.default = Toolbar;
  50200. exports.addControls = addControls;
  50201. /***/ }),
  50202. /* 58 */
  50203. /***/ (function(module, exports) {
  50204. module.exports = "<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";
  50205. /***/ }),
  50206. /* 59 */
  50207. /***/ (function(module, exports, __nested_webpack_require_349781__) {
  50208. "use strict";
  50209. Object.defineProperty(exports, "__esModule", {
  50210. value: true
  50211. });
  50212. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50213. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50214. var _picker = __nested_webpack_require_349781__(28);
  50215. var _picker2 = _interopRequireDefault(_picker);
  50216. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50217. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50218. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50219. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50220. var ColorPicker = function (_Picker) {
  50221. _inherits(ColorPicker, _Picker);
  50222. function ColorPicker(select, label) {
  50223. _classCallCheck(this, ColorPicker);
  50224. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this, select));
  50225. _this.label.innerHTML = label;
  50226. _this.container.classList.add('ql-color-picker');
  50227. [].slice.call(_this.container.querySelectorAll('.ql-picker-item'), 0, 7).forEach(function (item) {
  50228. item.classList.add('ql-primary');
  50229. });
  50230. return _this;
  50231. }
  50232. _createClass(ColorPicker, [{
  50233. key: 'buildItem',
  50234. value: function buildItem(option) {
  50235. var item = _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'buildItem', this).call(this, option);
  50236. item.style.backgroundColor = option.getAttribute('value') || '';
  50237. return item;
  50238. }
  50239. }, {
  50240. key: 'selectItem',
  50241. value: function selectItem(item, trigger) {
  50242. _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50243. var colorLabel = this.label.querySelector('.ql-color-label');
  50244. var value = item ? item.getAttribute('data-value') || '' : '';
  50245. if (colorLabel) {
  50246. if (colorLabel.tagName === 'line') {
  50247. colorLabel.style.stroke = value;
  50248. } else {
  50249. colorLabel.style.fill = value;
  50250. }
  50251. }
  50252. }
  50253. }]);
  50254. return ColorPicker;
  50255. }(_picker2.default);
  50256. exports.default = ColorPicker;
  50257. /***/ }),
  50258. /* 60 */
  50259. /***/ (function(module, exports, __nested_webpack_require_353592__) {
  50260. "use strict";
  50261. Object.defineProperty(exports, "__esModule", {
  50262. value: true
  50263. });
  50264. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50265. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50266. var _picker = __nested_webpack_require_353592__(28);
  50267. var _picker2 = _interopRequireDefault(_picker);
  50268. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50269. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50270. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50271. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50272. var IconPicker = function (_Picker) {
  50273. _inherits(IconPicker, _Picker);
  50274. function IconPicker(select, icons) {
  50275. _classCallCheck(this, IconPicker);
  50276. var _this = _possibleConstructorReturn(this, (IconPicker.__proto__ || Object.getPrototypeOf(IconPicker)).call(this, select));
  50277. _this.container.classList.add('ql-icon-picker');
  50278. [].forEach.call(_this.container.querySelectorAll('.ql-picker-item'), function (item) {
  50279. item.innerHTML = icons[item.getAttribute('data-value') || ''];
  50280. });
  50281. _this.defaultItem = _this.container.querySelector('.ql-selected');
  50282. _this.selectItem(_this.defaultItem);
  50283. return _this;
  50284. }
  50285. _createClass(IconPicker, [{
  50286. key: 'selectItem',
  50287. value: function selectItem(item, trigger) {
  50288. _get(IconPicker.prototype.__proto__ || Object.getPrototypeOf(IconPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50289. item = item || this.defaultItem;
  50290. this.label.innerHTML = item.innerHTML;
  50291. }
  50292. }]);
  50293. return IconPicker;
  50294. }(_picker2.default);
  50295. exports.default = IconPicker;
  50296. /***/ }),
  50297. /* 61 */
  50298. /***/ (function(module, exports, __webpack_require__) {
  50299. "use strict";
  50300. Object.defineProperty(exports, "__esModule", {
  50301. value: true
  50302. });
  50303. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50304. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50305. var Tooltip = function () {
  50306. function Tooltip(quill, boundsContainer) {
  50307. var _this = this;
  50308. _classCallCheck(this, Tooltip);
  50309. this.quill = quill;
  50310. this.boundsContainer = boundsContainer || document.body;
  50311. this.root = quill.addContainer('ql-tooltip');
  50312. this.root.innerHTML = this.constructor.TEMPLATE;
  50313. if (this.quill.root === this.quill.scrollingContainer) {
  50314. this.quill.root.addEventListener('scroll', function () {
  50315. _this.root.style.marginTop = -1 * _this.quill.root.scrollTop + 'px';
  50316. });
  50317. }
  50318. this.hide();
  50319. }
  50320. _createClass(Tooltip, [{
  50321. key: 'hide',
  50322. value: function hide() {
  50323. this.root.classList.add('ql-hidden');
  50324. }
  50325. }, {
  50326. key: 'position',
  50327. value: function position(reference) {
  50328. var left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;
  50329. // root.scrollTop should be 0 if scrollContainer !== root
  50330. var top = reference.bottom + this.quill.root.scrollTop;
  50331. this.root.style.left = left + 'px';
  50332. this.root.style.top = top + 'px';
  50333. this.root.classList.remove('ql-flip');
  50334. var containerBounds = this.boundsContainer.getBoundingClientRect();
  50335. var rootBounds = this.root.getBoundingClientRect();
  50336. var shift = 0;
  50337. if (rootBounds.right > containerBounds.right) {
  50338. shift = containerBounds.right - rootBounds.right;
  50339. this.root.style.left = left + shift + 'px';
  50340. }
  50341. if (rootBounds.left < containerBounds.left) {
  50342. shift = containerBounds.left - rootBounds.left;
  50343. this.root.style.left = left + shift + 'px';
  50344. }
  50345. if (rootBounds.bottom > containerBounds.bottom) {
  50346. var height = rootBounds.bottom - rootBounds.top;
  50347. var verticalShift = reference.bottom - reference.top + height;
  50348. this.root.style.top = top - verticalShift + 'px';
  50349. this.root.classList.add('ql-flip');
  50350. }
  50351. return shift;
  50352. }
  50353. }, {
  50354. key: 'show',
  50355. value: function show() {
  50356. this.root.classList.remove('ql-editing');
  50357. this.root.classList.remove('ql-hidden');
  50358. }
  50359. }]);
  50360. return Tooltip;
  50361. }();
  50362. exports.default = Tooltip;
  50363. /***/ }),
  50364. /* 62 */
  50365. /***/ (function(module, exports, __nested_webpack_require_359932__) {
  50366. "use strict";
  50367. Object.defineProperty(exports, "__esModule", {
  50368. value: true
  50369. });
  50370. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  50371. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50372. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50373. var _extend = __nested_webpack_require_359932__(3);
  50374. var _extend2 = _interopRequireDefault(_extend);
  50375. var _emitter = __nested_webpack_require_359932__(8);
  50376. var _emitter2 = _interopRequireDefault(_emitter);
  50377. var _base = __nested_webpack_require_359932__(43);
  50378. var _base2 = _interopRequireDefault(_base);
  50379. var _link = __nested_webpack_require_359932__(27);
  50380. var _link2 = _interopRequireDefault(_link);
  50381. var _selection = __nested_webpack_require_359932__(15);
  50382. var _icons = __nested_webpack_require_359932__(41);
  50383. var _icons2 = _interopRequireDefault(_icons);
  50384. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50385. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50386. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50387. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50388. var TOOLBAR_CONFIG = [[{ header: ['1', '2', '3', false] }], ['bold', 'italic', 'underline', 'link'], [{ list: 'ordered' }, { list: 'bullet' }], ['clean']];
  50389. var SnowTheme = function (_BaseTheme) {
  50390. _inherits(SnowTheme, _BaseTheme);
  50391. function SnowTheme(quill, options) {
  50392. _classCallCheck(this, SnowTheme);
  50393. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  50394. options.modules.toolbar.container = TOOLBAR_CONFIG;
  50395. }
  50396. var _this = _possibleConstructorReturn(this, (SnowTheme.__proto__ || Object.getPrototypeOf(SnowTheme)).call(this, quill, options));
  50397. _this.quill.container.classList.add('ql-snow');
  50398. return _this;
  50399. }
  50400. _createClass(SnowTheme, [{
  50401. key: 'extendToolbar',
  50402. value: function extendToolbar(toolbar) {
  50403. toolbar.container.classList.add('ql-snow');
  50404. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  50405. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  50406. this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
  50407. if (toolbar.container.querySelector('.ql-link')) {
  50408. this.quill.keyboard.addBinding({ key: 'K', shortKey: true }, function (range, context) {
  50409. toolbar.handlers['link'].call(toolbar, !context.format.link);
  50410. });
  50411. }
  50412. }
  50413. }]);
  50414. return SnowTheme;
  50415. }(_base2.default);
  50416. SnowTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  50417. modules: {
  50418. toolbar: {
  50419. handlers: {
  50420. link: function link(value) {
  50421. if (value) {
  50422. var range = this.quill.getSelection();
  50423. if (range == null || range.length == 0) return;
  50424. var preview = this.quill.getText(range);
  50425. if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {
  50426. preview = 'mailto:' + preview;
  50427. }
  50428. var tooltip = this.quill.theme.tooltip;
  50429. tooltip.edit('link', preview);
  50430. } else {
  50431. this.quill.format('link', false);
  50432. }
  50433. }
  50434. }
  50435. }
  50436. }
  50437. });
  50438. var SnowTooltip = function (_BaseTooltip) {
  50439. _inherits(SnowTooltip, _BaseTooltip);
  50440. function SnowTooltip(quill, bounds) {
  50441. _classCallCheck(this, SnowTooltip);
  50442. var _this2 = _possibleConstructorReturn(this, (SnowTooltip.__proto__ || Object.getPrototypeOf(SnowTooltip)).call(this, quill, bounds));
  50443. _this2.preview = _this2.root.querySelector('a.ql-preview');
  50444. return _this2;
  50445. }
  50446. _createClass(SnowTooltip, [{
  50447. key: 'listen',
  50448. value: function listen() {
  50449. var _this3 = this;
  50450. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'listen', this).call(this);
  50451. this.root.querySelector('a.ql-action').addEventListener('click', function (event) {
  50452. if (_this3.root.classList.contains('ql-editing')) {
  50453. _this3.save();
  50454. } else {
  50455. _this3.edit('link', _this3.preview.textContent);
  50456. }
  50457. event.preventDefault();
  50458. });
  50459. this.root.querySelector('a.ql-remove').addEventListener('click', function (event) {
  50460. if (_this3.linkRange != null) {
  50461. var range = _this3.linkRange;
  50462. _this3.restoreFocus();
  50463. _this3.quill.formatText(range, 'link', false, _emitter2.default.sources.USER);
  50464. delete _this3.linkRange;
  50465. }
  50466. event.preventDefault();
  50467. _this3.hide();
  50468. });
  50469. this.quill.on(_emitter2.default.events.SELECTION_CHANGE, function (range, oldRange, source) {
  50470. if (range == null) return;
  50471. if (range.length === 0 && source === _emitter2.default.sources.USER) {
  50472. var _quill$scroll$descend = _this3.quill.scroll.descendant(_link2.default, range.index),
  50473. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  50474. link = _quill$scroll$descend2[0],
  50475. offset = _quill$scroll$descend2[1];
  50476. if (link != null) {
  50477. _this3.linkRange = new _selection.Range(range.index - offset, link.length());
  50478. var preview = _link2.default.formats(link.domNode);
  50479. _this3.preview.textContent = preview;
  50480. _this3.preview.setAttribute('href', preview);
  50481. _this3.show();
  50482. _this3.position(_this3.quill.getBounds(_this3.linkRange));
  50483. return;
  50484. }
  50485. } else {
  50486. delete _this3.linkRange;
  50487. }
  50488. _this3.hide();
  50489. });
  50490. }
  50491. }, {
  50492. key: 'show',
  50493. value: function show() {
  50494. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'show', this).call(this);
  50495. this.root.removeAttribute('data-mode');
  50496. }
  50497. }]);
  50498. return SnowTooltip;
  50499. }(_base.BaseTooltip);
  50500. SnowTooltip.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
  50501. exports.default = SnowTheme;
  50502. /***/ }),
  50503. /* 63 */
  50504. /***/ (function(module, exports, __nested_webpack_require_368316__) {
  50505. "use strict";
  50506. Object.defineProperty(exports, "__esModule", {
  50507. value: true
  50508. });
  50509. var _core = __nested_webpack_require_368316__(29);
  50510. var _core2 = _interopRequireDefault(_core);
  50511. var _align = __nested_webpack_require_368316__(36);
  50512. var _direction = __nested_webpack_require_368316__(38);
  50513. var _indent = __nested_webpack_require_368316__(64);
  50514. var _blockquote = __nested_webpack_require_368316__(65);
  50515. var _blockquote2 = _interopRequireDefault(_blockquote);
  50516. var _header = __nested_webpack_require_368316__(66);
  50517. var _header2 = _interopRequireDefault(_header);
  50518. var _list = __nested_webpack_require_368316__(67);
  50519. var _list2 = _interopRequireDefault(_list);
  50520. var _background = __nested_webpack_require_368316__(37);
  50521. var _color = __nested_webpack_require_368316__(26);
  50522. var _font = __nested_webpack_require_368316__(39);
  50523. var _size = __nested_webpack_require_368316__(40);
  50524. var _bold = __nested_webpack_require_368316__(56);
  50525. var _bold2 = _interopRequireDefault(_bold);
  50526. var _italic = __nested_webpack_require_368316__(68);
  50527. var _italic2 = _interopRequireDefault(_italic);
  50528. var _link = __nested_webpack_require_368316__(27);
  50529. var _link2 = _interopRequireDefault(_link);
  50530. var _script = __nested_webpack_require_368316__(69);
  50531. var _script2 = _interopRequireDefault(_script);
  50532. var _strike = __nested_webpack_require_368316__(70);
  50533. var _strike2 = _interopRequireDefault(_strike);
  50534. var _underline = __nested_webpack_require_368316__(71);
  50535. var _underline2 = _interopRequireDefault(_underline);
  50536. var _image = __nested_webpack_require_368316__(72);
  50537. var _image2 = _interopRequireDefault(_image);
  50538. var _video = __nested_webpack_require_368316__(73);
  50539. var _video2 = _interopRequireDefault(_video);
  50540. var _code = __nested_webpack_require_368316__(13);
  50541. var _code2 = _interopRequireDefault(_code);
  50542. var _formula = __nested_webpack_require_368316__(74);
  50543. var _formula2 = _interopRequireDefault(_formula);
  50544. var _syntax = __nested_webpack_require_368316__(75);
  50545. var _syntax2 = _interopRequireDefault(_syntax);
  50546. var _toolbar = __nested_webpack_require_368316__(57);
  50547. var _toolbar2 = _interopRequireDefault(_toolbar);
  50548. var _icons = __nested_webpack_require_368316__(41);
  50549. var _icons2 = _interopRequireDefault(_icons);
  50550. var _picker = __nested_webpack_require_368316__(28);
  50551. var _picker2 = _interopRequireDefault(_picker);
  50552. var _colorPicker = __nested_webpack_require_368316__(59);
  50553. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  50554. var _iconPicker = __nested_webpack_require_368316__(60);
  50555. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  50556. var _tooltip = __nested_webpack_require_368316__(61);
  50557. var _tooltip2 = _interopRequireDefault(_tooltip);
  50558. var _bubble = __nested_webpack_require_368316__(108);
  50559. var _bubble2 = _interopRequireDefault(_bubble);
  50560. var _snow = __nested_webpack_require_368316__(62);
  50561. var _snow2 = _interopRequireDefault(_snow);
  50562. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50563. _core2.default.register({
  50564. 'attributors/attribute/direction': _direction.DirectionAttribute,
  50565. 'attributors/class/align': _align.AlignClass,
  50566. 'attributors/class/background': _background.BackgroundClass,
  50567. 'attributors/class/color': _color.ColorClass,
  50568. 'attributors/class/direction': _direction.DirectionClass,
  50569. 'attributors/class/font': _font.FontClass,
  50570. 'attributors/class/size': _size.SizeClass,
  50571. 'attributors/style/align': _align.AlignStyle,
  50572. 'attributors/style/background': _background.BackgroundStyle,
  50573. 'attributors/style/color': _color.ColorStyle,
  50574. 'attributors/style/direction': _direction.DirectionStyle,
  50575. 'attributors/style/font': _font.FontStyle,
  50576. 'attributors/style/size': _size.SizeStyle
  50577. }, true);
  50578. _core2.default.register({
  50579. 'formats/align': _align.AlignClass,
  50580. 'formats/direction': _direction.DirectionClass,
  50581. 'formats/indent': _indent.IndentClass,
  50582. 'formats/background': _background.BackgroundStyle,
  50583. 'formats/color': _color.ColorStyle,
  50584. 'formats/font': _font.FontClass,
  50585. 'formats/size': _size.SizeClass,
  50586. 'formats/blockquote': _blockquote2.default,
  50587. 'formats/code-block': _code2.default,
  50588. 'formats/header': _header2.default,
  50589. 'formats/list': _list2.default,
  50590. 'formats/bold': _bold2.default,
  50591. 'formats/code': _code.Code,
  50592. 'formats/italic': _italic2.default,
  50593. 'formats/link': _link2.default,
  50594. 'formats/script': _script2.default,
  50595. 'formats/strike': _strike2.default,
  50596. 'formats/underline': _underline2.default,
  50597. 'formats/image': _image2.default,
  50598. 'formats/video': _video2.default,
  50599. 'formats/list/item': _list.ListItem,
  50600. 'modules/formula': _formula2.default,
  50601. 'modules/syntax': _syntax2.default,
  50602. 'modules/toolbar': _toolbar2.default,
  50603. 'themes/bubble': _bubble2.default,
  50604. 'themes/snow': _snow2.default,
  50605. 'ui/icons': _icons2.default,
  50606. 'ui/picker': _picker2.default,
  50607. 'ui/icon-picker': _iconPicker2.default,
  50608. 'ui/color-picker': _colorPicker2.default,
  50609. 'ui/tooltip': _tooltip2.default
  50610. }, true);
  50611. exports.default = _core2.default;
  50612. /***/ }),
  50613. /* 64 */
  50614. /***/ (function(module, exports, __nested_webpack_require_372903__) {
  50615. "use strict";
  50616. Object.defineProperty(exports, "__esModule", {
  50617. value: true
  50618. });
  50619. exports.IndentClass = undefined;
  50620. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50621. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50622. var _parchment = __nested_webpack_require_372903__(0);
  50623. var _parchment2 = _interopRequireDefault(_parchment);
  50624. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50625. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50626. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50627. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50628. var IdentAttributor = function (_Parchment$Attributor) {
  50629. _inherits(IdentAttributor, _Parchment$Attributor);
  50630. function IdentAttributor() {
  50631. _classCallCheck(this, IdentAttributor);
  50632. return _possibleConstructorReturn(this, (IdentAttributor.__proto__ || Object.getPrototypeOf(IdentAttributor)).apply(this, arguments));
  50633. }
  50634. _createClass(IdentAttributor, [{
  50635. key: 'add',
  50636. value: function add(node, value) {
  50637. if (value === '+1' || value === '-1') {
  50638. var indent = this.value(node) || 0;
  50639. value = value === '+1' ? indent + 1 : indent - 1;
  50640. }
  50641. if (value === 0) {
  50642. this.remove(node);
  50643. return true;
  50644. } else {
  50645. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'add', this).call(this, node, value);
  50646. }
  50647. }
  50648. }, {
  50649. key: 'canAdd',
  50650. value: function canAdd(node, value) {
  50651. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, value) || _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, parseInt(value));
  50652. }
  50653. }, {
  50654. key: 'value',
  50655. value: function value(node) {
  50656. return parseInt(_get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'value', this).call(this, node)) || undefined; // Don't return NaN
  50657. }
  50658. }]);
  50659. return IdentAttributor;
  50660. }(_parchment2.default.Attributor.Class);
  50661. var IndentClass = new IdentAttributor('indent', 'ql-indent', {
  50662. scope: _parchment2.default.Scope.BLOCK,
  50663. whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
  50664. });
  50665. exports.IndentClass = IndentClass;
  50666. /***/ }),
  50667. /* 65 */
  50668. /***/ (function(module, exports, __nested_webpack_require_376943__) {
  50669. "use strict";
  50670. Object.defineProperty(exports, "__esModule", {
  50671. value: true
  50672. });
  50673. var _block = __nested_webpack_require_376943__(4);
  50674. var _block2 = _interopRequireDefault(_block);
  50675. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50676. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50677. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50678. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50679. var Blockquote = function (_Block) {
  50680. _inherits(Blockquote, _Block);
  50681. function Blockquote() {
  50682. _classCallCheck(this, Blockquote);
  50683. return _possibleConstructorReturn(this, (Blockquote.__proto__ || Object.getPrototypeOf(Blockquote)).apply(this, arguments));
  50684. }
  50685. return Blockquote;
  50686. }(_block2.default);
  50687. Blockquote.blotName = 'blockquote';
  50688. Blockquote.tagName = 'blockquote';
  50689. exports.default = Blockquote;
  50690. /***/ }),
  50691. /* 66 */
  50692. /***/ (function(module, exports, __nested_webpack_require_378592__) {
  50693. "use strict";
  50694. Object.defineProperty(exports, "__esModule", {
  50695. value: true
  50696. });
  50697. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50698. var _block = __nested_webpack_require_378592__(4);
  50699. var _block2 = _interopRequireDefault(_block);
  50700. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50701. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50702. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50703. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50704. var Header = function (_Block) {
  50705. _inherits(Header, _Block);
  50706. function Header() {
  50707. _classCallCheck(this, Header);
  50708. return _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments));
  50709. }
  50710. _createClass(Header, null, [{
  50711. key: 'formats',
  50712. value: function formats(domNode) {
  50713. return this.tagName.indexOf(domNode.tagName) + 1;
  50714. }
  50715. }]);
  50716. return Header;
  50717. }(_block2.default);
  50718. Header.blotName = 'header';
  50719. Header.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
  50720. exports.default = Header;
  50721. /***/ }),
  50722. /* 67 */
  50723. /***/ (function(module, exports, __nested_webpack_require_380948__) {
  50724. "use strict";
  50725. Object.defineProperty(exports, "__esModule", {
  50726. value: true
  50727. });
  50728. exports.default = exports.ListItem = undefined;
  50729. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50730. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50731. var _parchment = __nested_webpack_require_380948__(0);
  50732. var _parchment2 = _interopRequireDefault(_parchment);
  50733. var _block = __nested_webpack_require_380948__(4);
  50734. var _block2 = _interopRequireDefault(_block);
  50735. var _container = __nested_webpack_require_380948__(25);
  50736. var _container2 = _interopRequireDefault(_container);
  50737. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50738. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  50739. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50740. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50741. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50742. var ListItem = function (_Block) {
  50743. _inherits(ListItem, _Block);
  50744. function ListItem() {
  50745. _classCallCheck(this, ListItem);
  50746. return _possibleConstructorReturn(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).apply(this, arguments));
  50747. }
  50748. _createClass(ListItem, [{
  50749. key: 'format',
  50750. value: function format(name, value) {
  50751. if (name === List.blotName && !value) {
  50752. this.replaceWith(_parchment2.default.create(this.statics.scope));
  50753. } else {
  50754. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'format', this).call(this, name, value);
  50755. }
  50756. }
  50757. }, {
  50758. key: 'remove',
  50759. value: function remove() {
  50760. if (this.prev == null && this.next == null) {
  50761. this.parent.remove();
  50762. } else {
  50763. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'remove', this).call(this);
  50764. }
  50765. }
  50766. }, {
  50767. key: 'replaceWith',
  50768. value: function replaceWith(name, value) {
  50769. this.parent.isolate(this.offset(this.parent), this.length());
  50770. if (name === this.parent.statics.blotName) {
  50771. this.parent.replaceWith(name, value);
  50772. return this;
  50773. } else {
  50774. this.parent.unwrap();
  50775. return _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'replaceWith', this).call(this, name, value);
  50776. }
  50777. }
  50778. }], [{
  50779. key: 'formats',
  50780. value: function formats(domNode) {
  50781. return domNode.tagName === this.tagName ? undefined : _get(ListItem.__proto__ || Object.getPrototypeOf(ListItem), 'formats', this).call(this, domNode);
  50782. }
  50783. }]);
  50784. return ListItem;
  50785. }(_block2.default);
  50786. ListItem.blotName = 'list-item';
  50787. ListItem.tagName = 'LI';
  50788. var List = function (_Container) {
  50789. _inherits(List, _Container);
  50790. _createClass(List, null, [{
  50791. key: 'create',
  50792. value: function create(value) {
  50793. var tagName = value === 'ordered' ? 'OL' : 'UL';
  50794. var node = _get(List.__proto__ || Object.getPrototypeOf(List), 'create', this).call(this, tagName);
  50795. if (value === 'checked' || value === 'unchecked') {
  50796. node.setAttribute('data-checked', value === 'checked');
  50797. }
  50798. return node;
  50799. }
  50800. }, {
  50801. key: 'formats',
  50802. value: function formats(domNode) {
  50803. if (domNode.tagName === 'OL') return 'ordered';
  50804. if (domNode.tagName === 'UL') {
  50805. if (domNode.hasAttribute('data-checked')) {
  50806. return domNode.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked';
  50807. } else {
  50808. return 'bullet';
  50809. }
  50810. }
  50811. return undefined;
  50812. }
  50813. }]);
  50814. function List(domNode) {
  50815. _classCallCheck(this, List);
  50816. var _this2 = _possibleConstructorReturn(this, (List.__proto__ || Object.getPrototypeOf(List)).call(this, domNode));
  50817. var listEventHandler = function listEventHandler(e) {
  50818. if (e.target.parentNode !== domNode) return;
  50819. var format = _this2.statics.formats(domNode);
  50820. var blot = _parchment2.default.find(e.target);
  50821. if (format === 'checked') {
  50822. blot.format('list', 'unchecked');
  50823. } else if (format === 'unchecked') {
  50824. blot.format('list', 'checked');
  50825. }
  50826. };
  50827. domNode.addEventListener('touchstart', listEventHandler);
  50828. domNode.addEventListener('mousedown', listEventHandler);
  50829. return _this2;
  50830. }
  50831. _createClass(List, [{
  50832. key: 'format',
  50833. value: function format(name, value) {
  50834. if (this.children.length > 0) {
  50835. this.children.tail.format(name, value);
  50836. }
  50837. }
  50838. }, {
  50839. key: 'formats',
  50840. value: function formats() {
  50841. // We don't inherit from FormatBlot
  50842. return _defineProperty({}, this.statics.blotName, this.statics.formats(this.domNode));
  50843. }
  50844. }, {
  50845. key: 'insertBefore',
  50846. value: function insertBefore(blot, ref) {
  50847. if (blot instanceof ListItem) {
  50848. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'insertBefore', this).call(this, blot, ref);
  50849. } else {
  50850. var index = ref == null ? this.length() : ref.offset(this);
  50851. var after = this.split(index);
  50852. after.parent.insertBefore(blot, after);
  50853. }
  50854. }
  50855. }, {
  50856. key: 'optimize',
  50857. value: function optimize(context) {
  50858. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'optimize', this).call(this, context);
  50859. var next = this.next;
  50860. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute('data-checked') === this.domNode.getAttribute('data-checked')) {
  50861. next.moveChildren(this);
  50862. next.remove();
  50863. }
  50864. }
  50865. }, {
  50866. key: 'replace',
  50867. value: function replace(target) {
  50868. if (target.statics.blotName !== this.statics.blotName) {
  50869. var item = _parchment2.default.create(this.statics.defaultChild);
  50870. target.moveChildren(item);
  50871. this.appendChild(item);
  50872. }
  50873. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'replace', this).call(this, target);
  50874. }
  50875. }]);
  50876. return List;
  50877. }(_container2.default);
  50878. List.blotName = 'list';
  50879. List.scope = _parchment2.default.Scope.BLOCK_BLOT;
  50880. List.tagName = ['OL', 'UL'];
  50881. List.defaultChild = 'list-item';
  50882. List.allowedChildren = [ListItem];
  50883. exports.ListItem = ListItem;
  50884. exports.default = List;
  50885. /***/ }),
  50886. /* 68 */
  50887. /***/ (function(module, exports, __nested_webpack_require_389000__) {
  50888. "use strict";
  50889. Object.defineProperty(exports, "__esModule", {
  50890. value: true
  50891. });
  50892. var _bold = __nested_webpack_require_389000__(56);
  50893. var _bold2 = _interopRequireDefault(_bold);
  50894. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50895. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50896. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50897. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50898. var Italic = function (_Bold) {
  50899. _inherits(Italic, _Bold);
  50900. function Italic() {
  50901. _classCallCheck(this, Italic);
  50902. return _possibleConstructorReturn(this, (Italic.__proto__ || Object.getPrototypeOf(Italic)).apply(this, arguments));
  50903. }
  50904. return Italic;
  50905. }(_bold2.default);
  50906. Italic.blotName = 'italic';
  50907. Italic.tagName = ['EM', 'I'];
  50908. exports.default = Italic;
  50909. /***/ }),
  50910. /* 69 */
  50911. /***/ (function(module, exports, __nested_webpack_require_390599__) {
  50912. "use strict";
  50913. Object.defineProperty(exports, "__esModule", {
  50914. value: true
  50915. });
  50916. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50917. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50918. var _inline = __nested_webpack_require_390599__(6);
  50919. var _inline2 = _interopRequireDefault(_inline);
  50920. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50921. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50922. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50923. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50924. var Script = function (_Inline) {
  50925. _inherits(Script, _Inline);
  50926. function Script() {
  50927. _classCallCheck(this, Script);
  50928. return _possibleConstructorReturn(this, (Script.__proto__ || Object.getPrototypeOf(Script)).apply(this, arguments));
  50929. }
  50930. _createClass(Script, null, [{
  50931. key: 'create',
  50932. value: function create(value) {
  50933. if (value === 'super') {
  50934. return document.createElement('sup');
  50935. } else if (value === 'sub') {
  50936. return document.createElement('sub');
  50937. } else {
  50938. return _get(Script.__proto__ || Object.getPrototypeOf(Script), 'create', this).call(this, value);
  50939. }
  50940. }
  50941. }, {
  50942. key: 'formats',
  50943. value: function formats(domNode) {
  50944. if (domNode.tagName === 'SUB') return 'sub';
  50945. if (domNode.tagName === 'SUP') return 'super';
  50946. return undefined;
  50947. }
  50948. }]);
  50949. return Script;
  50950. }(_inline2.default);
  50951. Script.blotName = 'script';
  50952. Script.tagName = ['SUB', 'SUP'];
  50953. exports.default = Script;
  50954. /***/ }),
  50955. /* 70 */
  50956. /***/ (function(module, exports, __nested_webpack_require_393860__) {
  50957. "use strict";
  50958. Object.defineProperty(exports, "__esModule", {
  50959. value: true
  50960. });
  50961. var _inline = __nested_webpack_require_393860__(6);
  50962. var _inline2 = _interopRequireDefault(_inline);
  50963. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50964. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50965. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50966. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50967. var Strike = function (_Inline) {
  50968. _inherits(Strike, _Inline);
  50969. function Strike() {
  50970. _classCallCheck(this, Strike);
  50971. return _possibleConstructorReturn(this, (Strike.__proto__ || Object.getPrototypeOf(Strike)).apply(this, arguments));
  50972. }
  50973. return Strike;
  50974. }(_inline2.default);
  50975. Strike.blotName = 'strike';
  50976. Strike.tagName = 'S';
  50977. exports.default = Strike;
  50978. /***/ }),
  50979. /* 71 */
  50980. /***/ (function(module, exports, __nested_webpack_require_395462__) {
  50981. "use strict";
  50982. Object.defineProperty(exports, "__esModule", {
  50983. value: true
  50984. });
  50985. var _inline = __nested_webpack_require_395462__(6);
  50986. var _inline2 = _interopRequireDefault(_inline);
  50987. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50988. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50989. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50990. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50991. var Underline = function (_Inline) {
  50992. _inherits(Underline, _Inline);
  50993. function Underline() {
  50994. _classCallCheck(this, Underline);
  50995. return _possibleConstructorReturn(this, (Underline.__proto__ || Object.getPrototypeOf(Underline)).apply(this, arguments));
  50996. }
  50997. return Underline;
  50998. }(_inline2.default);
  50999. Underline.blotName = 'underline';
  51000. Underline.tagName = 'U';
  51001. exports.default = Underline;
  51002. /***/ }),
  51003. /* 72 */
  51004. /***/ (function(module, exports, __nested_webpack_require_397097__) {
  51005. "use strict";
  51006. Object.defineProperty(exports, "__esModule", {
  51007. value: true
  51008. });
  51009. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51010. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51011. var _parchment = __nested_webpack_require_397097__(0);
  51012. var _parchment2 = _interopRequireDefault(_parchment);
  51013. var _link = __nested_webpack_require_397097__(27);
  51014. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51015. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51016. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51017. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51018. var ATTRIBUTES = ['alt', 'height', 'width'];
  51019. var Image = function (_Parchment$Embed) {
  51020. _inherits(Image, _Parchment$Embed);
  51021. function Image() {
  51022. _classCallCheck(this, Image);
  51023. return _possibleConstructorReturn(this, (Image.__proto__ || Object.getPrototypeOf(Image)).apply(this, arguments));
  51024. }
  51025. _createClass(Image, [{
  51026. key: 'format',
  51027. value: function format(name, value) {
  51028. if (ATTRIBUTES.indexOf(name) > -1) {
  51029. if (value) {
  51030. this.domNode.setAttribute(name, value);
  51031. } else {
  51032. this.domNode.removeAttribute(name);
  51033. }
  51034. } else {
  51035. _get(Image.prototype.__proto__ || Object.getPrototypeOf(Image.prototype), 'format', this).call(this, name, value);
  51036. }
  51037. }
  51038. }], [{
  51039. key: 'create',
  51040. value: function create(value) {
  51041. var node = _get(Image.__proto__ || Object.getPrototypeOf(Image), 'create', this).call(this, value);
  51042. if (typeof value === 'string') {
  51043. node.setAttribute('src', this.sanitize(value));
  51044. }
  51045. return node;
  51046. }
  51047. }, {
  51048. key: 'formats',
  51049. value: function formats(domNode) {
  51050. return ATTRIBUTES.reduce(function (formats, attribute) {
  51051. if (domNode.hasAttribute(attribute)) {
  51052. formats[attribute] = domNode.getAttribute(attribute);
  51053. }
  51054. return formats;
  51055. }, {});
  51056. }
  51057. }, {
  51058. key: 'match',
  51059. value: function match(url) {
  51060. return (/\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url)
  51061. );
  51062. }
  51063. }, {
  51064. key: 'sanitize',
  51065. value: function sanitize(url) {
  51066. return (0, _link.sanitize)(url, ['http', 'https', 'data']) ? url : '//:0';
  51067. }
  51068. }, {
  51069. key: 'value',
  51070. value: function value(domNode) {
  51071. return domNode.getAttribute('src');
  51072. }
  51073. }]);
  51074. return Image;
  51075. }(_parchment2.default.Embed);
  51076. Image.blotName = 'image';
  51077. Image.tagName = 'IMG';
  51078. exports.default = Image;
  51079. /***/ }),
  51080. /* 73 */
  51081. /***/ (function(module, exports, __nested_webpack_require_401311__) {
  51082. "use strict";
  51083. Object.defineProperty(exports, "__esModule", {
  51084. value: true
  51085. });
  51086. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51087. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51088. var _block = __nested_webpack_require_401311__(4);
  51089. var _link = __nested_webpack_require_401311__(27);
  51090. var _link2 = _interopRequireDefault(_link);
  51091. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51092. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51093. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51094. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51095. var ATTRIBUTES = ['height', 'width'];
  51096. var Video = function (_BlockEmbed) {
  51097. _inherits(Video, _BlockEmbed);
  51098. function Video() {
  51099. _classCallCheck(this, Video);
  51100. return _possibleConstructorReturn(this, (Video.__proto__ || Object.getPrototypeOf(Video)).apply(this, arguments));
  51101. }
  51102. _createClass(Video, [{
  51103. key: 'format',
  51104. value: function format(name, value) {
  51105. if (ATTRIBUTES.indexOf(name) > -1) {
  51106. if (value) {
  51107. this.domNode.setAttribute(name, value);
  51108. } else {
  51109. this.domNode.removeAttribute(name);
  51110. }
  51111. } else {
  51112. _get(Video.prototype.__proto__ || Object.getPrototypeOf(Video.prototype), 'format', this).call(this, name, value);
  51113. }
  51114. }
  51115. }], [{
  51116. key: 'create',
  51117. value: function create(value) {
  51118. var node = _get(Video.__proto__ || Object.getPrototypeOf(Video), 'create', this).call(this, value);
  51119. node.setAttribute('frameborder', '0');
  51120. node.setAttribute('allowfullscreen', true);
  51121. node.setAttribute('src', this.sanitize(value));
  51122. return node;
  51123. }
  51124. }, {
  51125. key: 'formats',
  51126. value: function formats(domNode) {
  51127. return ATTRIBUTES.reduce(function (formats, attribute) {
  51128. if (domNode.hasAttribute(attribute)) {
  51129. formats[attribute] = domNode.getAttribute(attribute);
  51130. }
  51131. return formats;
  51132. }, {});
  51133. }
  51134. }, {
  51135. key: 'sanitize',
  51136. value: function sanitize(url) {
  51137. return _link2.default.sanitize(url);
  51138. }
  51139. }, {
  51140. key: 'value',
  51141. value: function value(domNode) {
  51142. return domNode.getAttribute('src');
  51143. }
  51144. }]);
  51145. return Video;
  51146. }(_block.BlockEmbed);
  51147. Video.blotName = 'video';
  51148. Video.className = 'ql-video';
  51149. Video.tagName = 'IFRAME';
  51150. exports.default = Video;
  51151. /***/ }),
  51152. /* 74 */
  51153. /***/ (function(module, exports, __nested_webpack_require_405371__) {
  51154. "use strict";
  51155. Object.defineProperty(exports, "__esModule", {
  51156. value: true
  51157. });
  51158. exports.default = exports.FormulaBlot = undefined;
  51159. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51160. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51161. var _embed = __nested_webpack_require_405371__(35);
  51162. var _embed2 = _interopRequireDefault(_embed);
  51163. var _quill = __nested_webpack_require_405371__(5);
  51164. var _quill2 = _interopRequireDefault(_quill);
  51165. var _module = __nested_webpack_require_405371__(9);
  51166. var _module2 = _interopRequireDefault(_module);
  51167. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51168. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51169. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51170. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51171. var FormulaBlot = function (_Embed) {
  51172. _inherits(FormulaBlot, _Embed);
  51173. function FormulaBlot() {
  51174. _classCallCheck(this, FormulaBlot);
  51175. return _possibleConstructorReturn(this, (FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot)).apply(this, arguments));
  51176. }
  51177. _createClass(FormulaBlot, null, [{
  51178. key: 'create',
  51179. value: function create(value) {
  51180. var node = _get(FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot), 'create', this).call(this, value);
  51181. if (typeof value === 'string') {
  51182. window.katex.render(value, node, {
  51183. throwOnError: false,
  51184. errorColor: '#f00'
  51185. });
  51186. node.setAttribute('data-value', value);
  51187. }
  51188. return node;
  51189. }
  51190. }, {
  51191. key: 'value',
  51192. value: function value(domNode) {
  51193. return domNode.getAttribute('data-value');
  51194. }
  51195. }]);
  51196. return FormulaBlot;
  51197. }(_embed2.default);
  51198. FormulaBlot.blotName = 'formula';
  51199. FormulaBlot.className = 'ql-formula';
  51200. FormulaBlot.tagName = 'SPAN';
  51201. var Formula = function (_Module) {
  51202. _inherits(Formula, _Module);
  51203. _createClass(Formula, null, [{
  51204. key: 'register',
  51205. value: function register() {
  51206. _quill2.default.register(FormulaBlot, true);
  51207. }
  51208. }]);
  51209. function Formula() {
  51210. _classCallCheck(this, Formula);
  51211. var _this2 = _possibleConstructorReturn(this, (Formula.__proto__ || Object.getPrototypeOf(Formula)).call(this));
  51212. if (window.katex == null) {
  51213. throw new Error('Formula module requires KaTeX.');
  51214. }
  51215. return _this2;
  51216. }
  51217. return Formula;
  51218. }(_module2.default);
  51219. exports.FormulaBlot = FormulaBlot;
  51220. exports.default = Formula;
  51221. /***/ }),
  51222. /* 75 */
  51223. /***/ (function(module, exports, __nested_webpack_require_409500__) {
  51224. "use strict";
  51225. Object.defineProperty(exports, "__esModule", {
  51226. value: true
  51227. });
  51228. exports.default = exports.CodeToken = exports.CodeBlock = undefined;
  51229. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51230. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51231. var _parchment = __nested_webpack_require_409500__(0);
  51232. var _parchment2 = _interopRequireDefault(_parchment);
  51233. var _quill = __nested_webpack_require_409500__(5);
  51234. var _quill2 = _interopRequireDefault(_quill);
  51235. var _module = __nested_webpack_require_409500__(9);
  51236. var _module2 = _interopRequireDefault(_module);
  51237. var _code = __nested_webpack_require_409500__(13);
  51238. var _code2 = _interopRequireDefault(_code);
  51239. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51240. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51241. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51242. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51243. var SyntaxCodeBlock = function (_CodeBlock) {
  51244. _inherits(SyntaxCodeBlock, _CodeBlock);
  51245. function SyntaxCodeBlock() {
  51246. _classCallCheck(this, SyntaxCodeBlock);
  51247. return _possibleConstructorReturn(this, (SyntaxCodeBlock.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock)).apply(this, arguments));
  51248. }
  51249. _createClass(SyntaxCodeBlock, [{
  51250. key: 'replaceWith',
  51251. value: function replaceWith(block) {
  51252. this.domNode.textContent = this.domNode.textContent;
  51253. this.attach();
  51254. _get(SyntaxCodeBlock.prototype.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock.prototype), 'replaceWith', this).call(this, block);
  51255. }
  51256. }, {
  51257. key: 'highlight',
  51258. value: function highlight(_highlight) {
  51259. var text = this.domNode.textContent;
  51260. if (this.cachedText !== text) {
  51261. if (text.trim().length > 0 || this.cachedText == null) {
  51262. this.domNode.innerHTML = _highlight(text);
  51263. this.domNode.normalize();
  51264. this.attach();
  51265. }
  51266. this.cachedText = text;
  51267. }
  51268. }
  51269. }]);
  51270. return SyntaxCodeBlock;
  51271. }(_code2.default);
  51272. SyntaxCodeBlock.className = 'ql-syntax';
  51273. var CodeToken = new _parchment2.default.Attributor.Class('token', 'hljs', {
  51274. scope: _parchment2.default.Scope.INLINE
  51275. });
  51276. var Syntax = function (_Module) {
  51277. _inherits(Syntax, _Module);
  51278. _createClass(Syntax, null, [{
  51279. key: 'register',
  51280. value: function register() {
  51281. _quill2.default.register(CodeToken, true);
  51282. _quill2.default.register(SyntaxCodeBlock, true);
  51283. }
  51284. }]);
  51285. function Syntax(quill, options) {
  51286. _classCallCheck(this, Syntax);
  51287. var _this2 = _possibleConstructorReturn(this, (Syntax.__proto__ || Object.getPrototypeOf(Syntax)).call(this, quill, options));
  51288. if (typeof _this2.options.highlight !== 'function') {
  51289. throw new Error('Syntax module requires highlight.js. Please include the library on the page before Quill.');
  51290. }
  51291. var timer = null;
  51292. _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  51293. clearTimeout(timer);
  51294. timer = setTimeout(function () {
  51295. _this2.highlight();
  51296. timer = null;
  51297. }, _this2.options.interval);
  51298. });
  51299. _this2.highlight();
  51300. return _this2;
  51301. }
  51302. _createClass(Syntax, [{
  51303. key: 'highlight',
  51304. value: function highlight() {
  51305. var _this3 = this;
  51306. if (this.quill.selection.composing) return;
  51307. this.quill.update(_quill2.default.sources.USER);
  51308. var range = this.quill.getSelection();
  51309. this.quill.scroll.descendants(SyntaxCodeBlock).forEach(function (code) {
  51310. code.highlight(_this3.options.highlight);
  51311. });
  51312. this.quill.update(_quill2.default.sources.SILENT);
  51313. if (range != null) {
  51314. this.quill.setSelection(range, _quill2.default.sources.SILENT);
  51315. }
  51316. }
  51317. }]);
  51318. return Syntax;
  51319. }(_module2.default);
  51320. Syntax.DEFAULTS = {
  51321. highlight: function () {
  51322. if (window.hljs == null) return null;
  51323. return function (text) {
  51324. var result = window.hljs.highlightAuto(text);
  51325. return result.value;
  51326. };
  51327. }(),
  51328. interval: 1000
  51329. };
  51330. exports.CodeBlock = SyntaxCodeBlock;
  51331. exports.CodeToken = CodeToken;
  51332. exports.default = Syntax;
  51333. /***/ }),
  51334. /* 76 */
  51335. /***/ (function(module, exports) {
  51336. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";
  51337. /***/ }),
  51338. /* 77 */
  51339. /***/ (function(module, exports) {
  51340. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";
  51341. /***/ }),
  51342. /* 78 */
  51343. /***/ (function(module, exports) {
  51344. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";
  51345. /***/ }),
  51346. /* 79 */
  51347. /***/ (function(module, exports) {
  51348. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";
  51349. /***/ }),
  51350. /* 80 */
  51351. /***/ (function(module, exports) {
  51352. module.exports = "<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";
  51353. /***/ }),
  51354. /* 81 */
  51355. /***/ (function(module, exports) {
  51356. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";
  51357. /***/ }),
  51358. /* 82 */
  51359. /***/ (function(module, exports) {
  51360. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";
  51361. /***/ }),
  51362. /* 83 */
  51363. /***/ (function(module, exports) {
  51364. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";
  51365. /***/ }),
  51366. /* 84 */
  51367. /***/ (function(module, exports) {
  51368. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";
  51369. /***/ }),
  51370. /* 85 */
  51371. /***/ (function(module, exports) {
  51372. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";
  51373. /***/ }),
  51374. /* 86 */
  51375. /***/ (function(module, exports) {
  51376. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";
  51377. /***/ }),
  51378. /* 87 */
  51379. /***/ (function(module, exports) {
  51380. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>";
  51381. /***/ }),
  51382. /* 88 */
  51383. /***/ (function(module, exports) {
  51384. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>";
  51385. /***/ }),
  51386. /* 89 */
  51387. /***/ (function(module, exports) {
  51388. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>";
  51389. /***/ }),
  51390. /* 90 */
  51391. /***/ (function(module, exports) {
  51392. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>";
  51393. /***/ }),
  51394. /* 91 */
  51395. /***/ (function(module, exports) {
  51396. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";
  51397. /***/ }),
  51398. /* 92 */
  51399. /***/ (function(module, exports) {
  51400. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";
  51401. /***/ }),
  51402. /* 93 */
  51403. /***/ (function(module, exports) {
  51404. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";
  51405. /***/ }),
  51406. /* 94 */
  51407. /***/ (function(module, exports) {
  51408. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";
  51409. /***/ }),
  51410. /* 95 */
  51411. /***/ (function(module, exports) {
  51412. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>";
  51413. /***/ }),
  51414. /* 96 */
  51415. /***/ (function(module, exports) {
  51416. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>";
  51417. /***/ }),
  51418. /* 97 */
  51419. /***/ (function(module, exports) {
  51420. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>";
  51421. /***/ }),
  51422. /* 98 */
  51423. /***/ (function(module, exports) {
  51424. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";
  51425. /***/ }),
  51426. /* 99 */
  51427. /***/ (function(module, exports) {
  51428. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";
  51429. /***/ }),
  51430. /* 100 */
  51431. /***/ (function(module, exports) {
  51432. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";
  51433. /***/ }),
  51434. /* 101 */
  51435. /***/ (function(module, exports) {
  51436. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>";
  51437. /***/ }),
  51438. /* 102 */
  51439. /***/ (function(module, exports) {
  51440. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";
  51441. /***/ }),
  51442. /* 103 */
  51443. /***/ (function(module, exports) {
  51444. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";
  51445. /***/ }),
  51446. /* 104 */
  51447. /***/ (function(module, exports) {
  51448. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";
  51449. /***/ }),
  51450. /* 105 */
  51451. /***/ (function(module, exports) {
  51452. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";
  51453. /***/ }),
  51454. /* 106 */
  51455. /***/ (function(module, exports) {
  51456. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";
  51457. /***/ }),
  51458. /* 107 */
  51459. /***/ (function(module, exports) {
  51460. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>";
  51461. /***/ }),
  51462. /* 108 */
  51463. /***/ (function(module, exports, __nested_webpack_require_432266__) {
  51464. "use strict";
  51465. Object.defineProperty(exports, "__esModule", {
  51466. value: true
  51467. });
  51468. exports.default = exports.BubbleTooltip = undefined;
  51469. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51470. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51471. var _extend = __nested_webpack_require_432266__(3);
  51472. var _extend2 = _interopRequireDefault(_extend);
  51473. var _emitter = __nested_webpack_require_432266__(8);
  51474. var _emitter2 = _interopRequireDefault(_emitter);
  51475. var _base = __nested_webpack_require_432266__(43);
  51476. var _base2 = _interopRequireDefault(_base);
  51477. var _selection = __nested_webpack_require_432266__(15);
  51478. var _icons = __nested_webpack_require_432266__(41);
  51479. var _icons2 = _interopRequireDefault(_icons);
  51480. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51481. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51482. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51483. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51484. var TOOLBAR_CONFIG = [['bold', 'italic', 'link'], [{ header: 1 }, { header: 2 }, 'blockquote']];
  51485. var BubbleTheme = function (_BaseTheme) {
  51486. _inherits(BubbleTheme, _BaseTheme);
  51487. function BubbleTheme(quill, options) {
  51488. _classCallCheck(this, BubbleTheme);
  51489. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  51490. options.modules.toolbar.container = TOOLBAR_CONFIG;
  51491. }
  51492. var _this = _possibleConstructorReturn(this, (BubbleTheme.__proto__ || Object.getPrototypeOf(BubbleTheme)).call(this, quill, options));
  51493. _this.quill.container.classList.add('ql-bubble');
  51494. return _this;
  51495. }
  51496. _createClass(BubbleTheme, [{
  51497. key: 'extendToolbar',
  51498. value: function extendToolbar(toolbar) {
  51499. this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
  51500. this.tooltip.root.appendChild(toolbar.container);
  51501. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  51502. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  51503. }
  51504. }]);
  51505. return BubbleTheme;
  51506. }(_base2.default);
  51507. BubbleTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  51508. modules: {
  51509. toolbar: {
  51510. handlers: {
  51511. link: function link(value) {
  51512. if (!value) {
  51513. this.quill.format('link', false);
  51514. } else {
  51515. this.quill.theme.tooltip.edit();
  51516. }
  51517. }
  51518. }
  51519. }
  51520. }
  51521. });
  51522. var BubbleTooltip = function (_BaseTooltip) {
  51523. _inherits(BubbleTooltip, _BaseTooltip);
  51524. function BubbleTooltip(quill, bounds) {
  51525. _classCallCheck(this, BubbleTooltip);
  51526. var _this2 = _possibleConstructorReturn(this, (BubbleTooltip.__proto__ || Object.getPrototypeOf(BubbleTooltip)).call(this, quill, bounds));
  51527. _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE, function (type, range, oldRange, source) {
  51528. if (type !== _emitter2.default.events.SELECTION_CHANGE) return;
  51529. if (range != null && range.length > 0 && source === _emitter2.default.sources.USER) {
  51530. _this2.show();
  51531. // Lock our width so we will expand beyond our offsetParent boundaries
  51532. _this2.root.style.left = '0px';
  51533. _this2.root.style.width = '';
  51534. _this2.root.style.width = _this2.root.offsetWidth + 'px';
  51535. var lines = _this2.quill.getLines(range.index, range.length);
  51536. if (lines.length === 1) {
  51537. _this2.position(_this2.quill.getBounds(range));
  51538. } else {
  51539. var lastLine = lines[lines.length - 1];
  51540. var index = _this2.quill.getIndex(lastLine);
  51541. var length = Math.min(lastLine.length() - 1, range.index + range.length - index);
  51542. var _bounds = _this2.quill.getBounds(new _selection.Range(index, length));
  51543. _this2.position(_bounds);
  51544. }
  51545. } else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {
  51546. _this2.hide();
  51547. }
  51548. });
  51549. return _this2;
  51550. }
  51551. _createClass(BubbleTooltip, [{
  51552. key: 'listen',
  51553. value: function listen() {
  51554. var _this3 = this;
  51555. _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'listen', this).call(this);
  51556. this.root.querySelector('.ql-close').addEventListener('click', function () {
  51557. _this3.root.classList.remove('ql-editing');
  51558. });
  51559. this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE, function () {
  51560. // Let selection be restored by toolbar handlers before repositioning
  51561. setTimeout(function () {
  51562. if (_this3.root.classList.contains('ql-hidden')) return;
  51563. var range = _this3.quill.getSelection();
  51564. if (range != null) {
  51565. _this3.position(_this3.quill.getBounds(range));
  51566. }
  51567. }, 1);
  51568. });
  51569. }
  51570. }, {
  51571. key: 'cancel',
  51572. value: function cancel() {
  51573. this.show();
  51574. }
  51575. }, {
  51576. key: 'position',
  51577. value: function position(reference) {
  51578. var shift = _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'position', this).call(this, reference);
  51579. var arrow = this.root.querySelector('.ql-tooltip-arrow');
  51580. arrow.style.marginLeft = '';
  51581. if (shift === 0) return shift;
  51582. arrow.style.marginLeft = -1 * shift - arrow.offsetWidth / 2 + 'px';
  51583. }
  51584. }]);
  51585. return BubbleTooltip;
  51586. }(_base.BaseTooltip);
  51587. BubbleTooltip.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', '</div>'].join('');
  51588. exports.BubbleTooltip = BubbleTooltip;
  51589. exports.default = BubbleTheme;
  51590. /***/ }),
  51591. /* 109 */
  51592. /***/ (function(module, exports, __nested_webpack_require_439588__) {
  51593. module.exports = __nested_webpack_require_439588__(63);
  51594. /***/ })
  51595. /******/ ])["default"];
  51596. });
  51597. /***/ }),
  51598. /***/ "./node_modules/side-channel/index.js":
  51599. /*!********************************************!*\
  51600. !*** ./node_modules/side-channel/index.js ***!
  51601. \********************************************/
  51602. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  51603. "use strict";
  51604. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  51605. var callBound = __webpack_require__(/*! call-bind/callBound */ "./node_modules/call-bind/callBound.js");
  51606. var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
  51607. var $TypeError = GetIntrinsic('%TypeError%');
  51608. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  51609. var $Map = GetIntrinsic('%Map%', true);
  51610. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  51611. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  51612. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  51613. var $mapGet = callBound('Map.prototype.get', true);
  51614. var $mapSet = callBound('Map.prototype.set', true);
  51615. var $mapHas = callBound('Map.prototype.has', true);
  51616. /*
  51617. * This function traverses the list returning the node corresponding to the
  51618. * given key.
  51619. *
  51620. * That node is also moved to the head of the list, so that if it's accessed
  51621. * again we don't need to traverse the whole list. By doing so, all the recently
  51622. * used nodes can be accessed relatively quickly.
  51623. */
  51624. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  51625. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  51626. if (curr.key === key) {
  51627. prev.next = curr.next;
  51628. curr.next = list.next;
  51629. list.next = curr; // eslint-disable-line no-param-reassign
  51630. return curr;
  51631. }
  51632. }
  51633. };
  51634. var listGet = function (objects, key) {
  51635. var node = listGetNode(objects, key);
  51636. return node && node.value;
  51637. };
  51638. var listSet = function (objects, key, value) {
  51639. var node = listGetNode(objects, key);
  51640. if (node) {
  51641. node.value = value;
  51642. } else {
  51643. // Prepend the new node to the beginning of the list
  51644. objects.next = { // eslint-disable-line no-param-reassign
  51645. key: key,
  51646. next: objects.next,
  51647. value: value
  51648. };
  51649. }
  51650. };
  51651. var listHas = function (objects, key) {
  51652. return !!listGetNode(objects, key);
  51653. };
  51654. module.exports = function getSideChannel() {
  51655. var $wm;
  51656. var $m;
  51657. var $o;
  51658. var channel = {
  51659. assert: function (key) {
  51660. if (!channel.has(key)) {
  51661. throw new $TypeError('Side channel does not contain ' + inspect(key));
  51662. }
  51663. },
  51664. get: function (key) { // eslint-disable-line consistent-return
  51665. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51666. if ($wm) {
  51667. return $weakMapGet($wm, key);
  51668. }
  51669. } else if ($Map) {
  51670. if ($m) {
  51671. return $mapGet($m, key);
  51672. }
  51673. } else {
  51674. if ($o) { // eslint-disable-line no-lonely-if
  51675. return listGet($o, key);
  51676. }
  51677. }
  51678. },
  51679. has: function (key) {
  51680. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51681. if ($wm) {
  51682. return $weakMapHas($wm, key);
  51683. }
  51684. } else if ($Map) {
  51685. if ($m) {
  51686. return $mapHas($m, key);
  51687. }
  51688. } else {
  51689. if ($o) { // eslint-disable-line no-lonely-if
  51690. return listHas($o, key);
  51691. }
  51692. }
  51693. return false;
  51694. },
  51695. set: function (key, value) {
  51696. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51697. if (!$wm) {
  51698. $wm = new $WeakMap();
  51699. }
  51700. $weakMapSet($wm, key, value);
  51701. } else if ($Map) {
  51702. if (!$m) {
  51703. $m = new $Map();
  51704. }
  51705. $mapSet($m, key, value);
  51706. } else {
  51707. if (!$o) {
  51708. /*
  51709. * Initialize the linked list as an empty node, so that we don't have
  51710. * to special-case handling of the first node: we can always refer to
  51711. * it as (previous node).next, instead of something like (list).head
  51712. */
  51713. $o = { key: {}, next: null };
  51714. }
  51715. listSet($o, key, value);
  51716. }
  51717. }
  51718. };
  51719. return channel;
  51720. };
  51721. /***/ }),
  51722. /***/ "./resources/js/assets/styles/layout.scss":
  51723. /*!************************************************!*\
  51724. !*** ./resources/js/assets/styles/layout.scss ***!
  51725. \************************************************/
  51726. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51727. "use strict";
  51728. __webpack_require__.r(__webpack_exports__);
  51729. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51730. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51731. /* harmony export */ });
  51732. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51733. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  51734. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./layout.scss */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss");
  51735. var options = {};
  51736. options.insert = "head";
  51737. options.singleton = false;
  51738. var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  51739. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  51740. /***/ }),
  51741. /***/ "./node_modules/primeflex/primeflex.css":
  51742. /*!**********************************************!*\
  51743. !*** ./node_modules/primeflex/primeflex.css ***!
  51744. \**********************************************/
  51745. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51746. "use strict";
  51747. __webpack_require__.r(__webpack_exports__);
  51748. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51749. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51750. /* harmony export */ });
  51751. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51752. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  51753. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeflex.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css");
  51754. var options = {};
  51755. options.insert = "head";
  51756. options.singleton = false;
  51757. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  51758. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  51759. /***/ }),
  51760. /***/ "./node_modules/primeicons/primeicons.css":
  51761. /*!************************************************!*\
  51762. !*** ./node_modules/primeicons/primeicons.css ***!
  51763. \************************************************/
  51764. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51765. "use strict";
  51766. __webpack_require__.r(__webpack_exports__);
  51767. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51768. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51769. /* harmony export */ });
  51770. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51771. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  51772. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeicons.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css");
  51773. var options = {};
  51774. options.insert = "head";
  51775. options.singleton = false;
  51776. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  51777. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  51778. /***/ }),
  51779. /***/ "./node_modules/primevue/resources/primevue.min.css":
  51780. /*!**********************************************************!*\
  51781. !*** ./node_modules/primevue/resources/primevue.min.css ***!
  51782. \**********************************************************/
  51783. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51784. "use strict";
  51785. __webpack_require__.r(__webpack_exports__);
  51786. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51787. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51788. /* harmony export */ });
  51789. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51790. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  51791. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primevue.min.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css");
  51792. var options = {};
  51793. options.insert = "head";
  51794. options.singleton = false;
  51795. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  51796. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  51797. /***/ }),
  51798. /***/ "./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  51799. /*!*************************************************************************!*\
  51800. !*** ./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  51801. \*************************************************************************/
  51802. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51803. "use strict";
  51804. __webpack_require__.r(__webpack_exports__);
  51805. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51806. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51807. /* harmony export */ });
  51808. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51809. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  51810. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./theme.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  51811. var options = {};
  51812. options.insert = "head";
  51813. options.singleton = false;
  51814. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  51815. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  51816. /***/ }),
  51817. /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  51818. /*!****************************************************************************!*\
  51819. !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  51820. \****************************************************************************/
  51821. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  51822. "use strict";
  51823. var isOldIE = function isOldIE() {
  51824. var memo;
  51825. return function memorize() {
  51826. if (typeof memo === 'undefined') {
  51827. // Test for IE <= 9 as proposed by Browserhacks
  51828. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  51829. // Tests for existence of standard globals is to allow style-loader
  51830. // to operate correctly into non-standard environments
  51831. // @see https://github.com/webpack-contrib/style-loader/issues/177
  51832. memo = Boolean(window && document && document.all && !window.atob);
  51833. }
  51834. return memo;
  51835. };
  51836. }();
  51837. var getTarget = function getTarget() {
  51838. var memo = {};
  51839. return function memorize(target) {
  51840. if (typeof memo[target] === 'undefined') {
  51841. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  51842. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  51843. try {
  51844. // This will throw an exception if access to iframe is blocked
  51845. // due to cross-origin restrictions
  51846. styleTarget = styleTarget.contentDocument.head;
  51847. } catch (e) {
  51848. // istanbul ignore next
  51849. styleTarget = null;
  51850. }
  51851. }
  51852. memo[target] = styleTarget;
  51853. }
  51854. return memo[target];
  51855. };
  51856. }();
  51857. var stylesInDom = [];
  51858. function getIndexByIdentifier(identifier) {
  51859. var result = -1;
  51860. for (var i = 0; i < stylesInDom.length; i++) {
  51861. if (stylesInDom[i].identifier === identifier) {
  51862. result = i;
  51863. break;
  51864. }
  51865. }
  51866. return result;
  51867. }
  51868. function modulesToDom(list, options) {
  51869. var idCountMap = {};
  51870. var identifiers = [];
  51871. for (var i = 0; i < list.length; i++) {
  51872. var item = list[i];
  51873. var id = options.base ? item[0] + options.base : item[0];
  51874. var count = idCountMap[id] || 0;
  51875. var identifier = "".concat(id, " ").concat(count);
  51876. idCountMap[id] = count + 1;
  51877. var index = getIndexByIdentifier(identifier);
  51878. var obj = {
  51879. css: item[1],
  51880. media: item[2],
  51881. sourceMap: item[3]
  51882. };
  51883. if (index !== -1) {
  51884. stylesInDom[index].references++;
  51885. stylesInDom[index].updater(obj);
  51886. } else {
  51887. stylesInDom.push({
  51888. identifier: identifier,
  51889. updater: addStyle(obj, options),
  51890. references: 1
  51891. });
  51892. }
  51893. identifiers.push(identifier);
  51894. }
  51895. return identifiers;
  51896. }
  51897. function insertStyleElement(options) {
  51898. var style = document.createElement('style');
  51899. var attributes = options.attributes || {};
  51900. if (typeof attributes.nonce === 'undefined') {
  51901. var nonce = true ? __webpack_require__.nc : 0;
  51902. if (nonce) {
  51903. attributes.nonce = nonce;
  51904. }
  51905. }
  51906. Object.keys(attributes).forEach(function (key) {
  51907. style.setAttribute(key, attributes[key]);
  51908. });
  51909. if (typeof options.insert === 'function') {
  51910. options.insert(style);
  51911. } else {
  51912. var target = getTarget(options.insert || 'head');
  51913. if (!target) {
  51914. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  51915. }
  51916. target.appendChild(style);
  51917. }
  51918. return style;
  51919. }
  51920. function removeStyleElement(style) {
  51921. // istanbul ignore if
  51922. if (style.parentNode === null) {
  51923. return false;
  51924. }
  51925. style.parentNode.removeChild(style);
  51926. }
  51927. /* istanbul ignore next */
  51928. var replaceText = function replaceText() {
  51929. var textStore = [];
  51930. return function replace(index, replacement) {
  51931. textStore[index] = replacement;
  51932. return textStore.filter(Boolean).join('\n');
  51933. };
  51934. }();
  51935. function applyToSingletonTag(style, index, remove, obj) {
  51936. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  51937. /* istanbul ignore if */
  51938. if (style.styleSheet) {
  51939. style.styleSheet.cssText = replaceText(index, css);
  51940. } else {
  51941. var cssNode = document.createTextNode(css);
  51942. var childNodes = style.childNodes;
  51943. if (childNodes[index]) {
  51944. style.removeChild(childNodes[index]);
  51945. }
  51946. if (childNodes.length) {
  51947. style.insertBefore(cssNode, childNodes[index]);
  51948. } else {
  51949. style.appendChild(cssNode);
  51950. }
  51951. }
  51952. }
  51953. function applyToTag(style, options, obj) {
  51954. var css = obj.css;
  51955. var media = obj.media;
  51956. var sourceMap = obj.sourceMap;
  51957. if (media) {
  51958. style.setAttribute('media', media);
  51959. } else {
  51960. style.removeAttribute('media');
  51961. }
  51962. if (sourceMap && typeof btoa !== 'undefined') {
  51963. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  51964. } // For old IE
  51965. /* istanbul ignore if */
  51966. if (style.styleSheet) {
  51967. style.styleSheet.cssText = css;
  51968. } else {
  51969. while (style.firstChild) {
  51970. style.removeChild(style.firstChild);
  51971. }
  51972. style.appendChild(document.createTextNode(css));
  51973. }
  51974. }
  51975. var singleton = null;
  51976. var singletonCounter = 0;
  51977. function addStyle(obj, options) {
  51978. var style;
  51979. var update;
  51980. var remove;
  51981. if (options.singleton) {
  51982. var styleIndex = singletonCounter++;
  51983. style = singleton || (singleton = insertStyleElement(options));
  51984. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  51985. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  51986. } else {
  51987. style = insertStyleElement(options);
  51988. update = applyToTag.bind(null, style, options);
  51989. remove = function remove() {
  51990. removeStyleElement(style);
  51991. };
  51992. }
  51993. update(obj);
  51994. return function updateStyle(newObj) {
  51995. if (newObj) {
  51996. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  51997. return;
  51998. }
  51999. update(obj = newObj);
  52000. } else {
  52001. remove();
  52002. }
  52003. };
  52004. }
  52005. module.exports = function (list, options) {
  52006. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  52007. // tags it will allow on a page
  52008. if (!options.singleton && typeof options.singleton !== 'boolean') {
  52009. options.singleton = isOldIE();
  52010. }
  52011. list = list || [];
  52012. var lastIdentifiers = modulesToDom(list, options);
  52013. return function update(newList) {
  52014. newList = newList || [];
  52015. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  52016. return;
  52017. }
  52018. for (var i = 0; i < lastIdentifiers.length; i++) {
  52019. var identifier = lastIdentifiers[i];
  52020. var index = getIndexByIdentifier(identifier);
  52021. stylesInDom[index].references--;
  52022. }
  52023. var newLastIdentifiers = modulesToDom(newList, options);
  52024. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  52025. var _identifier = lastIdentifiers[_i];
  52026. var _index = getIndexByIdentifier(_identifier);
  52027. if (stylesInDom[_index].references === 0) {
  52028. stylesInDom[_index].updater();
  52029. stylesInDom.splice(_index, 1);
  52030. }
  52031. }
  52032. lastIdentifiers = newLastIdentifiers;
  52033. };
  52034. };
  52035. /***/ }),
  52036. /***/ "./node_modules/vue/dist/vue.esm-bundler.js":
  52037. /*!**************************************************!*\
  52038. !*** ./node_modules/vue/dist/vue.esm-bundler.js ***!
  52039. \**************************************************/
  52040. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52041. "use strict";
  52042. __webpack_require__.r(__webpack_exports__);
  52043. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52044. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  52045. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Comment),
  52046. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  52047. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  52048. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  52049. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  52050. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Static),
  52051. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  52052. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  52053. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Text),
  52054. /* harmony export */ "Transition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Transition),
  52055. /* harmony export */ "TransitionGroup": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup),
  52056. /* harmony export */ "VueElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.VueElement),
  52057. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  52058. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  52059. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.camelize),
  52060. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  52061. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  52062. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  52063. /* harmony export */ "compile": () => (/* binding */ compileToFunction),
  52064. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.computed),
  52065. /* harmony export */ "createApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createApp),
  52066. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  52067. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  52068. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  52069. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  52070. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  52071. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  52072. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  52073. /* harmony export */ "createSSRApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSSRApp),
  52074. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  52075. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  52076. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  52077. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  52078. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.customRef),
  52079. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  52080. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  52081. /* harmony export */ "defineCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineCustomElement),
  52082. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  52083. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  52084. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  52085. /* harmony export */ "defineSSRCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineSSRCustomElement),
  52086. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.devtools),
  52087. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effect),
  52088. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  52089. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  52090. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  52091. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  52092. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  52093. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.h),
  52094. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.handleError),
  52095. /* harmony export */ "hydrate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
  52096. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  52097. /* harmony export */ "initDirectivesForSSR": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initDirectivesForSSR),
  52098. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.inject),
  52099. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  52100. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  52101. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  52102. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  52103. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRef),
  52104. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  52105. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  52106. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  52107. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  52108. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  52109. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  52110. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  52111. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  52112. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  52113. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  52114. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  52115. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  52116. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  52117. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  52118. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  52119. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  52120. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  52121. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  52122. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  52123. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  52124. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  52125. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  52126. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  52127. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  52128. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  52129. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.provide),
  52130. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  52131. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  52132. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  52133. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.reactive),
  52134. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.readonly),
  52135. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ref),
  52136. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  52137. /* harmony export */ "render": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.render),
  52138. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderList),
  52139. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  52140. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  52141. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  52142. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  52143. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  52144. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  52145. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  52146. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  52147. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  52148. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  52149. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  52150. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  52151. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  52152. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  52153. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.stop),
  52154. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  52155. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  52156. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  52157. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  52158. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRef),
  52159. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  52160. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  52161. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  52162. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.unref),
  52163. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  52164. /* harmony export */ "useCssModule": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssModule),
  52165. /* harmony export */ "useCssVars": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssVars),
  52166. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  52167. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  52168. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  52169. /* harmony export */ "vModelCheckbox": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox),
  52170. /* harmony export */ "vModelDynamic": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic),
  52171. /* harmony export */ "vModelRadio": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelRadio),
  52172. /* harmony export */ "vModelSelect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelSelect),
  52173. /* harmony export */ "vModelText": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelText),
  52174. /* harmony export */ "vShow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vShow),
  52175. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.version),
  52176. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.warn),
  52177. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watch),
  52178. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  52179. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  52180. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  52181. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  52182. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  52183. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  52184. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  52185. /* harmony export */ "withKeys": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withKeys),
  52186. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  52187. /* harmony export */ "withModifiers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withModifiers),
  52188. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  52189. /* harmony export */ });
  52190. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js");
  52191. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  52192. /* harmony import */ var _vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @vue/compiler-dom */ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js");
  52193. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  52194. function initDev() {
  52195. {
  52196. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.initCustomFormatter)();
  52197. }
  52198. }
  52199. // This entry is the "full-build" that includes both the runtime
  52200. if ((true)) {
  52201. initDev();
  52202. }
  52203. const compileCache = Object.create(null);
  52204. function compileToFunction(template, options) {
  52205. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(template)) {
  52206. if (template.nodeType) {
  52207. template = template.innerHTML;
  52208. }
  52209. else {
  52210. ( true) && (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(`invalid template option: `, template);
  52211. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  52212. }
  52213. }
  52214. const key = template;
  52215. const cached = compileCache[key];
  52216. if (cached) {
  52217. return cached;
  52218. }
  52219. if (template[0] === '#') {
  52220. const el = document.querySelector(template);
  52221. if (( true) && !el) {
  52222. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(`Template element not found or is empty: ${template}`);
  52223. }
  52224. // __UNSAFE__
  52225. // Reason: potential execution of JS expressions in in-DOM template.
  52226. // The user must make sure the in-DOM template is trusted. If it's rendered
  52227. // by the server, the template should not contain any user data.
  52228. template = el ? el.innerHTML : ``;
  52229. }
  52230. const { code } = (0,_vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__.compile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({
  52231. hoistStatic: true,
  52232. onError: ( true) ? onError : 0,
  52233. onWarn: ( true) ? e => onError(e, true) : 0
  52234. }, options));
  52235. function onError(err, asWarning = false) {
  52236. const message = asWarning
  52237. ? err.message
  52238. : `Template compilation error: ${err.message}`;
  52239. const codeFrame = err.loc &&
  52240. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset);
  52241. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(codeFrame ? `${message}\n${codeFrame}` : message);
  52242. }
  52243. // The wildcard import results in a huge object with every export
  52244. // with keys that cannot be mangled, and can be quite heavy size-wise.
  52245. // In the global build we know `Vue` is available globally so we can avoid
  52246. // the wildcard object.
  52247. const render = (new Function('Vue', code)(_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__));
  52248. render._rc = true;
  52249. return (compileCache[key] = render);
  52250. }
  52251. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.registerRuntimeCompiler)(compileToFunction);
  52252. /***/ }),
  52253. /***/ "./resources/js/pages lazy recursive ^\\.\\/.*$":
  52254. /*!************************************************************!*\
  52255. !*** ./resources/js/pages/ lazy ^\.\/.*$ namespace object ***!
  52256. \************************************************************/
  52257. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  52258. var map = {
  52259. "./Access": [
  52260. "./resources/js/pages/Access.vue",
  52261. "resources_js_pages_Access_vue"
  52262. ],
  52263. "./Access.vue": [
  52264. "./resources/js/pages/Access.vue",
  52265. "resources_js_pages_Access_vue"
  52266. ],
  52267. "./auth/ForgotPassword": [
  52268. "./resources/js/pages/auth/ForgotPassword.vue",
  52269. "resources_js_pages_auth_ForgotPassword_vue"
  52270. ],
  52271. "./auth/ForgotPassword.vue": [
  52272. "./resources/js/pages/auth/ForgotPassword.vue",
  52273. "resources_js_pages_auth_ForgotPassword_vue"
  52274. ],
  52275. "./auth/Login": [
  52276. "./resources/js/pages/auth/Login.vue",
  52277. "resources_js_pages_auth_Login_vue"
  52278. ],
  52279. "./auth/Login.vue": [
  52280. "./resources/js/pages/auth/Login.vue",
  52281. "resources_js_pages_auth_Login_vue"
  52282. ],
  52283. "./auth/ResetPassword": [
  52284. "./resources/js/pages/auth/ResetPassword.vue",
  52285. "resources_js_pages_auth_ResetPassword_vue"
  52286. ],
  52287. "./auth/ResetPassword.vue": [
  52288. "./resources/js/pages/auth/ResetPassword.vue",
  52289. "resources_js_pages_auth_ResetPassword_vue"
  52290. ],
  52291. "./auth/VerifyEmail": [
  52292. "./resources/js/pages/auth/VerifyEmail.vue",
  52293. "resources_js_pages_auth_VerifyEmail_vue"
  52294. ],
  52295. "./auth/VerifyEmail.vue": [
  52296. "./resources/js/pages/auth/VerifyEmail.vue",
  52297. "resources_js_pages_auth_VerifyEmail_vue"
  52298. ],
  52299. "./customer/Create": [
  52300. "./resources/js/pages/customer/Create.vue",
  52301. "resources_js_pages_customer_Create_vue"
  52302. ],
  52303. "./customer/Create.vue": [
  52304. "./resources/js/pages/customer/Create.vue",
  52305. "resources_js_pages_customer_Create_vue"
  52306. ],
  52307. "./customer/Edit": [
  52308. "./resources/js/pages/customer/Edit.vue",
  52309. "resources_js_pages_customer_Edit_vue"
  52310. ],
  52311. "./customer/Edit.vue": [
  52312. "./resources/js/pages/customer/Edit.vue",
  52313. "resources_js_pages_customer_Edit_vue"
  52314. ],
  52315. "./customer/Index": [
  52316. "./resources/js/pages/customer/Index.vue",
  52317. "resources_js_pages_customer_Index_vue"
  52318. ],
  52319. "./customer/Index.vue": [
  52320. "./resources/js/pages/customer/Index.vue",
  52321. "resources_js_pages_customer_Index_vue"
  52322. ],
  52323. "./customer/TableHeader": [
  52324. "./resources/js/pages/customer/TableHeader.js",
  52325. "resources_js_pages_customer_TableHeader_js"
  52326. ],
  52327. "./customer/TableHeader.js": [
  52328. "./resources/js/pages/customer/TableHeader.js",
  52329. "resources_js_pages_customer_TableHeader_js"
  52330. ],
  52331. "./discount/Index": [
  52332. "./resources/js/pages/discount/Index.vue",
  52333. "resources_js_pages_discount_Index_vue"
  52334. ],
  52335. "./discount/Index.vue": [
  52336. "./resources/js/pages/discount/Index.vue",
  52337. "resources_js_pages_discount_Index_vue"
  52338. ],
  52339. "./expense/Create": [
  52340. "./resources/js/pages/expense/Create.vue",
  52341. "resources_js_pages_expense_Create_vue"
  52342. ],
  52343. "./expense/Create.vue": [
  52344. "./resources/js/pages/expense/Create.vue",
  52345. "resources_js_pages_expense_Create_vue"
  52346. ],
  52347. "./expense/Index": [
  52348. "./resources/js/pages/expense/Index.vue",
  52349. "resources_js_pages_expense_Index_vue"
  52350. ],
  52351. "./expense/Index.vue": [
  52352. "./resources/js/pages/expense/Index.vue",
  52353. "resources_js_pages_expense_Index_vue"
  52354. ],
  52355. "./expense/Show": [
  52356. "./resources/js/pages/expense/Show.vue",
  52357. "resources_js_pages_expense_Show_vue"
  52358. ],
  52359. "./expense/Show.vue": [
  52360. "./resources/js/pages/expense/Show.vue",
  52361. "resources_js_pages_expense_Show_vue"
  52362. ],
  52363. "./expense/TableHeader": [
  52364. "./resources/js/pages/expense/TableHeader.js",
  52365. "resources_js_pages_expense_TableHeader_js"
  52366. ],
  52367. "./expense/TableHeader.js": [
  52368. "./resources/js/pages/expense/TableHeader.js",
  52369. "resources_js_pages_expense_TableHeader_js"
  52370. ],
  52371. "./laundry/Create": [
  52372. "./resources/js/pages/laundry/Create.vue",
  52373. "resources_js_pages_laundry_Create_vue"
  52374. ],
  52375. "./laundry/Create.vue": [
  52376. "./resources/js/pages/laundry/Create.vue",
  52377. "resources_js_pages_laundry_Create_vue"
  52378. ],
  52379. "./laundry/Edit": [
  52380. "./resources/js/pages/laundry/Edit.vue",
  52381. "resources_js_pages_laundry_Edit_vue"
  52382. ],
  52383. "./laundry/Edit.vue": [
  52384. "./resources/js/pages/laundry/Edit.vue",
  52385. "resources_js_pages_laundry_Edit_vue"
  52386. ],
  52387. "./laundry/Index": [
  52388. "./resources/js/pages/laundry/Index.vue",
  52389. "resources_js_pages_laundry_Index_vue"
  52390. ],
  52391. "./laundry/Index.vue": [
  52392. "./resources/js/pages/laundry/Index.vue",
  52393. "resources_js_pages_laundry_Index_vue"
  52394. ],
  52395. "./laundry/TableHeader": [
  52396. "./resources/js/pages/laundry/TableHeader.js",
  52397. "resources_js_pages_laundry_TableHeader_js"
  52398. ],
  52399. "./laundry/TableHeader.js": [
  52400. "./resources/js/pages/laundry/TableHeader.js",
  52401. "resources_js_pages_laundry_TableHeader_js"
  52402. ],
  52403. "./mutation/Report": [
  52404. "./resources/js/pages/mutation/Report.vue",
  52405. "resources_js_pages_mutation_Report_vue"
  52406. ],
  52407. "./mutation/Report.vue": [
  52408. "./resources/js/pages/mutation/Report.vue",
  52409. "resources_js_pages_mutation_Report_vue"
  52410. ],
  52411. "./mutation/TableHeader": [
  52412. "./resources/js/pages/mutation/TableHeader.js",
  52413. "resources_js_pages_mutation_TableHeader_js"
  52414. ],
  52415. "./mutation/TableHeader.js": [
  52416. "./resources/js/pages/mutation/TableHeader.js",
  52417. "resources_js_pages_mutation_TableHeader_js"
  52418. ],
  52419. "./outlet/Create": [
  52420. "./resources/js/pages/outlet/Create.vue",
  52421. "resources_js_pages_outlet_Create_vue"
  52422. ],
  52423. "./outlet/Create.vue": [
  52424. "./resources/js/pages/outlet/Create.vue",
  52425. "resources_js_pages_outlet_Create_vue"
  52426. ],
  52427. "./outlet/Edit": [
  52428. "./resources/js/pages/outlet/Edit.vue",
  52429. "resources_js_pages_outlet_Edit_vue"
  52430. ],
  52431. "./outlet/Edit.vue": [
  52432. "./resources/js/pages/outlet/Edit.vue",
  52433. "resources_js_pages_outlet_Edit_vue"
  52434. ],
  52435. "./outlet/Index": [
  52436. "./resources/js/pages/outlet/Index.vue",
  52437. "resources_js_pages_outlet_Index_vue"
  52438. ],
  52439. "./outlet/Index.vue": [
  52440. "./resources/js/pages/outlet/Index.vue",
  52441. "resources_js_pages_outlet_Index_vue"
  52442. ],
  52443. "./outlet/TableHeader": [
  52444. "./resources/js/pages/outlet/TableHeader.js",
  52445. "resources_js_pages_outlet_TableHeader_js"
  52446. ],
  52447. "./outlet/TableHeader.js": [
  52448. "./resources/js/pages/outlet/TableHeader.js",
  52449. "resources_js_pages_outlet_TableHeader_js"
  52450. ],
  52451. "./product/Create": [
  52452. "./resources/js/pages/product/Create.vue",
  52453. "resources_js_pages_product_Create_vue"
  52454. ],
  52455. "./product/Create.vue": [
  52456. "./resources/js/pages/product/Create.vue",
  52457. "resources_js_pages_product_Create_vue"
  52458. ],
  52459. "./product/Edit": [
  52460. "./resources/js/pages/product/Edit.vue",
  52461. "resources_js_pages_product_Edit_vue"
  52462. ],
  52463. "./product/Edit.vue": [
  52464. "./resources/js/pages/product/Edit.vue",
  52465. "resources_js_pages_product_Edit_vue"
  52466. ],
  52467. "./product/Index": [
  52468. "./resources/js/pages/product/Index.vue",
  52469. "resources_js_pages_product_Index_vue"
  52470. ],
  52471. "./product/Index.vue": [
  52472. "./resources/js/pages/product/Index.vue",
  52473. "resources_js_pages_product_Index_vue"
  52474. ],
  52475. "./product/TableHeader": [
  52476. "./resources/js/pages/product/TableHeader.js",
  52477. "resources_js_pages_product_TableHeader_js"
  52478. ],
  52479. "./product/TableHeader.js": [
  52480. "./resources/js/pages/product/TableHeader.js",
  52481. "resources_js_pages_product_TableHeader_js"
  52482. ],
  52483. "./transaction/Create": [
  52484. "./resources/js/pages/transaction/Create.vue",
  52485. "resources_js_pages_transaction_Create_vue"
  52486. ],
  52487. "./transaction/Create.vue": [
  52488. "./resources/js/pages/transaction/Create.vue",
  52489. "resources_js_pages_transaction_Create_vue"
  52490. ],
  52491. "./transaction/Index": [
  52492. "./resources/js/pages/transaction/Index.vue",
  52493. "resources_js_pages_transaction_Index_vue"
  52494. ],
  52495. "./transaction/Index.vue": [
  52496. "./resources/js/pages/transaction/Index.vue",
  52497. "resources_js_pages_transaction_Index_vue"
  52498. ],
  52499. "./transaction/Report": [
  52500. "./resources/js/pages/transaction/Report.vue",
  52501. "resources_js_pages_transaction_Report_vue"
  52502. ],
  52503. "./transaction/Report.vue": [
  52504. "./resources/js/pages/transaction/Report.vue",
  52505. "resources_js_pages_transaction_Report_vue"
  52506. ],
  52507. "./transaction/Show": [
  52508. "./resources/js/pages/transaction/Show.vue",
  52509. "resources_js_pages_transaction_Show_vue"
  52510. ],
  52511. "./transaction/Show.vue": [
  52512. "./resources/js/pages/transaction/Show.vue",
  52513. "resources_js_pages_transaction_Show_vue"
  52514. ],
  52515. "./transaction/TableHeader": [
  52516. "./resources/js/pages/transaction/TableHeader.js",
  52517. "resources_js_pages_transaction_TableHeader_js"
  52518. ],
  52519. "./transaction/TableHeader.js": [
  52520. "./resources/js/pages/transaction/TableHeader.js",
  52521. "resources_js_pages_transaction_TableHeader_js"
  52522. ],
  52523. "./user/Create": [
  52524. "./resources/js/pages/user/Create.vue",
  52525. "resources_js_pages_user_Create_vue"
  52526. ],
  52527. "./user/Create.vue": [
  52528. "./resources/js/pages/user/Create.vue",
  52529. "resources_js_pages_user_Create_vue"
  52530. ],
  52531. "./user/Edit": [
  52532. "./resources/js/pages/user/Edit.vue",
  52533. "resources_js_pages_user_Edit_vue"
  52534. ],
  52535. "./user/Edit.vue": [
  52536. "./resources/js/pages/user/Edit.vue",
  52537. "resources_js_pages_user_Edit_vue"
  52538. ],
  52539. "./user/Index": [
  52540. "./resources/js/pages/user/Index.vue",
  52541. "resources_js_pages_user_Index_vue"
  52542. ],
  52543. "./user/Index.vue": [
  52544. "./resources/js/pages/user/Index.vue",
  52545. "resources_js_pages_user_Index_vue"
  52546. ],
  52547. "./user/Show": [
  52548. "./resources/js/pages/user/Show.vue",
  52549. "resources_js_pages_user_Show_vue"
  52550. ],
  52551. "./user/Show.vue": [
  52552. "./resources/js/pages/user/Show.vue",
  52553. "resources_js_pages_user_Show_vue"
  52554. ],
  52555. "./user/TableHeader": [
  52556. "./resources/js/pages/user/TableHeader.js",
  52557. "resources_js_pages_user_TableHeader_js"
  52558. ],
  52559. "./user/TableHeader.js": [
  52560. "./resources/js/pages/user/TableHeader.js",
  52561. "resources_js_pages_user_TableHeader_js"
  52562. ]
  52563. };
  52564. function webpackAsyncContext(req) {
  52565. if(!__webpack_require__.o(map, req)) {
  52566. return Promise.resolve().then(() => {
  52567. var e = new Error("Cannot find module '" + req + "'");
  52568. e.code = 'MODULE_NOT_FOUND';
  52569. throw e;
  52570. });
  52571. }
  52572. var ids = map[req], id = ids[0];
  52573. return __webpack_require__.e(ids[1]).then(() => {
  52574. return __webpack_require__(id);
  52575. });
  52576. }
  52577. webpackAsyncContext.keys = () => (Object.keys(map));
  52578. webpackAsyncContext.id = "./resources/js/pages lazy recursive ^\\.\\/.*$";
  52579. module.exports = webpackAsyncContext;
  52580. /***/ }),
  52581. /***/ "?2128":
  52582. /*!********************************!*\
  52583. !*** ./util.inspect (ignored) ***!
  52584. \********************************/
  52585. /***/ (() => {
  52586. /* (ignored) */
  52587. /***/ }),
  52588. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json":
  52589. /*!*************************************************************************!*\
  52590. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/package.json ***!
  52591. \*************************************************************************/
  52592. /***/ ((module) => {
  52593. "use strict";
  52594. module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}');
  52595. /***/ })
  52596. /******/ });
  52597. /************************************************************************/
  52598. /******/ // The module cache
  52599. /******/ var __webpack_module_cache__ = {};
  52600. /******/
  52601. /******/ // The require function
  52602. /******/ function __webpack_require__(moduleId) {
  52603. /******/ // Check if module is in cache
  52604. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  52605. /******/ if (cachedModule !== undefined) {
  52606. /******/ return cachedModule.exports;
  52607. /******/ }
  52608. /******/ // Create a new module (and put it into the cache)
  52609. /******/ var module = __webpack_module_cache__[moduleId] = {
  52610. /******/ id: moduleId,
  52611. /******/ loaded: false,
  52612. /******/ exports: {}
  52613. /******/ };
  52614. /******/
  52615. /******/ // Execute the module function
  52616. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  52617. /******/
  52618. /******/ // Flag the module as loaded
  52619. /******/ module.loaded = true;
  52620. /******/
  52621. /******/ // Return the exports of the module
  52622. /******/ return module.exports;
  52623. /******/ }
  52624. /******/
  52625. /******/ // expose the modules object (__webpack_modules__)
  52626. /******/ __webpack_require__.m = __webpack_modules__;
  52627. /******/
  52628. /************************************************************************/
  52629. /******/ /* webpack/runtime/compat get default export */
  52630. /******/ (() => {
  52631. /******/ // getDefaultExport function for compatibility with non-harmony modules
  52632. /******/ __webpack_require__.n = (module) => {
  52633. /******/ var getter = module && module.__esModule ?
  52634. /******/ () => (module['default']) :
  52635. /******/ () => (module);
  52636. /******/ __webpack_require__.d(getter, { a: getter });
  52637. /******/ return getter;
  52638. /******/ };
  52639. /******/ })();
  52640. /******/
  52641. /******/ /* webpack/runtime/define property getters */
  52642. /******/ (() => {
  52643. /******/ // define getter functions for harmony exports
  52644. /******/ __webpack_require__.d = (exports, definition) => {
  52645. /******/ for(var key in definition) {
  52646. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  52647. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  52648. /******/ }
  52649. /******/ }
  52650. /******/ };
  52651. /******/ })();
  52652. /******/
  52653. /******/ /* webpack/runtime/ensure chunk */
  52654. /******/ (() => {
  52655. /******/ __webpack_require__.f = {};
  52656. /******/ // This file contains only the entry chunk.
  52657. /******/ // The chunk loading function for additional chunks
  52658. /******/ __webpack_require__.e = (chunkId) => {
  52659. /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
  52660. /******/ __webpack_require__.f[key](chunkId, promises);
  52661. /******/ return promises;
  52662. /******/ }, []));
  52663. /******/ };
  52664. /******/ })();
  52665. /******/
  52666. /******/ /* webpack/runtime/get javascript chunk filename */
  52667. /******/ (() => {
  52668. /******/ // This function allow to reference async chunks
  52669. /******/ __webpack_require__.u = (chunkId) => {
  52670. /******/ // return url for filenames based on template
  52671. /******/ return "js/" + chunkId + ".js?id=" + {"resources_js_pages_Access_vue":"a18ed856923fae52","resources_js_pages_auth_ForgotPassword_vue":"c9f401672b6f2423","resources_js_pages_auth_Login_vue":"cb0cb153b976d2c1","resources_js_pages_auth_ResetPassword_vue":"1078df5cebf2e3c6","resources_js_pages_auth_VerifyEmail_vue":"2c5cb3cdec6b103a","resources_js_pages_customer_Create_vue":"43d285d678ba8793","resources_js_pages_customer_Edit_vue":"01d10f0dd19b734c","resources_js_pages_customer_Index_vue":"0ca5a813eacb510a","resources_js_pages_customer_TableHeader_js":"71be5afdca048a9c","resources_js_pages_discount_Index_vue":"7a086c011a3cdf92","resources_js_pages_expense_Create_vue":"18c4b47fcb9e103a","resources_js_pages_expense_Index_vue":"d195311d84b82d44","resources_js_pages_expense_Show_vue":"4801bedc7912088f","resources_js_pages_expense_TableHeader_js":"72e3dee74175b1c0","resources_js_pages_laundry_Create_vue":"aae1027a621900d5","resources_js_pages_laundry_Edit_vue":"160898ea138ee162","resources_js_pages_laundry_Index_vue":"29e5e4317fa0862d","resources_js_pages_laundry_TableHeader_js":"494e577855bbcaf6","resources_js_pages_mutation_Report_vue":"d74f6004bddcfdc6","resources_js_pages_mutation_TableHeader_js":"82c2999bd7d098a1","resources_js_pages_outlet_Create_vue":"48bdc532cf3f8c62","resources_js_pages_outlet_Edit_vue":"32338ffd7c28e656","resources_js_pages_outlet_Index_vue":"e1f9a19ae0ffa3df","resources_js_pages_outlet_TableHeader_js":"498bf7e64bc0d0c4","resources_js_pages_product_Create_vue":"4e737e98d38eca28","resources_js_pages_product_Edit_vue":"ddac8c4ce1363cc3","resources_js_pages_product_Index_vue":"ff1e209ae8b6ebbd","resources_js_pages_product_TableHeader_js":"b8eaaa9de25a2322","resources_js_pages_transaction_Create_vue":"bc8669735a72a0ec","resources_js_pages_transaction_Index_vue":"6da809da30371f6f","resources_js_pages_transaction_Report_vue":"eeca91c15c146171","resources_js_pages_transaction_Show_vue":"2087aac76bbbf7f1","resources_js_pages_transaction_TableHeader_js":"ba35ab28bb4ac891","resources_js_pages_user_Create_vue":"1f5759b89d51290b","resources_js_pages_user_Edit_vue":"8e9cac16a201e333","resources_js_pages_user_Index_vue":"e798523892e8e90c","resources_js_pages_user_Show_vue":"e674f453c14893b2","resources_js_pages_user_TableHeader_js":"5653ecbcd70fd235"}[chunkId] + "";
  52672. /******/ };
  52673. /******/ })();
  52674. /******/
  52675. /******/ /* webpack/runtime/get mini-css chunk filename */
  52676. /******/ (() => {
  52677. /******/ // This function allow to reference all chunks
  52678. /******/ __webpack_require__.miniCssF = (chunkId) => {
  52679. /******/ // return url for filenames based on template
  52680. /******/ return undefined;
  52681. /******/ };
  52682. /******/ })();
  52683. /******/
  52684. /******/ /* webpack/runtime/global */
  52685. /******/ (() => {
  52686. /******/ __webpack_require__.g = (function() {
  52687. /******/ if (typeof globalThis === 'object') return globalThis;
  52688. /******/ try {
  52689. /******/ return this || new Function('return this')();
  52690. /******/ } catch (e) {
  52691. /******/ if (typeof window === 'object') return window;
  52692. /******/ }
  52693. /******/ })();
  52694. /******/ })();
  52695. /******/
  52696. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  52697. /******/ (() => {
  52698. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  52699. /******/ })();
  52700. /******/
  52701. /******/ /* webpack/runtime/load script */
  52702. /******/ (() => {
  52703. /******/ var inProgress = {};
  52704. /******/ // data-webpack is not used as build has no uniqueName
  52705. /******/ // loadScript function to load a script via script tag
  52706. /******/ __webpack_require__.l = (url, done, key, chunkId) => {
  52707. /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
  52708. /******/ var script, needAttach;
  52709. /******/ if(key !== undefined) {
  52710. /******/ var scripts = document.getElementsByTagName("script");
  52711. /******/ for(var i = 0; i < scripts.length; i++) {
  52712. /******/ var s = scripts[i];
  52713. /******/ if(s.getAttribute("src") == url) { script = s; break; }
  52714. /******/ }
  52715. /******/ }
  52716. /******/ if(!script) {
  52717. /******/ needAttach = true;
  52718. /******/ script = document.createElement('script');
  52719. /******/
  52720. /******/ script.charset = 'utf-8';
  52721. /******/ script.timeout = 120;
  52722. /******/ if (__webpack_require__.nc) {
  52723. /******/ script.setAttribute("nonce", __webpack_require__.nc);
  52724. /******/ }
  52725. /******/
  52726. /******/ script.src = url;
  52727. /******/ }
  52728. /******/ inProgress[url] = [done];
  52729. /******/ var onScriptComplete = (prev, event) => {
  52730. /******/ // avoid mem leaks in IE.
  52731. /******/ script.onerror = script.onload = null;
  52732. /******/ clearTimeout(timeout);
  52733. /******/ var doneFns = inProgress[url];
  52734. /******/ delete inProgress[url];
  52735. /******/ script.parentNode && script.parentNode.removeChild(script);
  52736. /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
  52737. /******/ if(prev) return prev(event);
  52738. /******/ }
  52739. /******/ ;
  52740. /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
  52741. /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
  52742. /******/ script.onload = onScriptComplete.bind(null, script.onload);
  52743. /******/ needAttach && document.head.appendChild(script);
  52744. /******/ };
  52745. /******/ })();
  52746. /******/
  52747. /******/ /* webpack/runtime/make namespace object */
  52748. /******/ (() => {
  52749. /******/ // define __esModule on exports
  52750. /******/ __webpack_require__.r = (exports) => {
  52751. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  52752. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  52753. /******/ }
  52754. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  52755. /******/ };
  52756. /******/ })();
  52757. /******/
  52758. /******/ /* webpack/runtime/node module decorator */
  52759. /******/ (() => {
  52760. /******/ __webpack_require__.nmd = (module) => {
  52761. /******/ module.paths = [];
  52762. /******/ if (!module.children) module.children = [];
  52763. /******/ return module;
  52764. /******/ };
  52765. /******/ })();
  52766. /******/
  52767. /******/ /* webpack/runtime/publicPath */
  52768. /******/ (() => {
  52769. /******/ __webpack_require__.p = "/";
  52770. /******/ })();
  52771. /******/
  52772. /******/ /* webpack/runtime/jsonp chunk loading */
  52773. /******/ (() => {
  52774. /******/ // no baseURI
  52775. /******/
  52776. /******/ // object to store loaded and loading chunks
  52777. /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
  52778. /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
  52779. /******/ var installedChunks = {
  52780. /******/ "/js/vue": 0
  52781. /******/ };
  52782. /******/
  52783. /******/ __webpack_require__.f.j = (chunkId, promises) => {
  52784. /******/ // JSONP chunk loading for javascript
  52785. /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
  52786. /******/ if(installedChunkData !== 0) { // 0 means "already installed".
  52787. /******/
  52788. /******/ // a Promise means "currently loading".
  52789. /******/ if(installedChunkData) {
  52790. /******/ promises.push(installedChunkData[2]);
  52791. /******/ } else {
  52792. /******/ if(true) { // all chunks have JS
  52793. /******/ // setup Promise in chunk cache
  52794. /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
  52795. /******/ promises.push(installedChunkData[2] = promise);
  52796. /******/
  52797. /******/ // start chunk loading
  52798. /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
  52799. /******/ // create error before stack unwound to get useful stacktrace later
  52800. /******/ var error = new Error();
  52801. /******/ var loadingEnded = (event) => {
  52802. /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
  52803. /******/ installedChunkData = installedChunks[chunkId];
  52804. /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
  52805. /******/ if(installedChunkData) {
  52806. /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
  52807. /******/ var realSrc = event && event.target && event.target.src;
  52808. /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
  52809. /******/ error.name = 'ChunkLoadError';
  52810. /******/ error.type = errorType;
  52811. /******/ error.request = realSrc;
  52812. /******/ installedChunkData[1](error);
  52813. /******/ }
  52814. /******/ }
  52815. /******/ };
  52816. /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
  52817. /******/ } else installedChunks[chunkId] = 0;
  52818. /******/ }
  52819. /******/ }
  52820. /******/ };
  52821. /******/
  52822. /******/ // no prefetching
  52823. /******/
  52824. /******/ // no preloaded
  52825. /******/
  52826. /******/ // no HMR
  52827. /******/
  52828. /******/ // no HMR manifest
  52829. /******/
  52830. /******/ // no on chunks loaded
  52831. /******/
  52832. /******/ // install a JSONP callback for chunk loading
  52833. /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
  52834. /******/ var [chunkIds, moreModules, runtime] = data;
  52835. /******/ // add "moreModules" to the modules object,
  52836. /******/ // then flag all "chunkIds" as loaded and fire callback
  52837. /******/ var moduleId, chunkId, i = 0;
  52838. /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
  52839. /******/ for(moduleId in moreModules) {
  52840. /******/ if(__webpack_require__.o(moreModules, moduleId)) {
  52841. /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
  52842. /******/ }
  52843. /******/ }
  52844. /******/ if(runtime) var result = runtime(__webpack_require__);
  52845. /******/ }
  52846. /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
  52847. /******/ for(;i < chunkIds.length; i++) {
  52848. /******/ chunkId = chunkIds[i];
  52849. /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
  52850. /******/ installedChunks[chunkId][0]();
  52851. /******/ }
  52852. /******/ installedChunks[chunkId] = 0;
  52853. /******/ }
  52854. /******/
  52855. /******/ }
  52856. /******/
  52857. /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
  52858. /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
  52859. /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
  52860. /******/ })();
  52861. /******/
  52862. /************************************************************************/
  52863. var __webpack_exports__ = {};
  52864. // This entry need to be wrapped in an IIFE because it need to be in strict mode.
  52865. (() => {
  52866. "use strict";
  52867. /*!*****************************!*\
  52868. !*** ./resources/js/vue.js ***!
  52869. \*****************************/
  52870. __webpack_require__.r(__webpack_exports__);
  52871. /* harmony import */ var primevue_resources_themes_tailwind_light_theme_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/resources/themes/tailwind-light/theme.css */ "./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  52872. /* harmony import */ var primevue_resources_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/resources/primevue.min.css */ "./node_modules/primevue/resources/primevue.min.css");
  52873. /* harmony import */ var primeflex_primeflex_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeflex/primeflex.css */ "./node_modules/primeflex/primeflex.css");
  52874. /* harmony import */ var primeicons_primeicons_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeicons/primeicons.css */ "./node_modules/primeicons/primeicons.css");
  52875. /* harmony import */ var _assets_styles_layout_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/assets/styles/layout.scss */ "./resources/js/assets/styles/layout.scss");
  52876. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  52877. /* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js");
  52878. /* harmony import */ var _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @inertiajs/progress */ "./node_modules/@inertiajs/progress/dist/index.js");
  52879. /* harmony import */ var primevue_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/config */ "./node_modules/primevue/config/config.esm.js");
  52880. /* harmony import */ var primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primevue/styleclass */ "./node_modules/primevue/styleclass/styleclass.esm.js");
  52881. /* harmony import */ var primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primevue/autocomplete */ "./node_modules/primevue/autocomplete/autocomplete.esm.js");
  52882. /* harmony import */ var primevue_badge__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primevue/badge */ "./node_modules/primevue/badge/badge.esm.js");
  52883. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  52884. /* harmony import */ var primevue_calendar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primevue/calendar */ "./node_modules/primevue/calendar/calendar.esm.js");
  52885. /* harmony import */ var primevue_card__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primevue/card */ "./node_modules/primevue/card/card.esm.js");
  52886. /* harmony import */ var primevue_column__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primevue/column */ "./node_modules/primevue/column/column.esm.js");
  52887. /* harmony import */ var primevue_datatable__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primevue/datatable */ "./node_modules/primevue/datatable/datatable.esm.js");
  52888. /* harmony import */ var primevue_dialog__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primevue/dialog */ "./node_modules/primevue/dialog/dialog.esm.js");
  52889. /* harmony import */ var primevue_divider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primevue/divider */ "./node_modules/primevue/divider/divider.esm.js");
  52890. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  52891. /* harmony import */ var primevue_editor__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! primevue/editor */ "./node_modules/primevue/editor/editor.esm.js");
  52892. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  52893. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  52894. /* harmony import */ var primevue_message__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primevue/message */ "./node_modules/primevue/message/message.esm.js");
  52895. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  52896. /* harmony import */ var primevue_password__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primevue/password */ "./node_modules/primevue/password/password.esm.js");
  52897. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  52898. /* harmony import */ var primevue_tabview__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! primevue/tabview */ "./node_modules/primevue/tabview/tabview.esm.js");
  52899. /* harmony import */ var primevue_tabpanel__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! primevue/tabpanel */ "./node_modules/primevue/tabpanel/tabpanel.esm.js");
  52900. /* harmony import */ var primevue_tooltip__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! primevue/tooltip */ "./node_modules/primevue/tooltip/tooltip.esm.js");
  52901. (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__.createInertiaApp)({
  52902. title: function title(_title) {
  52903. return "".concat(_title, " - Bamb's Laundry");
  52904. },
  52905. resolve: function resolve(name) {
  52906. return __webpack_require__("./resources/js/pages lazy recursive ^\\.\\/.*$")("./".concat(name));
  52907. },
  52908. setup: function setup(_ref) {
  52909. var el = _ref.el,
  52910. App = _ref.App,
  52911. props = _ref.props,
  52912. plugin = _ref.plugin;
  52913. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createApp)({
  52914. render: function render() {
  52915. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.h)(App, props);
  52916. }
  52917. }).use(plugin).use(primevue_config__WEBPACK_IMPORTED_MODULE_8__["default"], {
  52918. ripple: true
  52919. }).mixin({
  52920. methods: {
  52921. route: route
  52922. }
  52923. }).directive('styleclass', primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__["default"]).directive('ripple', primevue_ripple__WEBPACK_IMPORTED_MODULE_26__["default"]).directive('tooltip', primevue_tooltip__WEBPACK_IMPORTED_MODULE_29__["default"]).component('AutoComplete', primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__["default"]).component('Button', primevue_button__WEBPACK_IMPORTED_MODULE_12__["default"]).component('Badge', primevue_badge__WEBPACK_IMPORTED_MODULE_11__["default"]).component('Card', primevue_card__WEBPACK_IMPORTED_MODULE_14__["default"]).component('Calendar', primevue_calendar__WEBPACK_IMPORTED_MODULE_13__["default"]).component('Column', primevue_column__WEBPACK_IMPORTED_MODULE_15__["default"]).component('DataTable', primevue_datatable__WEBPACK_IMPORTED_MODULE_16__["default"]).component('Dialog', primevue_dialog__WEBPACK_IMPORTED_MODULE_17__["default"]).component('Divider', primevue_divider__WEBPACK_IMPORTED_MODULE_18__["default"]).component('Dropdown', primevue_dropdown__WEBPACK_IMPORTED_MODULE_19__["default"]).component('Editor', primevue_editor__WEBPACK_IMPORTED_MODULE_20__["default"]).component('InputNumber', primevue_inputnumber__WEBPACK_IMPORTED_MODULE_21__["default"]).component('InputText', primevue_inputtext__WEBPACK_IMPORTED_MODULE_22__["default"]).component('Message', primevue_message__WEBPACK_IMPORTED_MODULE_23__["default"]).component('Paginator', primevue_paginator__WEBPACK_IMPORTED_MODULE_24__["default"]).component('Password', primevue_password__WEBPACK_IMPORTED_MODULE_25__["default"]).component('TabView', primevue_tabview__WEBPACK_IMPORTED_MODULE_27__["default"]).component('TabPanel', primevue_tabpanel__WEBPACK_IMPORTED_MODULE_28__["default"]).mount(el);
  52924. }
  52925. });
  52926. _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__.InertiaProgress.init({
  52927. color: '#4F46E5'
  52928. });
  52929. })();
  52930. /******/ })()
  52931. ;