| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195 |
- (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{position:sticky;top:0;z-index:1;background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .current-diff{border:1px solid var(--color-border-muted)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
- import Ln, { defineComponent as be, computed as he, ref as We, watch as On } from "vue";
- Ln.util.warn;
- function ne() {
- }
- ne.prototype = {
- diff: function(e, s) {
- var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
- typeof u == "function" && (h = u, u = {}), this.options = u;
- var t = this;
- function r(_) {
- return h ? (setTimeout(function() {
- h(void 0, _);
- }, 0), !0) : _;
- }
- e = this.castInput(e), s = this.castInput(s), e = this.removeEmpty(this.tokenize(e)), s = this.removeEmpty(this.tokenize(s));
- var i = s.length, a = e.length, o = 1, l = i + a;
- u.maxEditLength && (l = Math.min(l, u.maxEditLength));
- var c = [{
- newPos: -1,
- components: []
- }], f = this.extractCommon(c[0], s, e, 0);
- if (c[0].newPos + 1 >= i && f + 1 >= a)
- return r([{
- value: this.join(s),
- count: s.length
- }]);
- function g() {
- for (var _ = -1 * o; _ <= o; _ += 2) {
- var p = void 0, v = c[_ - 1], m = c[_ + 1], E = (m ? m.newPos : 0) - _;
- v && (c[_ - 1] = void 0);
- var A = v && v.newPos + 1 < i, S = m && 0 <= E && E < a;
- if (!A && !S) {
- c[_] = void 0;
- continue;
- }
- if (!A || S && v.newPos < m.newPos ? (p = kn(m), t.pushComponent(p.components, void 0, !0)) : (p = v, p.newPos++, t.pushComponent(p.components, !0, void 0)), E = t.extractCommon(p, s, e, _), p.newPos + 1 >= i && E + 1 >= a)
- return r(In(t, p.components, s, e, t.useLongestToken));
- c[_] = p;
- }
- o++;
- }
- if (h)
- (function _() {
- setTimeout(function() {
- if (o > l)
- return h();
- g() || _();
- }, 0);
- })();
- else
- for (; o <= l; ) {
- var d = g();
- if (d)
- return d;
- }
- },
- pushComponent: function(e, s, u) {
- var h = e[e.length - 1];
- h && h.added === s && h.removed === u ? e[e.length - 1] = {
- count: h.count + 1,
- added: s,
- removed: u
- } : e.push({
- count: 1,
- added: s,
- removed: u
- });
- },
- extractCommon: function(e, s, u, h) {
- for (var t = s.length, r = u.length, i = e.newPos, a = i - h, o = 0; i + 1 < t && a + 1 < r && this.equals(s[i + 1], u[a + 1]); )
- i++, a++, o++;
- return o && e.components.push({
- count: o
- }), e.newPos = i, a;
- },
- equals: function(e, s) {
- return this.options.comparator ? this.options.comparator(e, s) : e === s || this.options.ignoreCase && e.toLowerCase() === s.toLowerCase();
- },
- removeEmpty: function(e) {
- for (var s = [], u = 0; u < e.length; u++)
- e[u] && s.push(e[u]);
- return s;
- },
- castInput: function(e) {
- return e;
- },
- tokenize: function(e) {
- return e.split("");
- },
- join: function(e) {
- return e.join("");
- }
- };
- function In(n, e, s, u, h) {
- for (var t = 0, r = e.length, i = 0, a = 0; t < r; t++) {
- var o = e[t];
- if (o.removed) {
- if (o.value = n.join(u.slice(a, a + o.count)), a += o.count, t && e[t - 1].added) {
- var c = e[t - 1];
- e[t - 1] = e[t], e[t] = c;
- }
- } else {
- if (!o.added && h) {
- var l = s.slice(i, i + o.count);
- l = l.map(function(g, d) {
- var _ = u[a + d];
- return _.length > g.length ? _ : g;
- }), o.value = n.join(l);
- } else
- o.value = n.join(s.slice(i, i + o.count));
- i += o.count, o.added || (a += o.count);
- }
- }
- var f = e[r - 1];
- return r > 1 && typeof f.value == "string" && (f.added || f.removed) && n.equals("", f.value) && (e[r - 2].value += f.value, e.pop()), e;
- }
- function kn(n) {
- return {
- newPos: n.newPos,
- components: n.components.slice(0)
- };
- }
- var Bn = new ne();
- function $n(n, e, s) {
- return Bn.diff(n, e, s);
- }
- function Un(n, e) {
- if (typeof n == "function")
- e.callback = n;
- else if (n)
- for (var s in n)
- n.hasOwnProperty(s) && (e[s] = n[s]);
- return e;
- }
- var Qe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Ve = /\S/, Be = new ne();
- Be.equals = function(n, e) {
- return this.options.ignoreCase && (n = n.toLowerCase(), e = e.toLowerCase()), n === e || this.options.ignoreWhitespace && !Ve.test(n) && !Ve.test(e);
- };
- Be.tokenize = function(n) {
- for (var e = n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), s = 0; s < e.length - 1; s++)
- !e[s + 1] && e[s + 2] && Qe.test(e[s]) && Qe.test(e[s + 2]) && (e[s] += e[s + 2], e.splice(s + 1, 2), s--);
- return e;
- };
- function Pn(n, e, s) {
- return s = Un(s, {
- ignoreWhitespace: !0
- }), Be.diff(n, e, s);
- }
- var rn = new ne();
- rn.tokenize = function(n) {
- var e = [], s = n.split(/(\n|\r\n)/);
- s[s.length - 1] || s.pop();
- for (var u = 0; u < s.length; u++) {
- var h = s[u];
- u % 2 && !this.options.newlineIsToken ? e[e.length - 1] += h : (this.options.ignoreWhitespace && (h = h.trim()), e.push(h));
- }
- return e;
- };
- var xn = new ne();
- xn.tokenize = function(n) {
- return n.split(/(\S.+?[.!?])(?=\s+|$)/);
- };
- var Fn = new ne();
- Fn.tokenize = function(n) {
- return n.split(/([{}:;,]|\s+)/);
- };
- function Ne(n) {
- "@babel/helpers - typeof";
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ne = function(e) {
- return typeof e;
- } : Ne = function(e) {
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
- }, Ne(n);
- }
- var Hn = Object.prototype.toString, de = new ne();
- de.useLongestToken = !0;
- de.tokenize = rn.tokenize;
- de.castInput = function(n) {
- var e = this.options, s = e.undefinedReplacement, u = e.stringifyReplacer, h = u === void 0 ? function(t, r) {
- return typeof r == "undefined" ? s : r;
- } : u;
- return typeof n == "string" ? n : JSON.stringify(Ie(n, null, null, h), h, " ");
- };
- de.equals = function(n, e) {
- return ne.prototype.equals.call(de, n.replace(/,([\r\n])/g, "$1"), e.replace(/,([\r\n])/g, "$1"));
- };
- function Ie(n, e, s, u, h) {
- e = e || [], s = s || [], u && (n = u(h, n));
- var t;
- for (t = 0; t < e.length; t += 1)
- if (e[t] === n)
- return s[t];
- var r;
- if (Hn.call(n) === "[object Array]") {
- for (e.push(n), r = new Array(n.length), s.push(r), t = 0; t < n.length; t += 1)
- r[t] = Ie(n[t], e, s, u, h);
- return e.pop(), s.pop(), r;
- }
- if (n && n.toJSON && (n = n.toJSON()), Ne(n) === "object" && n !== null) {
- e.push(n), r = {}, s.push(r);
- var i = [], a;
- for (a in n)
- n.hasOwnProperty(a) && i.push(a);
- for (i.sort(), t = 0; t < i.length; t += 1)
- a = i[t], r[a] = Ie(n[a], e, s, u, a);
- e.pop(), s.pop();
- } else
- r = n;
- return r;
- }
- var ke = new ne();
- ke.tokenize = function(n) {
- return n.slice();
- };
- ke.join = ke.removeEmpty = function(n) {
- return n;
- };
- function zn(n) {
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
- }
- var sn = { exports: {} };
- (function(n) {
- var e = function() {
- this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
- }, s = -1, u = 1, h = 0;
- e.Diff = function(t, r) {
- return [t, r];
- }, e.prototype.diff_main = function(t, r, i, a) {
- typeof a == "undefined" && (this.Diff_Timeout <= 0 ? a = Number.MAX_VALUE : a = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
- var o = a;
- if (t == null || r == null)
- throw new Error("Null input. (diff_main)");
- if (t == r)
- return t ? [new e.Diff(h, t)] : [];
- typeof i == "undefined" && (i = !0);
- var l = i, c = this.diff_commonPrefix(t, r), f = t.substring(0, c);
- t = t.substring(c), r = r.substring(c), c = this.diff_commonSuffix(t, r);
- var g = t.substring(t.length - c);
- t = t.substring(0, t.length - c), r = r.substring(0, r.length - c);
- var d = this.diff_compute_(t, r, l, o);
- return f && d.unshift(new e.Diff(h, f)), g && d.push(new e.Diff(h, g)), this.diff_cleanupMerge(d), d;
- }, e.prototype.diff_compute_ = function(t, r, i, a) {
- var o;
- if (!t)
- return [new e.Diff(u, r)];
- if (!r)
- return [new e.Diff(s, t)];
- var l = t.length > r.length ? t : r, c = t.length > r.length ? r : t, f = l.indexOf(c);
- if (f != -1)
- return o = [
- new e.Diff(u, l.substring(0, f)),
- new e.Diff(h, c),
- new e.Diff(
- u,
- l.substring(f + c.length)
- )
- ], t.length > r.length && (o[0][0] = o[2][0] = s), o;
- if (c.length == 1)
- return [
- new e.Diff(s, t),
- new e.Diff(u, r)
- ];
- var g = this.diff_halfMatch_(t, r);
- if (g) {
- var d = g[0], _ = g[1], p = g[2], v = g[3], m = g[4], E = this.diff_main(d, p, i, a), A = this.diff_main(_, v, i, a);
- return E.concat(
- [new e.Diff(h, m)],
- A
- );
- }
- return i && t.length > 100 && r.length > 100 ? this.diff_lineMode_(t, r, a) : this.diff_bisect_(t, r, a);
- }, e.prototype.diff_lineMode_ = function(t, r, i) {
- var a = this.diff_linesToChars_(t, r);
- t = a.chars1, r = a.chars2;
- var o = a.lineArray, l = this.diff_main(t, r, !1, i);
- this.diff_charsToLines_(l, o), this.diff_cleanupSemantic(l), l.push(new e.Diff(h, ""));
- for (var c = 0, f = 0, g = 0, d = "", _ = ""; c < l.length; ) {
- switch (l[c][0]) {
- case u:
- g++, _ += l[c][1];
- break;
- case s:
- f++, d += l[c][1];
- break;
- case h:
- if (f >= 1 && g >= 1) {
- l.splice(
- c - f - g,
- f + g
- ), c = c - f - g;
- for (var p = this.diff_main(d, _, !1, i), v = p.length - 1; v >= 0; v--)
- l.splice(c, 0, p[v]);
- c = c + p.length;
- }
- g = 0, f = 0, d = "", _ = "";
- break;
- }
- c++;
- }
- return l.pop(), l;
- }, e.prototype.diff_bisect_ = function(t, r, i) {
- for (var a = t.length, o = r.length, l = Math.ceil((a + o) / 2), c = l, f = 2 * l, g = new Array(f), d = new Array(f), _ = 0; _ < f; _++)
- g[_] = -1, d[_] = -1;
- g[c + 1] = 0, d[c + 1] = 0;
- for (var p = a - o, v = p % 2 != 0, m = 0, E = 0, A = 0, S = 0, D = 0; D < l && !((/* @__PURE__ */ new Date()).getTime() > i); D++) {
- for (var N = -D + m; N <= D - E; N += 2) {
- var R = c + N, C;
- N == -D || N != D && g[R - 1] < g[R + 1] ? C = g[R + 1] : C = g[R - 1] + 1;
- for (var I = C - N; C < a && I < o && t.charAt(C) == r.charAt(I); )
- C++, I++;
- if (g[R] = C, C > a)
- E += 2;
- else if (I > o)
- m += 2;
- else if (v) {
- var $ = c + p - N;
- if ($ >= 0 && $ < f && d[$] != -1) {
- var B = a - d[$];
- if (C >= B)
- return this.diff_bisectSplit_(t, r, C, I, i);
- }
- }
- }
- for (var H = -D + A; H <= D - S; H += 2) {
- var $ = c + H, B;
- H == -D || H != D && d[$ - 1] < d[$ + 1] ? B = d[$ + 1] : B = d[$ - 1] + 1;
- for (var K = B - H; B < a && K < o && t.charAt(a - B - 1) == r.charAt(o - K - 1); )
- B++, K++;
- if (d[$] = B, B > a)
- S += 2;
- else if (K > o)
- A += 2;
- else if (!v) {
- var R = c + p - H;
- if (R >= 0 && R < f && g[R] != -1) {
- var C = g[R], I = c + C - R;
- if (B = a - B, C >= B)
- return this.diff_bisectSplit_(t, r, C, I, i);
- }
- }
- }
- }
- return [
- new e.Diff(s, t),
- new e.Diff(u, r)
- ];
- }, e.prototype.diff_bisectSplit_ = function(t, r, i, a, o) {
- var l = t.substring(0, i), c = r.substring(0, a), f = t.substring(i), g = r.substring(a), d = this.diff_main(l, c, !1, o), _ = this.diff_main(f, g, !1, o);
- return d.concat(_);
- }, e.prototype.diff_linesToChars_ = function(t, r) {
- var i = [], a = {};
- i[0] = "";
- function o(g) {
- for (var d = "", _ = 0, p = -1, v = i.length; p < g.length - 1; ) {
- p = g.indexOf(`
- `, _), p == -1 && (p = g.length - 1);
- var m = g.substring(_, p + 1);
- (a.hasOwnProperty ? a.hasOwnProperty(m) : a[m] !== void 0) ? d += String.fromCharCode(a[m]) : (v == l && (m = g.substring(_), p = g.length), d += String.fromCharCode(v), a[m] = v, i[v++] = m), _ = p + 1;
- }
- return d;
- }
- var l = 4e4, c = o(t);
- l = 65535;
- var f = o(r);
- return { chars1: c, chars2: f, lineArray: i };
- }, e.prototype.diff_charsToLines_ = function(t, r) {
- for (var i = 0; i < t.length; i++) {
- for (var a = t[i][1], o = [], l = 0; l < a.length; l++)
- o[l] = r[a.charCodeAt(l)];
- t[i][1] = o.join("");
- }
- }, e.prototype.diff_commonPrefix = function(t, r) {
- if (!t || !r || t.charAt(0) != r.charAt(0))
- return 0;
- for (var i = 0, a = Math.min(t.length, r.length), o = a, l = 0; i < o; )
- t.substring(l, o) == r.substring(l, o) ? (i = o, l = i) : a = o, o = Math.floor((a - i) / 2 + i);
- return o;
- }, e.prototype.diff_commonSuffix = function(t, r) {
- if (!t || !r || t.charAt(t.length - 1) != r.charAt(r.length - 1))
- return 0;
- for (var i = 0, a = Math.min(t.length, r.length), o = a, l = 0; i < o; )
- t.substring(t.length - o, t.length - l) == r.substring(r.length - o, r.length - l) ? (i = o, l = i) : a = o, o = Math.floor((a - i) / 2 + i);
- return o;
- }, e.prototype.diff_commonOverlap_ = function(t, r) {
- var i = t.length, a = r.length;
- if (i == 0 || a == 0)
- return 0;
- i > a ? t = t.substring(i - a) : i < a && (r = r.substring(0, i));
- var o = Math.min(i, a);
- if (t == r)
- return o;
- for (var l = 0, c = 1; ; ) {
- var f = t.substring(o - c), g = r.indexOf(f);
- if (g == -1)
- return l;
- c += g, (g == 0 || t.substring(o - c) == r.substring(0, c)) && (l = c, c++);
- }
- }, e.prototype.diff_halfMatch_ = function(t, r) {
- if (this.Diff_Timeout <= 0)
- return null;
- var i = t.length > r.length ? t : r, a = t.length > r.length ? r : t;
- if (i.length < 4 || a.length * 2 < i.length)
- return null;
- var o = this;
- function l(E, A, S) {
- for (var D = E.substring(S, S + Math.floor(E.length / 4)), N = -1, R = "", C, I, $, B; (N = A.indexOf(D, N + 1)) != -1; ) {
- var H = o.diff_commonPrefix(
- E.substring(S),
- A.substring(N)
- ), K = o.diff_commonSuffix(
- E.substring(0, S),
- A.substring(0, N)
- );
- R.length < K + H && (R = A.substring(N - K, N) + A.substring(N, N + H), C = E.substring(0, S - K), I = E.substring(S + H), $ = A.substring(0, N - K), B = A.substring(N + H));
- }
- return R.length * 2 >= E.length ? [
- C,
- I,
- $,
- B,
- R
- ] : null;
- }
- var c = l(
- i,
- a,
- Math.ceil(i.length / 4)
- ), f = l(
- i,
- a,
- Math.ceil(i.length / 2)
- ), g;
- if (!c && !f)
- return null;
- f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
- var d, _, p, v;
- t.length > r.length ? (d = g[0], _ = g[1], p = g[2], v = g[3]) : (p = g[0], v = g[1], d = g[2], _ = g[3]);
- var m = g[4];
- return [d, _, p, v, m];
- }, e.prototype.diff_cleanupSemantic = function(t) {
- for (var r = !1, i = [], a = 0, o = null, l = 0, c = 0, f = 0, g = 0, d = 0; l < t.length; )
- t[l][0] == h ? (i[a++] = l, c = g, f = d, g = 0, d = 0, o = t[l][1]) : (t[l][0] == u ? g += t[l][1].length : d += t[l][1].length, o && o.length <= Math.max(c, f) && o.length <= Math.max(
- g,
- d
- ) && (t.splice(
- i[a - 1],
- 0,
- new e.Diff(s, o)
- ), t[i[a - 1] + 1][0] = u, a--, a--, l = a > 0 ? i[a - 1] : -1, c = 0, f = 0, g = 0, d = 0, o = null, r = !0)), l++;
- for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
- if (t[l - 1][0] == s && t[l][0] == u) {
- var _ = t[l - 1][1], p = t[l][1], v = this.diff_commonOverlap_(_, p), m = this.diff_commonOverlap_(p, _);
- v >= m ? (v >= _.length / 2 || v >= p.length / 2) && (t.splice(l, 0, new e.Diff(
- h,
- p.substring(0, v)
- )), t[l - 1][1] = _.substring(0, _.length - v), t[l + 1][1] = p.substring(v), l++) : (m >= _.length / 2 || m >= p.length / 2) && (t.splice(l, 0, new e.Diff(
- h,
- _.substring(0, m)
- )), t[l - 1][0] = u, t[l - 1][1] = p.substring(0, p.length - m), t[l + 1][0] = s, t[l + 1][1] = _.substring(m), l++), l++;
- }
- l++;
- }
- }, e.prototype.diff_cleanupSemanticLossless = function(t) {
- function r(m, E) {
- if (!m || !E)
- return 6;
- var A = m.charAt(m.length - 1), S = E.charAt(0), D = A.match(e.nonAlphaNumericRegex_), N = S.match(e.nonAlphaNumericRegex_), R = D && A.match(e.whitespaceRegex_), C = N && S.match(e.whitespaceRegex_), I = R && A.match(e.linebreakRegex_), $ = C && S.match(e.linebreakRegex_), B = I && m.match(e.blanklineEndRegex_), H = $ && E.match(e.blanklineStartRegex_);
- return B || H ? 5 : I || $ ? 4 : D && !R && C ? 3 : R || C ? 2 : D || N ? 1 : 0;
- }
- for (var i = 1; i < t.length - 1; ) {
- if (t[i - 1][0] == h && t[i + 1][0] == h) {
- var a = t[i - 1][1], o = t[i][1], l = t[i + 1][1], c = this.diff_commonSuffix(a, o);
- if (c) {
- var f = o.substring(o.length - c);
- a = a.substring(0, a.length - c), o = f + o.substring(0, o.length - c), l = f + l;
- }
- for (var g = a, d = o, _ = l, p = r(a, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
- a += o.charAt(0), o = o.substring(1) + l.charAt(0), l = l.substring(1);
- var v = r(a, o) + r(o, l);
- v >= p && (p = v, g = a, d = o, _ = l);
- }
- t[i - 1][1] != g && (g ? t[i - 1][1] = g : (t.splice(i - 1, 1), i--), t[i][1] = d, _ ? t[i + 1][1] = _ : (t.splice(i + 1, 1), i--));
- }
- i++;
- }
- }, e.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, e.whitespaceRegex_ = /\s/, e.linebreakRegex_ = /[\r\n]/, e.blanklineEndRegex_ = /\n\r?\n$/, e.blanklineStartRegex_ = /^\r?\n\r?\n/, e.prototype.diff_cleanupEfficiency = function(t) {
- for (var r = !1, i = [], a = 0, o = null, l = 0, c = !1, f = !1, g = !1, d = !1; l < t.length; )
- t[l][0] == h ? (t[l][1].length < this.Diff_EditCost && (g || d) ? (i[a++] = l, c = g, f = d, o = t[l][1]) : (a = 0, o = null), g = d = !1) : (t[l][0] == s ? d = !0 : g = !0, o && (c && f && g && d || o.length < this.Diff_EditCost / 2 && c + f + g + d == 3) && (t.splice(
- i[a - 1],
- 0,
- new e.Diff(s, o)
- ), t[i[a - 1] + 1][0] = u, a--, o = null, c && f ? (g = d = !0, a = 0) : (a--, l = a > 0 ? i[a - 1] : -1, g = d = !1), r = !0)), l++;
- r && this.diff_cleanupMerge(t);
- }, e.prototype.diff_cleanupMerge = function(t) {
- t.push(new e.Diff(h, ""));
- for (var r = 0, i = 0, a = 0, o = "", l = "", c; r < t.length; )
- switch (t[r][0]) {
- case u:
- a++, l += t[r][1], r++;
- break;
- case s:
- i++, o += t[r][1], r++;
- break;
- case h:
- i + a > 1 ? (i !== 0 && a !== 0 && (c = this.diff_commonPrefix(l, o), c !== 0 && (r - i - a > 0 && t[r - i - a - 1][0] == h ? t[r - i - a - 1][1] += l.substring(0, c) : (t.splice(0, 0, new e.Diff(
- h,
- l.substring(0, c)
- )), r++), l = l.substring(c), o = o.substring(c)), c = this.diff_commonSuffix(l, o), c !== 0 && (t[r][1] = l.substring(l.length - c) + t[r][1], l = l.substring(0, l.length - c), o = o.substring(0, o.length - c))), r -= i + a, t.splice(r, i + a), o.length && (t.splice(
- r,
- 0,
- new e.Diff(s, o)
- ), r++), l.length && (t.splice(
- r,
- 0,
- new e.Diff(u, l)
- ), r++), r++) : r !== 0 && t[r - 1][0] == h ? (t[r - 1][1] += t[r][1], t.splice(r, 1)) : r++, a = 0, i = 0, o = "", l = "";
- break;
- }
- t[t.length - 1][1] === "" && t.pop();
- var f = !1;
- for (r = 1; r < t.length - 1; )
- t[r - 1][0] == h && t[r + 1][0] == h && (t[r][1].substring(t[r][1].length - t[r - 1][1].length) == t[r - 1][1] ? (t[r][1] = t[r - 1][1] + t[r][1].substring(0, t[r][1].length - t[r - 1][1].length), t[r + 1][1] = t[r - 1][1] + t[r + 1][1], t.splice(r - 1, 1), f = !0) : t[r][1].substring(0, t[r + 1][1].length) == t[r + 1][1] && (t[r - 1][1] += t[r + 1][1], t[r][1] = t[r][1].substring(t[r + 1][1].length) + t[r + 1][1], t.splice(r + 1, 1), f = !0)), r++;
- f && this.diff_cleanupMerge(t);
- }, e.prototype.diff_xIndex = function(t, r) {
- var i = 0, a = 0, o = 0, l = 0, c;
- for (c = 0; c < t.length && (t[c][0] !== u && (i += t[c][1].length), t[c][0] !== s && (a += t[c][1].length), !(i > r)); c++)
- o = i, l = a;
- return t.length != c && t[c][0] === s ? l : l + (r - o);
- }, e.prototype.diff_prettyHtml = function(t) {
- for (var r = [], i = /&/g, a = /</g, o = />/g, l = /\n/g, c = 0; c < t.length; c++) {
- var f = t[c][0], g = t[c][1], d = g.replace(i, "&").replace(a, "<").replace(o, ">").replace(l, "¶<br>");
- switch (f) {
- case u:
- r[c] = '<ins style="background:#e6ffe6;">' + d + "</ins>";
- break;
- case s:
- r[c] = '<del style="background:#ffe6e6;">' + d + "</del>";
- break;
- case h:
- r[c] = "<span>" + d + "</span>";
- break;
- }
- }
- return r.join("");
- }, e.prototype.diff_text1 = function(t) {
- for (var r = [], i = 0; i < t.length; i++)
- t[i][0] !== u && (r[i] = t[i][1]);
- return r.join("");
- }, e.prototype.diff_text2 = function(t) {
- for (var r = [], i = 0; i < t.length; i++)
- t[i][0] !== s && (r[i] = t[i][1]);
- return r.join("");
- }, e.prototype.diff_levenshtein = function(t) {
- for (var r = 0, i = 0, a = 0, o = 0; o < t.length; o++) {
- var l = t[o][0], c = t[o][1];
- switch (l) {
- case u:
- i += c.length;
- break;
- case s:
- a += c.length;
- break;
- case h:
- r += Math.max(i, a), i = 0, a = 0;
- break;
- }
- }
- return r += Math.max(i, a), r;
- }, e.prototype.diff_toDelta = function(t) {
- for (var r = [], i = 0; i < t.length; i++)
- switch (t[i][0]) {
- case u:
- r[i] = "+" + encodeURI(t[i][1]);
- break;
- case s:
- r[i] = "-" + t[i][1].length;
- break;
- case h:
- r[i] = "=" + t[i][1].length;
- break;
- }
- return r.join(" ").replace(/%20/g, " ");
- }, e.prototype.diff_fromDelta = function(t, r) {
- for (var i = [], a = 0, o = 0, l = r.split(/\t/g), c = 0; c < l.length; c++) {
- var f = l[c].substring(1);
- switch (l[c].charAt(0)) {
- case "+":
- try {
- i[a++] = new e.Diff(u, decodeURI(f));
- } catch (_) {
- throw new Error("Illegal escape in diff_fromDelta: " + f);
- }
- break;
- case "-":
- case "=":
- var g = parseInt(f, 10);
- if (isNaN(g) || g < 0)
- throw new Error("Invalid number in diff_fromDelta: " + f);
- var d = t.substring(o, o += g);
- l[c].charAt(0) == "=" ? i[a++] = new e.Diff(h, d) : i[a++] = new e.Diff(s, d);
- break;
- default:
- if (l[c])
- throw new Error("Invalid diff operation in diff_fromDelta: " + l[c]);
- }
- }
- if (o != t.length)
- throw new Error("Delta length (" + o + ") does not equal source text length (" + t.length + ").");
- return i;
- }, e.prototype.match_main = function(t, r, i) {
- if (t == null || r == null || i == null)
- throw new Error("Null input. (match_main)");
- return i = Math.max(0, Math.min(i, t.length)), t == r ? 0 : t.length ? t.substring(i, i + r.length) == r ? i : this.match_bitap_(t, r, i) : -1;
- }, e.prototype.match_bitap_ = function(t, r, i) {
- if (r.length > this.Match_MaxBits)
- throw new Error("Pattern too long for this browser.");
- var a = this.match_alphabet_(r), o = this;
- function l(C, I) {
- var $ = C / r.length, B = Math.abs(i - I);
- return o.Match_Distance ? $ + B / o.Match_Distance : B ? 1 : $;
- }
- var c = this.Match_Threshold, f = t.indexOf(r, i);
- f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
- var g = 1 << r.length - 1;
- f = -1;
- for (var d, _, p = r.length + t.length, v, m = 0; m < r.length; m++) {
- for (d = 0, _ = p; d < _; )
- l(m, i + _) <= c ? d = _ : p = _, _ = Math.floor((p - d) / 2 + d);
- p = _;
- var E = Math.max(1, i - _ + 1), A = Math.min(i + _, t.length) + r.length, S = Array(A + 2);
- S[A + 1] = (1 << m) - 1;
- for (var D = A; D >= E; D--) {
- var N = a[t.charAt(D - 1)];
- if (m === 0 ? S[D] = (S[D + 1] << 1 | 1) & N : S[D] = (S[D + 1] << 1 | 1) & N | ((v[D + 1] | v[D]) << 1 | 1) | v[D + 1], S[D] & g) {
- var R = l(m, D - 1);
- if (R <= c)
- if (c = R, f = D - 1, f > i)
- E = Math.max(1, 2 * i - f);
- else
- break;
- }
- }
- if (l(m + 1, i) > c)
- break;
- v = S;
- }
- return f;
- }, e.prototype.match_alphabet_ = function(t) {
- for (var r = {}, i = 0; i < t.length; i++)
- r[t.charAt(i)] = 0;
- for (var i = 0; i < t.length; i++)
- r[t.charAt(i)] |= 1 << t.length - i - 1;
- return r;
- }, e.prototype.patch_addContext_ = function(t, r) {
- if (r.length != 0) {
- if (t.start2 === null)
- throw Error("patch not initialized");
- for (var i = r.substring(t.start2, t.start2 + t.length1), a = 0; r.indexOf(i) != r.lastIndexOf(i) && i.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; )
- a += this.Patch_Margin, i = r.substring(
- t.start2 - a,
- t.start2 + t.length1 + a
- );
- a += this.Patch_Margin;
- var o = r.substring(t.start2 - a, t.start2);
- o && t.diffs.unshift(new e.Diff(h, o));
- var l = r.substring(
- t.start2 + t.length1,
- t.start2 + t.length1 + a
- );
- l && t.diffs.push(new e.Diff(h, l)), t.start1 -= o.length, t.start2 -= o.length, t.length1 += o.length + l.length, t.length2 += o.length + l.length;
- }
- }, e.prototype.patch_make = function(t, r, i) {
- var a, o;
- if (typeof t == "string" && typeof r == "string" && typeof i == "undefined")
- a = /** @type {string} */
- t, o = this.diff_main(
- a,
- /** @type {string} */
- r,
- !0
- ), o.length > 2 && (this.diff_cleanupSemantic(o), this.diff_cleanupEfficiency(o));
- else if (t && typeof t == "object" && typeof r == "undefined" && typeof i == "undefined")
- o = /** @type {!Array.<!diff_match_patch.Diff>} */
- t, a = this.diff_text1(o);
- else if (typeof t == "string" && r && typeof r == "object" && typeof i == "undefined")
- a = /** @type {string} */
- t, o = /** @type {!Array.<!diff_match_patch.Diff>} */
- r;
- else if (typeof t == "string" && typeof r == "string" && i && typeof i == "object")
- a = /** @type {string} */
- t, o = /** @type {!Array.<!diff_match_patch.Diff>} */
- i;
- else
- throw new Error("Unknown call format to patch_make.");
- if (o.length === 0)
- return [];
- for (var l = [], c = new e.patch_obj(), f = 0, g = 0, d = 0, _ = a, p = a, v = 0; v < o.length; v++) {
- var m = o[v][0], E = o[v][1];
- switch (!f && m !== h && (c.start1 = g, c.start2 = d), m) {
- case u:
- c.diffs[f++] = o[v], c.length2 += E.length, p = p.substring(0, d) + E + p.substring(d);
- break;
- case s:
- c.length1 += E.length, c.diffs[f++] = o[v], p = p.substring(0, d) + p.substring(d + E.length);
- break;
- case h:
- E.length <= 2 * this.Patch_Margin && f && o.length != v + 1 ? (c.diffs[f++] = o[v], c.length1 += E.length, c.length2 += E.length) : E.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, _), l.push(c), c = new e.patch_obj(), f = 0, _ = p, g = d);
- break;
- }
- m !== u && (g += E.length), m !== s && (d += E.length);
- }
- return f && (this.patch_addContext_(c, _), l.push(c)), l;
- }, e.prototype.patch_deepCopy = function(t) {
- for (var r = [], i = 0; i < t.length; i++) {
- var a = t[i], o = new e.patch_obj();
- o.diffs = [];
- for (var l = 0; l < a.diffs.length; l++)
- o.diffs[l] = new e.Diff(a.diffs[l][0], a.diffs[l][1]);
- o.start1 = a.start1, o.start2 = a.start2, o.length1 = a.length1, o.length2 = a.length2, r[i] = o;
- }
- return r;
- }, e.prototype.patch_apply = function(t, r) {
- if (t.length == 0)
- return [r, []];
- t = this.patch_deepCopy(t);
- var i = this.patch_addPadding(t);
- r = i + r + i, this.patch_splitMax(t);
- for (var a = 0, o = [], l = 0; l < t.length; l++) {
- var c = t[l].start2 + a, f = this.diff_text1(t[l].diffs), g, d = -1;
- if (f.length > this.Match_MaxBits ? (g = this.match_main(
- r,
- f.substring(0, this.Match_MaxBits),
- c
- ), g != -1 && (d = this.match_main(
- r,
- f.substring(f.length - this.Match_MaxBits),
- c + f.length - this.Match_MaxBits
- ), (d == -1 || g >= d) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
- o[l] = !1, a -= t[l].length2 - t[l].length1;
- else {
- o[l] = !0, a = g - c;
- var _;
- if (d == -1 ? _ = r.substring(g, g + f.length) : _ = r.substring(g, d + this.Match_MaxBits), f == _)
- r = r.substring(0, g) + this.diff_text2(t[l].diffs) + r.substring(g + f.length);
- else {
- var p = this.diff_main(f, _, !1);
- if (f.length > this.Match_MaxBits && this.diff_levenshtein(p) / f.length > this.Patch_DeleteThreshold)
- o[l] = !1;
- else {
- this.diff_cleanupSemanticLossless(p);
- for (var v = 0, m, E = 0; E < t[l].diffs.length; E++) {
- var A = t[l].diffs[E];
- A[0] !== h && (m = this.diff_xIndex(p, v)), A[0] === u ? r = r.substring(0, g + m) + A[1] + r.substring(g + m) : A[0] === s && (r = r.substring(0, g + m) + r.substring(g + this.diff_xIndex(
- p,
- v + A[1].length
- ))), A[0] !== s && (v += A[1].length);
- }
- }
- }
- }
- }
- return r = r.substring(i.length, r.length - i.length), [r, o];
- }, e.prototype.patch_addPadding = function(t) {
- for (var r = this.Patch_Margin, i = "", a = 1; a <= r; a++)
- i += String.fromCharCode(a);
- for (var a = 0; a < t.length; a++)
- t[a].start1 += r, t[a].start2 += r;
- var o = t[0], l = o.diffs;
- if (l.length == 0 || l[0][0] != h)
- l.unshift(new e.Diff(h, i)), o.start1 -= r, o.start2 -= r, o.length1 += r, o.length2 += r;
- else if (r > l[0][1].length) {
- var c = r - l[0][1].length;
- l[0][1] = i.substring(l[0][1].length) + l[0][1], o.start1 -= c, o.start2 -= c, o.length1 += c, o.length2 += c;
- }
- if (o = t[t.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] != h)
- l.push(new e.Diff(h, i)), o.length1 += r, o.length2 += r;
- else if (r > l[l.length - 1][1].length) {
- var c = r - l[l.length - 1][1].length;
- l[l.length - 1][1] += i.substring(0, c), o.length1 += c, o.length2 += c;
- }
- return i;
- }, e.prototype.patch_splitMax = function(t) {
- for (var r = this.Match_MaxBits, i = 0; i < t.length; i++)
- if (!(t[i].length1 <= r)) {
- var a = t[i];
- t.splice(i--, 1);
- for (var o = a.start1, l = a.start2, c = ""; a.diffs.length !== 0; ) {
- var f = new e.patch_obj(), g = !0;
- for (f.start1 = o - c.length, f.start2 = l - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new e.Diff(h, c))); a.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
- var d = a.diffs[0][0], _ = a.diffs[0][1];
- d === u ? (f.length2 += _.length, l += _.length, f.diffs.push(a.diffs.shift()), g = !1) : d === s && f.diffs.length == 1 && f.diffs[0][0] == h && _.length > 2 * r ? (f.length1 += _.length, o += _.length, g = !1, f.diffs.push(new e.Diff(d, _)), a.diffs.shift()) : (_ = _.substring(
- 0,
- r - f.length1 - this.Patch_Margin
- ), f.length1 += _.length, o += _.length, d === h ? (f.length2 += _.length, l += _.length) : g = !1, f.diffs.push(new e.Diff(d, _)), _ == a.diffs[0][1] ? a.diffs.shift() : a.diffs[0][1] = a.diffs[0][1].substring(_.length));
- }
- c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
- var p = this.diff_text1(a.diffs).substring(0, this.Patch_Margin);
- p !== "" && (f.length1 += p.length, f.length2 += p.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === h ? f.diffs[f.diffs.length - 1][1] += p : f.diffs.push(new e.Diff(h, p))), g || t.splice(++i, 0, f);
- }
- }
- }, e.prototype.patch_toText = function(t) {
- for (var r = [], i = 0; i < t.length; i++)
- r[i] = t[i];
- return r.join("");
- }, e.prototype.patch_fromText = function(t) {
- var r = [];
- if (!t)
- return r;
- for (var i = t.split(`
- `), a = 0, o = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; a < i.length; ) {
- var l = i[a].match(o);
- if (!l)
- throw new Error("Invalid patch string: " + i[a]);
- var c = new e.patch_obj();
- for (r.push(c), c.start1 = parseInt(l[1], 10), l[2] === "" ? (c.start1--, c.length1 = 1) : l[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(l[2], 10)), c.start2 = parseInt(l[3], 10), l[4] === "" ? (c.start2--, c.length2 = 1) : l[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(l[4], 10)), a++; a < i.length; ) {
- var f = i[a].charAt(0);
- try {
- var g = decodeURI(i[a].substring(1));
- } catch (d) {
- throw new Error("Illegal escape in patch_fromText: " + g);
- }
- if (f == "-")
- c.diffs.push(new e.Diff(s, g));
- else if (f == "+")
- c.diffs.push(new e.Diff(u, g));
- else if (f == " ")
- c.diffs.push(new e.Diff(h, g));
- else {
- if (f == "@")
- break;
- if (f !== "")
- throw new Error('Invalid patch mode "' + f + '" in: ' + g);
- }
- a++;
- }
- }
- return r;
- }, e.patch_obj = function() {
- this.diffs = [], this.start1 = null, this.start2 = null, this.length1 = 0, this.length2 = 0;
- }, e.patch_obj.prototype.toString = function() {
- var t, r;
- this.length1 === 0 ? t = this.start1 + ",0" : this.length1 == 1 ? t = this.start1 + 1 : t = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? r = this.start2 + ",0" : this.length2 == 1 ? r = this.start2 + 1 : r = this.start2 + 1 + "," + this.length2;
- for (var i = ["@@ -" + t + " +" + r + ` @@
- `], a, o = 0; o < this.diffs.length; o++) {
- switch (this.diffs[o][0]) {
- case u:
- a = "+";
- break;
- case s:
- a = "-";
- break;
- case h:
- a = " ";
- break;
- }
- i[o + 1] = a + encodeURI(this.diffs[o][1]) + `
- `;
- }
- return i.join("").replace(/%20/g, " ");
- }, n.exports = e, n.exports.diff_match_patch = e, n.exports.DIFF_DELETE = s, n.exports.DIFF_INSERT = u, n.exports.DIFF_EQUAL = h;
- })(sn);
- var Le = sn.exports;
- function an(n) {
- return n instanceof Map ? n.clear = n.delete = n.set = function() {
- throw new Error("map is read-only");
- } : n instanceof Set && (n.add = n.clear = n.delete = function() {
- throw new Error("set is read-only");
- }), Object.freeze(n), Object.getOwnPropertyNames(n).forEach((e) => {
- const s = n[e], u = typeof s;
- (u === "object" || u === "function") && !Object.isFrozen(s) && an(s);
- }), n;
- }
- class Ze {
- /**
- * @param {CompiledMode} mode
- */
- constructor(e) {
- e.data === void 0 && (e.data = {}), this.data = e.data, this.isMatchIgnored = !1;
- }
- ignoreMatch() {
- this.isMatchIgnored = !0;
- }
- }
- function on(n) {
- return n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
- }
- function re(n, ...e) {
- const s = /* @__PURE__ */ Object.create(null);
- for (const u in n)
- s[u] = n[u];
- return e.forEach(function(u) {
- for (const h in u)
- s[h] = u[h];
- }), /** @type {T} */
- s;
- }
- const Gn = "</span>", Ye = (n) => !!n.scope, Kn = (n, { prefix: e }) => {
- if (n.startsWith("language:"))
- return n.replace("language:", "language-");
- if (n.includes(".")) {
- const s = n.split(".");
- return [
- `${e}${s.shift()}`,
- ...s.map((u, h) => `${u}${"_".repeat(h + 1)}`)
- ].join(" ");
- }
- return `${e}${n}`;
- };
- class Wn {
- /**
- * Creates a new HTMLRenderer
- *
- * @param {Tree} parseTree - the parse tree (must support `walk` API)
- * @param {{classPrefix: string}} options
- */
- constructor(e, s) {
- this.buffer = "", this.classPrefix = s.classPrefix, e.walk(this);
- }
- /**
- * Adds texts to the output stream
- *
- * @param {string} text */
- addText(e) {
- this.buffer += on(e);
- }
- /**
- * Adds a node open to the output stream (if needed)
- *
- * @param {Node} node */
- openNode(e) {
- if (!Ye(e))
- return;
- const s = Kn(
- e.scope,
- { prefix: this.classPrefix }
- );
- this.span(s);
- }
- /**
- * Adds a node close to the output stream (if needed)
- *
- * @param {Node} node */
- closeNode(e) {
- Ye(e) && (this.buffer += Gn);
- }
- /**
- * returns the accumulated buffer
- */
- value() {
- return this.buffer;
- }
- // helpers
- /**
- * Builds a span element
- *
- * @param {string} className */
- span(e) {
- this.buffer += `<span class="${e}">`;
- }
- }
- const Xe = (n = {}) => {
- const e = { children: [] };
- return Object.assign(e, n), e;
- };
- class $e {
- constructor() {
- this.rootNode = Xe(), this.stack = [this.rootNode];
- }
- get top() {
- return this.stack[this.stack.length - 1];
- }
- get root() {
- return this.rootNode;
- }
- /** @param {Node} node */
- add(e) {
- this.top.children.push(e);
- }
- /** @param {string} scope */
- openNode(e) {
- const s = Xe({ scope: e });
- this.add(s), this.stack.push(s);
- }
- closeNode() {
- if (this.stack.length > 1)
- return this.stack.pop();
- }
- closeAllNodes() {
- for (; this.closeNode(); )
- ;
- }
- toJSON() {
- return JSON.stringify(this.rootNode, null, 4);
- }
- /**
- * @typedef { import("./html_renderer").Renderer } Renderer
- * @param {Renderer} builder
- */
- walk(e) {
- return this.constructor._walk(e, this.rootNode);
- }
- /**
- * @param {Renderer} builder
- * @param {Node} node
- */
- static _walk(e, s) {
- return typeof s == "string" ? e.addText(s) : s.children && (e.openNode(s), s.children.forEach((u) => this._walk(e, u)), e.closeNode(s)), e;
- }
- /**
- * @param {Node} node
- */
- static _collapse(e) {
- typeof e != "string" && e.children && (e.children.every((s) => typeof s == "string") ? e.children = [e.children.join("")] : e.children.forEach((s) => {
- $e._collapse(s);
- }));
- }
- }
- class Qn extends $e {
- /**
- * @param {*} options
- */
- constructor(e) {
- super(), this.options = e;
- }
- /**
- * @param {string} text
- */
- addText(e) {
- e !== "" && this.add(e);
- }
- /** @param {string} scope */
- startScope(e) {
- this.openNode(e);
- }
- endScope() {
- this.closeNode();
- }
- /**
- * @param {Emitter & {root: DataNode}} emitter
- * @param {string} name
- */
- __addSublanguage(e, s) {
- const u = e.root;
- s && (u.scope = `language:${s}`), this.add(u);
- }
- toHTML() {
- return new Wn(this, this.options).value();
- }
- finalize() {
- return this.closeAllNodes(), !0;
- }
- }
- function _e(n) {
- return n ? typeof n == "string" ? n : n.source : null;
- }
- function ln(n) {
- return ae("(?=", n, ")");
- }
- function Vn(n) {
- return ae("(?:", n, ")*");
- }
- function Zn(n) {
- return ae("(?:", n, ")?");
- }
- function ae(...n) {
- return n.map((s) => _e(s)).join("");
- }
- function Yn(n) {
- const e = n[n.length - 1];
- return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
- }
- function Ue(...n) {
- return "(" + (Yn(n).capture ? "" : "?:") + n.map((u) => _e(u)).join("|") + ")";
- }
- function cn(n) {
- return new RegExp(n.toString() + "|").exec("").length - 1;
- }
- function Xn(n, e) {
- const s = n && n.exec(e);
- return s && s.index === 0;
- }
- const jn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
- function Pe(n, { joinWith: e }) {
- let s = 0;
- return n.map((u) => {
- s += 1;
- const h = s;
- let t = _e(u), r = "";
- for (; t.length > 0; ) {
- const i = jn.exec(t);
- if (!i) {
- r += t;
- break;
- }
- r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + h) : (r += i[0], i[0] === "(" && s++);
- }
- return r;
- }).map((u) => `(${u})`).join(e);
- }
- const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\\d+)?", gn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", hn = "\\b(0b[01]+)", Jn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", et = (n = {}) => {
- const e = /^#![ ]*\//;
- return n.binary && (n.begin = ae(
- e,
- /.*\b/,
- n.binary,
- /\b.*/
- )), re({
- scope: "meta",
- begin: e,
- end: /$/,
- relevance: 0,
- /** @type {ModeCallback} */
- "on:begin": (s, u) => {
- s.index !== 0 && u.ignoreMatch();
- }
- }, n);
- }, pe = {
- begin: "\\\\[\\s\\S]",
- relevance: 0
- }, nt = {
- scope: "string",
- begin: "'",
- end: "'",
- illegal: "\\n",
- contains: [pe]
- }, tt = {
- scope: "string",
- begin: '"',
- end: '"',
- illegal: "\\n",
- contains: [pe]
- }, rt = {
- begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
- }, De = function(n, e, s = {}) {
- const u = re(
- {
- scope: "comment",
- begin: n,
- end: e,
- contains: []
- },
- s
- );
- u.contains.push({
- scope: "doctag",
- // hack to avoid the space from being included. the space is necessary to
- // match here to prevent the plain text rule below from gobbling up doctags
- begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
- end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
- excludeBegin: !0,
- relevance: 0
- });
- const h = Ue(
- // list of common 1 and 2 letter words in English
- "I",
- "a",
- "is",
- "so",
- "us",
- "to",
- "at",
- "if",
- "in",
- "it",
- "on",
- // note: this is not an exhaustive list of contractions, just popular ones
- /[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
- // contractions - can't we'd they're let's, etc
- /[A-Za-z]+[-][a-z]+/,
- // `no-way`, etc.
- /[A-Za-z][a-z]{2,}/
- // allow capitalized words at beginning of sentences
- );
- return u.contains.push(
- {
- // TODO: how to include ", (, ) without breaking grammars that use these for
- // comment delimiters?
- // begin: /[ ]+([()"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()":]?([.][ ]|[ ]|\))){3}/
- // ---
- // this tries to find sequences of 3 english words in a row (without any
- // "programming" type syntax) this gives us a strong signal that we've
- // TRULY found a comment - vs perhaps scanning with the wrong language.
- // It's possible to find something that LOOKS like the start of the
- // comment - but then if there is no readable text - good chance it is a
- // false match and not a comment.
- //
- // for a visual example please see:
- // https://github.com/highlightjs/highlight.js/issues/2827
- begin: ae(
- /[ ]+/,
- // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
- "(",
- h,
- /[.]?[:]?([.][ ]|[ ])/,
- "){3}"
- )
- // look for 3 words in a row
- }
- ), u;
- }, it = De("//", "$"), st = De("/\\*", "\\*/"), at = De("#", "$"), ot = {
- scope: "number",
- begin: fn,
- relevance: 0
- }, lt = {
- scope: "number",
- begin: gn,
- relevance: 0
- }, ct = {
- scope: "number",
- begin: hn,
- relevance: 0
- }, ut = {
- scope: "regexp",
- begin: /\/(?=[^/\n]*\/)/,
- end: /\/[gimuy]*/,
- contains: [
- pe,
- {
- begin: /\[/,
- end: /\]/,
- relevance: 0,
- contains: [pe]
- }
- ]
- }, ft = {
- scope: "title",
- begin: un,
- relevance: 0
- }, gt = {
- scope: "title",
- begin: xe,
- relevance: 0
- }, ht = {
- // excludes method names from keyword processing
- begin: "\\.\\s*" + xe,
- relevance: 0
- }, dt = function(n) {
- return Object.assign(
- n,
- {
- /** @type {ModeCallback} */
- "on:begin": (e, s) => {
- s.data._beginMatch = e[1];
- },
- /** @type {ModeCallback} */
- "on:end": (e, s) => {
- s.data._beginMatch !== e[1] && s.ignoreMatch();
- }
- }
- );
- };
- var we = /* @__PURE__ */ Object.freeze({
- __proto__: null,
- APOS_STRING_MODE: nt,
- BACKSLASH_ESCAPE: pe,
- BINARY_NUMBER_MODE: ct,
- BINARY_NUMBER_RE: hn,
- COMMENT: De,
- C_BLOCK_COMMENT_MODE: st,
- C_LINE_COMMENT_MODE: it,
- C_NUMBER_MODE: lt,
- C_NUMBER_RE: gn,
- END_SAME_AS_BEGIN: dt,
- HASH_COMMENT_MODE: at,
- IDENT_RE: un,
- MATCH_NOTHING_RE: qn,
- METHOD_GUARD: ht,
- NUMBER_MODE: ot,
- NUMBER_RE: fn,
- PHRASAL_WORDS_MODE: rt,
- QUOTE_STRING_MODE: tt,
- REGEXP_MODE: ut,
- RE_STARTERS_RE: Jn,
- SHEBANG: et,
- TITLE_MODE: ft,
- UNDERSCORE_IDENT_RE: xe,
- UNDERSCORE_TITLE_MODE: gt
- });
- function _t(n, e) {
- n.input[n.index - 1] === "." && e.ignoreMatch();
- }
- function pt(n, e) {
- n.className !== void 0 && (n.scope = n.className, delete n.className);
- }
- function bt(n, e) {
- e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = _t, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
- }
- function vt(n, e) {
- Array.isArray(n.illegal) && (n.illegal = Ue(...n.illegal));
- }
- function mt(n, e) {
- if (n.match) {
- if (n.begin || n.end)
- throw new Error("begin & end are not supported with match");
- n.begin = n.match, delete n.match;
- }
- }
- function Et(n, e) {
- n.relevance === void 0 && (n.relevance = 1);
- }
- const wt = (n, e) => {
- if (!n.beforeMatch)
- return;
- if (n.starts)
- throw new Error("beforeMatch cannot be used with starts");
- const s = Object.assign({}, n);
- Object.keys(n).forEach((u) => {
- delete n[u];
- }), n.keywords = s.keywords, n.begin = ae(s.beforeMatch, ln(s.begin)), n.starts = {
- relevance: 0,
- contains: [
- Object.assign(s, { endsParent: !0 })
- ]
- }, n.relevance = 0, delete s.beforeMatch;
- }, yt = [
- "of",
- "and",
- "for",
- "in",
- "not",
- "or",
- "if",
- "then",
- "parent",
- // common variable name
- "list",
- // common variable name
- "value"
- // common variable name
- ], At = "keyword";
- function dn(n, e, s = At) {
- const u = /* @__PURE__ */ Object.create(null);
- return typeof n == "string" ? h(s, n.split(" ")) : Array.isArray(n) ? h(s, n) : Object.keys(n).forEach(function(t) {
- Object.assign(
- u,
- dn(n[t], e, t)
- );
- }), u;
- function h(t, r) {
- e && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
- const a = i.split("|");
- u[a[0]] = [t, Nt(a[0], a[1])];
- });
- }
- }
- function Nt(n, e) {
- return e ? Number(e) : Mt(n) ? 0 : 1;
- }
- function Mt(n) {
- return yt.includes(n.toLowerCase());
- }
- const je = {}, se = (n) => {
- console.error(n);
- }, qe = (n, ...e) => {
- console.log(`WARN: ${n}`, ...e);
- }, ce = (n, e) => {
- je[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), je[`${n}/${e}`] = !0);
- }, Me = new Error();
- function _n(n, e, { key: s }) {
- let u = 0;
- const h = n[s], t = {}, r = {};
- for (let i = 1; i <= e.length; i++)
- r[i + u] = h[i], t[i + u] = !0, u += cn(e[i - 1]);
- n[s] = r, n[s]._emit = t, n[s]._multi = !0;
- }
- function Tt(n) {
- if (Array.isArray(n.begin)) {
- if (n.skip || n.excludeBegin || n.returnBegin)
- throw se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Me;
- if (typeof n.beginScope != "object" || n.beginScope === null)
- throw se("beginScope must be object"), Me;
- _n(n, n.begin, { key: "beginScope" }), n.begin = Pe(n.begin, { joinWith: "" });
- }
- }
- function Dt(n) {
- if (Array.isArray(n.end)) {
- if (n.skip || n.excludeEnd || n.returnEnd)
- throw se("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Me;
- if (typeof n.endScope != "object" || n.endScope === null)
- throw se("endScope must be object"), Me;
- _n(n, n.end, { key: "endScope" }), n.end = Pe(n.end, { joinWith: "" });
- }
- }
- function St(n) {
- n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
- }
- function Ct(n) {
- St(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), Tt(n), Dt(n);
- }
- function Rt(n) {
- function e(r, i) {
- return new RegExp(
- _e(r),
- "m" + (n.case_insensitive ? "i" : "") + (n.unicodeRegex ? "u" : "") + (i ? "g" : "")
- );
- }
- class s {
- constructor() {
- this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
- }
- // @ts-ignore
- addRule(i, a) {
- a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, i]), this.matchAt += cn(i) + 1;
- }
- compile() {
- this.regexes.length === 0 && (this.exec = () => null);
- const i = this.regexes.map((a) => a[1]);
- this.matcherRe = e(Pe(i, { joinWith: "|" }), !0), this.lastIndex = 0;
- }
- /** @param {string} s */
- exec(i) {
- this.matcherRe.lastIndex = this.lastIndex;
- const a = this.matcherRe.exec(i);
- if (!a)
- return null;
- const o = a.findIndex((c, f) => f > 0 && c !== void 0), l = this.matchIndexes[o];
- return a.splice(0, o), Object.assign(a, l);
- }
- }
- class u {
- constructor() {
- this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
- }
- // @ts-ignore
- getMatcher(i) {
- if (this.multiRegexes[i])
- return this.multiRegexes[i];
- const a = new s();
- return this.rules.slice(i).forEach(([o, l]) => a.addRule(o, l)), a.compile(), this.multiRegexes[i] = a, a;
- }
- resumingScanAtSamePosition() {
- return this.regexIndex !== 0;
- }
- considerAll() {
- this.regexIndex = 0;
- }
- // @ts-ignore
- addRule(i, a) {
- this.rules.push([i, a]), a.type === "begin" && this.count++;
- }
- /** @param {string} s */
- exec(i) {
- const a = this.getMatcher(this.regexIndex);
- a.lastIndex = this.lastIndex;
- let o = a.exec(i);
- if (this.resumingScanAtSamePosition() && !(o && o.index === this.lastIndex)) {
- const l = this.getMatcher(0);
- l.lastIndex = this.lastIndex + 1, o = l.exec(i);
- }
- return o && (this.regexIndex += o.position + 1, this.regexIndex === this.count && this.considerAll()), o;
- }
- }
- function h(r) {
- const i = new u();
- return r.contains.forEach((a) => i.addRule(a.begin, { rule: a, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
- }
- function t(r, i) {
- const a = (
- /** @type CompiledMode */
- r
- );
- if (r.isCompiled)
- return a;
- [
- pt,
- // do this early so compiler extensions generally don't have to worry about
- // the distinction between match/begin
- mt,
- Ct,
- wt
- ].forEach((l) => l(r, i)), n.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
- bt,
- // do this later so compiler extensions that come earlier have access to the
- // raw array if they wanted to perhaps manipulate it, etc.
- vt,
- // default to 1 relevance if not specified
- Et
- ].forEach((l) => l(r, i)), r.isCompiled = !0;
- let o = null;
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = dn(r.keywords, n.case_insensitive)), a.keywordPatternRe = e(o, !0), i && (r.begin || (r.begin = /\B|\b/), a.beginRe = e(a.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (a.endRe = e(a.end)), a.terminatorEnd = _e(a.end) || "", r.endsWithParent && i.terminatorEnd && (a.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (a.illegalRe = e(
- /** @type {RegExp | string} */
- r.illegal
- )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
- return Lt(l === "self" ? r : l);
- })), r.contains.forEach(function(l) {
- t(
- /** @type Mode */
- l,
- a
- );
- }), r.starts && t(r.starts, i), a.matcher = h(a), a;
- }
- if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
- throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
- return n.classNameAliases = re(n.classNameAliases || {}), t(
- /** @type Mode */
- n
- );
- }
- function pn(n) {
- return n ? n.endsWithParent || pn(n.starts) : !1;
- }
- function Lt(n) {
- return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
- return re(n, { variants: null }, e);
- })), n.cachedVariants ? n.cachedVariants : pn(n) ? re(n, { starts: n.starts ? re(n.starts) : null }) : Object.isFrozen(n) ? re(n) : n;
- }
- var Ot = "11.9.0";
- class It extends Error {
- constructor(e, s) {
- super(e), this.name = "HTMLInjectionError", this.html = s;
- }
- }
- const Oe = on, Je = re, en = Symbol("nomatch"), kt = 7, bn = function(n) {
- const e = /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null), u = [];
- let h = !0;
- const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
- let i = {
- ignoreUnescapedHTML: !1,
- throwUnescapedHTML: !1,
- noHighlightRe: /^(no-?highlight)$/i,
- languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
- classPrefix: "hljs-",
- cssSelector: "pre code",
- languages: null,
- // beta configuration options, subject to change, welcome to discuss
- // https://github.com/highlightjs/highlight.js/issues/1086
- __emitter: Qn
- };
- function a(b) {
- return i.noHighlightRe.test(b);
- }
- function o(b) {
- let y = b.className + " ";
- y += b.parentNode ? b.parentNode.className : "";
- const L = i.languageDetectRe.exec(y);
- if (L) {
- const U = C(L[1]);
- return U || (qe(t.replace("{}", L[1])), qe("Falling back to no-highlight mode for this block.", b)), U ? L[1] : "no-highlight";
- }
- return y.split(/\s+/).find((U) => a(U) || C(U));
- }
- function l(b, y, L) {
- let U = "", F = "";
- typeof y == "object" ? (U = b, L = y.ignoreIllegals, F = y.language) : (ce("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ce("10.7.0", `Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L === void 0 && (L = !0);
- const W = {
- code: U,
- language: F
- };
- te("before:highlight", W);
- const Y = W.result ? W.result : c(W.language, W.code, L);
- return Y.code = W.code, te("after:highlight", Y), Y;
- }
- function c(b, y, L, U) {
- const F = /* @__PURE__ */ Object.create(null);
- function W(w, M) {
- return w.keywords[M];
- }
- function Y() {
- if (!O.keywords) {
- z.addText(x);
- return;
- }
- let w = 0;
- O.keywordPatternRe.lastIndex = 0;
- let M = O.keywordPatternRe.exec(x), k = "";
- for (; M; ) {
- k += x.substring(w, M.index);
- const P = j.case_insensitive ? M[0].toLowerCase() : M[0], G = W(O, P);
- if (G) {
- const [q, Cn] = G;
- if (z.addText(k), k = "", F[P] = (F[P] || 0) + 1, F[P] <= kt && (Ee += Cn), q.startsWith("_"))
- k += M[0];
- else {
- const Rn = j.classNameAliases[q] || q;
- X(M[0], Rn);
- }
- } else
- k += M[0];
- w = O.keywordPatternRe.lastIndex, M = O.keywordPatternRe.exec(x);
- }
- k += x.substring(w), z.addText(k);
- }
- function ve() {
- if (x === "")
- return;
- let w = null;
- if (typeof O.subLanguage == "string") {
- if (!e[O.subLanguage]) {
- z.addText(x);
- return;
- }
- w = c(O.subLanguage, x, !0, Ke[O.subLanguage]), Ke[O.subLanguage] = /** @type {CompiledMode} */
- w._top;
- } else
- w = g(x, O.subLanguage.length ? O.subLanguage : null);
- O.relevance > 0 && (Ee += w.relevance), z.__addSublanguage(w._emitter, w.language);
- }
- function Q() {
- O.subLanguage != null ? ve() : Y(), x = "";
- }
- function X(w, M) {
- w !== "" && (z.startScope(M), z.addText(w), z.endScope());
- }
- function Fe(w, M) {
- let k = 1;
- const P = M.length - 1;
- for (; k <= P; ) {
- if (!w._emit[k]) {
- k++;
- continue;
- }
- const G = j.classNameAliases[w[k]] || w[k], q = M[k];
- G ? X(q, G) : (x = q, Y(), x = ""), k++;
- }
- }
- function He(w, M) {
- return w.scope && typeof w.scope == "string" && z.openNode(j.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (X(x, j.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), x = "") : w.beginScope._multi && (Fe(w.beginScope, M), x = "")), O = Object.create(w, { parent: { value: O } }), O;
- }
- function ze(w, M, k) {
- let P = Xn(w.endRe, k);
- if (P) {
- if (w["on:end"]) {
- const G = new Ze(w);
- w["on:end"](M, G), G.isMatchIgnored && (P = !1);
- }
- if (P) {
- for (; w.endsParent && w.parent; )
- w = w.parent;
- return w;
- }
- }
- if (w.endsWithParent)
- return ze(w.parent, M, k);
- }
- function Nn(w) {
- return O.matcher.regexIndex === 0 ? (x += w[0], 1) : (Re = !0, 0);
- }
- function Mn(w) {
- const M = w[0], k = w.rule, P = new Ze(k), G = [k.__beforeBegin, k["on:begin"]];
- for (const q of G)
- if (q && (q(w, P), P.isMatchIgnored))
- return Nn(M);
- return k.skip ? x += M : (k.excludeBegin && (x += M), Q(), !k.returnBegin && !k.excludeBegin && (x = M)), He(k, w), k.returnBegin ? 0 : M.length;
- }
- function Tn(w) {
- const M = w[0], k = y.substring(w.index), P = ze(O, w, k);
- if (!P)
- return en;
- const G = O;
- O.endScope && O.endScope._wrap ? (Q(), X(M, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (Q(), Fe(O.endScope, w)) : G.skip ? x += M : (G.returnEnd || G.excludeEnd || (x += M), Q(), G.excludeEnd && (x = M));
- do
- O.scope && z.closeNode(), !O.skip && !O.subLanguage && (Ee += O.relevance), O = O.parent;
- while (O !== P.parent);
- return P.starts && He(P.starts, w), G.returnEnd ? 0 : M.length;
- }
- function Dn() {
- const w = [];
- for (let M = O; M !== j; M = M.parent)
- M.scope && w.unshift(M.scope);
- w.forEach((M) => z.openNode(M));
- }
- let me = {};
- function Ge(w, M) {
- const k = M && M[0];
- if (x += w, k == null)
- return Q(), 0;
- if (me.type === "begin" && M.type === "end" && me.index === M.index && k === "") {
- if (x += y.slice(M.index, M.index + 1), !h) {
- const P = new Error(`0 width match regex (${b})`);
- throw P.languageName = b, P.badRule = me.rule, P;
- }
- return 1;
- }
- if (me = M, M.type === "begin")
- return Mn(M);
- if (M.type === "illegal" && !L) {
- const P = new Error('Illegal lexeme "' + k + '" for mode "' + (O.scope || "<unnamed>") + '"');
- throw P.mode = O, P;
- } else if (M.type === "end") {
- const P = Tn(M);
- if (P !== en)
- return P;
- }
- if (M.type === "illegal" && k === "")
- return 1;
- if (Ce > 1e5 && Ce > M.index * 3)
- throw new Error("potential infinite loop, way more iterations than matches");
- return x += k, k.length;
- }
- const j = C(b);
- if (!j)
- throw se(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
- const Sn = Rt(j);
- let Se = "", O = U || Sn;
- const Ke = {}, z = new i.__emitter(i);
- Dn();
- let x = "", Ee = 0, ie = 0, Ce = 0, Re = !1;
- try {
- if (j.__emitTokens)
- j.__emitTokens(y, z);
- else {
- for (O.matcher.considerAll(); ; ) {
- Ce++, Re ? Re = !1 : O.matcher.considerAll(), O.matcher.lastIndex = ie;
- const w = O.matcher.exec(y);
- if (!w)
- break;
- const M = y.substring(ie, w.index), k = Ge(M, w);
- ie = w.index + k;
- }
- Ge(y.substring(ie));
- }
- return z.finalize(), Se = z.toHTML(), {
- language: b,
- value: Se,
- relevance: Ee,
- illegal: !1,
- _emitter: z,
- _top: O
- };
- } catch (w) {
- if (w.message && w.message.includes("Illegal"))
- return {
- language: b,
- value: Oe(y),
- illegal: !0,
- relevance: 0,
- _illegalBy: {
- message: w.message,
- index: ie,
- context: y.slice(ie - 100, ie + 100),
- mode: w.mode,
- resultSoFar: Se
- },
- _emitter: z
- };
- if (h)
- return {
- language: b,
- value: Oe(y),
- illegal: !1,
- relevance: 0,
- errorRaised: w,
- _emitter: z,
- _top: O
- };
- throw w;
- }
- }
- function f(b) {
- const y = {
- value: Oe(b),
- illegal: !1,
- relevance: 0,
- _top: r,
- _emitter: new i.__emitter(i)
- };
- return y._emitter.addText(b), y;
- }
- function g(b, y) {
- y = y || i.languages || Object.keys(e);
- const L = f(b), U = y.filter(C).filter($).map(
- (Q) => c(Q, b, !1)
- );
- U.unshift(L);
- const F = U.sort((Q, X) => {
- if (Q.relevance !== X.relevance)
- return X.relevance - Q.relevance;
- if (Q.language && X.language) {
- if (C(Q.language).supersetOf === X.language)
- return 1;
- if (C(X.language).supersetOf === Q.language)
- return -1;
- }
- return 0;
- }), [W, Y] = F, ve = W;
- return ve.secondBest = Y, ve;
- }
- function d(b, y, L) {
- const U = y && s[y] || L;
- b.classList.add("hljs"), b.classList.add(`language-${U}`);
- }
- function _(b) {
- let y = null;
- const L = o(b);
- if (a(L))
- return;
- if (te(
- "before:highlightElement",
- { el: b, language: L }
- ), b.dataset.highlighted) {
- console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", b);
- return;
- }
- if (b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
- throw new It(
- "One of your code blocks includes unescaped HTML.",
- b.innerHTML
- );
- y = b;
- const U = y.textContent, F = L ? l(U, { language: L, ignoreIllegals: !0 }) : g(U);
- b.innerHTML = F.value, b.dataset.highlighted = "yes", d(b, L, F.language), b.result = {
- language: F.language,
- // TODO: remove with version 11.0
- re: F.relevance,
- relevance: F.relevance
- }, F.secondBest && (b.secondBest = {
- language: F.secondBest.language,
- relevance: F.secondBest.relevance
- }), te("after:highlightElement", { el: b, result: F, text: U });
- }
- function p(b) {
- i = Je(i, b);
- }
- const v = () => {
- A(), ce("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
- };
- function m() {
- A(), ce("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
- }
- let E = !1;
- function A() {
- if (document.readyState === "loading") {
- E = !0;
- return;
- }
- document.querySelectorAll(i.cssSelector).forEach(_);
- }
- function S() {
- E && A();
- }
- typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", S, !1);
- function D(b, y) {
- let L = null;
- try {
- L = y(n);
- } catch (U) {
- if (se("Language definition for '{}' could not be registered.".replace("{}", b)), h)
- se(U);
- else
- throw U;
- L = r;
- }
- L.name || (L.name = b), e[b] = L, L.rawDefinition = y.bind(null, n), L.aliases && I(L.aliases, { languageName: b });
- }
- function N(b) {
- delete e[b];
- for (const y of Object.keys(s))
- s[y] === b && delete s[y];
- }
- function R() {
- return Object.keys(e);
- }
- function C(b) {
- return b = (b || "").toLowerCase(), e[b] || e[s[b]];
- }
- function I(b, { languageName: y }) {
- typeof b == "string" && (b = [b]), b.forEach((L) => {
- s[L.toLowerCase()] = y;
- });
- }
- function $(b) {
- const y = C(b);
- return y && !y.disableAutodetect;
- }
- function B(b) {
- b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (y) => {
- b["before:highlightBlock"](
- Object.assign({ block: y.el }, y)
- );
- }), b["after:highlightBlock"] && !b["after:highlightElement"] && (b["after:highlightElement"] = (y) => {
- b["after:highlightBlock"](
- Object.assign({ block: y.el }, y)
- );
- });
- }
- function H(b) {
- B(b), u.push(b);
- }
- function K(b) {
- const y = u.indexOf(b);
- y !== -1 && u.splice(y, 1);
- }
- function te(b, y) {
- const L = b;
- u.forEach(function(U) {
- U[L] && U[L](y);
- });
- }
- function le(b) {
- return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), _(b);
- }
- Object.assign(n, {
- highlight: l,
- highlightAuto: g,
- highlightAll: A,
- highlightElement: _,
- // TODO: Remove with v12 API
- highlightBlock: le,
- configure: p,
- initHighlighting: v,
- initHighlightingOnLoad: m,
- registerLanguage: D,
- unregisterLanguage: N,
- listLanguages: R,
- getLanguage: C,
- registerAliases: I,
- autoDetection: $,
- inherit: Je,
- addPlugin: H,
- removePlugin: K
- }), n.debugMode = function() {
- h = !1;
- }, n.safeMode = function() {
- h = !0;
- }, n.versionString = Ot, n.regex = {
- concat: ae,
- lookahead: ln,
- either: Ue,
- optional: Zn,
- anyNumberOfTimes: Vn
- };
- for (const b in we)
- typeof we[b] == "object" && an(we[b]);
- return Object.assign(n, we), n;
- }, fe = bn({});
- fe.newInstance = () => bn({});
- var Bt = fe;
- fe.HighlightJS = fe;
- fe.default = fe;
- const Z = /* @__PURE__ */ zn(Bt);
- function $t(n) {
- const e = n.regex, s = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
- className: "symbol",
- begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
- }, t = {
- begin: /\s/,
- contains: [
- {
- className: "keyword",
- begin: /#?[a-z_][a-z1-9_-]+/,
- illegal: /\n/
- }
- ]
- }, r = n.inherit(t, {
- begin: /\(/,
- end: /\)/
- }), i = n.inherit(n.APOS_STRING_MODE, { className: "string" }), a = n.inherit(n.QUOTE_STRING_MODE, { className: "string" }), o = {
- endsWithParent: !0,
- illegal: /</,
- relevance: 0,
- contains: [
- {
- className: "attr",
- begin: u,
- relevance: 0
- },
- {
- begin: /=\s*/,
- relevance: 0,
- contains: [
- {
- className: "string",
- endsParent: !0,
- variants: [
- {
- begin: /"/,
- end: /"/,
- contains: [h]
- },
- {
- begin: /'/,
- end: /'/,
- contains: [h]
- },
- { begin: /[^\s"'=<>`]+/ }
- ]
- }
- ]
- }
- ]
- };
- return {
- name: "HTML, XML",
- aliases: [
- "html",
- "xhtml",
- "rss",
- "atom",
- "xjb",
- "xsd",
- "xsl",
- "plist",
- "wsf",
- "svg"
- ],
- case_insensitive: !0,
- unicodeRegex: !0,
- contains: [
- {
- className: "meta",
- begin: /<![a-z]/,
- end: />/,
- relevance: 10,
- contains: [
- t,
- a,
- i,
- r,
- {
- begin: /\[/,
- end: /\]/,
- contains: [
- {
- className: "meta",
- begin: /<![a-z]/,
- end: />/,
- contains: [
- t,
- r,
- a,
- i
- ]
- }
- ]
- }
- ]
- },
- n.COMMENT(
- /<!--/,
- /-->/,
- { relevance: 10 }
- ),
- {
- begin: /<!\[CDATA\[/,
- end: /\]\]>/,
- relevance: 10
- },
- h,
- // xml processing instructions
- {
- className: "meta",
- end: /\?>/,
- variants: [
- {
- begin: /<\?xml/,
- relevance: 10,
- contains: [
- a
- ]
- },
- {
- begin: /<\?[a-z][a-z0-9]+/
- }
- ]
- },
- {
- className: "tag",
- /*
- The lookahead pattern (?=...) ensures that 'begin' only matches
- '<style' as a single word, followed by a whitespace or an
- ending bracket.
- */
- begin: /<style(?=\s|>)/,
- end: />/,
- keywords: { name: "style" },
- contains: [o],
- starts: {
- end: /<\/style>/,
- returnEnd: !0,
- subLanguage: [
- "css",
- "xml"
- ]
- }
- },
- {
- className: "tag",
- // See the comment in the <style tag about the lookahead pattern
- begin: /<script(?=\s|>)/,
- end: />/,
- keywords: { name: "script" },
- contains: [o],
- starts: {
- end: /<\/script>/,
- returnEnd: !0,
- subLanguage: [
- "javascript",
- "handlebars",
- "xml"
- ]
- }
- },
- // we need this for now for jSX
- {
- className: "tag",
- begin: /<>|<\/>/
- },
- // open tag
- {
- className: "tag",
- begin: e.concat(
- /</,
- e.lookahead(e.concat(
- s,
- // <tag/>
- // <tag>
- // <tag ...
- e.either(/\/>/, />/, /\s/)
- ))
- ),
- end: /\/?>/,
- contains: [
- {
- className: "name",
- begin: s,
- relevance: 0,
- starts: o
- }
- ]
- },
- // close tag
- {
- className: "tag",
- begin: e.concat(
- /<\//,
- e.lookahead(e.concat(
- s,
- />/
- ))
- ),
- contains: [
- {
- className: "name",
- begin: s,
- relevance: 0
- },
- {
- begin: />/,
- relevance: 0,
- endsParent: !0
- }
- ]
- }
- ]
- };
- }
- const nn = "[A-Za-z$_][0-9A-Za-z$_]*", Ut = [
- "as",
- // for exports
- "in",
- "of",
- "if",
- "for",
- "while",
- "finally",
- "var",
- "new",
- "function",
- "do",
- "return",
- "void",
- "else",
- "break",
- "catch",
- "instanceof",
- "with",
- "throw",
- "case",
- "default",
- "try",
- "switch",
- "continue",
- "typeof",
- "delete",
- "let",
- "yield",
- "const",
- "class",
- // JS handles these with a special rule
- // "get",
- // "set",
- "debugger",
- "async",
- "await",
- "static",
- "import",
- "from",
- "export",
- "extends"
- ], Pt = [
- "true",
- "false",
- "null",
- "undefined",
- "NaN",
- "Infinity"
- ], vn = [
- // Fundamental objects
- "Object",
- "Function",
- "Boolean",
- "Symbol",
- // numbers and dates
- "Math",
- "Date",
- "Number",
- "BigInt",
- // text
- "String",
- "RegExp",
- // Indexed collections
- "Array",
- "Float32Array",
- "Float64Array",
- "Int8Array",
- "Uint8Array",
- "Uint8ClampedArray",
- "Int16Array",
- "Int32Array",
- "Uint16Array",
- "Uint32Array",
- "BigInt64Array",
- "BigUint64Array",
- // Keyed collections
- "Set",
- "Map",
- "WeakSet",
- "WeakMap",
- // Structured data
- "ArrayBuffer",
- "SharedArrayBuffer",
- "Atomics",
- "DataView",
- "JSON",
- // Control abstraction objects
- "Promise",
- "Generator",
- "GeneratorFunction",
- "AsyncFunction",
- // Reflection
- "Reflect",
- "Proxy",
- // Internationalization
- "Intl",
- // WebAssembly
- "WebAssembly"
- ], mn = [
- "Error",
- "EvalError",
- "InternalError",
- "RangeError",
- "ReferenceError",
- "SyntaxError",
- "TypeError",
- "URIError"
- ], En = [
- "setInterval",
- "setTimeout",
- "clearInterval",
- "clearTimeout",
- "require",
- "exports",
- "eval",
- "isFinite",
- "isNaN",
- "parseFloat",
- "parseInt",
- "decodeURI",
- "decodeURIComponent",
- "encodeURI",
- "encodeURIComponent",
- "escape",
- "unescape"
- ], xt = [
- "arguments",
- "this",
- "super",
- "console",
- "window",
- "document",
- "localStorage",
- "sessionStorage",
- "module",
- "global"
- // Node.js
- ], Ft = [].concat(
- En,
- vn,
- mn
- );
- function Ht(n) {
- const e = n.regex, s = (y, { after: L }) => {
- const U = "</" + y[0].slice(1);
- return y.input.indexOf(U, L) !== -1;
- }, u = nn, h = {
- begin: "<>",
- end: "</>"
- }, t = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
- begin: /<[A-Za-z0-9\\._:-]+/,
- end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
- /**
- * @param {RegExpMatchArray} match
- * @param {CallbackResponse} response
- */
- isTrulyOpeningTag: (y, L) => {
- const U = y[0].length + y.index, F = y.input[U];
- if (
- // HTML should not include another raw `<` inside a tag
- // nested type?
- // `<Array<Array<number>>`, etc.
- F === "<" || // the , gives away that this is not HTML
- // `<T, A extends keyof T, V>`
- F === ","
- ) {
- L.ignoreMatch();
- return;
- }
- F === ">" && (s(y, { after: U }) || L.ignoreMatch());
- let W;
- const Y = y.input.substring(U);
- if (W = Y.match(/^\s*=/)) {
- L.ignoreMatch();
- return;
- }
- if ((W = Y.match(/^\s+extends\s+/)) && W.index === 0) {
- L.ignoreMatch();
- return;
- }
- }
- }, i = {
- $pattern: nn,
- keyword: Ut,
- literal: Pt,
- built_in: Ft,
- "variable.language": xt
- }, a = "[0-9](_?[0-9])*", o = `\\.(${a})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
- className: "number",
- variants: [
- // DecimalLiteral
- { begin: `(\\b(${l})((${o})|\\.)?|(${o}))[eE][+-]?(${a})\\b` },
- { begin: `\\b(${l})\\b((${o})\\b|\\.)?|(${o})\\b` },
- // DecimalBigIntegerLiteral
- { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
- // NonDecimalIntegerLiteral
- { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
- { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
- { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
- // LegacyOctalIntegerLiteral (does not include underscore separators)
- // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
- { begin: "\\b0[0-7]+n?\\b" }
- ],
- relevance: 0
- }, f = {
- className: "subst",
- begin: "\\$\\{",
- end: "\\}",
- keywords: i,
- contains: []
- // defined later
- }, g = {
- begin: "html`",
- end: "",
- starts: {
- end: "`",
- returnEnd: !1,
- contains: [
- n.BACKSLASH_ESCAPE,
- f
- ],
- subLanguage: "xml"
- }
- }, d = {
- begin: "css`",
- end: "",
- starts: {
- end: "`",
- returnEnd: !1,
- contains: [
- n.BACKSLASH_ESCAPE,
- f
- ],
- subLanguage: "css"
- }
- }, _ = {
- begin: "gql`",
- end: "",
- starts: {
- end: "`",
- returnEnd: !1,
- contains: [
- n.BACKSLASH_ESCAPE,
- f
- ],
- subLanguage: "graphql"
- }
- }, p = {
- className: "string",
- begin: "`",
- end: "`",
- contains: [
- n.BACKSLASH_ESCAPE,
- f
- ]
- }, m = {
- className: "comment",
- variants: [
- n.COMMENT(
- /\/\*\*(?!\/)/,
- "\\*/",
- {
- relevance: 0,
- contains: [
- {
- begin: "(?=@[A-Za-z]+)",
- relevance: 0,
- contains: [
- {
- className: "doctag",
- begin: "@[A-Za-z]+"
- },
- {
- className: "type",
- begin: "\\{",
- end: "\\}",
- excludeEnd: !0,
- excludeBegin: !0,
- relevance: 0
- },
- {
- className: "variable",
- begin: u + "(?=\\s*(-)|$)",
- endsParent: !0,
- relevance: 0
- },
- // eat spaces (not newlines) so we can find
- // types or variables
- {
- begin: /(?=[^\n])\s/,
- relevance: 0
- }
- ]
- }
- ]
- }
- ),
- n.C_BLOCK_COMMENT_MODE,
- n.C_LINE_COMMENT_MODE
- ]
- }, E = [
- n.APOS_STRING_MODE,
- n.QUOTE_STRING_MODE,
- g,
- d,
- _,
- p,
- // Skip numbers when they are part of a variable name
- { match: /\$\d+/ },
- c
- // This is intentional:
- // See https://github.com/highlightjs/highlight.js/issues/3288
- // hljs.REGEXP_MODE
- ];
- f.contains = E.concat({
- // we need to pair up {} inside our subst to prevent
- // it from ending too early by matching another }
- begin: /\{/,
- end: /\}/,
- keywords: i,
- contains: [
- "self"
- ].concat(E)
- });
- const A = [].concat(m, f.contains), S = A.concat([
- // eat recursive parens in sub expressions
- {
- begin: /\(/,
- end: /\)/,
- keywords: i,
- contains: ["self"].concat(A)
- }
- ]), D = {
- className: "params",
- begin: /\(/,
- end: /\)/,
- excludeBegin: !0,
- excludeEnd: !0,
- keywords: i,
- contains: S
- }, N = {
- variants: [
- // class Car extends vehicle
- {
- match: [
- /class/,
- /\s+/,
- u,
- /\s+/,
- /extends/,
- /\s+/,
- e.concat(u, "(", e.concat(/\./, u), ")*")
- ],
- scope: {
- 1: "keyword",
- 3: "title.class",
- 5: "keyword",
- 7: "title.class.inherited"
- }
- },
- // class Car
- {
- match: [
- /class/,
- /\s+/,
- u
- ],
- scope: {
- 1: "keyword",
- 3: "title.class"
- }
- }
- ]
- }, R = {
- relevance: 0,
- match: e.either(
- // Hard coded exceptions
- /\bJSON/,
- // Float32Array, OutT
- /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
- // CSSFactory, CSSFactoryT
- /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
- // FPs, FPsT
- /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
- // P
- // single letters are not highlighted
- // BLAH
- // this will be flagged as a UPPER_CASE_CONSTANT instead
- ),
- className: "title.class",
- keywords: {
- _: [
- // se we still get relevance credit for JS library classes
- ...vn,
- ...mn
- ]
- }
- }, C = {
- label: "use_strict",
- className: "meta",
- relevance: 10,
- begin: /^\s*['"]use (strict|asm)['"]/
- }, I = {
- variants: [
- {
- match: [
- /function/,
- /\s+/,
- u,
- /(?=\s*\()/
- ]
- },
- // anonymous function
- {
- match: [
- /function/,
- /\s*(?=\()/
- ]
- }
- ],
- className: {
- 1: "keyword",
- 3: "title.function"
- },
- label: "func.def",
- contains: [D],
- illegal: /%/
- }, $ = {
- relevance: 0,
- match: /\b[A-Z][A-Z_0-9]+\b/,
- className: "variable.constant"
- };
- function B(y) {
- return e.concat("(?!", y.join("|"), ")");
- }
- const H = {
- match: e.concat(
- /\b/,
- B([
- ...En,
- "super",
- "import"
- ]),
- u,
- e.lookahead(/\(/)
- ),
- className: "title.function",
- relevance: 0
- }, K = {
- begin: e.concat(/\./, e.lookahead(
- e.concat(u, /(?![0-9A-Za-z$_(])/)
- )),
- end: u,
- excludeBegin: !0,
- keywords: "prototype",
- className: "property",
- relevance: 0
- }, te = {
- match: [
- /get|set/,
- /\s+/,
- u,
- /(?=\()/
- ],
- className: {
- 1: "keyword",
- 3: "title.function"
- },
- contains: [
- {
- // eat to avoid empty params
- begin: /\(\)/
- },
- D
- ]
- }, le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
- match: [
- /const|var|let/,
- /\s+/,
- u,
- /\s*/,
- /=\s*/,
- /(async\s*)?/,
- // async is optional
- e.lookahead(le)
- ],
- keywords: "async",
- className: {
- 1: "keyword",
- 3: "title.function"
- },
- contains: [
- D
- ]
- };
- return {
- name: "JavaScript",
- aliases: ["js", "jsx", "mjs", "cjs"],
- keywords: i,
- // this will be extended by TypeScript
- exports: { PARAMS_CONTAINS: S, CLASS_REFERENCE: R },
- illegal: /#(?![$_A-z])/,
- contains: [
- n.SHEBANG({
- label: "shebang",
- binary: "node",
- relevance: 5
- }),
- C,
- n.APOS_STRING_MODE,
- n.QUOTE_STRING_MODE,
- g,
- d,
- _,
- p,
- m,
- // Skip numbers when they are part of a variable name
- { match: /\$\d+/ },
- c,
- R,
- {
- className: "attr",
- begin: u + e.lookahead(":"),
- relevance: 0
- },
- b,
- {
- // "value" container
- begin: "(" + n.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
- keywords: "return throw case",
- relevance: 0,
- contains: [
- m,
- n.REGEXP_MODE,
- {
- className: "function",
- // we have to count the parens to make sure we actually have the
- // correct bounding ( ) before the =>. There could be any number of
- // sub-expressions inside also surrounded by parens.
- begin: le,
- returnBegin: !0,
- end: "\\s*=>",
- contains: [
- {
- className: "params",
- variants: [
- {
- begin: n.UNDERSCORE_IDENT_RE,
- relevance: 0
- },
- {
- className: null,
- begin: /\(\s*\)/,
- skip: !0
- },
- {
- begin: /\(/,
- end: /\)/,
- excludeBegin: !0,
- excludeEnd: !0,
- keywords: i,
- contains: S
- }
- ]
- }
- ]
- },
- {
- // could be a comma delimited list of params to a function call
- begin: /,/,
- relevance: 0
- },
- {
- match: /\s+/,
- relevance: 0
- },
- {
- // JSX
- variants: [
- { begin: h.begin, end: h.end },
- { match: t },
- {
- begin: r.begin,
- // we carefully check the opening tag to see if it truly
- // is a tag and not a false positive
- "on:begin": r.isTrulyOpeningTag,
- end: r.end
- }
- ],
- subLanguage: "xml",
- contains: [
- {
- begin: r.begin,
- end: r.end,
- skip: !0,
- contains: ["self"]
- }
- ]
- }
- ]
- },
- I,
- {
- // prevent this from getting swallowed up by function
- // since they appear "function like"
- beginKeywords: "while if switch catch for"
- },
- {
- // we have to count the parens to make sure we actually have the correct
- // bounding ( ). There could be any number of sub-expressions inside
- // also surrounded by parens.
- begin: "\\b(?!function)" + n.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
- // end parens
- returnBegin: !0,
- label: "func.def",
- contains: [
- D,
- n.inherit(n.TITLE_MODE, { begin: u, className: "title.function" })
- ]
- },
- // catch ... so it won't trigger the property rule below
- {
- match: /\.\.\./,
- relevance: 0
- },
- K,
- // hack: prevents detection of keywords in some circumstances
- // .keyword()
- // $keyword = x
- {
- match: "\\$" + u,
- relevance: 0
- },
- {
- match: [/\bconstructor(?=\s*\()/],
- className: { 1: "title.function" },
- contains: [D]
- },
- H,
- $,
- N,
- te,
- {
- match: /\$[(.]/
- // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
- }
- ]
- };
- }
- function zt(n) {
- const e = {
- className: "attr",
- begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
- relevance: 1.01
- }, s = {
- match: /[{}[\],:]/,
- className: "punctuation",
- relevance: 0
- }, u = [
- "true",
- "false",
- "null"
- ], h = {
- scope: "literal",
- beginKeywords: u.join(" ")
- };
- return {
- name: "JSON",
- keywords: {
- literal: u
- },
- contains: [
- e,
- s,
- n.QUOTE_STRING_MODE,
- h,
- n.C_NUMBER_MODE,
- n.C_LINE_COMMENT_MODE,
- n.C_BLOCK_COMMENT_MODE
- ],
- illegal: "\\S"
- };
- }
- function Gt(n) {
- const e = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
- className: "attr",
- variants: [
- { begin: "\\w[\\w :\\/.-]*:(?=[ ]|$)" },
- {
- // double quoted keys
- begin: '"\\w[\\w :\\/.-]*":(?=[ ]|$)'
- },
- {
- // single quoted keys
- begin: "'\\w[\\w :\\/.-]*':(?=[ ]|$)"
- }
- ]
- }, h = {
- className: "template-variable",
- variants: [
- {
- // jinja templates Ansible
- begin: /\{\{/,
- end: /\}\}/
- },
- {
- // Ruby i18n
- begin: /%\{/,
- end: /\}/
- }
- ]
- }, t = {
- className: "string",
- relevance: 0,
- variants: [
- {
- begin: /'/,
- end: /'/
- },
- {
- begin: /"/,
- end: /"/
- },
- { begin: /\S+/ }
- ],
- contains: [
- n.BACKSLASH_ESCAPE,
- h
- ]
- }, r = n.inherit(t, { variants: [
- {
- begin: /'/,
- end: /'/
- },
- {
- begin: /"/,
- end: /"/
- },
- { begin: /[^\s,{}[\]]+/ }
- ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", a = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", l = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
- className: "number",
- begin: "\\b" + i + a + o + l + "\\b"
- }, f = {
- end: ",",
- endsWithParent: !0,
- excludeEnd: !0,
- keywords: e,
- relevance: 0
- }, g = {
- begin: /\{/,
- end: /\}/,
- contains: [f],
- illegal: "\\n",
- relevance: 0
- }, d = {
- begin: "\\[",
- end: "\\]",
- contains: [f],
- illegal: "\\n",
- relevance: 0
- }, _ = [
- u,
- {
- className: "meta",
- begin: "^---\\s*$",
- relevance: 10
- },
- {
- // multi line string
- // Blocks start with a | or > followed by a newline
- //
- // Indentation of subsequent lines must be the same to
- // be considered part of the block
- className: "string",
- begin: "[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"
- },
- {
- // Ruby/Rails erb
- begin: "<%[%=-]?",
- end: "[%-]?%>",
- subLanguage: "ruby",
- excludeBegin: !0,
- excludeEnd: !0,
- relevance: 0
- },
- {
- // named tags
- className: "type",
- begin: "!\\w+!" + s
- },
- // https://yaml.org/spec/1.2/spec.html#id2784064
- {
- // verbatim tags
- className: "type",
- begin: "!<" + s + ">"
- },
- {
- // primary tags
- className: "type",
- begin: "!" + s
- },
- {
- // secondary tags
- className: "type",
- begin: "!!" + s
- },
- {
- // fragment id &ref
- className: "meta",
- begin: "&" + n.UNDERSCORE_IDENT_RE + "$"
- },
- {
- // fragment reference *ref
- className: "meta",
- begin: "\\*" + n.UNDERSCORE_IDENT_RE + "$"
- },
- {
- // array listing
- className: "bullet",
- // TODO: remove |$ hack when we have proper look-ahead support
- begin: "-(?=[ ]|$)",
- relevance: 0
- },
- n.HASH_COMMENT_MODE,
- {
- beginKeywords: e,
- keywords: { literal: e }
- },
- c,
- // numbers are any valid C-style number that
- // sit isolated from other words
- {
- className: "number",
- begin: n.C_NUMBER_RE + "\\b",
- relevance: 0
- },
- g,
- d,
- t
- ], p = [..._];
- return p.pop(), p.push(r), f.contains = p, {
- name: "YAML",
- case_insensitive: !0,
- aliases: ["yml"],
- contains: _
- };
- }
- function Kt(n) {
- return {
- name: "Plain text",
- aliases: [
- "text",
- "txt"
- ],
- disableAutodetect: !0
- };
- }
- function Wt(n) {
- const e = n.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
- "and",
- "as",
- "assert",
- "async",
- "await",
- "break",
- "case",
- "class",
- "continue",
- "def",
- "del",
- "elif",
- "else",
- "except",
- "finally",
- "for",
- "from",
- "global",
- "if",
- "import",
- "in",
- "is",
- "lambda",
- "match",
- "nonlocal|10",
- "not",
- "or",
- "pass",
- "raise",
- "return",
- "try",
- "while",
- "with",
- "yield"
- ], i = {
- $pattern: /[A-Za-z]\w+|__\w+__/,
- keyword: u,
- built_in: [
- "__import__",
- "abs",
- "all",
- "any",
- "ascii",
- "bin",
- "bool",
- "breakpoint",
- "bytearray",
- "bytes",
- "callable",
- "chr",
- "classmethod",
- "compile",
- "complex",
- "delattr",
- "dict",
- "dir",
- "divmod",
- "enumerate",
- "eval",
- "exec",
- "filter",
- "float",
- "format",
- "frozenset",
- "getattr",
- "globals",
- "hasattr",
- "hash",
- "help",
- "hex",
- "id",
- "input",
- "int",
- "isinstance",
- "issubclass",
- "iter",
- "len",
- "list",
- "locals",
- "map",
- "max",
- "memoryview",
- "min",
- "next",
- "object",
- "oct",
- "open",
- "ord",
- "pow",
- "print",
- "property",
- "range",
- "repr",
- "reversed",
- "round",
- "set",
- "setattr",
- "slice",
- "sorted",
- "staticmethod",
- "str",
- "sum",
- "super",
- "tuple",
- "type",
- "vars",
- "zip"
- ],
- literal: [
- "__debug__",
- "Ellipsis",
- "False",
- "None",
- "NotImplemented",
- "True"
- ],
- type: [
- "Any",
- "Callable",
- "Coroutine",
- "Dict",
- "List",
- "Literal",
- "Generic",
- "Optional",
- "Sequence",
- "Set",
- "Tuple",
- "Type",
- "Union"
- ]
- }, a = {
- className: "meta",
- begin: /^(>>>|\.\.\.) /
- }, o = {
- className: "subst",
- begin: /\{/,
- end: /\}/,
- keywords: i,
- illegal: /#/
- }, l = {
- begin: /\{\{/,
- relevance: 0
- }, c = {
- className: "string",
- contains: [n.BACKSLASH_ESCAPE],
- variants: [
- {
- begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
- end: /'''/,
- contains: [
- n.BACKSLASH_ESCAPE,
- a
- ],
- relevance: 10
- },
- {
- begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,
- end: /"""/,
- contains: [
- n.BACKSLASH_ESCAPE,
- a
- ],
- relevance: 10
- },
- {
- begin: /([fF][rR]|[rR][fF]|[fF])'''/,
- end: /'''/,
- contains: [
- n.BACKSLASH_ESCAPE,
- a,
- l,
- o
- ]
- },
- {
- begin: /([fF][rR]|[rR][fF]|[fF])"""/,
- end: /"""/,
- contains: [
- n.BACKSLASH_ESCAPE,
- a,
- l,
- o
- ]
- },
- {
- begin: /([uU]|[rR])'/,
- end: /'/,
- relevance: 10
- },
- {
- begin: /([uU]|[rR])"/,
- end: /"/,
- relevance: 10
- },
- {
- begin: /([bB]|[bB][rR]|[rR][bB])'/,
- end: /'/
- },
- {
- begin: /([bB]|[bB][rR]|[rR][bB])"/,
- end: /"/
- },
- {
- begin: /([fF][rR]|[rR][fF]|[fF])'/,
- end: /'/,
- contains: [
- n.BACKSLASH_ESCAPE,
- l,
- o
- ]
- },
- {
- begin: /([fF][rR]|[rR][fF]|[fF])"/,
- end: /"/,
- contains: [
- n.BACKSLASH_ESCAPE,
- l,
- o
- ]
- },
- n.APOS_STRING_MODE,
- n.QUOTE_STRING_MODE
- ]
- }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, _ = {
- className: "number",
- relevance: 0,
- variants: [
- // exponentfloat, pointfloat
- // https://docs.python.org/3.9/reference/lexical_analysis.html#floating-point-literals
- // optionally imaginary
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
- // Note: no leading \b because floats can start with a decimal point
- // and we don't want to mishandle e.g. `fn(.5)`,
- // no trailing \b for pointfloat because it can end with a decimal point
- // and we don't want to mishandle e.g. `0..hex()`; this should be safe
- // because both MUST contain a decimal point and so cannot be confused with
- // the interior part of an identifier
- {
- begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${d})`
- },
- {
- begin: `(${g})[jJ]?`
- },
- // decinteger, bininteger, octinteger, hexinteger
- // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
- // optionally "long" in Python 2
- // https://docs.python.org/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals
- // decinteger is optionally imaginary
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
- {
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`
- },
- {
- begin: `\\b0[bB](_?[01])+[lL]?(?=${d})`
- },
- {
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${d})`
- },
- {
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`
- },
- // imagnumber (digitpart-based)
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
- {
- begin: `\\b(${f})[jJ](?=${d})`
- }
- ]
- }, p = {
- className: "comment",
- begin: e.lookahead(/# type:/),
- end: /$/,
- keywords: i,
- contains: [
- {
- // prevent keywords from coloring `type`
- begin: /# type:/
- },
- // comment within a datatype comment includes no keywords
- {
- begin: /#/,
- end: /\b\B/,
- endsWithParent: !0
- }
- ]
- }, v = {
- className: "params",
- variants: [
- // Exclude params in functions without params
- {
- className: "",
- begin: /\(\s*\)/,
- skip: !0
- },
- {
- begin: /\(/,
- end: /\)/,
- excludeBegin: !0,
- excludeEnd: !0,
- keywords: i,
- contains: [
- "self",
- a,
- _,
- c,
- n.HASH_COMMENT_MODE
- ]
- }
- ]
- };
- return o.contains = [
- c,
- _,
- a
- ], {
- name: "Python",
- aliases: [
- "py",
- "gyp",
- "ipython"
- ],
- unicodeRegex: !0,
- keywords: i,
- illegal: /(<\/|\?)|=>/,
- contains: [
- a,
- _,
- {
- // very common convention
- begin: /\bself\b/
- },
- {
- // eat "if" prior to string so that it won't accidentally be
- // labeled as an f-string
- beginKeywords: "if",
- relevance: 0
- },
- c,
- p,
- n.HASH_COMMENT_MODE,
- {
- match: [
- /\bdef/,
- /\s+/,
- s
- ],
- scope: {
- 1: "keyword",
- 3: "title.function"
- },
- contains: [v]
- },
- {
- variants: [
- {
- match: [
- /\bclass/,
- /\s+/,
- s,
- /\s*/,
- /\(\s*/,
- s,
- /\s*\)/
- ]
- },
- {
- match: [
- /\bclass/,
- /\s+/,
- s
- ]
- }
- ],
- scope: {
- 1: "keyword",
- 3: "title.class",
- 6: "title.class.inherited"
- }
- },
- {
- className: "meta",
- begin: /^[\t ]*@/,
- end: /(?=#)|$/,
- contains: [
- _,
- v,
- c
- ]
- }
- ]
- };
- }
- var ue = "[0-9](_*[0-9])*", ye = `\\.(${ue})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*", tn = {
- className: "number",
- variants: [
- // DecimalFloatingPointLiteral
- // including ExponentPart
- { begin: `(\\b(${ue})((${ye})|\\.)?|(${ye}))[eE][+-]?(${ue})[fFdD]?\\b` },
- // excluding ExponentPart
- { begin: `\\b(${ue})((${ye})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
- { begin: `(${ye})[fFdD]?\\b` },
- { begin: `\\b(${ue})[fFdD]\\b` },
- // HexadecimalFloatingPointLiteral
- { begin: `\\b0[xX]((${Ae})\\.?|(${Ae})?\\.(${Ae}))[pP][+-]?(${ue})[fFdD]?\\b` },
- // DecimalIntegerLiteral
- { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
- // HexIntegerLiteral
- { begin: `\\b0[xX](${Ae})[lL]?\\b` },
- // OctalIntegerLiteral
- { begin: "\\b0(_*[0-7])*[lL]?\\b" },
- // BinaryIntegerLiteral
- { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
- ],
- relevance: 0
- };
- function wn(n, e, s) {
- return s === -1 ? "" : n.replace(e, (u) => wn(n, e, s - 1));
- }
- function Qt(n) {
- const e = n.regex, s = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = s + wn("(?:<" + s + "~~~(?:\\s*,\\s*" + s + "~~~)*>)?", /~~~/g, 2), a = {
- keyword: [
- "synchronized",
- "abstract",
- "private",
- "var",
- "static",
- "if",
- "const ",
- "for",
- "while",
- "strictfp",
- "finally",
- "protected",
- "import",
- "native",
- "final",
- "void",
- "enum",
- "else",
- "break",
- "transient",
- "catch",
- "instanceof",
- "volatile",
- "case",
- "assert",
- "package",
- "default",
- "public",
- "try",
- "switch",
- "continue",
- "throws",
- "protected",
- "public",
- "private",
- "module",
- "requires",
- "exports",
- "do",
- "sealed",
- "yield",
- "permits"
- ],
- literal: [
- "false",
- "true",
- "null"
- ],
- type: [
- "char",
- "boolean",
- "long",
- "float",
- "int",
- "byte",
- "short",
- "double"
- ],
- built_in: [
- "super",
- "this"
- ]
- }, o = {
- className: "meta",
- begin: "@" + s,
- contains: [
- {
- begin: /\(/,
- end: /\)/,
- contains: ["self"]
- // allow nested () inside our annotation
- }
- ]
- }, l = {
- className: "params",
- begin: /\(/,
- end: /\)/,
- keywords: a,
- relevance: 0,
- contains: [n.C_BLOCK_COMMENT_MODE],
- endsParent: !0
- };
- return {
- name: "Java",
- aliases: ["jsp"],
- keywords: a,
- illegal: /<\/|#/,
- contains: [
- n.COMMENT(
- "/\\*\\*",
- "\\*/",
- {
- relevance: 0,
- contains: [
- {
- // eat up @'s in emails to prevent them to be recognized as doctags
- begin: /\w+@/,
- relevance: 0
- },
- {
- className: "doctag",
- begin: "@[A-Za-z]+"
- }
- ]
- }
- ),
- // relevance boost
- {
- begin: /import java\.[a-z]+\./,
- keywords: "import",
- relevance: 2
- },
- n.C_LINE_COMMENT_MODE,
- n.C_BLOCK_COMMENT_MODE,
- {
- begin: /"""/,
- end: /"""/,
- className: "string",
- contains: [n.BACKSLASH_ESCAPE]
- },
- n.APOS_STRING_MODE,
- n.QUOTE_STRING_MODE,
- {
- match: [
- /\b(?:class|interface|enum|extends|implements|new)/,
- /\s+/,
- s
- ],
- className: {
- 1: "keyword",
- 3: "title.class"
- }
- },
- {
- // Exceptions for hyphenated keywords
- match: /non-sealed/,
- scope: "keyword"
- },
- {
- begin: [
- e.concat(/(?!else)/, s),
- /\s+/,
- s,
- /\s+/,
- /=(?!=)/
- ],
- className: {
- 1: "type",
- 3: "variable",
- 5: "operator"
- }
- },
- {
- begin: [
- /record/,
- /\s+/,
- s
- ],
- className: {
- 1: "keyword",
- 3: "title.class"
- },
- contains: [
- l,
- n.C_LINE_COMMENT_MODE,
- n.C_BLOCK_COMMENT_MODE
- ]
- },
- {
- // Expression keywords prevent 'keyword Name(...)' from being
- // recognized as a function definition
- beginKeywords: "new throw return else",
- relevance: 0
- },
- {
- begin: [
- "(?:" + u + "\\s+)",
- n.UNDERSCORE_IDENT_RE,
- /\s*(?=\()/
- ],
- className: { 2: "title.function" },
- keywords: a,
- contains: [
- {
- className: "params",
- begin: /\(/,
- end: /\)/,
- keywords: a,
- relevance: 0,
- contains: [
- o,
- n.APOS_STRING_MODE,
- n.QUOTE_STRING_MODE,
- tn,
- n.C_BLOCK_COMMENT_MODE
- ]
- },
- n.C_LINE_COMMENT_MODE,
- n.C_BLOCK_COMMENT_MODE
- ]
- },
- tn,
- o
- ]
- };
- }
- function Vt(n) {
- const e = n.regex, s = {}, u = {
- begin: /\$\{/,
- end: /\}/,
- contains: [
- "self",
- {
- begin: /:-/,
- contains: [s]
- }
- // default values
- ]
- };
- Object.assign(s, {
- className: "variable",
- variants: [
- { begin: e.concat(
- /\$[\w\d#@][\w\d_]*/,
- // negative look-ahead tries to avoid matching patterns that are not
- // Perl at all like $ident$, @ident@, etc.
- "(?![\\w\\d])(?![$])"
- ) },
- u
- ]
- });
- const h = {
- className: "subst",
- begin: /\$\(/,
- end: /\)/,
- contains: [n.BACKSLASH_ESCAPE]
- }, t = {
- begin: /<<-?\s*(?=\w+)/,
- starts: { contains: [
- n.END_SAME_AS_BEGIN({
- begin: /(\w+)/,
- end: /(\w+)/,
- className: "string"
- })
- ] }
- }, r = {
- className: "string",
- begin: /"/,
- end: /"/,
- contains: [
- n.BACKSLASH_ESCAPE,
- s,
- h
- ]
- };
- h.contains.push(r);
- const i = {
- match: /\\"/
- }, a = {
- className: "string",
- begin: /'/,
- end: /'/
- }, o = {
- match: /\\'/
- }, l = {
- begin: /\$?\(\(/,
- end: /\)\)/,
- contains: [
- {
- begin: /\d+#[0-9a-f]+/,
- className: "number"
- },
- n.NUMBER_MODE,
- s
- ]
- }, c = [
- "fish",
- "bash",
- "zsh",
- "sh",
- "csh",
- "ksh",
- "tcsh",
- "dash",
- "scsh"
- ], f = n.SHEBANG({
- binary: `(${c.join("|")})`,
- relevance: 10
- }), g = {
- className: "function",
- begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
- returnBegin: !0,
- contains: [n.inherit(n.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
- relevance: 0
- }, d = [
- "if",
- "then",
- "else",
- "elif",
- "fi",
- "for",
- "while",
- "until",
- "in",
- "do",
- "done",
- "case",
- "esac",
- "function",
- "select"
- ], _ = [
- "true",
- "false"
- ], p = { match: /(\/[a-z._-]+)+/ }, v = [
- "break",
- "cd",
- "continue",
- "eval",
- "exec",
- "exit",
- "export",
- "getopts",
- "hash",
- "pwd",
- "readonly",
- "return",
- "shift",
- "test",
- "times",
- "trap",
- "umask",
- "unset"
- ], m = [
- "alias",
- "bind",
- "builtin",
- "caller",
- "command",
- "declare",
- "echo",
- "enable",
- "help",
- "let",
- "local",
- "logout",
- "mapfile",
- "printf",
- "read",
- "readarray",
- "source",
- "type",
- "typeset",
- "ulimit",
- "unalias"
- ], E = [
- "autoload",
- "bg",
- "bindkey",
- "bye",
- "cap",
- "chdir",
- "clone",
- "comparguments",
- "compcall",
- "compctl",
- "compdescribe",
- "compfiles",
- "compgroups",
- "compquote",
- "comptags",
- "comptry",
- "compvalues",
- "dirs",
- "disable",
- "disown",
- "echotc",
- "echoti",
- "emulate",
- "fc",
- "fg",
- "float",
- "functions",
- "getcap",
- "getln",
- "history",
- "integer",
- "jobs",
- "kill",
- "limit",
- "log",
- "noglob",
- "popd",
- "print",
- "pushd",
- "pushln",
- "rehash",
- "sched",
- "setcap",
- "setopt",
- "stat",
- "suspend",
- "ttyctl",
- "unfunction",
- "unhash",
- "unlimit",
- "unsetopt",
- "vared",
- "wait",
- "whence",
- "where",
- "which",
- "zcompile",
- "zformat",
- "zftp",
- "zle",
- "zmodload",
- "zparseopts",
- "zprof",
- "zpty",
- "zregexparse",
- "zsocket",
- "zstyle",
- "ztcp"
- ], A = [
- "chcon",
- "chgrp",
- "chown",
- "chmod",
- "cp",
- "dd",
- "df",
- "dir",
- "dircolors",
- "ln",
- "ls",
- "mkdir",
- "mkfifo",
- "mknod",
- "mktemp",
- "mv",
- "realpath",
- "rm",
- "rmdir",
- "shred",
- "sync",
- "touch",
- "truncate",
- "vdir",
- "b2sum",
- "base32",
- "base64",
- "cat",
- "cksum",
- "comm",
- "csplit",
- "cut",
- "expand",
- "fmt",
- "fold",
- "head",
- "join",
- "md5sum",
- "nl",
- "numfmt",
- "od",
- "paste",
- "ptx",
- "pr",
- "sha1sum",
- "sha224sum",
- "sha256sum",
- "sha384sum",
- "sha512sum",
- "shuf",
- "sort",
- "split",
- "sum",
- "tac",
- "tail",
- "tr",
- "tsort",
- "unexpand",
- "uniq",
- "wc",
- "arch",
- "basename",
- "chroot",
- "date",
- "dirname",
- "du",
- "echo",
- "env",
- "expr",
- "factor",
- // "false", // keyword literal already
- "groups",
- "hostid",
- "id",
- "link",
- "logname",
- "nice",
- "nohup",
- "nproc",
- "pathchk",
- "pinky",
- "printenv",
- "printf",
- "pwd",
- "readlink",
- "runcon",
- "seq",
- "sleep",
- "stat",
- "stdbuf",
- "stty",
- "tee",
- "test",
- "timeout",
- // "true", // keyword literal already
- "tty",
- "uname",
- "unlink",
- "uptime",
- "users",
- "who",
- "whoami",
- "yes"
- ];
- return {
- name: "Bash",
- aliases: ["sh"],
- keywords: {
- $pattern: /\b[a-z][a-z0-9._-]+\b/,
- keyword: d,
- literal: _,
- built_in: [
- ...v,
- ...m,
- // Shell modifiers
- "set",
- "shopt",
- ...E,
- ...A
- ]
- },
- contains: [
- f,
- // to catch known shells and boost relevancy
- n.SHEBANG(),
- // to catch unknown shells but still highlight the shebang
- g,
- l,
- n.HASH_COMMENT_MODE,
- t,
- p,
- r,
- i,
- a,
- o,
- s
- ]
- };
- }
- function Zt(n) {
- const e = n.regex, s = n.COMMENT("--", "$"), u = {
- className: "string",
- variants: [
- {
- begin: /'/,
- end: /'/,
- contains: [{ begin: /''/ }]
- }
- ]
- }, h = {
- begin: /"/,
- end: /"/,
- contains: [{ begin: /""/ }]
- }, t = [
- "true",
- "false",
- // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
- // "null",
- "unknown"
- ], r = [
- "double precision",
- "large object",
- "with timezone",
- "without timezone"
- ], i = [
- "bigint",
- "binary",
- "blob",
- "boolean",
- "char",
- "character",
- "clob",
- "date",
- "dec",
- "decfloat",
- "decimal",
- "float",
- "int",
- "integer",
- "interval",
- "nchar",
- "nclob",
- "national",
- "numeric",
- "real",
- "row",
- "smallint",
- "time",
- "timestamp",
- "varchar",
- "varying",
- // modifier (character varying)
- "varbinary"
- ], a = [
- "add",
- "asc",
- "collation",
- "desc",
- "final",
- "first",
- "last",
- "view"
- ], o = [
- "abs",
- "acos",
- "all",
- "allocate",
- "alter",
- "and",
- "any",
- "are",
- "array",
- "array_agg",
- "array_max_cardinality",
- "as",
- "asensitive",
- "asin",
- "asymmetric",
- "at",
- "atan",
- "atomic",
- "authorization",
- "avg",
- "begin",
- "begin_frame",
- "begin_partition",
- "between",
- "bigint",
- "binary",
- "blob",
- "boolean",
- "both",
- "by",
- "call",
- "called",
- "cardinality",
- "cascaded",
- "case",
- "cast",
- "ceil",
- "ceiling",
- "char",
- "char_length",
- "character",
- "character_length",
- "check",
- "classifier",
- "clob",
- "close",
- "coalesce",
- "collate",
- "collect",
- "column",
- "commit",
- "condition",
- "connect",
- "constraint",
- "contains",
- "convert",
- "copy",
- "corr",
- "corresponding",
- "cos",
- "cosh",
- "count",
- "covar_pop",
- "covar_samp",
- "create",
- "cross",
- "cube",
- "cume_dist",
- "current",
- "current_catalog",
- "current_date",
- "current_default_transform_group",
- "current_path",
- "current_role",
- "current_row",
- "current_schema",
- "current_time",
- "current_timestamp",
- "current_path",
- "current_role",
- "current_transform_group_for_type",
- "current_user",
- "cursor",
- "cycle",
- "date",
- "day",
- "deallocate",
- "dec",
- "decimal",
- "decfloat",
- "declare",
- "default",
- "define",
- "delete",
- "dense_rank",
- "deref",
- "describe",
- "deterministic",
- "disconnect",
- "distinct",
- "double",
- "drop",
- "dynamic",
- "each",
- "element",
- "else",
- "empty",
- "end",
- "end_frame",
- "end_partition",
- "end-exec",
- "equals",
- "escape",
- "every",
- "except",
- "exec",
- "execute",
- "exists",
- "exp",
- "external",
- "extract",
- "false",
- "fetch",
- "filter",
- "first_value",
- "float",
- "floor",
- "for",
- "foreign",
- "frame_row",
- "free",
- "from",
- "full",
- "function",
- "fusion",
- "get",
- "global",
- "grant",
- "group",
- "grouping",
- "groups",
- "having",
- "hold",
- "hour",
- "identity",
- "in",
- "indicator",
- "initial",
- "inner",
- "inout",
- "insensitive",
- "insert",
- "int",
- "integer",
- "intersect",
- "intersection",
- "interval",
- "into",
- "is",
- "join",
- "json_array",
- "json_arrayagg",
- "json_exists",
- "json_object",
- "json_objectagg",
- "json_query",
- "json_table",
- "json_table_primitive",
- "json_value",
- "lag",
- "language",
- "large",
- "last_value",
- "lateral",
- "lead",
- "leading",
- "left",
- "like",
- "like_regex",
- "listagg",
- "ln",
- "local",
- "localtime",
- "localtimestamp",
- "log",
- "log10",
- "lower",
- "match",
- "match_number",
- "match_recognize",
- "matches",
- "max",
- "member",
- "merge",
- "method",
- "min",
- "minute",
- "mod",
- "modifies",
- "module",
- "month",
- "multiset",
- "national",
- "natural",
- "nchar",
- "nclob",
- "new",
- "no",
- "none",
- "normalize",
- "not",
- "nth_value",
- "ntile",
- "null",
- "nullif",
- "numeric",
- "octet_length",
- "occurrences_regex",
- "of",
- "offset",
- "old",
- "omit",
- "on",
- "one",
- "only",
- "open",
- "or",
- "order",
- "out",
- "outer",
- "over",
- "overlaps",
- "overlay",
- "parameter",
- "partition",
- "pattern",
- "per",
- "percent",
- "percent_rank",
- "percentile_cont",
- "percentile_disc",
- "period",
- "portion",
- "position",
- "position_regex",
- "power",
- "precedes",
- "precision",
- "prepare",
- "primary",
- "procedure",
- "ptf",
- "range",
- "rank",
- "reads",
- "real",
- "recursive",
- "ref",
- "references",
- "referencing",
- "regr_avgx",
- "regr_avgy",
- "regr_count",
- "regr_intercept",
- "regr_r2",
- "regr_slope",
- "regr_sxx",
- "regr_sxy",
- "regr_syy",
- "release",
- "result",
- "return",
- "returns",
- "revoke",
- "right",
- "rollback",
- "rollup",
- "row",
- "row_number",
- "rows",
- "running",
- "savepoint",
- "scope",
- "scroll",
- "search",
- "second",
- "seek",
- "select",
- "sensitive",
- "session_user",
- "set",
- "show",
- "similar",
- "sin",
- "sinh",
- "skip",
- "smallint",
- "some",
- "specific",
- "specifictype",
- "sql",
- "sqlexception",
- "sqlstate",
- "sqlwarning",
- "sqrt",
- "start",
- "static",
- "stddev_pop",
- "stddev_samp",
- "submultiset",
- "subset",
- "substring",
- "substring_regex",
- "succeeds",
- "sum",
- "symmetric",
- "system",
- "system_time",
- "system_user",
- "table",
- "tablesample",
- "tan",
- "tanh",
- "then",
- "time",
- "timestamp",
- "timezone_hour",
- "timezone_minute",
- "to",
- "trailing",
- "translate",
- "translate_regex",
- "translation",
- "treat",
- "trigger",
- "trim",
- "trim_array",
- "true",
- "truncate",
- "uescape",
- "union",
- "unique",
- "unknown",
- "unnest",
- "update",
- "upper",
- "user",
- "using",
- "value",
- "values",
- "value_of",
- "var_pop",
- "var_samp",
- "varbinary",
- "varchar",
- "varying",
- "versioning",
- "when",
- "whenever",
- "where",
- "width_bucket",
- "window",
- "with",
- "within",
- "without",
- "year"
- ], l = [
- "abs",
- "acos",
- "array_agg",
- "asin",
- "atan",
- "avg",
- "cast",
- "ceil",
- "ceiling",
- "coalesce",
- "corr",
- "cos",
- "cosh",
- "count",
- "covar_pop",
- "covar_samp",
- "cume_dist",
- "dense_rank",
- "deref",
- "element",
- "exp",
- "extract",
- "first_value",
- "floor",
- "json_array",
- "json_arrayagg",
- "json_exists",
- "json_object",
- "json_objectagg",
- "json_query",
- "json_table",
- "json_table_primitive",
- "json_value",
- "lag",
- "last_value",
- "lead",
- "listagg",
- "ln",
- "log",
- "log10",
- "lower",
- "max",
- "min",
- "mod",
- "nth_value",
- "ntile",
- "nullif",
- "percent_rank",
- "percentile_cont",
- "percentile_disc",
- "position",
- "position_regex",
- "power",
- "rank",
- "regr_avgx",
- "regr_avgy",
- "regr_count",
- "regr_intercept",
- "regr_r2",
- "regr_slope",
- "regr_sxx",
- "regr_sxy",
- "regr_syy",
- "row_number",
- "sin",
- "sinh",
- "sqrt",
- "stddev_pop",
- "stddev_samp",
- "substring",
- "substring_regex",
- "sum",
- "tan",
- "tanh",
- "translate",
- "translate_regex",
- "treat",
- "trim",
- "trim_array",
- "unnest",
- "upper",
- "value_of",
- "var_pop",
- "var_samp",
- "width_bucket"
- ], c = [
- "current_catalog",
- "current_date",
- "current_default_transform_group",
- "current_path",
- "current_role",
- "current_schema",
- "current_transform_group_for_type",
- "current_user",
- "session_user",
- "system_time",
- "system_user",
- "current_time",
- "localtime",
- "current_timestamp",
- "localtimestamp"
- ], f = [
- "create table",
- "insert into",
- "primary key",
- "foreign key",
- "not null",
- "alter table",
- "add constraint",
- "grouping sets",
- "on overflow",
- "character set",
- "respect nulls",
- "ignore nulls",
- "nulls first",
- "nulls last",
- "depth first",
- "breadth first"
- ], g = l, d = [
- ...o,
- ...a
- ].filter((E) => !l.includes(E)), _ = {
- className: "variable",
- begin: /@[a-z0-9][a-z0-9_]*/
- }, p = {
- className: "operator",
- begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
- relevance: 0
- }, v = {
- begin: e.concat(/\b/, e.either(...g), /\s*\(/),
- relevance: 0,
- keywords: { built_in: g }
- };
- function m(E, {
- exceptions: A,
- when: S
- } = {}) {
- const D = S;
- return A = A || [], E.map((N) => N.match(/\|\d+$/) || A.includes(N) ? N : D(N) ? `${N}|0` : N);
- }
- return {
- name: "SQL",
- case_insensitive: !0,
- // does not include {} or HTML tags `</`
- illegal: /[{}]|<\//,
- keywords: {
- $pattern: /\b[\w\.]+/,
- keyword: m(d, { when: (E) => E.length < 3 }),
- literal: t,
- type: i,
- built_in: c
- },
- contains: [
- {
- begin: e.either(...f),
- relevance: 0,
- keywords: {
- $pattern: /[\w\.]+/,
- keyword: d.concat(f),
- literal: t,
- type: i
- }
- },
- {
- className: "type",
- begin: e.either(...r)
- },
- v,
- _,
- u,
- h,
- n.C_NUMBER_MODE,
- n.C_BLOCK_COMMENT_MODE,
- s,
- p
- ]
- };
- }
- Z.registerLanguage("xml", $t);
- Z.registerLanguage("javascript", Ht);
- Z.registerLanguage("json", zt);
- Z.registerLanguage("yaml", Gt);
- Z.registerLanguage("plaintext", Kt);
- Z.registerLanguage("python", Wt);
- Z.registerLanguage("java", Qt);
- Z.registerLanguage("bash", Vt);
- Z.registerLanguage("sql", Zt);
- var T = /* @__PURE__ */ ((n) => (n.EQUAL = "equal", n.DELETE = "removed", n.ADD = "added", n.EMPTY = "empty", n))(T || {});
- const J = "<code-diff-modified>", ee = "</code-diff-modified>", Yt = J.replace("<", "<").replace(">", ">"), Xt = ee.replace("<", "<").replace(">", ">");
- function ge(n) {
- return n === void 0 ? T.EQUAL : n.added ? T.ADD : n.removed ? T.DELETE : T.EQUAL;
- }
- function Te(n, e, s = "word") {
- return typeof n == "undefined" ? e : typeof e == "undefined" ? n : (s === "char" ? $n : Pn)(n, e).filter((h) => ge(h) !== T.DELETE).map(
- (h) => ge(h) === T.ADD ? `${J}${h.value}${ee}` : h.value
- ).join("");
- }
- function yn(n, e) {
- const s = new Le.diff_match_patch(), u = s.diff_linesToChars_(n, e), h = u.chars1, t = u.chars2, r = u.lineArray, i = s.diff_main(h, t, !1);
- return s.diff_charsToLines_(i, r), i.map((a) => {
- const [o, l] = a;
- return {
- count: l.replace(/\n$/, "").split(`
- `).length,
- value: l,
- removed: o === Le.DIFF_DELETE,
- added: o === Le.DIFF_INSERT
- };
- });
- }
- function V(n, e) {
- if (!e.match(new RegExp(`(${J}|${ee})`, "g")))
- return Z.highlight(e, { language: n }).value;
- let u = e;
- const h = e.replace(new RegExp(`(${J}|${ee})`, "g"), ""), t = document.createElement("div");
- t.innerHTML = Z.highlight(h, { language: n }).value;
- let r = !1;
- const i = (a) => {
- a.childNodes.forEach((o) => {
- if (o.nodeType === Node.ELEMENT_NODE && i(o), o.nodeType === Node.TEXT_NODE) {
- if (!o.textContent)
- return;
- let l = o.textContent, c = "";
- for (r && (c = c + J); l.length; ) {
- if (u.startsWith(J)) {
- u = u.slice(J.length), c = c + J, r = !0;
- continue;
- }
- if (u.startsWith(ee)) {
- u = u.slice(ee.length), c = c + ee, r = !1;
- continue;
- }
- const f = u.match(new RegExp(`(${J}|${ee})`)), g = f && f.index ? f.index : u.length, d = Math.min(g, l.length);
- c = c + u.substring(0, d), u = u.slice(d), l = l.slice(d);
- }
- r && (c = c + ee), o.textContent = c;
- }
- });
- };
- return i(t), t.innerHTML.replace(new RegExp(Yt, "g"), '<span class="x">').replace(new RegExp(Xt, "g"), "</span>");
- }
- function An(n, e) {
- const s = (a, o) => (a.match(new RegExp(o, "g")) || []).length, u = (a) => a.filter((o) => e == null ? void 0 : e.test(o)).length;
- let h = 0, t = 0, r = 0, i = 0;
- for (const a of n) {
- if (a.added) {
- const o = u(a.value.trim().split(`
- `));
- h += s(a.value.trim(), `
- `) + 1 - o, r += o;
- continue;
- }
- if (a.removed) {
- const o = u(a.value.trim().split(`
- `));
- t += s(a.value.trim(), `
- `) + 1 - o, i += o;
- continue;
- }
- }
- return {
- additionsNum: h,
- deletionsNum: t,
- ignoreAdditionsNum: r,
- ignoreDeletionsNum: i
- };
- }
- function jt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
- const i = () => ({ type: T.EMPTY }), a = (m, E, A) => ({ type: m, num: E, code: A }), o = yn(n, e), l = r ? new RegExp(r) : void 0;
- let c = 0, f = 0, g = !1;
- const d = [], _ = {
- changes: d,
- collector: [],
- stat: An(o, l)
- };
- for (let m = 0; m < o.length; m++) {
- if (g) {
- g = !1;
- continue;
- }
- const [E, A] = [o[m], o[m + 1]], [S, D] = [ge(E), ge(A)], N = E.value.replace(/\n$/, "").split(`
- `);
- if (A === void 0) {
- for (const C of N) {
- let I = i(), $ = i();
- const B = V(s, C);
- S === T.EQUAL && (c++, f++, I = a(T.EQUAL, c, B), $ = a(T.EQUAL, f, B)), S === T.DELETE && (c++, I = a(T.DELETE, c, B), $ = i()), S === T.ADD && (f++, I = i(), $ = a(T.ADD, f, B)), d.push({ left: I, right: $ });
- }
- break;
- }
- if (S === T.EQUAL)
- for (const C of N) {
- c++, f++;
- const I = V(s, C);
- d.push({
- left: a(T.EQUAL, c, I),
- right: a(T.EQUAL, f, I)
- });
- }
- const R = A.value.replace(/\n$/, "").split(`
- `);
- if (S === T.DELETE) {
- if (D === T.EQUAL)
- for (const C of N)
- c++, d.push({
- left: a(T.DELETE, c, V(s, C)),
- right: i()
- });
- if (D === T.ADD) {
- g = !0;
- const C = Math.max(E.count, A.count);
- for (let I = 0; I < C; I++) {
- I < E.count && c++, I < A.count && f++;
- const [$, B] = [N[I], R[I]], H = h || N.length === R.length, K = H ? Te(B, $, u) : $, te = H ? Te($, B, u) : B, le = l != null && l.test($) ? T.EQUAL : T.DELETE, b = l != null && l.test(B) ? T.EQUAL : T.ADD, y = I < E.count ? a(le, c, V(s, K)) : i(), L = I < A.count ? a(b, f, V(s, te)) : i();
- d.push({ left: y, right: L });
- }
- }
- }
- if (S === T.ADD)
- for (const C of N)
- f++, d.push({
- left: i(),
- right: a(T.ADD, f, V(s, C))
- });
- }
- if (n === e) {
- for (let m = 0; m < d.length; m++)
- d[m].fold = !1;
- return _;
- }
- for (let m = 0; m < d.length; m++) {
- const E = d[m];
- if (E.left.type === T.DELETE || E.right.type === T.ADD) {
- const [A, S] = [Math.max(m - t, 0), Math.min(m + t + 1, d.length)];
- for (let D = A; D < S; D++)
- d[D].fold = !1;
- }
- E.fold === void 0 && (E.fold = !0);
- }
- const p = [];
- let v = [];
- for (let m = 0; m < d.length; m++) {
- const E = d[m];
- if (E.fold === !1) {
- v.length && (v[0].hideIndex = _.collector.length, _.collector.push({
- lines: v,
- fold: !0
- }), v = []), p.push(E);
- continue;
- }
- E.hide = !0, v.push(E), p.push(E);
- }
- return v.length && (v[0].hideIndex = _.collector.length, _.collector.push({
- lines: v,
- fold: !0
- }), v = []), _.changes = p, _;
- }
- function qt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
- const i = yn(n, e), a = r ? new RegExp(r) : void 0;
- let o = 0, l = 0, c = !1;
- const f = [], g = {
- changes: f,
- collector: [],
- stat: An(i, a)
- };
- for (let p = 0; p < i.length; p++) {
- if (c) {
- c = !1;
- continue;
- }
- const [v, m] = [i[p], i[p + 1]], [E, A] = [ge(v), ge(m)], S = v.value.replace(/\n$/, "").split(`
- `);
- if (m === void 0) {
- for (const N of S) {
- E === T.EQUAL && (o++, l++), E === T.DELETE && o++, E === T.ADD && l++;
- const R = V(s, N);
- f.push({
- type: E,
- code: R,
- addNum: E === T.DELETE ? void 0 : l,
- delNum: E === T.ADD ? void 0 : o
- });
- }
- break;
- }
- if (E === T.EQUAL)
- for (const N of S) {
- o++, l++;
- const R = V(s, N);
- f.push({ type: T.EQUAL, code: R, delNum: o, addNum: l });
- }
- const D = m.value.replace(/\n$/, "").split(`
- `);
- if (E === T.DELETE)
- if (A === T.ADD && (S.length === D.length || h)) {
- for (let N = 0; N < S.length; N++) {
- const R = S[N], C = D[N];
- o++;
- const I = V(s, Te(C, R, u));
- f.push({
- type: a != null && a.test(R) ? T.EQUAL : T.DELETE,
- code: I,
- delNum: o
- });
- }
- for (let N = 0; N < D.length; N++) {
- const R = S[N], C = D[N];
- l++;
- const I = V(s, Te(R, C, u));
- f.push({
- type: a != null && a.test(C) ? T.EQUAL : T.ADD,
- code: I,
- addNum: l
- });
- }
- c = !0;
- } else
- for (const N of S) {
- o++;
- const R = V(s, N);
- f.push({ type: T.DELETE, code: R, delNum: o });
- }
- if (E === T.ADD)
- for (const N of S) {
- l++;
- const R = V(s, N);
- f.push({ type: T.ADD, code: R, addNum: l });
- }
- }
- for (let p = 0; p < f.length; p++) {
- const v = f[p];
- if (v.type === T.DELETE || v.type === T.ADD) {
- const [m, E] = [Math.max(p - t, 0), Math.min(p + t + 1, f.length)];
- for (let A = m; A < E; A++)
- f[A].fold = !1;
- }
- v.fold === void 0 && (v.fold = !0);
- }
- if (n === e) {
- for (let p = 0; p < f.length; p++)
- f[p].fold = !1;
- return g;
- }
- const d = [];
- let _ = [];
- for (let p = 0; p < f.length; p++) {
- const v = f[p];
- if (v.fold === !1) {
- _.length && (_[0].hideIndex = g.collector.length, g.collector.push({
- lines: _,
- fold: !0
- }), _ = []), d.push(v);
- continue;
- }
- v.type === "equal" && (v.hide = !0, _.push(v)), d.push(v);
- }
- return _.length && (_[0].hideIndex = g.collector.length, g.collector.push({
- lines: _,
- fold: !0
- }), _ = []), g.changes = d, g;
- }
- const Jt = /* @__PURE__ */ be({
- __name: "UnifiedLine",
- props: {
- line: null
- },
- emits: ["expand"],
- setup(n, { emit: e }) {
- function s(u) {
- return u === T.DELETE ? "-" : u === T.ADD ? "+" : "";
- }
- return { __sfc: !0, emit: e, getCodeMarker: s, DiffType: T };
- }
- });
- function oe(n, e, s, u, h, t, r, i) {
- var a = typeof n == "function" ? n.options : n;
- e && (a.render = e, a.staticRenderFns = s, a._compiled = !0), u && (a.functional = !0), t && (a._scopeId = "data-v-" + t);
- var o;
- if (r ? (o = function(f) {
- f = f || // cached call
- this.$vnode && this.$vnode.ssrContext || // stateful
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ != "undefined" && (f = __VUE_SSR_CONTEXT__), h && h.call(this, f), f && f._registeredComponents && f._registeredComponents.add(r);
- }, a._ssrRegister = o) : h && (o = i ? function() {
- h.call(
- this,
- (a.functional ? this.parent : this).$root.$options.shadowRoot
- );
- } : h), o)
- if (a.functional) {
- a._injectStyles = o;
- var l = a.render;
- a.render = function(g, d) {
- return o.call(d), l(g, d);
- };
- } else {
- var c = a.beforeCreate;
- a.beforeCreate = c ? [].concat(c, o) : [o];
- }
- return {
- exports: n,
- options: a
- };
- }
- var er = function() {
- var e = this, s = e._self._c, u = e._self._setupProxy;
- return e.line.hideIndex !== void 0 && e.line.hide ? s("tr", [s("td", { staticClass: "blob-num blob-num-hunk text-center", attrs: { colspan: "2" }, on: { click: function(h) {
- return u.emit("expand", e.line);
- } } }, [e._v(" > ")]), s("td", { staticClass: "blob-code blob-code-hunk", attrs: { align: "left" } }, [e._v(" ⋯ ")])]) : e.line.hide ? e._e() : s("tr", [s("td", { staticClass: "blob-num", class: {
- "blob-num-deletion": e.line.type === u.DiffType.DELETE,
- "blob-num-addition": e.line.type === u.DiffType.ADD,
- "blob-num-context": e.line.type === u.DiffType.EQUAL,
- "blob-num-hunk": e.line.hide !== void 0
- } }, [e._v(" " + e._s(e.line.delNum) + " ")]), s("td", { staticClass: "blob-num", class: {
- "blob-num-deletion": e.line.type === u.DiffType.DELETE,
- "blob-num-addition": e.line.type === u.DiffType.ADD,
- "blob-num-context": e.line.type === u.DiffType.EQUAL,
- "blob-num-hunk": e.line.hide !== void 0
- } }, [e._v(" " + e._s(e.line.addNum) + " ")]), s("td", { staticClass: "blob-code", class: {
- "blob-code-deletion": e.line.type === u.DiffType.DELETE,
- "blob-code-addition": e.line.type === u.DiffType.ADD,
- "blob-code-context": e.line.type === u.DiffType.EQUAL,
- "blob-code-hunk": e.line.hide !== void 0
- } }, [s("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(e.line.type) }, domProps: { innerHTML: e._s(e.line.code) } })])]);
- }, nr = [], tr = /* @__PURE__ */ oe(
- Jt,
- er,
- nr,
- !1,
- null,
- null,
- null,
- null
- );
- const rr = tr.exports, ir = /* @__PURE__ */ be({
- __name: "UnifiedViewer",
- props: {
- diffChange: null
- },
- setup(n) {
- const e = n;
- function s({ hideIndex: u }) {
- u !== void 0 && e.diffChange.collector[u].lines.forEach((h) => {
- h.hide = !1, h.fold = !1;
- });
- }
- return { __sfc: !0, props: e, expandHandler: s, UnifiedLine: rr };
- }
- });
- var sr = function() {
- var h;
- var e = this, s = e._self._c, u = e._self._setupProxy;
- return s("table", { staticClass: "diff-table" }, [s("tbody", e._l((h = e.diffChange) == null ? void 0 : h.changes, function(t, r) {
- return s(u.UnifiedLine, { key: r, attrs: { line: t }, on: { expand: u.expandHandler } });
- }), 1)]);
- }, ar = [], or = /* @__PURE__ */ oe(
- ir,
- sr,
- ar,
- !1,
- null,
- "238e1326",
- null,
- null
- );
- const lr = or.exports, cr = /* @__PURE__ */ be({
- __name: "SplitLine",
- props: {
- splitLine: null
- },
- emits: ["expand"],
- setup(n, { emit: e }) {
- function s(h) {
- return h === T.DELETE ? "-" : h === T.ADD ? "+" : "";
- }
- function u(h) {
- window.getSelection().removeAllRanges();
- const t = document.querySelectorAll(".file-diff-split .split-side-left"), r = document.querySelectorAll(".file-diff-split .split-side-right");
- for (const i of r)
- i.classList.toggle("no-select", h === "left");
- for (const i of t)
- i.classList.toggle("no-select", h === "right");
- }
- return { __sfc: !0, emit: e, getCodeMarker: s, onSplitLineMousedown: u, DiffType: T };
- }
- });
- var ur = function() {
- var e = this, s = e._self._c, u = e._self._setupProxy;
- return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? s("tr", [s("td", { staticClass: "blob-num blob-num-hunk", attrs: { colspan: "1" }, on: { click: function(h) {
- return u.emit("expand", e.splitLine);
- } } }, [e._v(" > ")]), s("td", { staticClass: "blob-code blob-code-inner blob-code-hunk", attrs: { colspan: "3", align: "left" } }, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : s("tr", [e._l([e.splitLine.left, e.splitLine.right], function(h, t) {
- return [h.type === u.DiffType.EMPTY ? [s("td", { staticClass: "blob-num blob-num-empty empty-cell" }), s("td", { staticClass: "blob-code blob-code-empty empty-cell" })] : [s("td", { staticClass: "blob-num", class: {
- "blob-num-deletion": h.type === u.DiffType.DELETE,
- "blob-num-addition": h.type === u.DiffType.ADD,
- "blob-num-context": h.type === u.DiffType.EQUAL,
- "blob-num-hunk": e.splitLine.hide !== void 0
- } }, [e._v(" " + e._s(h.num) + " ")]), s("td", { staticClass: "blob-code", class: {
- "blob-code-deletion": h.type === u.DiffType.DELETE,
- "blob-code-addition": h.type === u.DiffType.ADD,
- "blob-code-context": h.type === u.DiffType.EQUAL,
- "blob-code-hunk": e.splitLine.hide !== void 0,
- "split-side-left": t === 0,
- "split-side-right": t === 1
- }, on: { mousedown: function(r) {
- return u.onSplitLineMousedown(t === 0 ? "left" : "right");
- } } }, [s("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(h.type) }, domProps: { innerHTML: e._s(h.code) } })])]];
- })], 2);
- }, fr = [], gr = /* @__PURE__ */ oe(
- cr,
- ur,
- fr,
- !1,
- null,
- null,
- null,
- null
- );
- const hr = gr.exports, dr = /* @__PURE__ */ be({
- __name: "SplitViewer",
- props: {
- diffChange: null
- },
- setup(n) {
- const e = n;
- function s({ hideIndex: u }) {
- u !== void 0 && e.diffChange.collector[u].lines.forEach((h) => {
- h.hide = !1, h.fold = !1;
- });
- }
- return { __sfc: !0, props: e, expandHandler: s, SplitLine: hr };
- }
- });
- var _r = function() {
- var h;
- var e = this, s = e._self._c, u = e._self._setupProxy;
- return s("table", { staticClass: "file-diff-split diff-table" }, [e._m(0), s("tbody", e._l((h = e.diffChange) == null ? void 0 : h.changes, function(t, r) {
- return s(u.SplitLine, { key: r, attrs: { "split-line": t }, on: { expand: u.expandHandler } });
- }), 1)]);
- }, pr = [function() {
- var n = this, e = n._self._c;
- return n._self._setupProxy, e("colgroup", [e("col", { attrs: { width: "44" } }), e("col"), e("col", { attrs: { width: "44" } }), e("col")]);
- }], br = /* @__PURE__ */ oe(
- dr,
- _r,
- pr,
- !1,
- null,
- "829edc33",
- null,
- null
- );
- const vr = br.exports, mr = {
- name: "DownArrowIcon"
- };
- var Er = function() {
- var e = this, s = e._self._c;
- return s("svg", { attrs: { width: "1rem", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg" } }, [s("path", { attrs: { d: "M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z" } })]);
- }, wr = [], yr = /* @__PURE__ */ oe(
- mr,
- Er,
- wr,
- !1,
- null,
- null,
- null,
- null
- );
- const Ar = yr.exports, Nr = {
- name: "UpArrowIcon"
- };
- var Mr = function() {
- var e = this, s = e._self._c;
- return s("svg", { attrs: { width: "1rem", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg" } }, [s("path", { attrs: { d: "M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z" } })]);
- }, Tr = [], Dr = /* @__PURE__ */ oe(
- Nr,
- Mr,
- Tr,
- !1,
- null,
- null,
- null,
- null
- );
- const Sr = Dr.exports;
- const Cr = /* @__PURE__ */ be({
- __name: "CodeDiff",
- props: {
- newString: null,
- oldString: null,
- language: { default: "plaintext" },
- context: { default: 10 },
- diffStyle: { default: "word" },
- forceInlineComparison: { type: Boolean, default: !1 },
- outputFormat: { default: "line-by-line" },
- trim: { type: Boolean, default: !1 },
- noDiffLineFeed: { type: Boolean, default: !1 },
- maxHeight: { default: void 0 },
- filename: { default: void 0 },
- newFilename: { default: void 0 },
- hideHeader: { type: Boolean, default: !1 },
- hideStat: { type: Boolean, default: !1 },
- theme: { default: "light" },
- ignoreMatchingLines: { default: void 0 }
- },
- emits: ["diff"],
- setup(n, { emit: e }) {
- const s = n, u = he(() => s.outputFormat === "line-by-line"), h = he(() => {
- let g = s.oldString || "";
- return g = s.trim ? g.trim() : g, g = s.noDiffLineFeed ? g.replace(/(\r\n)/g, `
- `) : g, g;
- }), t = he(() => {
- let g = s.newString || "";
- return g = s.trim ? g.trim() : g, g = s.noDiffLineFeed ? g.replace(/(\r\n)/g, `
- `) : g, g;
- }), r = he(
- () => u.value ? qt(h.value, t.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines) : jt(h.value, t.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines)
- ), i = We(r.value), a = he(() => i.value.stat.additionsNum === 0 && i.value.stat.deletionsNum === 0), o = We(-1);
- function l() {
- const g = document.querySelectorAll(".blob-code-addition");
- o.value < g.length - 1 && (o.value++, f(g));
- }
- function c() {
- const g = document.querySelectorAll(".blob-code-addition");
- o.value > 0 && (o.value--, f(g));
- }
- function f(g) {
- g.forEach((_) => _.classList.remove("current-diff"));
- const d = g[o.value];
- d && (d.classList.add("current-diff"), d.scrollIntoView({ behavior: "smooth", block: "center" }));
- }
- return On(() => s, () => {
- i.value = r.value, e("diff", {
- stat: {
- isChanged: !a.value,
- addNum: i.value.stat.additionsNum,
- delNum: i.value.stat.deletionsNum
- }
- });
- }, { deep: !0, immediate: !0 }), { __sfc: !0, props: s, emits: e, isUnifiedViewer: u, oldString: h, newString: t, raw: r, diffChange: i, isNotChanged: a, currentDiffIndex: o, goToNextDiff: l, goToPrevDiff: c, updateCurrentDiffHighlight: f, UnifiedViewer: lr, SplitViewer: vr, DownArrowIcon: Ar, UpArrowIcon: Sr };
- }
- });
- var Rr = function() {
- var e = this, s = e._self._c, u = e._self._setupProxy;
- return s("div", { staticClass: "code-diff-view", style: { maxHeight: e.maxHeight }, attrs: { theme: e.theme } }, [e.hideHeader ? e._e() : s("div", { staticClass: "file-header" }, [u.isUnifiedViewer ? s("div", { staticClass: "file-info" }, [s("span", [s("div", { staticClass: "info-left" }, [e._v(e._s(e.filename))]), s("div", { staticClass: "info-left" }, [e._v(e._s(e.newFilename))])]), s("span", { staticClass: "diff-commandbar" }, [s("button", { staticClass: "command-item-button", attrs: { title: "Next Change" }, on: { click: u.goToNextDiff } }, [s(u.DownArrowIcon)], 1), s("button", { staticClass: "command-item-button", attrs: { title: "Previous Change" }, on: { click: u.goToPrevDiff } }, [s(u.UpArrowIcon)], 1)]), e.hideStat ? e._e() : s("span", { staticClass: "diff-stat" }, [e._t("stat", function() {
- return [s("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), s("span", { staticClass: "diff-stat-deleted" }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])];
- }, { stat: u.diffChange.stat })], 2)]) : s("div", { staticClass: "file-info" }, [s("span", { staticClass: "info-left" }, [e._v(e._s(e.filename))]), s("span", { staticClass: "info-right" }, [s("span", { staticStyle: { "margin-left": "20px" } }, [e._v(e._s(e.newFilename))]), s("span", { staticClass: "diff-commandbar" }, [s("button", { staticClass: "command-item-button", attrs: { title: "Next Change" }, on: { click: u.goToNextDiff } }, [s(u.DownArrowIcon)], 1), s("button", { staticClass: "command-item-button", attrs: { title: "Previous Change" }, on: { click: u.goToPrevDiff } }, [s(u.UpArrowIcon)], 1)]), e.hideStat ? e._e() : s("span", { staticClass: "diff-stat" }, [e._t("stat", function() {
- return [s("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), s("span", { staticClass: "diff-stat-deleted" }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])];
- }, { stat: u.diffChange.stat })], 2)])])]), u.isUnifiedViewer ? s(u.UnifiedViewer, { attrs: { "diff-change": u.diffChange } }) : s(u.SplitViewer, { attrs: { "diff-change": u.diffChange } })], 1);
- }, Lr = [], Or = /* @__PURE__ */ oe(
- Cr,
- Rr,
- Lr,
- !1,
- null,
- null,
- null,
- null
- );
- const Ir = Or.exports;
- function kr(n) {
- n.component("CodeDiff", Ir);
- }
- const $r = {
- install: kr,
- hljs: Z
- };
- export {
- Ir as CodeDiff,
- $r as default,
- Z as hljs
- };
|