index.js 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917
  1. module.exports =
  2. /******/ (function(modules, runtime) { // webpackBootstrap
  3. /******/ "use strict";
  4. /******/ // The module cache
  5. /******/ var installedModules = {};
  6. /******/
  7. /******/ // The require function
  8. /******/ function __webpack_require__(moduleId) {
  9. /******/
  10. /******/ // Check if module is in cache
  11. /******/ if(installedModules[moduleId]) {
  12. /******/ return installedModules[moduleId].exports;
  13. /******/ }
  14. /******/ // Create a new module (and put it into the cache)
  15. /******/ var module = installedModules[moduleId] = {
  16. /******/ i: moduleId,
  17. /******/ l: false,
  18. /******/ exports: {}
  19. /******/ };
  20. /******/
  21. /******/ // Execute the module function
  22. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  23. /******/
  24. /******/ // Flag the module as loaded
  25. /******/ module.l = true;
  26. /******/
  27. /******/ // Return the exports of the module
  28. /******/ return module.exports;
  29. /******/ }
  30. /******/
  31. /******/
  32. /******/ __webpack_require__.ab = __dirname + "/";
  33. /******/
  34. /******/ // the startup function
  35. /******/ function startup() {
  36. /******/ // Load entry module and return exports
  37. /******/ return __webpack_require__(198);
  38. /******/ };
  39. /******/
  40. /******/ // run startup
  41. /******/ return startup();
  42. /******/ })
  43. /************************************************************************/
  44. /******/ ({
  45. /***/ 0:
  46. /***/ (function(module, __unusedexports, __webpack_require__) {
  47. const { requestLog } = __webpack_require__(916);
  48. const {
  49. restEndpointMethods
  50. } = __webpack_require__(842);
  51. const Core = __webpack_require__(529);
  52. const CORE_PLUGINS = [
  53. __webpack_require__(190),
  54. __webpack_require__(19), // deprecated: remove in v17
  55. requestLog,
  56. __webpack_require__(148),
  57. restEndpointMethods,
  58. __webpack_require__(430),
  59. __webpack_require__(850) // deprecated: remove in v17
  60. ];
  61. const OctokitRest = Core.plugin(CORE_PLUGINS);
  62. function DeprecatedOctokit(options) {
  63. const warn =
  64. options && options.log && options.log.warn
  65. ? options.log.warn
  66. : console.warn;
  67. warn(
  68. '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
  69. );
  70. return new OctokitRest(options);
  71. }
  72. const Octokit = Object.assign(DeprecatedOctokit, {
  73. Octokit: OctokitRest
  74. });
  75. Object.keys(OctokitRest).forEach(key => {
  76. /* istanbul ignore else */
  77. if (OctokitRest.hasOwnProperty(key)) {
  78. Octokit[key] = OctokitRest[key];
  79. }
  80. });
  81. module.exports = Octokit;
  82. /***/ }),
  83. /***/ 1:
  84. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  85. "use strict";
  86. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  87. if (k2 === undefined) k2 = k;
  88. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  89. }) : (function(o, m, k, k2) {
  90. if (k2 === undefined) k2 = k;
  91. o[k2] = m[k];
  92. }));
  93. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  94. Object.defineProperty(o, "default", { enumerable: true, value: v });
  95. }) : function(o, v) {
  96. o["default"] = v;
  97. });
  98. var __importStar = (this && this.__importStar) || function (mod) {
  99. if (mod && mod.__esModule) return mod;
  100. var result = {};
  101. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  102. __setModuleDefault(result, mod);
  103. return result;
  104. };
  105. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  106. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  107. return new (P || (P = Promise))(function (resolve, reject) {
  108. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  109. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  110. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  111. step((generator = generator.apply(thisArg, _arguments || [])).next());
  112. });
  113. };
  114. Object.defineProperty(exports, "__esModule", { value: true });
  115. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  116. const assert_1 = __webpack_require__(357);
  117. const childProcess = __importStar(__webpack_require__(129));
  118. const path = __importStar(__webpack_require__(622));
  119. const util_1 = __webpack_require__(669);
  120. const ioUtil = __importStar(__webpack_require__(672));
  121. const exec = util_1.promisify(childProcess.exec);
  122. const execFile = util_1.promisify(childProcess.execFile);
  123. /**
  124. * Copies a file or folder.
  125. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  126. *
  127. * @param source source path
  128. * @param dest destination path
  129. * @param options optional. See CopyOptions.
  130. */
  131. function cp(source, dest, options = {}) {
  132. return __awaiter(this, void 0, void 0, function* () {
  133. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  134. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  135. // Dest is an existing file, but not forcing
  136. if (destStat && destStat.isFile() && !force) {
  137. return;
  138. }
  139. // If dest is an existing directory, should copy inside.
  140. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  141. ? path.join(dest, path.basename(source))
  142. : dest;
  143. if (!(yield ioUtil.exists(source))) {
  144. throw new Error(`no such file or directory: ${source}`);
  145. }
  146. const sourceStat = yield ioUtil.stat(source);
  147. if (sourceStat.isDirectory()) {
  148. if (!recursive) {
  149. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  150. }
  151. else {
  152. yield cpDirRecursive(source, newDest, 0, force);
  153. }
  154. }
  155. else {
  156. if (path.relative(source, newDest) === '') {
  157. // a file cannot be copied to itself
  158. throw new Error(`'${newDest}' and '${source}' are the same file`);
  159. }
  160. yield copyFile(source, newDest, force);
  161. }
  162. });
  163. }
  164. exports.cp = cp;
  165. /**
  166. * Moves a path.
  167. *
  168. * @param source source path
  169. * @param dest destination path
  170. * @param options optional. See MoveOptions.
  171. */
  172. function mv(source, dest, options = {}) {
  173. return __awaiter(this, void 0, void 0, function* () {
  174. if (yield ioUtil.exists(dest)) {
  175. let destExists = true;
  176. if (yield ioUtil.isDirectory(dest)) {
  177. // If dest is directory copy src into dest
  178. dest = path.join(dest, path.basename(source));
  179. destExists = yield ioUtil.exists(dest);
  180. }
  181. if (destExists) {
  182. if (options.force == null || options.force) {
  183. yield rmRF(dest);
  184. }
  185. else {
  186. throw new Error('Destination already exists');
  187. }
  188. }
  189. }
  190. yield mkdirP(path.dirname(dest));
  191. yield ioUtil.rename(source, dest);
  192. });
  193. }
  194. exports.mv = mv;
  195. /**
  196. * Remove a path recursively with force
  197. *
  198. * @param inputPath path to remove
  199. */
  200. function rmRF(inputPath) {
  201. return __awaiter(this, void 0, void 0, function* () {
  202. if (ioUtil.IS_WINDOWS) {
  203. // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
  204. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
  205. // Check for invalid characters
  206. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  207. if (/[*"<>|]/.test(inputPath)) {
  208. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  209. }
  210. try {
  211. const cmdPath = ioUtil.getCmdPath();
  212. // if (await ioUtil.isDirectory(inputPath, true)) {
  213. // await execFile(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
  214. // env: {inputPath}
  215. // })
  216. // } else {
  217. yield execFile(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
  218. env: { inputPath }
  219. });
  220. // }
  221. }
  222. catch (err) {
  223. // if you try to delete a file that doesn't exist, desired result is achieved
  224. // other errors are valid
  225. if (err.code !== 'ENOENT')
  226. throw err;
  227. }
  228. // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
  229. try {
  230. yield ioUtil.unlink(inputPath);
  231. }
  232. catch (err) {
  233. // if you try to delete a file that doesn't exist, desired result is achieved
  234. // other errors are valid
  235. if (err.code !== 'ENOENT')
  236. throw err;
  237. }
  238. }
  239. else {
  240. // let isDir = false
  241. try {
  242. // isDir = await ioUtil.isDirectory(inputPath)
  243. }
  244. catch (err) {
  245. // if you try to delete a file that doesn't exist, desired result is achieved
  246. // other errors are valid
  247. if (err.code !== 'ENOENT')
  248. throw err;
  249. return;
  250. }
  251. // if (isDir) {
  252. yield execFile(`rm`, [`-rf`, `${inputPath}`]);
  253. // } else {
  254. // await ioUtil.unlink(inputPath)
  255. // }
  256. }
  257. });
  258. }
  259. exports.rmRF = rmRF;
  260. /**
  261. * Make a directory. Creates the full path with folders in between
  262. * Will throw if it fails
  263. *
  264. * @param fsPath path to create
  265. * @returns Promise<void>
  266. */
  267. function mkdirP(fsPath) {
  268. return __awaiter(this, void 0, void 0, function* () {
  269. assert_1.ok(fsPath, 'a path argument must be provided');
  270. yield ioUtil.mkdir(fsPath, { recursive: true });
  271. });
  272. }
  273. exports.mkdirP = mkdirP;
  274. /**
  275. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  276. * If you check and the tool does not exist, it will throw.
  277. *
  278. * @param tool name of the tool
  279. * @param check whether to check if tool exists
  280. * @returns Promise<string> path to tool
  281. */
  282. function which(tool, check) {
  283. return __awaiter(this, void 0, void 0, function* () {
  284. if (!tool) {
  285. throw new Error("parameter 'tool' is required");
  286. }
  287. // recursive when check=true
  288. if (check) {
  289. const result = yield which(tool, false);
  290. if (!result) {
  291. if (ioUtil.IS_WINDOWS) {
  292. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
  293. }
  294. else {
  295. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
  296. }
  297. }
  298. return result;
  299. }
  300. const matches = yield findInPath(tool);
  301. if (matches && matches.length > 0) {
  302. return matches[0];
  303. }
  304. return '';
  305. });
  306. }
  307. exports.which = which;
  308. /**
  309. * Returns a list of all occurrences of the given tool on the system path.
  310. *
  311. * @returns Promise<string[]> the paths of the tool
  312. */
  313. function findInPath(tool) {
  314. return __awaiter(this, void 0, void 0, function* () {
  315. if (!tool) {
  316. throw new Error("parameter 'tool' is required");
  317. }
  318. // build the list of extensions to try
  319. const extensions = [];
  320. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  321. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  322. if (extension) {
  323. extensions.push(extension);
  324. }
  325. }
  326. }
  327. // if it's rooted, return it if exists. otherwise return empty.
  328. if (ioUtil.isRooted(tool)) {
  329. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  330. if (filePath) {
  331. return [filePath];
  332. }
  333. return [];
  334. }
  335. // if any path separators, return empty
  336. if (tool.includes(path.sep)) {
  337. return [];
  338. }
  339. // build the list of directories
  340. //
  341. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  342. // it feels like we should not do this. Checking the current directory seems like more of a use
  343. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  344. // across platforms.
  345. const directories = [];
  346. if (process.env.PATH) {
  347. for (const p of process.env.PATH.split(path.delimiter)) {
  348. if (p) {
  349. directories.push(p);
  350. }
  351. }
  352. }
  353. // find all matches
  354. const matches = [];
  355. for (const directory of directories) {
  356. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  357. if (filePath) {
  358. matches.push(filePath);
  359. }
  360. }
  361. return matches;
  362. });
  363. }
  364. exports.findInPath = findInPath;
  365. function readCopyOptions(options) {
  366. const force = options.force == null ? true : options.force;
  367. const recursive = Boolean(options.recursive);
  368. const copySourceDirectory = options.copySourceDirectory == null
  369. ? true
  370. : Boolean(options.copySourceDirectory);
  371. return { force, recursive, copySourceDirectory };
  372. }
  373. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  374. return __awaiter(this, void 0, void 0, function* () {
  375. // Ensure there is not a run away recursive copy
  376. if (currentDepth >= 255)
  377. return;
  378. currentDepth++;
  379. yield mkdirP(destDir);
  380. const files = yield ioUtil.readdir(sourceDir);
  381. for (const fileName of files) {
  382. const srcFile = `${sourceDir}/${fileName}`;
  383. const destFile = `${destDir}/${fileName}`;
  384. const srcFileStat = yield ioUtil.lstat(srcFile);
  385. if (srcFileStat.isDirectory()) {
  386. // Recurse
  387. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  388. }
  389. else {
  390. yield copyFile(srcFile, destFile, force);
  391. }
  392. }
  393. // Change the mode for the newly created directory
  394. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  395. });
  396. }
  397. // Buffered file copy
  398. function copyFile(srcFile, destFile, force) {
  399. return __awaiter(this, void 0, void 0, function* () {
  400. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  401. // unlink/re-link it
  402. try {
  403. yield ioUtil.lstat(destFile);
  404. yield ioUtil.unlink(destFile);
  405. }
  406. catch (e) {
  407. // Try to override file permission
  408. if (e.code === 'EPERM') {
  409. yield ioUtil.chmod(destFile, '0666');
  410. yield ioUtil.unlink(destFile);
  411. }
  412. // other errors = it doesn't exist, no work to do
  413. }
  414. // Copy over symlink
  415. const symlinkFull = yield ioUtil.readlink(srcFile);
  416. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  417. }
  418. else if (!(yield ioUtil.exists(destFile)) || force) {
  419. yield ioUtil.copyFile(srcFile, destFile);
  420. }
  421. });
  422. }
  423. //# sourceMappingURL=io.js.map
  424. /***/ }),
  425. /***/ 2:
  426. /***/ (function(module, __unusedexports, __webpack_require__) {
  427. "use strict";
  428. const os = __webpack_require__(87);
  429. const macosRelease = __webpack_require__(118);
  430. const winRelease = __webpack_require__(49);
  431. const osName = (platform, release) => {
  432. if (!platform && release) {
  433. throw new Error('You can\'t specify a `release` without specifying `platform`');
  434. }
  435. platform = platform || os.platform();
  436. let id;
  437. if (platform === 'darwin') {
  438. if (!release && os.platform() === 'darwin') {
  439. release = os.release();
  440. }
  441. const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
  442. id = release ? macosRelease(release).name : '';
  443. return prefix + (id ? ' ' + id : '');
  444. }
  445. if (platform === 'linux') {
  446. if (!release && os.platform() === 'linux') {
  447. release = os.release();
  448. }
  449. id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
  450. return 'Linux' + (id ? ' ' + id : '');
  451. }
  452. if (platform === 'win32') {
  453. if (!release && os.platform() === 'win32') {
  454. release = os.release();
  455. }
  456. id = release ? winRelease(release) : '';
  457. return 'Windows' + (id ? ' ' + id : '');
  458. }
  459. return platform;
  460. };
  461. module.exports = osName;
  462. /***/ }),
  463. /***/ 3:
  464. /***/ (function(module, __unusedexports, __webpack_require__) {
  465. var once = __webpack_require__(969);
  466. var noop = function() {};
  467. var isRequest = function(stream) {
  468. return stream.setHeader && typeof stream.abort === 'function';
  469. };
  470. var isChildProcess = function(stream) {
  471. return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
  472. };
  473. var eos = function(stream, opts, callback) {
  474. if (typeof opts === 'function') return eos(stream, null, opts);
  475. if (!opts) opts = {};
  476. callback = once(callback || noop);
  477. var ws = stream._writableState;
  478. var rs = stream._readableState;
  479. var readable = opts.readable || (opts.readable !== false && stream.readable);
  480. var writable = opts.writable || (opts.writable !== false && stream.writable);
  481. var cancelled = false;
  482. var onlegacyfinish = function() {
  483. if (!stream.writable) onfinish();
  484. };
  485. var onfinish = function() {
  486. writable = false;
  487. if (!readable) callback.call(stream);
  488. };
  489. var onend = function() {
  490. readable = false;
  491. if (!writable) callback.call(stream);
  492. };
  493. var onexit = function(exitCode) {
  494. callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
  495. };
  496. var onerror = function(err) {
  497. callback.call(stream, err);
  498. };
  499. var onclose = function() {
  500. process.nextTick(onclosenexttick);
  501. };
  502. var onclosenexttick = function() {
  503. if (cancelled) return;
  504. if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
  505. if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
  506. };
  507. var onrequest = function() {
  508. stream.req.on('finish', onfinish);
  509. };
  510. if (isRequest(stream)) {
  511. stream.on('complete', onfinish);
  512. stream.on('abort', onclose);
  513. if (stream.req) onrequest();
  514. else stream.on('request', onrequest);
  515. } else if (writable && !ws) { // legacy streams
  516. stream.on('end', onlegacyfinish);
  517. stream.on('close', onlegacyfinish);
  518. }
  519. if (isChildProcess(stream)) stream.on('exit', onexit);
  520. stream.on('end', onend);
  521. stream.on('finish', onfinish);
  522. if (opts.error !== false) stream.on('error', onerror);
  523. stream.on('close', onclose);
  524. return function() {
  525. cancelled = true;
  526. stream.removeListener('complete', onfinish);
  527. stream.removeListener('abort', onclose);
  528. stream.removeListener('request', onrequest);
  529. if (stream.req) stream.req.removeListener('finish', onfinish);
  530. stream.removeListener('end', onlegacyfinish);
  531. stream.removeListener('close', onlegacyfinish);
  532. stream.removeListener('finish', onfinish);
  533. stream.removeListener('exit', onexit);
  534. stream.removeListener('end', onend);
  535. stream.removeListener('error', onerror);
  536. stream.removeListener('close', onclose);
  537. };
  538. };
  539. module.exports = eos;
  540. /***/ }),
  541. /***/ 4:
  542. /***/ (function(__unusedmodule, exports) {
  543. "use strict";
  544. Object.defineProperty(exports, "__esModule", {
  545. value: true
  546. });
  547. exports.default = void 0;
  548. var _default = '00000000-0000-0000-0000-000000000000';
  549. exports.default = _default;
  550. /***/ }),
  551. /***/ 9:
  552. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  553. "use strict";
  554. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  555. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  556. return new (P || (P = Promise))(function (resolve, reject) {
  557. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  558. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  559. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  560. step((generator = generator.apply(thisArg, _arguments || [])).next());
  561. });
  562. };
  563. Object.defineProperty(exports, "__esModule", { value: true });
  564. const os = __webpack_require__(87);
  565. const events = __webpack_require__(614);
  566. const child = __webpack_require__(129);
  567. /* eslint-disable @typescript-eslint/unbound-method */
  568. const IS_WINDOWS = process.platform === 'win32';
  569. /*
  570. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  571. */
  572. class ToolRunner extends events.EventEmitter {
  573. constructor(toolPath, args, options) {
  574. super();
  575. if (!toolPath) {
  576. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  577. }
  578. this.toolPath = toolPath;
  579. this.args = args || [];
  580. this.options = options || {};
  581. }
  582. _debug(message) {
  583. if (this.options.listeners && this.options.listeners.debug) {
  584. this.options.listeners.debug(message);
  585. }
  586. }
  587. _getCommandString(options, noPrefix) {
  588. const toolPath = this._getSpawnFileName();
  589. const args = this._getSpawnArgs(options);
  590. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  591. if (IS_WINDOWS) {
  592. // Windows + cmd file
  593. if (this._isCmdFile()) {
  594. cmd += toolPath;
  595. for (const a of args) {
  596. cmd += ` ${a}`;
  597. }
  598. }
  599. // Windows + verbatim
  600. else if (options.windowsVerbatimArguments) {
  601. cmd += `"${toolPath}"`;
  602. for (const a of args) {
  603. cmd += ` ${a}`;
  604. }
  605. }
  606. // Windows (regular)
  607. else {
  608. cmd += this._windowsQuoteCmdArg(toolPath);
  609. for (const a of args) {
  610. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  611. }
  612. }
  613. }
  614. else {
  615. // OSX/Linux - this can likely be improved with some form of quoting.
  616. // creating processes on Unix is fundamentally different than Windows.
  617. // on Unix, execvp() takes an arg array.
  618. cmd += toolPath;
  619. for (const a of args) {
  620. cmd += ` ${a}`;
  621. }
  622. }
  623. return cmd;
  624. }
  625. _processLineBuffer(data, strBuffer, onLine) {
  626. try {
  627. let s = strBuffer + data.toString();
  628. let n = s.indexOf(os.EOL);
  629. while (n > -1) {
  630. const line = s.substring(0, n);
  631. onLine(line);
  632. // the rest of the string ...
  633. s = s.substring(n + os.EOL.length);
  634. n = s.indexOf(os.EOL);
  635. }
  636. strBuffer = s;
  637. }
  638. catch (err) {
  639. // streaming lines to console is best effort. Don't fail a build.
  640. this._debug(`error processing line. Failed with error ${err}`);
  641. }
  642. }
  643. _getSpawnFileName() {
  644. if (IS_WINDOWS) {
  645. if (this._isCmdFile()) {
  646. return process.env['COMSPEC'] || 'cmd.exe';
  647. }
  648. }
  649. return this.toolPath;
  650. }
  651. _getSpawnArgs(options) {
  652. if (IS_WINDOWS) {
  653. if (this._isCmdFile()) {
  654. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  655. for (const a of this.args) {
  656. argline += ' ';
  657. argline += options.windowsVerbatimArguments
  658. ? a
  659. : this._windowsQuoteCmdArg(a);
  660. }
  661. argline += '"';
  662. return [argline];
  663. }
  664. }
  665. return this.args;
  666. }
  667. _endsWith(str, end) {
  668. return str.endsWith(end);
  669. }
  670. _isCmdFile() {
  671. const upperToolPath = this.toolPath.toUpperCase();
  672. return (this._endsWith(upperToolPath, '.CMD') ||
  673. this._endsWith(upperToolPath, '.BAT'));
  674. }
  675. _windowsQuoteCmdArg(arg) {
  676. // for .exe, apply the normal quoting rules that libuv applies
  677. if (!this._isCmdFile()) {
  678. return this._uvQuoteCmdArg(arg);
  679. }
  680. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  681. // the libuv rules are generic and are not designed specifically for cmd.exe
  682. // command line parser.
  683. //
  684. // for a detailed description of the cmd.exe command line parser, refer to
  685. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  686. // need quotes for empty arg
  687. if (!arg) {
  688. return '""';
  689. }
  690. // determine whether the arg needs to be quoted
  691. const cmdSpecialChars = [
  692. ' ',
  693. '\t',
  694. '&',
  695. '(',
  696. ')',
  697. '[',
  698. ']',
  699. '{',
  700. '}',
  701. '^',
  702. '=',
  703. ';',
  704. '!',
  705. "'",
  706. '+',
  707. ',',
  708. '`',
  709. '~',
  710. '|',
  711. '<',
  712. '>',
  713. '"'
  714. ];
  715. let needsQuotes = false;
  716. for (const char of arg) {
  717. if (cmdSpecialChars.some(x => x === char)) {
  718. needsQuotes = true;
  719. break;
  720. }
  721. }
  722. // short-circuit if quotes not needed
  723. if (!needsQuotes) {
  724. return arg;
  725. }
  726. // the following quoting rules are very similar to the rules that by libuv applies.
  727. //
  728. // 1) wrap the string in quotes
  729. //
  730. // 2) double-up quotes - i.e. " => ""
  731. //
  732. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  733. // doesn't work well with a cmd.exe command line.
  734. //
  735. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  736. // for example, the command line:
  737. // foo.exe "myarg:""my val"""
  738. // is parsed by a .NET console app into an arg array:
  739. // [ "myarg:\"my val\"" ]
  740. // which is the same end result when applying libuv quoting rules. although the actual
  741. // command line from libuv quoting rules would look like:
  742. // foo.exe "myarg:\"my val\""
  743. //
  744. // 3) double-up slashes that precede a quote,
  745. // e.g. hello \world => "hello \world"
  746. // hello\"world => "hello\\""world"
  747. // hello\\"world => "hello\\\\""world"
  748. // hello world\ => "hello world\\"
  749. //
  750. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  751. // the reasons for including this as a .cmd quoting rule are:
  752. //
  753. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  754. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  755. //
  756. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  757. // haven't heard any complaints about that aspect.
  758. //
  759. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  760. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  761. // by using %%.
  762. //
  763. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  764. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  765. //
  766. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  767. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  768. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  769. // to an external program.
  770. //
  771. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  772. // % can be escaped within a .cmd file.
  773. let reverse = '"';
  774. let quoteHit = true;
  775. for (let i = arg.length; i > 0; i--) {
  776. // walk the string in reverse
  777. reverse += arg[i - 1];
  778. if (quoteHit && arg[i - 1] === '\\') {
  779. reverse += '\\'; // double the slash
  780. }
  781. else if (arg[i - 1] === '"') {
  782. quoteHit = true;
  783. reverse += '"'; // double the quote
  784. }
  785. else {
  786. quoteHit = false;
  787. }
  788. }
  789. reverse += '"';
  790. return reverse
  791. .split('')
  792. .reverse()
  793. .join('');
  794. }
  795. _uvQuoteCmdArg(arg) {
  796. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  797. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  798. // is used.
  799. //
  800. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  801. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  802. // pasting copyright notice from Node within this function:
  803. //
  804. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  805. //
  806. // Permission is hereby granted, free of charge, to any person obtaining a copy
  807. // of this software and associated documentation files (the "Software"), to
  808. // deal in the Software without restriction, including without limitation the
  809. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  810. // sell copies of the Software, and to permit persons to whom the Software is
  811. // furnished to do so, subject to the following conditions:
  812. //
  813. // The above copyright notice and this permission notice shall be included in
  814. // all copies or substantial portions of the Software.
  815. //
  816. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  817. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  818. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  819. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  820. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  821. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  822. // IN THE SOFTWARE.
  823. if (!arg) {
  824. // Need double quotation for empty argument
  825. return '""';
  826. }
  827. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  828. // No quotation needed
  829. return arg;
  830. }
  831. if (!arg.includes('"') && !arg.includes('\\')) {
  832. // No embedded double quotes or backslashes, so I can just wrap
  833. // quote marks around the whole thing.
  834. return `"${arg}"`;
  835. }
  836. // Expected input/output:
  837. // input : hello"world
  838. // output: "hello\"world"
  839. // input : hello""world
  840. // output: "hello\"\"world"
  841. // input : hello\world
  842. // output: hello\world
  843. // input : hello\\world
  844. // output: hello\\world
  845. // input : hello\"world
  846. // output: "hello\\\"world"
  847. // input : hello\\"world
  848. // output: "hello\\\\\"world"
  849. // input : hello world\
  850. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  851. // but it appears the comment is wrong, it should be "hello world\\"
  852. let reverse = '"';
  853. let quoteHit = true;
  854. for (let i = arg.length; i > 0; i--) {
  855. // walk the string in reverse
  856. reverse += arg[i - 1];
  857. if (quoteHit && arg[i - 1] === '\\') {
  858. reverse += '\\';
  859. }
  860. else if (arg[i - 1] === '"') {
  861. quoteHit = true;
  862. reverse += '\\';
  863. }
  864. else {
  865. quoteHit = false;
  866. }
  867. }
  868. reverse += '"';
  869. return reverse
  870. .split('')
  871. .reverse()
  872. .join('');
  873. }
  874. _cloneExecOptions(options) {
  875. options = options || {};
  876. const result = {
  877. cwd: options.cwd || process.cwd(),
  878. env: options.env || process.env,
  879. silent: options.silent || false,
  880. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  881. failOnStdErr: options.failOnStdErr || false,
  882. ignoreReturnCode: options.ignoreReturnCode || false,
  883. delay: options.delay || 10000
  884. };
  885. result.outStream = options.outStream || process.stdout;
  886. result.errStream = options.errStream || process.stderr;
  887. return result;
  888. }
  889. _getSpawnOptions(options, toolPath) {
  890. options = options || {};
  891. const result = {};
  892. result.cwd = options.cwd;
  893. result.env = options.env;
  894. result['windowsVerbatimArguments'] =
  895. options.windowsVerbatimArguments || this._isCmdFile();
  896. if (options.windowsVerbatimArguments) {
  897. result.argv0 = `"${toolPath}"`;
  898. }
  899. return result;
  900. }
  901. /**
  902. * Exec a tool.
  903. * Output will be streamed to the live console.
  904. * Returns promise with return code
  905. *
  906. * @param tool path to tool to exec
  907. * @param options optional exec options. See ExecOptions
  908. * @returns number
  909. */
  910. exec() {
  911. return __awaiter(this, void 0, void 0, function* () {
  912. return new Promise((resolve, reject) => {
  913. this._debug(`exec tool: ${this.toolPath}`);
  914. this._debug('arguments:');
  915. for (const arg of this.args) {
  916. this._debug(` ${arg}`);
  917. }
  918. const optionsNonNull = this._cloneExecOptions(this.options);
  919. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  920. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  921. }
  922. const state = new ExecState(optionsNonNull, this.toolPath);
  923. state.on('debug', (message) => {
  924. this._debug(message);
  925. });
  926. const fileName = this._getSpawnFileName();
  927. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  928. const stdbuffer = '';
  929. if (cp.stdout) {
  930. cp.stdout.on('data', (data) => {
  931. if (this.options.listeners && this.options.listeners.stdout) {
  932. this.options.listeners.stdout(data);
  933. }
  934. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  935. optionsNonNull.outStream.write(data);
  936. }
  937. this._processLineBuffer(data, stdbuffer, (line) => {
  938. if (this.options.listeners && this.options.listeners.stdline) {
  939. this.options.listeners.stdline(line);
  940. }
  941. });
  942. });
  943. }
  944. const errbuffer = '';
  945. if (cp.stderr) {
  946. cp.stderr.on('data', (data) => {
  947. state.processStderr = true;
  948. if (this.options.listeners && this.options.listeners.stderr) {
  949. this.options.listeners.stderr(data);
  950. }
  951. if (!optionsNonNull.silent &&
  952. optionsNonNull.errStream &&
  953. optionsNonNull.outStream) {
  954. const s = optionsNonNull.failOnStdErr
  955. ? optionsNonNull.errStream
  956. : optionsNonNull.outStream;
  957. s.write(data);
  958. }
  959. this._processLineBuffer(data, errbuffer, (line) => {
  960. if (this.options.listeners && this.options.listeners.errline) {
  961. this.options.listeners.errline(line);
  962. }
  963. });
  964. });
  965. }
  966. cp.on('error', (err) => {
  967. state.processError = err.message;
  968. state.processExited = true;
  969. state.processClosed = true;
  970. state.CheckComplete();
  971. });
  972. cp.on('exit', (code) => {
  973. state.processExitCode = code;
  974. state.processExited = true;
  975. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  976. state.CheckComplete();
  977. });
  978. cp.on('close', (code) => {
  979. state.processExitCode = code;
  980. state.processExited = true;
  981. state.processClosed = true;
  982. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  983. state.CheckComplete();
  984. });
  985. state.on('done', (error, exitCode) => {
  986. if (stdbuffer.length > 0) {
  987. this.emit('stdline', stdbuffer);
  988. }
  989. if (errbuffer.length > 0) {
  990. this.emit('errline', errbuffer);
  991. }
  992. cp.removeAllListeners();
  993. if (error) {
  994. reject(error);
  995. }
  996. else {
  997. resolve(exitCode);
  998. }
  999. });
  1000. });
  1001. });
  1002. }
  1003. }
  1004. exports.ToolRunner = ToolRunner;
  1005. /**
  1006. * Convert an arg string to an array of args. Handles escaping
  1007. *
  1008. * @param argString string of arguments
  1009. * @returns string[] array of arguments
  1010. */
  1011. function argStringToArray(argString) {
  1012. const args = [];
  1013. let inQuotes = false;
  1014. let escaped = false;
  1015. let arg = '';
  1016. function append(c) {
  1017. // we only escape double quotes.
  1018. if (escaped && c !== '"') {
  1019. arg += '\\';
  1020. }
  1021. arg += c;
  1022. escaped = false;
  1023. }
  1024. for (let i = 0; i < argString.length; i++) {
  1025. const c = argString.charAt(i);
  1026. if (c === '"') {
  1027. if (!escaped) {
  1028. inQuotes = !inQuotes;
  1029. }
  1030. else {
  1031. append(c);
  1032. }
  1033. continue;
  1034. }
  1035. if (c === '\\' && escaped) {
  1036. append(c);
  1037. continue;
  1038. }
  1039. if (c === '\\' && inQuotes) {
  1040. escaped = true;
  1041. continue;
  1042. }
  1043. if (c === ' ' && !inQuotes) {
  1044. if (arg.length > 0) {
  1045. args.push(arg);
  1046. arg = '';
  1047. }
  1048. continue;
  1049. }
  1050. append(c);
  1051. }
  1052. if (arg.length > 0) {
  1053. args.push(arg.trim());
  1054. }
  1055. return args;
  1056. }
  1057. exports.argStringToArray = argStringToArray;
  1058. class ExecState extends events.EventEmitter {
  1059. constructor(options, toolPath) {
  1060. super();
  1061. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  1062. this.processError = '';
  1063. this.processExitCode = 0;
  1064. this.processExited = false; // tracks whether the process has exited
  1065. this.processStderr = false; // tracks whether stderr was written to
  1066. this.delay = 10000; // 10 seconds
  1067. this.done = false;
  1068. this.timeout = null;
  1069. if (!toolPath) {
  1070. throw new Error('toolPath must not be empty');
  1071. }
  1072. this.options = options;
  1073. this.toolPath = toolPath;
  1074. if (options.delay) {
  1075. this.delay = options.delay;
  1076. }
  1077. }
  1078. CheckComplete() {
  1079. if (this.done) {
  1080. return;
  1081. }
  1082. if (this.processClosed) {
  1083. this._setResult();
  1084. }
  1085. else if (this.processExited) {
  1086. this.timeout = setTimeout(ExecState.HandleTimeout, this.delay, this);
  1087. }
  1088. }
  1089. _debug(message) {
  1090. this.emit('debug', message);
  1091. }
  1092. _setResult() {
  1093. // determine whether there is an error
  1094. let error;
  1095. if (this.processExited) {
  1096. if (this.processError) {
  1097. error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
  1098. }
  1099. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  1100. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  1101. }
  1102. else if (this.processStderr && this.options.failOnStdErr) {
  1103. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  1104. }
  1105. }
  1106. // clear the timeout
  1107. if (this.timeout) {
  1108. clearTimeout(this.timeout);
  1109. this.timeout = null;
  1110. }
  1111. this.done = true;
  1112. this.emit('done', error, this.processExitCode);
  1113. }
  1114. static HandleTimeout(state) {
  1115. if (state.done) {
  1116. return;
  1117. }
  1118. if (!state.processClosed && state.processExited) {
  1119. const message = `The STDIO streams did not close within ${state.delay /
  1120. 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
  1121. state._debug(message);
  1122. }
  1123. state._setResult();
  1124. }
  1125. }
  1126. //# sourceMappingURL=toolrunner.js.map
  1127. /***/ }),
  1128. /***/ 11:
  1129. /***/ (function(module) {
  1130. // Returns a wrapper function that returns a wrapped callback
  1131. // The wrapper function should do some stuff, and return a
  1132. // presumably different callback function.
  1133. // This makes sure that own properties are retained, so that
  1134. // decorations and such are not lost along the way.
  1135. module.exports = wrappy
  1136. function wrappy (fn, cb) {
  1137. if (fn && cb) return wrappy(fn)(cb)
  1138. if (typeof fn !== 'function')
  1139. throw new TypeError('need wrapper function')
  1140. Object.keys(fn).forEach(function (k) {
  1141. wrapper[k] = fn[k]
  1142. })
  1143. return wrapper
  1144. function wrapper() {
  1145. var args = new Array(arguments.length)
  1146. for (var i = 0; i < args.length; i++) {
  1147. args[i] = arguments[i]
  1148. }
  1149. var ret = fn.apply(this, args)
  1150. var cb = args[args.length-1]
  1151. if (typeof ret === 'function' && ret !== cb) {
  1152. Object.keys(cb).forEach(function (k) {
  1153. ret[k] = cb[k]
  1154. })
  1155. }
  1156. return ret
  1157. }
  1158. }
  1159. /***/ }),
  1160. /***/ 13:
  1161. /***/ (function(module) {
  1162. "use strict";
  1163. var replace = String.prototype.replace;
  1164. var percentTwenties = /%20/g;
  1165. var Format = {
  1166. RFC1738: 'RFC1738',
  1167. RFC3986: 'RFC3986'
  1168. };
  1169. module.exports = {
  1170. 'default': Format.RFC3986,
  1171. formatters: {
  1172. RFC1738: function (value) {
  1173. return replace.call(value, percentTwenties, '+');
  1174. },
  1175. RFC3986: function (value) {
  1176. return String(value);
  1177. }
  1178. },
  1179. RFC1738: Format.RFC1738,
  1180. RFC3986: Format.RFC3986
  1181. };
  1182. /***/ }),
  1183. /***/ 16:
  1184. /***/ (function(module) {
  1185. module.exports = require("tls");
  1186. /***/ }),
  1187. /***/ 18:
  1188. /***/ (function() {
  1189. eval("require")("encoding");
  1190. /***/ }),
  1191. /***/ 19:
  1192. /***/ (function(module, __unusedexports, __webpack_require__) {
  1193. module.exports = authenticationPlugin;
  1194. const { Deprecation } = __webpack_require__(692);
  1195. const once = __webpack_require__(969);
  1196. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  1197. const authenticate = __webpack_require__(674);
  1198. const beforeRequest = __webpack_require__(471);
  1199. const requestError = __webpack_require__(349);
  1200. function authenticationPlugin(octokit, options) {
  1201. if (options.auth) {
  1202. octokit.authenticate = () => {
  1203. deprecateAuthenticate(
  1204. octokit.log,
  1205. new Deprecation(
  1206. '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
  1207. )
  1208. );
  1209. };
  1210. return;
  1211. }
  1212. const state = {
  1213. octokit,
  1214. auth: false
  1215. };
  1216. octokit.authenticate = authenticate.bind(null, state);
  1217. octokit.hook.before("request", beforeRequest.bind(null, state));
  1218. octokit.hook.error("request", requestError.bind(null, state));
  1219. }
  1220. /***/ }),
  1221. /***/ 20:
  1222. /***/ (function(module, __unusedexports, __webpack_require__) {
  1223. "use strict";
  1224. const cp = __webpack_require__(129);
  1225. const parse = __webpack_require__(568);
  1226. const enoent = __webpack_require__(881);
  1227. function spawn(command, args, options) {
  1228. // Parse the arguments
  1229. const parsed = parse(command, args, options);
  1230. // Spawn the child process
  1231. const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
  1232. // Hook into child process "exit" event to emit an error if the command
  1233. // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1234. enoent.hookChildProcess(spawned, parsed);
  1235. return spawned;
  1236. }
  1237. function spawnSync(command, args, options) {
  1238. // Parse the arguments
  1239. const parsed = parse(command, args, options);
  1240. // Spawn the child process
  1241. const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
  1242. // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1243. result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
  1244. return result;
  1245. }
  1246. module.exports = spawn;
  1247. module.exports.spawn = spawn;
  1248. module.exports.sync = spawnSync;
  1249. module.exports._parse = parse;
  1250. module.exports._enoent = enoent;
  1251. /***/ }),
  1252. /***/ 25:
  1253. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1254. "use strict";
  1255. Object.defineProperty(exports, "__esModule", {
  1256. value: true
  1257. });
  1258. Object.defineProperty(exports, "v1", {
  1259. enumerable: true,
  1260. get: function () {
  1261. return _v.default;
  1262. }
  1263. });
  1264. Object.defineProperty(exports, "v3", {
  1265. enumerable: true,
  1266. get: function () {
  1267. return _v2.default;
  1268. }
  1269. });
  1270. Object.defineProperty(exports, "v4", {
  1271. enumerable: true,
  1272. get: function () {
  1273. return _v3.default;
  1274. }
  1275. });
  1276. Object.defineProperty(exports, "v5", {
  1277. enumerable: true,
  1278. get: function () {
  1279. return _v4.default;
  1280. }
  1281. });
  1282. Object.defineProperty(exports, "NIL", {
  1283. enumerable: true,
  1284. get: function () {
  1285. return _nil.default;
  1286. }
  1287. });
  1288. Object.defineProperty(exports, "version", {
  1289. enumerable: true,
  1290. get: function () {
  1291. return _version.default;
  1292. }
  1293. });
  1294. Object.defineProperty(exports, "validate", {
  1295. enumerable: true,
  1296. get: function () {
  1297. return _validate.default;
  1298. }
  1299. });
  1300. Object.defineProperty(exports, "stringify", {
  1301. enumerable: true,
  1302. get: function () {
  1303. return _stringify.default;
  1304. }
  1305. });
  1306. Object.defineProperty(exports, "parse", {
  1307. enumerable: true,
  1308. get: function () {
  1309. return _parse.default;
  1310. }
  1311. });
  1312. var _v = _interopRequireDefault(__webpack_require__(810));
  1313. var _v2 = _interopRequireDefault(__webpack_require__(572));
  1314. var _v3 = _interopRequireDefault(__webpack_require__(293));
  1315. var _v4 = _interopRequireDefault(__webpack_require__(638));
  1316. var _nil = _interopRequireDefault(__webpack_require__(4));
  1317. var _version = _interopRequireDefault(__webpack_require__(135));
  1318. var _validate = _interopRequireDefault(__webpack_require__(634));
  1319. var _stringify = _interopRequireDefault(__webpack_require__(960));
  1320. var _parse = _interopRequireDefault(__webpack_require__(204));
  1321. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1322. /***/ }),
  1323. /***/ 26:
  1324. /***/ (function(module, __unusedexports, __webpack_require__) {
  1325. var hasMap = typeof Map === 'function' && Map.prototype;
  1326. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  1327. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  1328. var mapForEach = hasMap && Map.prototype.forEach;
  1329. var hasSet = typeof Set === 'function' && Set.prototype;
  1330. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  1331. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  1332. var setForEach = hasSet && Set.prototype.forEach;
  1333. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  1334. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  1335. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  1336. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  1337. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  1338. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  1339. var booleanValueOf = Boolean.prototype.valueOf;
  1340. var objectToString = Object.prototype.toString;
  1341. var functionToString = Function.prototype.toString;
  1342. var match = String.prototype.match;
  1343. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  1344. var gOPS = Object.getOwnPropertySymbols;
  1345. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  1346. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  1347. var isEnumerable = Object.prototype.propertyIsEnumerable;
  1348. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  1349. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  1350. ? function (O) {
  1351. return O.__proto__; // eslint-disable-line no-proto
  1352. }
  1353. : null
  1354. );
  1355. var inspectCustom = __webpack_require__(330).custom;
  1356. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  1357. var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
  1358. module.exports = function inspect_(obj, options, depth, seen) {
  1359. var opts = options || {};
  1360. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  1361. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  1362. }
  1363. if (
  1364. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  1365. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  1366. : opts.maxStringLength !== null
  1367. )
  1368. ) {
  1369. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  1370. }
  1371. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  1372. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  1373. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  1374. }
  1375. if (
  1376. has(opts, 'indent')
  1377. && opts.indent !== null
  1378. && opts.indent !== '\t'
  1379. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  1380. ) {
  1381. throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
  1382. }
  1383. if (typeof obj === 'undefined') {
  1384. return 'undefined';
  1385. }
  1386. if (obj === null) {
  1387. return 'null';
  1388. }
  1389. if (typeof obj === 'boolean') {
  1390. return obj ? 'true' : 'false';
  1391. }
  1392. if (typeof obj === 'string') {
  1393. return inspectString(obj, opts);
  1394. }
  1395. if (typeof obj === 'number') {
  1396. if (obj === 0) {
  1397. return Infinity / obj > 0 ? '0' : '-0';
  1398. }
  1399. return String(obj);
  1400. }
  1401. if (typeof obj === 'bigint') {
  1402. return String(obj) + 'n';
  1403. }
  1404. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  1405. if (typeof depth === 'undefined') { depth = 0; }
  1406. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  1407. return isArray(obj) ? '[Array]' : '[Object]';
  1408. }
  1409. var indent = getIndent(opts, depth);
  1410. if (typeof seen === 'undefined') {
  1411. seen = [];
  1412. } else if (indexOf(seen, obj) >= 0) {
  1413. return '[Circular]';
  1414. }
  1415. function inspect(value, from, noIndent) {
  1416. if (from) {
  1417. seen = seen.slice();
  1418. seen.push(from);
  1419. }
  1420. if (noIndent) {
  1421. var newOpts = {
  1422. depth: opts.depth
  1423. };
  1424. if (has(opts, 'quoteStyle')) {
  1425. newOpts.quoteStyle = opts.quoteStyle;
  1426. }
  1427. return inspect_(value, newOpts, depth + 1, seen);
  1428. }
  1429. return inspect_(value, opts, depth + 1, seen);
  1430. }
  1431. if (typeof obj === 'function') {
  1432. var name = nameOf(obj);
  1433. var keys = arrObjKeys(obj, inspect);
  1434. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
  1435. }
  1436. if (isSymbol(obj)) {
  1437. var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  1438. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  1439. }
  1440. if (isElement(obj)) {
  1441. var s = '<' + String(obj.nodeName).toLowerCase();
  1442. var attrs = obj.attributes || [];
  1443. for (var i = 0; i < attrs.length; i++) {
  1444. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  1445. }
  1446. s += '>';
  1447. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  1448. s += '</' + String(obj.nodeName).toLowerCase() + '>';
  1449. return s;
  1450. }
  1451. if (isArray(obj)) {
  1452. if (obj.length === 0) { return '[]'; }
  1453. var xs = arrObjKeys(obj, inspect);
  1454. if (indent && !singleLineValues(xs)) {
  1455. return '[' + indentedJoin(xs, indent) + ']';
  1456. }
  1457. return '[ ' + xs.join(', ') + ' ]';
  1458. }
  1459. if (isError(obj)) {
  1460. var parts = arrObjKeys(obj, inspect);
  1461. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  1462. return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
  1463. }
  1464. if (typeof obj === 'object' && customInspect) {
  1465. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  1466. return obj[inspectSymbol]();
  1467. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  1468. return obj.inspect();
  1469. }
  1470. }
  1471. if (isMap(obj)) {
  1472. var mapParts = [];
  1473. mapForEach.call(obj, function (value, key) {
  1474. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  1475. });
  1476. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  1477. }
  1478. if (isSet(obj)) {
  1479. var setParts = [];
  1480. setForEach.call(obj, function (value) {
  1481. setParts.push(inspect(value, obj));
  1482. });
  1483. return collectionOf('Set', setSize.call(obj), setParts, indent);
  1484. }
  1485. if (isWeakMap(obj)) {
  1486. return weakCollectionOf('WeakMap');
  1487. }
  1488. if (isWeakSet(obj)) {
  1489. return weakCollectionOf('WeakSet');
  1490. }
  1491. if (isWeakRef(obj)) {
  1492. return weakCollectionOf('WeakRef');
  1493. }
  1494. if (isNumber(obj)) {
  1495. return markBoxed(inspect(Number(obj)));
  1496. }
  1497. if (isBigInt(obj)) {
  1498. return markBoxed(inspect(bigIntValueOf.call(obj)));
  1499. }
  1500. if (isBoolean(obj)) {
  1501. return markBoxed(booleanValueOf.call(obj));
  1502. }
  1503. if (isString(obj)) {
  1504. return markBoxed(inspect(String(obj)));
  1505. }
  1506. if (!isDate(obj) && !isRegExp(obj)) {
  1507. var ys = arrObjKeys(obj, inspect);
  1508. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  1509. var protoTag = obj instanceof Object ? '' : 'null prototype';
  1510. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
  1511. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  1512. var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
  1513. if (ys.length === 0) { return tag + '{}'; }
  1514. if (indent) {
  1515. return tag + '{' + indentedJoin(ys, indent) + '}';
  1516. }
  1517. return tag + '{ ' + ys.join(', ') + ' }';
  1518. }
  1519. return String(obj);
  1520. };
  1521. function wrapQuotes(s, defaultStyle, opts) {
  1522. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  1523. return quoteChar + s + quoteChar;
  1524. }
  1525. function quote(s) {
  1526. return String(s).replace(/"/g, '&quot;');
  1527. }
  1528. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1529. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1530. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1531. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1532. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1533. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1534. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1535. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  1536. function isSymbol(obj) {
  1537. if (hasShammedSymbols) {
  1538. return obj && typeof obj === 'object' && obj instanceof Symbol;
  1539. }
  1540. if (typeof obj === 'symbol') {
  1541. return true;
  1542. }
  1543. if (!obj || typeof obj !== 'object' || !symToString) {
  1544. return false;
  1545. }
  1546. try {
  1547. symToString.call(obj);
  1548. return true;
  1549. } catch (e) {}
  1550. return false;
  1551. }
  1552. function isBigInt(obj) {
  1553. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  1554. return false;
  1555. }
  1556. try {
  1557. bigIntValueOf.call(obj);
  1558. return true;
  1559. } catch (e) {}
  1560. return false;
  1561. }
  1562. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  1563. function has(obj, key) {
  1564. return hasOwn.call(obj, key);
  1565. }
  1566. function toStr(obj) {
  1567. return objectToString.call(obj);
  1568. }
  1569. function nameOf(f) {
  1570. if (f.name) { return f.name; }
  1571. var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  1572. if (m) { return m[1]; }
  1573. return null;
  1574. }
  1575. function indexOf(xs, x) {
  1576. if (xs.indexOf) { return xs.indexOf(x); }
  1577. for (var i = 0, l = xs.length; i < l; i++) {
  1578. if (xs[i] === x) { return i; }
  1579. }
  1580. return -1;
  1581. }
  1582. function isMap(x) {
  1583. if (!mapSize || !x || typeof x !== 'object') {
  1584. return false;
  1585. }
  1586. try {
  1587. mapSize.call(x);
  1588. try {
  1589. setSize.call(x);
  1590. } catch (s) {
  1591. return true;
  1592. }
  1593. return x instanceof Map; // core-js workaround, pre-v2.5.0
  1594. } catch (e) {}
  1595. return false;
  1596. }
  1597. function isWeakMap(x) {
  1598. if (!weakMapHas || !x || typeof x !== 'object') {
  1599. return false;
  1600. }
  1601. try {
  1602. weakMapHas.call(x, weakMapHas);
  1603. try {
  1604. weakSetHas.call(x, weakSetHas);
  1605. } catch (s) {
  1606. return true;
  1607. }
  1608. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  1609. } catch (e) {}
  1610. return false;
  1611. }
  1612. function isWeakRef(x) {
  1613. if (!weakRefDeref || !x || typeof x !== 'object') {
  1614. return false;
  1615. }
  1616. try {
  1617. weakRefDeref.call(x);
  1618. return true;
  1619. } catch (e) {}
  1620. return false;
  1621. }
  1622. function isSet(x) {
  1623. if (!setSize || !x || typeof x !== 'object') {
  1624. return false;
  1625. }
  1626. try {
  1627. setSize.call(x);
  1628. try {
  1629. mapSize.call(x);
  1630. } catch (m) {
  1631. return true;
  1632. }
  1633. return x instanceof Set; // core-js workaround, pre-v2.5.0
  1634. } catch (e) {}
  1635. return false;
  1636. }
  1637. function isWeakSet(x) {
  1638. if (!weakSetHas || !x || typeof x !== 'object') {
  1639. return false;
  1640. }
  1641. try {
  1642. weakSetHas.call(x, weakSetHas);
  1643. try {
  1644. weakMapHas.call(x, weakMapHas);
  1645. } catch (s) {
  1646. return true;
  1647. }
  1648. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  1649. } catch (e) {}
  1650. return false;
  1651. }
  1652. function isElement(x) {
  1653. if (!x || typeof x !== 'object') { return false; }
  1654. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  1655. return true;
  1656. }
  1657. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  1658. }
  1659. function inspectString(str, opts) {
  1660. if (str.length > opts.maxStringLength) {
  1661. var remaining = str.length - opts.maxStringLength;
  1662. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  1663. return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
  1664. }
  1665. // eslint-disable-next-line no-control-regex
  1666. var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
  1667. return wrapQuotes(s, 'single', opts);
  1668. }
  1669. function lowbyte(c) {
  1670. var n = c.charCodeAt(0);
  1671. var x = {
  1672. 8: 'b',
  1673. 9: 't',
  1674. 10: 'n',
  1675. 12: 'f',
  1676. 13: 'r'
  1677. }[n];
  1678. if (x) { return '\\' + x; }
  1679. return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
  1680. }
  1681. function markBoxed(str) {
  1682. return 'Object(' + str + ')';
  1683. }
  1684. function weakCollectionOf(type) {
  1685. return type + ' { ? }';
  1686. }
  1687. function collectionOf(type, size, entries, indent) {
  1688. var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
  1689. return type + ' (' + size + ') {' + joinedEntries + '}';
  1690. }
  1691. function singleLineValues(xs) {
  1692. for (var i = 0; i < xs.length; i++) {
  1693. if (indexOf(xs[i], '\n') >= 0) {
  1694. return false;
  1695. }
  1696. }
  1697. return true;
  1698. }
  1699. function getIndent(opts, depth) {
  1700. var baseIndent;
  1701. if (opts.indent === '\t') {
  1702. baseIndent = '\t';
  1703. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  1704. baseIndent = Array(opts.indent + 1).join(' ');
  1705. } else {
  1706. return null;
  1707. }
  1708. return {
  1709. base: baseIndent,
  1710. prev: Array(depth + 1).join(baseIndent)
  1711. };
  1712. }
  1713. function indentedJoin(xs, indent) {
  1714. if (xs.length === 0) { return ''; }
  1715. var lineJoiner = '\n' + indent.prev + indent.base;
  1716. return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
  1717. }
  1718. function arrObjKeys(obj, inspect) {
  1719. var isArr = isArray(obj);
  1720. var xs = [];
  1721. if (isArr) {
  1722. xs.length = obj.length;
  1723. for (var i = 0; i < obj.length; i++) {
  1724. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  1725. }
  1726. }
  1727. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  1728. var symMap;
  1729. if (hasShammedSymbols) {
  1730. symMap = {};
  1731. for (var k = 0; k < syms.length; k++) {
  1732. symMap['$' + syms[k]] = syms[k];
  1733. }
  1734. }
  1735. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  1736. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1737. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1738. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  1739. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  1740. continue; // eslint-disable-line no-restricted-syntax, no-continue
  1741. } else if ((/[^\w$]/).test(key)) {
  1742. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  1743. } else {
  1744. xs.push(key + ': ' + inspect(obj[key], obj));
  1745. }
  1746. }
  1747. if (typeof gOPS === 'function') {
  1748. for (var j = 0; j < syms.length; j++) {
  1749. if (isEnumerable.call(obj, syms[j])) {
  1750. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  1751. }
  1752. }
  1753. }
  1754. return xs;
  1755. }
  1756. /***/ }),
  1757. /***/ 30:
  1758. /***/ (function(module, __unusedexports, __webpack_require__) {
  1759. module.exports = getLastPage
  1760. const getPage = __webpack_require__(265)
  1761. function getLastPage (octokit, link, headers) {
  1762. return getPage(octokit, link, 'last', headers)
  1763. }
  1764. /***/ }),
  1765. /***/ 39:
  1766. /***/ (function(module) {
  1767. "use strict";
  1768. module.exports = opts => {
  1769. opts = opts || {};
  1770. const env = opts.env || process.env;
  1771. const platform = opts.platform || process.platform;
  1772. if (platform !== 'win32') {
  1773. return 'PATH';
  1774. }
  1775. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  1776. };
  1777. /***/ }),
  1778. /***/ 47:
  1779. /***/ (function(module, __unusedexports, __webpack_require__) {
  1780. module.exports = factory;
  1781. const Octokit = __webpack_require__(402);
  1782. const registerPlugin = __webpack_require__(855);
  1783. function factory(plugins) {
  1784. const Api = Octokit.bind(null, plugins || []);
  1785. Api.plugin = registerPlugin.bind(null, plugins || []);
  1786. return Api;
  1787. }
  1788. /***/ }),
  1789. /***/ 49:
  1790. /***/ (function(module, __unusedexports, __webpack_require__) {
  1791. "use strict";
  1792. const os = __webpack_require__(87);
  1793. const execa = __webpack_require__(955);
  1794. // Reference: https://www.gaijin.at/en/lstwinver.php
  1795. const names = new Map([
  1796. ['10.0', '10'],
  1797. ['6.3', '8.1'],
  1798. ['6.2', '8'],
  1799. ['6.1', '7'],
  1800. ['6.0', 'Vista'],
  1801. ['5.2', 'Server 2003'],
  1802. ['5.1', 'XP'],
  1803. ['5.0', '2000'],
  1804. ['4.9', 'ME'],
  1805. ['4.1', '98'],
  1806. ['4.0', '95']
  1807. ]);
  1808. const windowsRelease = release => {
  1809. const version = /\d+\.\d/.exec(release || os.release());
  1810. if (release && !version) {
  1811. throw new Error('`release` argument doesn\'t match `n.n`');
  1812. }
  1813. const ver = (version || [])[0];
  1814. // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime.
  1815. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
  1816. // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
  1817. // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead.
  1818. // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name.
  1819. if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
  1820. let stdout;
  1821. try {
  1822. stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
  1823. } catch (_) {
  1824. stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
  1825. }
  1826. const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
  1827. if (year) {
  1828. return `Server ${year}`;
  1829. }
  1830. }
  1831. return names.get(ver);
  1832. };
  1833. module.exports = windowsRelease;
  1834. /***/ }),
  1835. /***/ 68:
  1836. /***/ (function(__unusedmodule, exports) {
  1837. "use strict";
  1838. Object.defineProperty(exports, '__esModule', { value: true });
  1839. async function auth(token) {
  1840. const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
  1841. return {
  1842. type: "token",
  1843. token: token,
  1844. tokenType
  1845. };
  1846. }
  1847. /**
  1848. * Prefix token for usage in the Authorization header
  1849. *
  1850. * @param token OAuth token or JSON Web Token
  1851. */
  1852. function withAuthorizationPrefix(token) {
  1853. if (token.split(/\./).length === 3) {
  1854. return `bearer ${token}`;
  1855. }
  1856. return `token ${token}`;
  1857. }
  1858. async function hook(token, request, route, parameters) {
  1859. const endpoint = request.endpoint.merge(route, parameters);
  1860. endpoint.headers.authorization = withAuthorizationPrefix(token);
  1861. return request(endpoint);
  1862. }
  1863. const createTokenAuth = function createTokenAuth(token) {
  1864. if (!token) {
  1865. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  1866. }
  1867. if (typeof token !== "string") {
  1868. throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
  1869. }
  1870. token = token.replace(/^(token|bearer) +/i, "");
  1871. return Object.assign(auth.bind(null, token), {
  1872. hook: hook.bind(null, token)
  1873. });
  1874. };
  1875. exports.createTokenAuth = createTokenAuth;
  1876. //# sourceMappingURL=index.js.map
  1877. /***/ }),
  1878. /***/ 70:
  1879. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1880. "use strict";
  1881. exports.URL = __webpack_require__(782).interface;
  1882. exports.serializeURL = __webpack_require__(936).serializeURL;
  1883. exports.serializeURLOrigin = __webpack_require__(936).serializeURLOrigin;
  1884. exports.basicURLParse = __webpack_require__(936).basicURLParse;
  1885. exports.setTheUsername = __webpack_require__(936).setTheUsername;
  1886. exports.setThePassword = __webpack_require__(936).setThePassword;
  1887. exports.serializeHost = __webpack_require__(936).serializeHost;
  1888. exports.serializeInteger = __webpack_require__(936).serializeInteger;
  1889. exports.parseURL = __webpack_require__(936).parseURL;
  1890. /***/ }),
  1891. /***/ 81:
  1892. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1893. "use strict";
  1894. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1895. if (k2 === undefined) k2 = k;
  1896. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1897. }) : (function(o, m, k, k2) {
  1898. if (k2 === undefined) k2 = k;
  1899. o[k2] = m[k];
  1900. }));
  1901. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1902. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1903. }) : function(o, v) {
  1904. o["default"] = v;
  1905. });
  1906. var __importStar = (this && this.__importStar) || function (mod) {
  1907. if (mod && mod.__esModule) return mod;
  1908. var result = {};
  1909. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1910. __setModuleDefault(result, mod);
  1911. return result;
  1912. };
  1913. Object.defineProperty(exports, "__esModule", { value: true });
  1914. exports.isGhes = exports.getServerApiUrl = exports.getServerUrl = exports.getFetchUrl = void 0;
  1915. const assert = __importStar(__webpack_require__(357));
  1916. const url_1 = __webpack_require__(835);
  1917. function getFetchUrl(settings) {
  1918. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  1919. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  1920. const serviceUrl = getServerUrl(settings.githubServerUrl);
  1921. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  1922. const encodedName = encodeURIComponent(settings.repositoryName);
  1923. if (settings.sshKey) {
  1924. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  1925. }
  1926. // "origin" is SCHEME://HOSTNAME[:PORT]
  1927. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  1928. }
  1929. exports.getFetchUrl = getFetchUrl;
  1930. function getServerUrl(url) {
  1931. let urlValue = url && url.trim().length > 0
  1932. ? url
  1933. : process.env['GITHUB_SERVER_URL'] || 'https://github.com';
  1934. return new url_1.URL(urlValue);
  1935. }
  1936. exports.getServerUrl = getServerUrl;
  1937. function getServerApiUrl(url) {
  1938. let apiUrl = 'https://api.github.com';
  1939. if (isGhes(url)) {
  1940. const serverUrl = getServerUrl(url);
  1941. apiUrl = new url_1.URL(`${serverUrl.origin}/api/v3`).toString();
  1942. }
  1943. return apiUrl;
  1944. }
  1945. exports.getServerApiUrl = getServerApiUrl;
  1946. function isGhes(url) {
  1947. const ghUrl = getServerUrl(url);
  1948. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  1949. }
  1950. exports.isGhes = isGhes;
  1951. /***/ }),
  1952. /***/ 82:
  1953. /***/ (function(__unusedmodule, exports) {
  1954. "use strict";
  1955. // We use any as a valid input type
  1956. /* eslint-disable @typescript-eslint/no-explicit-any */
  1957. Object.defineProperty(exports, "__esModule", { value: true });
  1958. exports.toCommandProperties = exports.toCommandValue = void 0;
  1959. /**
  1960. * Sanitizes an input into a string so it can be passed into issueCommand safely
  1961. * @param input input to sanitize into a string
  1962. */
  1963. function toCommandValue(input) {
  1964. if (input === null || input === undefined) {
  1965. return '';
  1966. }
  1967. else if (typeof input === 'string' || input instanceof String) {
  1968. return input;
  1969. }
  1970. return JSON.stringify(input);
  1971. }
  1972. exports.toCommandValue = toCommandValue;
  1973. /**
  1974. *
  1975. * @param annotationProperties
  1976. * @returns The command properties to send with the actual annotation command
  1977. * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
  1978. */
  1979. function toCommandProperties(annotationProperties) {
  1980. if (!Object.keys(annotationProperties).length) {
  1981. return {};
  1982. }
  1983. return {
  1984. title: annotationProperties.title,
  1985. file: annotationProperties.file,
  1986. line: annotationProperties.startLine,
  1987. endLine: annotationProperties.endLine,
  1988. col: annotationProperties.startColumn,
  1989. endColumn: annotationProperties.endColumn
  1990. };
  1991. }
  1992. exports.toCommandProperties = toCommandProperties;
  1993. //# sourceMappingURL=utils.js.map
  1994. /***/ }),
  1995. /***/ 87:
  1996. /***/ (function(module) {
  1997. module.exports = require("os");
  1998. /***/ }),
  1999. /***/ 95:
  2000. /***/ (function(__unusedmodule, exports) {
  2001. "use strict";
  2002. Object.defineProperty(exports, "__esModule", { value: true });
  2003. exports.checkBypass = exports.getProxyUrl = void 0;
  2004. function getProxyUrl(reqUrl) {
  2005. const usingSsl = reqUrl.protocol === 'https:';
  2006. if (checkBypass(reqUrl)) {
  2007. return undefined;
  2008. }
  2009. const proxyVar = (() => {
  2010. if (usingSsl) {
  2011. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  2012. }
  2013. else {
  2014. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  2015. }
  2016. })();
  2017. if (proxyVar) {
  2018. return new URL(proxyVar);
  2019. }
  2020. else {
  2021. return undefined;
  2022. }
  2023. }
  2024. exports.getProxyUrl = getProxyUrl;
  2025. function checkBypass(reqUrl) {
  2026. if (!reqUrl.hostname) {
  2027. return false;
  2028. }
  2029. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  2030. if (!noProxy) {
  2031. return false;
  2032. }
  2033. // Determine the request port
  2034. let reqPort;
  2035. if (reqUrl.port) {
  2036. reqPort = Number(reqUrl.port);
  2037. }
  2038. else if (reqUrl.protocol === 'http:') {
  2039. reqPort = 80;
  2040. }
  2041. else if (reqUrl.protocol === 'https:') {
  2042. reqPort = 443;
  2043. }
  2044. // Format the request hostname and hostname with port
  2045. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  2046. if (typeof reqPort === 'number') {
  2047. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  2048. }
  2049. // Compare request host against noproxy
  2050. for (const upperNoProxyItem of noProxy
  2051. .split(',')
  2052. .map(x => x.trim().toUpperCase())
  2053. .filter(x => x)) {
  2054. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  2055. return true;
  2056. }
  2057. }
  2058. return false;
  2059. }
  2060. exports.checkBypass = checkBypass;
  2061. //# sourceMappingURL=proxy.js.map
  2062. /***/ }),
  2063. /***/ 102:
  2064. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2065. "use strict";
  2066. // For internal use, subject to change.
  2067. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2068. if (k2 === undefined) k2 = k;
  2069. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2070. }) : (function(o, m, k, k2) {
  2071. if (k2 === undefined) k2 = k;
  2072. o[k2] = m[k];
  2073. }));
  2074. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2075. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2076. }) : function(o, v) {
  2077. o["default"] = v;
  2078. });
  2079. var __importStar = (this && this.__importStar) || function (mod) {
  2080. if (mod && mod.__esModule) return mod;
  2081. var result = {};
  2082. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2083. __setModuleDefault(result, mod);
  2084. return result;
  2085. };
  2086. Object.defineProperty(exports, "__esModule", { value: true });
  2087. exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
  2088. // We use any as a valid input type
  2089. /* eslint-disable @typescript-eslint/no-explicit-any */
  2090. const fs = __importStar(__webpack_require__(747));
  2091. const os = __importStar(__webpack_require__(87));
  2092. const uuid_1 = __webpack_require__(25);
  2093. const utils_1 = __webpack_require__(82);
  2094. function issueFileCommand(command, message) {
  2095. const filePath = process.env[`GITHUB_${command}`];
  2096. if (!filePath) {
  2097. throw new Error(`Unable to find environment variable for file command ${command}`);
  2098. }
  2099. if (!fs.existsSync(filePath)) {
  2100. throw new Error(`Missing file at path: ${filePath}`);
  2101. }
  2102. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  2103. encoding: 'utf8'
  2104. });
  2105. }
  2106. exports.issueFileCommand = issueFileCommand;
  2107. function prepareKeyValueMessage(key, value) {
  2108. const delimiter = `ghadelimiter_${uuid_1.v4()}`;
  2109. const convertedValue = utils_1.toCommandValue(value);
  2110. // These should realistically never happen, but just in case someone finds a
  2111. // way to exploit uuid generation let's not allow keys or values that contain
  2112. // the delimiter.
  2113. if (key.includes(delimiter)) {
  2114. throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
  2115. }
  2116. if (convertedValue.includes(delimiter)) {
  2117. throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
  2118. }
  2119. return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
  2120. }
  2121. exports.prepareKeyValueMessage = prepareKeyValueMessage;
  2122. //# sourceMappingURL=file-command.js.map
  2123. /***/ }),
  2124. /***/ 118:
  2125. /***/ (function(module, __unusedexports, __webpack_require__) {
  2126. "use strict";
  2127. const os = __webpack_require__(87);
  2128. const nameMap = new Map([
  2129. [19, 'Catalina'],
  2130. [18, 'Mojave'],
  2131. [17, 'High Sierra'],
  2132. [16, 'Sierra'],
  2133. [15, 'El Capitan'],
  2134. [14, 'Yosemite'],
  2135. [13, 'Mavericks'],
  2136. [12, 'Mountain Lion'],
  2137. [11, 'Lion'],
  2138. [10, 'Snow Leopard'],
  2139. [9, 'Leopard'],
  2140. [8, 'Tiger'],
  2141. [7, 'Panther'],
  2142. [6, 'Jaguar'],
  2143. [5, 'Puma']
  2144. ]);
  2145. const macosRelease = release => {
  2146. release = Number((release || os.release()).split('.')[0]);
  2147. return {
  2148. name: nameMap.get(release),
  2149. version: '10.' + (release - 4)
  2150. };
  2151. };
  2152. module.exports = macosRelease;
  2153. // TODO: remove this in the next major version
  2154. module.exports.default = macosRelease;
  2155. /***/ }),
  2156. /***/ 126:
  2157. /***/ (function(module) {
  2158. /**
  2159. * lodash (Custom Build) <https://lodash.com/>
  2160. * Build: `lodash modularize exports="npm" -o ./`
  2161. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  2162. * Released under MIT license <https://lodash.com/license>
  2163. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  2164. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  2165. */
  2166. /** Used as the size to enable large array optimizations. */
  2167. var LARGE_ARRAY_SIZE = 200;
  2168. /** Used to stand-in for `undefined` hash values. */
  2169. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  2170. /** Used as references for various `Number` constants. */
  2171. var INFINITY = 1 / 0;
  2172. /** `Object#toString` result references. */
  2173. var funcTag = '[object Function]',
  2174. genTag = '[object GeneratorFunction]';
  2175. /**
  2176. * Used to match `RegExp`
  2177. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  2178. */
  2179. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  2180. /** Used to detect host constructors (Safari). */
  2181. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  2182. /** Detect free variable `global` from Node.js. */
  2183. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  2184. /** Detect free variable `self`. */
  2185. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  2186. /** Used as a reference to the global object. */
  2187. var root = freeGlobal || freeSelf || Function('return this')();
  2188. /**
  2189. * A specialized version of `_.includes` for arrays without support for
  2190. * specifying an index to search from.
  2191. *
  2192. * @private
  2193. * @param {Array} [array] The array to inspect.
  2194. * @param {*} target The value to search for.
  2195. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  2196. */
  2197. function arrayIncludes(array, value) {
  2198. var length = array ? array.length : 0;
  2199. return !!length && baseIndexOf(array, value, 0) > -1;
  2200. }
  2201. /**
  2202. * This function is like `arrayIncludes` except that it accepts a comparator.
  2203. *
  2204. * @private
  2205. * @param {Array} [array] The array to inspect.
  2206. * @param {*} target The value to search for.
  2207. * @param {Function} comparator The comparator invoked per element.
  2208. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  2209. */
  2210. function arrayIncludesWith(array, value, comparator) {
  2211. var index = -1,
  2212. length = array ? array.length : 0;
  2213. while (++index < length) {
  2214. if (comparator(value, array[index])) {
  2215. return true;
  2216. }
  2217. }
  2218. return false;
  2219. }
  2220. /**
  2221. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  2222. * support for iteratee shorthands.
  2223. *
  2224. * @private
  2225. * @param {Array} array The array to inspect.
  2226. * @param {Function} predicate The function invoked per iteration.
  2227. * @param {number} fromIndex The index to search from.
  2228. * @param {boolean} [fromRight] Specify iterating from right to left.
  2229. * @returns {number} Returns the index of the matched value, else `-1`.
  2230. */
  2231. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  2232. var length = array.length,
  2233. index = fromIndex + (fromRight ? 1 : -1);
  2234. while ((fromRight ? index-- : ++index < length)) {
  2235. if (predicate(array[index], index, array)) {
  2236. return index;
  2237. }
  2238. }
  2239. return -1;
  2240. }
  2241. /**
  2242. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  2243. *
  2244. * @private
  2245. * @param {Array} array The array to inspect.
  2246. * @param {*} value The value to search for.
  2247. * @param {number} fromIndex The index to search from.
  2248. * @returns {number} Returns the index of the matched value, else `-1`.
  2249. */
  2250. function baseIndexOf(array, value, fromIndex) {
  2251. if (value !== value) {
  2252. return baseFindIndex(array, baseIsNaN, fromIndex);
  2253. }
  2254. var index = fromIndex - 1,
  2255. length = array.length;
  2256. while (++index < length) {
  2257. if (array[index] === value) {
  2258. return index;
  2259. }
  2260. }
  2261. return -1;
  2262. }
  2263. /**
  2264. * The base implementation of `_.isNaN` without support for number objects.
  2265. *
  2266. * @private
  2267. * @param {*} value The value to check.
  2268. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  2269. */
  2270. function baseIsNaN(value) {
  2271. return value !== value;
  2272. }
  2273. /**
  2274. * Checks if a cache value for `key` exists.
  2275. *
  2276. * @private
  2277. * @param {Object} cache The cache to query.
  2278. * @param {string} key The key of the entry to check.
  2279. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2280. */
  2281. function cacheHas(cache, key) {
  2282. return cache.has(key);
  2283. }
  2284. /**
  2285. * Gets the value at `key` of `object`.
  2286. *
  2287. * @private
  2288. * @param {Object} [object] The object to query.
  2289. * @param {string} key The key of the property to get.
  2290. * @returns {*} Returns the property value.
  2291. */
  2292. function getValue(object, key) {
  2293. return object == null ? undefined : object[key];
  2294. }
  2295. /**
  2296. * Checks if `value` is a host object in IE < 9.
  2297. *
  2298. * @private
  2299. * @param {*} value The value to check.
  2300. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  2301. */
  2302. function isHostObject(value) {
  2303. // Many host objects are `Object` objects that can coerce to strings
  2304. // despite having improperly defined `toString` methods.
  2305. var result = false;
  2306. if (value != null && typeof value.toString != 'function') {
  2307. try {
  2308. result = !!(value + '');
  2309. } catch (e) {}
  2310. }
  2311. return result;
  2312. }
  2313. /**
  2314. * Converts `set` to an array of its values.
  2315. *
  2316. * @private
  2317. * @param {Object} set The set to convert.
  2318. * @returns {Array} Returns the values.
  2319. */
  2320. function setToArray(set) {
  2321. var index = -1,
  2322. result = Array(set.size);
  2323. set.forEach(function(value) {
  2324. result[++index] = value;
  2325. });
  2326. return result;
  2327. }
  2328. /** Used for built-in method references. */
  2329. var arrayProto = Array.prototype,
  2330. funcProto = Function.prototype,
  2331. objectProto = Object.prototype;
  2332. /** Used to detect overreaching core-js shims. */
  2333. var coreJsData = root['__core-js_shared__'];
  2334. /** Used to detect methods masquerading as native. */
  2335. var maskSrcKey = (function() {
  2336. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  2337. return uid ? ('Symbol(src)_1.' + uid) : '';
  2338. }());
  2339. /** Used to resolve the decompiled source of functions. */
  2340. var funcToString = funcProto.toString;
  2341. /** Used to check objects for own properties. */
  2342. var hasOwnProperty = objectProto.hasOwnProperty;
  2343. /**
  2344. * Used to resolve the
  2345. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  2346. * of values.
  2347. */
  2348. var objectToString = objectProto.toString;
  2349. /** Used to detect if a method is native. */
  2350. var reIsNative = RegExp('^' +
  2351. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  2352. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  2353. );
  2354. /** Built-in value references. */
  2355. var splice = arrayProto.splice;
  2356. /* Built-in method references that are verified to be native. */
  2357. var Map = getNative(root, 'Map'),
  2358. Set = getNative(root, 'Set'),
  2359. nativeCreate = getNative(Object, 'create');
  2360. /**
  2361. * Creates a hash object.
  2362. *
  2363. * @private
  2364. * @constructor
  2365. * @param {Array} [entries] The key-value pairs to cache.
  2366. */
  2367. function Hash(entries) {
  2368. var index = -1,
  2369. length = entries ? entries.length : 0;
  2370. this.clear();
  2371. while (++index < length) {
  2372. var entry = entries[index];
  2373. this.set(entry[0], entry[1]);
  2374. }
  2375. }
  2376. /**
  2377. * Removes all key-value entries from the hash.
  2378. *
  2379. * @private
  2380. * @name clear
  2381. * @memberOf Hash
  2382. */
  2383. function hashClear() {
  2384. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  2385. }
  2386. /**
  2387. * Removes `key` and its value from the hash.
  2388. *
  2389. * @private
  2390. * @name delete
  2391. * @memberOf Hash
  2392. * @param {Object} hash The hash to modify.
  2393. * @param {string} key The key of the value to remove.
  2394. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2395. */
  2396. function hashDelete(key) {
  2397. return this.has(key) && delete this.__data__[key];
  2398. }
  2399. /**
  2400. * Gets the hash value for `key`.
  2401. *
  2402. * @private
  2403. * @name get
  2404. * @memberOf Hash
  2405. * @param {string} key The key of the value to get.
  2406. * @returns {*} Returns the entry value.
  2407. */
  2408. function hashGet(key) {
  2409. var data = this.__data__;
  2410. if (nativeCreate) {
  2411. var result = data[key];
  2412. return result === HASH_UNDEFINED ? undefined : result;
  2413. }
  2414. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  2415. }
  2416. /**
  2417. * Checks if a hash value for `key` exists.
  2418. *
  2419. * @private
  2420. * @name has
  2421. * @memberOf Hash
  2422. * @param {string} key The key of the entry to check.
  2423. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2424. */
  2425. function hashHas(key) {
  2426. var data = this.__data__;
  2427. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  2428. }
  2429. /**
  2430. * Sets the hash `key` to `value`.
  2431. *
  2432. * @private
  2433. * @name set
  2434. * @memberOf Hash
  2435. * @param {string} key The key of the value to set.
  2436. * @param {*} value The value to set.
  2437. * @returns {Object} Returns the hash instance.
  2438. */
  2439. function hashSet(key, value) {
  2440. var data = this.__data__;
  2441. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  2442. return this;
  2443. }
  2444. // Add methods to `Hash`.
  2445. Hash.prototype.clear = hashClear;
  2446. Hash.prototype['delete'] = hashDelete;
  2447. Hash.prototype.get = hashGet;
  2448. Hash.prototype.has = hashHas;
  2449. Hash.prototype.set = hashSet;
  2450. /**
  2451. * Creates an list cache object.
  2452. *
  2453. * @private
  2454. * @constructor
  2455. * @param {Array} [entries] The key-value pairs to cache.
  2456. */
  2457. function ListCache(entries) {
  2458. var index = -1,
  2459. length = entries ? entries.length : 0;
  2460. this.clear();
  2461. while (++index < length) {
  2462. var entry = entries[index];
  2463. this.set(entry[0], entry[1]);
  2464. }
  2465. }
  2466. /**
  2467. * Removes all key-value entries from the list cache.
  2468. *
  2469. * @private
  2470. * @name clear
  2471. * @memberOf ListCache
  2472. */
  2473. function listCacheClear() {
  2474. this.__data__ = [];
  2475. }
  2476. /**
  2477. * Removes `key` and its value from the list cache.
  2478. *
  2479. * @private
  2480. * @name delete
  2481. * @memberOf ListCache
  2482. * @param {string} key The key of the value to remove.
  2483. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2484. */
  2485. function listCacheDelete(key) {
  2486. var data = this.__data__,
  2487. index = assocIndexOf(data, key);
  2488. if (index < 0) {
  2489. return false;
  2490. }
  2491. var lastIndex = data.length - 1;
  2492. if (index == lastIndex) {
  2493. data.pop();
  2494. } else {
  2495. splice.call(data, index, 1);
  2496. }
  2497. return true;
  2498. }
  2499. /**
  2500. * Gets the list cache value for `key`.
  2501. *
  2502. * @private
  2503. * @name get
  2504. * @memberOf ListCache
  2505. * @param {string} key The key of the value to get.
  2506. * @returns {*} Returns the entry value.
  2507. */
  2508. function listCacheGet(key) {
  2509. var data = this.__data__,
  2510. index = assocIndexOf(data, key);
  2511. return index < 0 ? undefined : data[index][1];
  2512. }
  2513. /**
  2514. * Checks if a list cache value for `key` exists.
  2515. *
  2516. * @private
  2517. * @name has
  2518. * @memberOf ListCache
  2519. * @param {string} key The key of the entry to check.
  2520. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2521. */
  2522. function listCacheHas(key) {
  2523. return assocIndexOf(this.__data__, key) > -1;
  2524. }
  2525. /**
  2526. * Sets the list cache `key` to `value`.
  2527. *
  2528. * @private
  2529. * @name set
  2530. * @memberOf ListCache
  2531. * @param {string} key The key of the value to set.
  2532. * @param {*} value The value to set.
  2533. * @returns {Object} Returns the list cache instance.
  2534. */
  2535. function listCacheSet(key, value) {
  2536. var data = this.__data__,
  2537. index = assocIndexOf(data, key);
  2538. if (index < 0) {
  2539. data.push([key, value]);
  2540. } else {
  2541. data[index][1] = value;
  2542. }
  2543. return this;
  2544. }
  2545. // Add methods to `ListCache`.
  2546. ListCache.prototype.clear = listCacheClear;
  2547. ListCache.prototype['delete'] = listCacheDelete;
  2548. ListCache.prototype.get = listCacheGet;
  2549. ListCache.prototype.has = listCacheHas;
  2550. ListCache.prototype.set = listCacheSet;
  2551. /**
  2552. * Creates a map cache object to store key-value pairs.
  2553. *
  2554. * @private
  2555. * @constructor
  2556. * @param {Array} [entries] The key-value pairs to cache.
  2557. */
  2558. function MapCache(entries) {
  2559. var index = -1,
  2560. length = entries ? entries.length : 0;
  2561. this.clear();
  2562. while (++index < length) {
  2563. var entry = entries[index];
  2564. this.set(entry[0], entry[1]);
  2565. }
  2566. }
  2567. /**
  2568. * Removes all key-value entries from the map.
  2569. *
  2570. * @private
  2571. * @name clear
  2572. * @memberOf MapCache
  2573. */
  2574. function mapCacheClear() {
  2575. this.__data__ = {
  2576. 'hash': new Hash,
  2577. 'map': new (Map || ListCache),
  2578. 'string': new Hash
  2579. };
  2580. }
  2581. /**
  2582. * Removes `key` and its value from the map.
  2583. *
  2584. * @private
  2585. * @name delete
  2586. * @memberOf MapCache
  2587. * @param {string} key The key of the value to remove.
  2588. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2589. */
  2590. function mapCacheDelete(key) {
  2591. return getMapData(this, key)['delete'](key);
  2592. }
  2593. /**
  2594. * Gets the map value for `key`.
  2595. *
  2596. * @private
  2597. * @name get
  2598. * @memberOf MapCache
  2599. * @param {string} key The key of the value to get.
  2600. * @returns {*} Returns the entry value.
  2601. */
  2602. function mapCacheGet(key) {
  2603. return getMapData(this, key).get(key);
  2604. }
  2605. /**
  2606. * Checks if a map value for `key` exists.
  2607. *
  2608. * @private
  2609. * @name has
  2610. * @memberOf MapCache
  2611. * @param {string} key The key of the entry to check.
  2612. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2613. */
  2614. function mapCacheHas(key) {
  2615. return getMapData(this, key).has(key);
  2616. }
  2617. /**
  2618. * Sets the map `key` to `value`.
  2619. *
  2620. * @private
  2621. * @name set
  2622. * @memberOf MapCache
  2623. * @param {string} key The key of the value to set.
  2624. * @param {*} value The value to set.
  2625. * @returns {Object} Returns the map cache instance.
  2626. */
  2627. function mapCacheSet(key, value) {
  2628. getMapData(this, key).set(key, value);
  2629. return this;
  2630. }
  2631. // Add methods to `MapCache`.
  2632. MapCache.prototype.clear = mapCacheClear;
  2633. MapCache.prototype['delete'] = mapCacheDelete;
  2634. MapCache.prototype.get = mapCacheGet;
  2635. MapCache.prototype.has = mapCacheHas;
  2636. MapCache.prototype.set = mapCacheSet;
  2637. /**
  2638. *
  2639. * Creates an array cache object to store unique values.
  2640. *
  2641. * @private
  2642. * @constructor
  2643. * @param {Array} [values] The values to cache.
  2644. */
  2645. function SetCache(values) {
  2646. var index = -1,
  2647. length = values ? values.length : 0;
  2648. this.__data__ = new MapCache;
  2649. while (++index < length) {
  2650. this.add(values[index]);
  2651. }
  2652. }
  2653. /**
  2654. * Adds `value` to the array cache.
  2655. *
  2656. * @private
  2657. * @name add
  2658. * @memberOf SetCache
  2659. * @alias push
  2660. * @param {*} value The value to cache.
  2661. * @returns {Object} Returns the cache instance.
  2662. */
  2663. function setCacheAdd(value) {
  2664. this.__data__.set(value, HASH_UNDEFINED);
  2665. return this;
  2666. }
  2667. /**
  2668. * Checks if `value` is in the array cache.
  2669. *
  2670. * @private
  2671. * @name has
  2672. * @memberOf SetCache
  2673. * @param {*} value The value to search for.
  2674. * @returns {number} Returns `true` if `value` is found, else `false`.
  2675. */
  2676. function setCacheHas(value) {
  2677. return this.__data__.has(value);
  2678. }
  2679. // Add methods to `SetCache`.
  2680. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  2681. SetCache.prototype.has = setCacheHas;
  2682. /**
  2683. * Gets the index at which the `key` is found in `array` of key-value pairs.
  2684. *
  2685. * @private
  2686. * @param {Array} array The array to inspect.
  2687. * @param {*} key The key to search for.
  2688. * @returns {number} Returns the index of the matched value, else `-1`.
  2689. */
  2690. function assocIndexOf(array, key) {
  2691. var length = array.length;
  2692. while (length--) {
  2693. if (eq(array[length][0], key)) {
  2694. return length;
  2695. }
  2696. }
  2697. return -1;
  2698. }
  2699. /**
  2700. * The base implementation of `_.isNative` without bad shim checks.
  2701. *
  2702. * @private
  2703. * @param {*} value The value to check.
  2704. * @returns {boolean} Returns `true` if `value` is a native function,
  2705. * else `false`.
  2706. */
  2707. function baseIsNative(value) {
  2708. if (!isObject(value) || isMasked(value)) {
  2709. return false;
  2710. }
  2711. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  2712. return pattern.test(toSource(value));
  2713. }
  2714. /**
  2715. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  2716. *
  2717. * @private
  2718. * @param {Array} array The array to inspect.
  2719. * @param {Function} [iteratee] The iteratee invoked per element.
  2720. * @param {Function} [comparator] The comparator invoked per element.
  2721. * @returns {Array} Returns the new duplicate free array.
  2722. */
  2723. function baseUniq(array, iteratee, comparator) {
  2724. var index = -1,
  2725. includes = arrayIncludes,
  2726. length = array.length,
  2727. isCommon = true,
  2728. result = [],
  2729. seen = result;
  2730. if (comparator) {
  2731. isCommon = false;
  2732. includes = arrayIncludesWith;
  2733. }
  2734. else if (length >= LARGE_ARRAY_SIZE) {
  2735. var set = iteratee ? null : createSet(array);
  2736. if (set) {
  2737. return setToArray(set);
  2738. }
  2739. isCommon = false;
  2740. includes = cacheHas;
  2741. seen = new SetCache;
  2742. }
  2743. else {
  2744. seen = iteratee ? [] : result;
  2745. }
  2746. outer:
  2747. while (++index < length) {
  2748. var value = array[index],
  2749. computed = iteratee ? iteratee(value) : value;
  2750. value = (comparator || value !== 0) ? value : 0;
  2751. if (isCommon && computed === computed) {
  2752. var seenIndex = seen.length;
  2753. while (seenIndex--) {
  2754. if (seen[seenIndex] === computed) {
  2755. continue outer;
  2756. }
  2757. }
  2758. if (iteratee) {
  2759. seen.push(computed);
  2760. }
  2761. result.push(value);
  2762. }
  2763. else if (!includes(seen, computed, comparator)) {
  2764. if (seen !== result) {
  2765. seen.push(computed);
  2766. }
  2767. result.push(value);
  2768. }
  2769. }
  2770. return result;
  2771. }
  2772. /**
  2773. * Creates a set object of `values`.
  2774. *
  2775. * @private
  2776. * @param {Array} values The values to add to the set.
  2777. * @returns {Object} Returns the new set.
  2778. */
  2779. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  2780. return new Set(values);
  2781. };
  2782. /**
  2783. * Gets the data for `map`.
  2784. *
  2785. * @private
  2786. * @param {Object} map The map to query.
  2787. * @param {string} key The reference key.
  2788. * @returns {*} Returns the map data.
  2789. */
  2790. function getMapData(map, key) {
  2791. var data = map.__data__;
  2792. return isKeyable(key)
  2793. ? data[typeof key == 'string' ? 'string' : 'hash']
  2794. : data.map;
  2795. }
  2796. /**
  2797. * Gets the native function at `key` of `object`.
  2798. *
  2799. * @private
  2800. * @param {Object} object The object to query.
  2801. * @param {string} key The key of the method to get.
  2802. * @returns {*} Returns the function if it's native, else `undefined`.
  2803. */
  2804. function getNative(object, key) {
  2805. var value = getValue(object, key);
  2806. return baseIsNative(value) ? value : undefined;
  2807. }
  2808. /**
  2809. * Checks if `value` is suitable for use as unique object key.
  2810. *
  2811. * @private
  2812. * @param {*} value The value to check.
  2813. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  2814. */
  2815. function isKeyable(value) {
  2816. var type = typeof value;
  2817. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  2818. ? (value !== '__proto__')
  2819. : (value === null);
  2820. }
  2821. /**
  2822. * Checks if `func` has its source masked.
  2823. *
  2824. * @private
  2825. * @param {Function} func The function to check.
  2826. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  2827. */
  2828. function isMasked(func) {
  2829. return !!maskSrcKey && (maskSrcKey in func);
  2830. }
  2831. /**
  2832. * Converts `func` to its source code.
  2833. *
  2834. * @private
  2835. * @param {Function} func The function to process.
  2836. * @returns {string} Returns the source code.
  2837. */
  2838. function toSource(func) {
  2839. if (func != null) {
  2840. try {
  2841. return funcToString.call(func);
  2842. } catch (e) {}
  2843. try {
  2844. return (func + '');
  2845. } catch (e) {}
  2846. }
  2847. return '';
  2848. }
  2849. /**
  2850. * Creates a duplicate-free version of an array, using
  2851. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2852. * for equality comparisons, in which only the first occurrence of each
  2853. * element is kept.
  2854. *
  2855. * @static
  2856. * @memberOf _
  2857. * @since 0.1.0
  2858. * @category Array
  2859. * @param {Array} array The array to inspect.
  2860. * @returns {Array} Returns the new duplicate free array.
  2861. * @example
  2862. *
  2863. * _.uniq([2, 1, 2]);
  2864. * // => [2, 1]
  2865. */
  2866. function uniq(array) {
  2867. return (array && array.length)
  2868. ? baseUniq(array)
  2869. : [];
  2870. }
  2871. /**
  2872. * Performs a
  2873. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2874. * comparison between two values to determine if they are equivalent.
  2875. *
  2876. * @static
  2877. * @memberOf _
  2878. * @since 4.0.0
  2879. * @category Lang
  2880. * @param {*} value The value to compare.
  2881. * @param {*} other The other value to compare.
  2882. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  2883. * @example
  2884. *
  2885. * var object = { 'a': 1 };
  2886. * var other = { 'a': 1 };
  2887. *
  2888. * _.eq(object, object);
  2889. * // => true
  2890. *
  2891. * _.eq(object, other);
  2892. * // => false
  2893. *
  2894. * _.eq('a', 'a');
  2895. * // => true
  2896. *
  2897. * _.eq('a', Object('a'));
  2898. * // => false
  2899. *
  2900. * _.eq(NaN, NaN);
  2901. * // => true
  2902. */
  2903. function eq(value, other) {
  2904. return value === other || (value !== value && other !== other);
  2905. }
  2906. /**
  2907. * Checks if `value` is classified as a `Function` object.
  2908. *
  2909. * @static
  2910. * @memberOf _
  2911. * @since 0.1.0
  2912. * @category Lang
  2913. * @param {*} value The value to check.
  2914. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  2915. * @example
  2916. *
  2917. * _.isFunction(_);
  2918. * // => true
  2919. *
  2920. * _.isFunction(/abc/);
  2921. * // => false
  2922. */
  2923. function isFunction(value) {
  2924. // The use of `Object#toString` avoids issues with the `typeof` operator
  2925. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  2926. var tag = isObject(value) ? objectToString.call(value) : '';
  2927. return tag == funcTag || tag == genTag;
  2928. }
  2929. /**
  2930. * Checks if `value` is the
  2931. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  2932. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  2933. *
  2934. * @static
  2935. * @memberOf _
  2936. * @since 0.1.0
  2937. * @category Lang
  2938. * @param {*} value The value to check.
  2939. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  2940. * @example
  2941. *
  2942. * _.isObject({});
  2943. * // => true
  2944. *
  2945. * _.isObject([1, 2, 3]);
  2946. * // => true
  2947. *
  2948. * _.isObject(_.noop);
  2949. * // => true
  2950. *
  2951. * _.isObject(null);
  2952. * // => false
  2953. */
  2954. function isObject(value) {
  2955. var type = typeof value;
  2956. return !!value && (type == 'object' || type == 'function');
  2957. }
  2958. /**
  2959. * This method returns `undefined`.
  2960. *
  2961. * @static
  2962. * @memberOf _
  2963. * @since 2.3.0
  2964. * @category Util
  2965. * @example
  2966. *
  2967. * _.times(2, _.noop);
  2968. * // => [undefined, undefined]
  2969. */
  2970. function noop() {
  2971. // No operation performed.
  2972. }
  2973. module.exports = uniq;
  2974. /***/ }),
  2975. /***/ 129:
  2976. /***/ (function(module) {
  2977. module.exports = require("child_process");
  2978. /***/ }),
  2979. /***/ 135:
  2980. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2981. "use strict";
  2982. Object.defineProperty(exports, "__esModule", {
  2983. value: true
  2984. });
  2985. exports.default = void 0;
  2986. var _validate = _interopRequireDefault(__webpack_require__(634));
  2987. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2988. function version(uuid) {
  2989. if (!(0, _validate.default)(uuid)) {
  2990. throw TypeError('Invalid UUID');
  2991. }
  2992. return parseInt(uuid.substr(14, 1), 16);
  2993. }
  2994. var _default = version;
  2995. exports.default = _default;
  2996. /***/ }),
  2997. /***/ 136:
  2998. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2999. "use strict";
  3000. Object.defineProperty(exports, "__esModule", {
  3001. value: true
  3002. });
  3003. exports.default = _default;
  3004. exports.URL = exports.DNS = void 0;
  3005. var _stringify = _interopRequireDefault(__webpack_require__(960));
  3006. var _parse = _interopRequireDefault(__webpack_require__(204));
  3007. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3008. function stringToBytes(str) {
  3009. str = unescape(encodeURIComponent(str)); // UTF8 escape
  3010. const bytes = [];
  3011. for (let i = 0; i < str.length; ++i) {
  3012. bytes.push(str.charCodeAt(i));
  3013. }
  3014. return bytes;
  3015. }
  3016. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  3017. exports.DNS = DNS;
  3018. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  3019. exports.URL = URL;
  3020. function _default(name, version, hashfunc) {
  3021. function generateUUID(value, namespace, buf, offset) {
  3022. if (typeof value === 'string') {
  3023. value = stringToBytes(value);
  3024. }
  3025. if (typeof namespace === 'string') {
  3026. namespace = (0, _parse.default)(namespace);
  3027. }
  3028. if (namespace.length !== 16) {
  3029. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  3030. } // Compute hash of namespace and value, Per 4.3
  3031. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  3032. // hashfunc([...namespace, ... value])`
  3033. let bytes = new Uint8Array(16 + value.length);
  3034. bytes.set(namespace);
  3035. bytes.set(value, namespace.length);
  3036. bytes = hashfunc(bytes);
  3037. bytes[6] = bytes[6] & 0x0f | version;
  3038. bytes[8] = bytes[8] & 0x3f | 0x80;
  3039. if (buf) {
  3040. offset = offset || 0;
  3041. for (let i = 0; i < 16; ++i) {
  3042. buf[offset + i] = bytes[i];
  3043. }
  3044. return buf;
  3045. }
  3046. return (0, _stringify.default)(bytes);
  3047. } // Function#name is not settable on some platforms (#270)
  3048. try {
  3049. generateUUID.name = name; // eslint-disable-next-line no-empty
  3050. } catch (err) {} // For CommonJS default export support
  3051. generateUUID.DNS = DNS;
  3052. generateUUID.URL = URL;
  3053. return generateUUID;
  3054. }
  3055. /***/ }),
  3056. /***/ 139:
  3057. /***/ (function(module, __unusedexports, __webpack_require__) {
  3058. // Unique ID creation requires a high quality random # generator. In node.js
  3059. // this is pretty straight-forward - we use the crypto API.
  3060. var crypto = __webpack_require__(417);
  3061. module.exports = function nodeRNG() {
  3062. return crypto.randomBytes(16);
  3063. };
  3064. /***/ }),
  3065. /***/ 141:
  3066. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3067. "use strict";
  3068. var net = __webpack_require__(631);
  3069. var tls = __webpack_require__(16);
  3070. var http = __webpack_require__(605);
  3071. var https = __webpack_require__(211);
  3072. var events = __webpack_require__(614);
  3073. var assert = __webpack_require__(357);
  3074. var util = __webpack_require__(669);
  3075. exports.httpOverHttp = httpOverHttp;
  3076. exports.httpsOverHttp = httpsOverHttp;
  3077. exports.httpOverHttps = httpOverHttps;
  3078. exports.httpsOverHttps = httpsOverHttps;
  3079. function httpOverHttp(options) {
  3080. var agent = new TunnelingAgent(options);
  3081. agent.request = http.request;
  3082. return agent;
  3083. }
  3084. function httpsOverHttp(options) {
  3085. var agent = new TunnelingAgent(options);
  3086. agent.request = http.request;
  3087. agent.createSocket = createSecureSocket;
  3088. agent.defaultPort = 443;
  3089. return agent;
  3090. }
  3091. function httpOverHttps(options) {
  3092. var agent = new TunnelingAgent(options);
  3093. agent.request = https.request;
  3094. return agent;
  3095. }
  3096. function httpsOverHttps(options) {
  3097. var agent = new TunnelingAgent(options);
  3098. agent.request = https.request;
  3099. agent.createSocket = createSecureSocket;
  3100. agent.defaultPort = 443;
  3101. return agent;
  3102. }
  3103. function TunnelingAgent(options) {
  3104. var self = this;
  3105. self.options = options || {};
  3106. self.proxyOptions = self.options.proxy || {};
  3107. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  3108. self.requests = [];
  3109. self.sockets = [];
  3110. self.on('free', function onFree(socket, host, port, localAddress) {
  3111. var options = toOptions(host, port, localAddress);
  3112. for (var i = 0, len = self.requests.length; i < len; ++i) {
  3113. var pending = self.requests[i];
  3114. if (pending.host === options.host && pending.port === options.port) {
  3115. // Detect the request to connect same origin server,
  3116. // reuse the connection.
  3117. self.requests.splice(i, 1);
  3118. pending.request.onSocket(socket);
  3119. return;
  3120. }
  3121. }
  3122. socket.destroy();
  3123. self.removeSocket(socket);
  3124. });
  3125. }
  3126. util.inherits(TunnelingAgent, events.EventEmitter);
  3127. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  3128. var self = this;
  3129. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  3130. if (self.sockets.length >= this.maxSockets) {
  3131. // We are over limit so we'll add it to the queue.
  3132. self.requests.push(options);
  3133. return;
  3134. }
  3135. // If we are under maxSockets create a new one.
  3136. self.createSocket(options, function(socket) {
  3137. socket.on('free', onFree);
  3138. socket.on('close', onCloseOrRemove);
  3139. socket.on('agentRemove', onCloseOrRemove);
  3140. req.onSocket(socket);
  3141. function onFree() {
  3142. self.emit('free', socket, options);
  3143. }
  3144. function onCloseOrRemove(err) {
  3145. self.removeSocket(socket);
  3146. socket.removeListener('free', onFree);
  3147. socket.removeListener('close', onCloseOrRemove);
  3148. socket.removeListener('agentRemove', onCloseOrRemove);
  3149. }
  3150. });
  3151. };
  3152. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  3153. var self = this;
  3154. var placeholder = {};
  3155. self.sockets.push(placeholder);
  3156. var connectOptions = mergeOptions({}, self.proxyOptions, {
  3157. method: 'CONNECT',
  3158. path: options.host + ':' + options.port,
  3159. agent: false,
  3160. headers: {
  3161. host: options.host + ':' + options.port
  3162. }
  3163. });
  3164. if (options.localAddress) {
  3165. connectOptions.localAddress = options.localAddress;
  3166. }
  3167. if (connectOptions.proxyAuth) {
  3168. connectOptions.headers = connectOptions.headers || {};
  3169. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  3170. new Buffer(connectOptions.proxyAuth).toString('base64');
  3171. }
  3172. debug('making CONNECT request');
  3173. var connectReq = self.request(connectOptions);
  3174. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  3175. connectReq.once('response', onResponse); // for v0.6
  3176. connectReq.once('upgrade', onUpgrade); // for v0.6
  3177. connectReq.once('connect', onConnect); // for v0.7 or later
  3178. connectReq.once('error', onError);
  3179. connectReq.end();
  3180. function onResponse(res) {
  3181. // Very hacky. This is necessary to avoid http-parser leaks.
  3182. res.upgrade = true;
  3183. }
  3184. function onUpgrade(res, socket, head) {
  3185. // Hacky.
  3186. process.nextTick(function() {
  3187. onConnect(res, socket, head);
  3188. });
  3189. }
  3190. function onConnect(res, socket, head) {
  3191. connectReq.removeAllListeners();
  3192. socket.removeAllListeners();
  3193. if (res.statusCode !== 200) {
  3194. debug('tunneling socket could not be established, statusCode=%d',
  3195. res.statusCode);
  3196. socket.destroy();
  3197. var error = new Error('tunneling socket could not be established, ' +
  3198. 'statusCode=' + res.statusCode);
  3199. error.code = 'ECONNRESET';
  3200. options.request.emit('error', error);
  3201. self.removeSocket(placeholder);
  3202. return;
  3203. }
  3204. if (head.length > 0) {
  3205. debug('got illegal response body from proxy');
  3206. socket.destroy();
  3207. var error = new Error('got illegal response body from proxy');
  3208. error.code = 'ECONNRESET';
  3209. options.request.emit('error', error);
  3210. self.removeSocket(placeholder);
  3211. return;
  3212. }
  3213. debug('tunneling connection has established');
  3214. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  3215. return cb(socket);
  3216. }
  3217. function onError(cause) {
  3218. connectReq.removeAllListeners();
  3219. debug('tunneling socket could not be established, cause=%s\n',
  3220. cause.message, cause.stack);
  3221. var error = new Error('tunneling socket could not be established, ' +
  3222. 'cause=' + cause.message);
  3223. error.code = 'ECONNRESET';
  3224. options.request.emit('error', error);
  3225. self.removeSocket(placeholder);
  3226. }
  3227. };
  3228. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  3229. var pos = this.sockets.indexOf(socket)
  3230. if (pos === -1) {
  3231. return;
  3232. }
  3233. this.sockets.splice(pos, 1);
  3234. var pending = this.requests.shift();
  3235. if (pending) {
  3236. // If we have pending requests and a socket gets closed a new one
  3237. // needs to be created to take over in the pool for the one that closed.
  3238. this.createSocket(pending, function(socket) {
  3239. pending.request.onSocket(socket);
  3240. });
  3241. }
  3242. };
  3243. function createSecureSocket(options, cb) {
  3244. var self = this;
  3245. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  3246. var hostHeader = options.request.getHeader('host');
  3247. var tlsOptions = mergeOptions({}, self.options, {
  3248. socket: socket,
  3249. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  3250. });
  3251. // 0 is dummy port for v0.6
  3252. var secureSocket = tls.connect(0, tlsOptions);
  3253. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  3254. cb(secureSocket);
  3255. });
  3256. }
  3257. function toOptions(host, port, localAddress) {
  3258. if (typeof host === 'string') { // since v0.10
  3259. return {
  3260. host: host,
  3261. port: port,
  3262. localAddress: localAddress
  3263. };
  3264. }
  3265. return host; // for v0.11 or later
  3266. }
  3267. function mergeOptions(target) {
  3268. for (var i = 1, len = arguments.length; i < len; ++i) {
  3269. var overrides = arguments[i];
  3270. if (typeof overrides === 'object') {
  3271. var keys = Object.keys(overrides);
  3272. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  3273. var k = keys[j];
  3274. if (overrides[k] !== undefined) {
  3275. target[k] = overrides[k];
  3276. }
  3277. }
  3278. }
  3279. }
  3280. return target;
  3281. }
  3282. var debug;
  3283. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  3284. debug = function() {
  3285. var args = Array.prototype.slice.call(arguments);
  3286. if (typeof args[0] === 'string') {
  3287. args[0] = 'TUNNEL: ' + args[0];
  3288. } else {
  3289. args.unshift('TUNNEL:');
  3290. }
  3291. console.error.apply(console, args);
  3292. }
  3293. } else {
  3294. debug = function() {};
  3295. }
  3296. exports.debug = debug; // for test
  3297. /***/ }),
  3298. /***/ 143:
  3299. /***/ (function(module, __unusedexports, __webpack_require__) {
  3300. module.exports = withAuthorizationPrefix;
  3301. const atob = __webpack_require__(368);
  3302. const REGEX_IS_BASIC_AUTH = /^[\w-]+:/;
  3303. function withAuthorizationPrefix(authorization) {
  3304. if (/^(basic|bearer|token) /i.test(authorization)) {
  3305. return authorization;
  3306. }
  3307. try {
  3308. if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) {
  3309. return `basic ${authorization}`;
  3310. }
  3311. } catch (error) {}
  3312. if (authorization.split(/\./).length === 3) {
  3313. return `bearer ${authorization}`;
  3314. }
  3315. return `token ${authorization}`;
  3316. }
  3317. /***/ }),
  3318. /***/ 145:
  3319. /***/ (function(module, __unusedexports, __webpack_require__) {
  3320. "use strict";
  3321. const pump = __webpack_require__(453);
  3322. const bufferStream = __webpack_require__(966);
  3323. class MaxBufferError extends Error {
  3324. constructor() {
  3325. super('maxBuffer exceeded');
  3326. this.name = 'MaxBufferError';
  3327. }
  3328. }
  3329. function getStream(inputStream, options) {
  3330. if (!inputStream) {
  3331. return Promise.reject(new Error('Expected a stream'));
  3332. }
  3333. options = Object.assign({maxBuffer: Infinity}, options);
  3334. const {maxBuffer} = options;
  3335. let stream;
  3336. return new Promise((resolve, reject) => {
  3337. const rejectPromise = error => {
  3338. if (error) { // A null check
  3339. error.bufferedData = stream.getBufferedValue();
  3340. }
  3341. reject(error);
  3342. };
  3343. stream = pump(inputStream, bufferStream(options), error => {
  3344. if (error) {
  3345. rejectPromise(error);
  3346. return;
  3347. }
  3348. resolve();
  3349. });
  3350. stream.on('data', () => {
  3351. if (stream.getBufferedLength() > maxBuffer) {
  3352. rejectPromise(new MaxBufferError());
  3353. }
  3354. });
  3355. }).then(() => stream.getBufferedValue());
  3356. }
  3357. module.exports = getStream;
  3358. module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
  3359. module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
  3360. module.exports.MaxBufferError = MaxBufferError;
  3361. /***/ }),
  3362. /***/ 148:
  3363. /***/ (function(module, __unusedexports, __webpack_require__) {
  3364. module.exports = paginatePlugin;
  3365. const { paginateRest } = __webpack_require__(299);
  3366. function paginatePlugin(octokit) {
  3367. Object.assign(octokit, paginateRest(octokit));
  3368. }
  3369. /***/ }),
  3370. /***/ 149:
  3371. /***/ (function(module) {
  3372. "use strict";
  3373. var conversions = {};
  3374. module.exports = conversions;
  3375. function sign(x) {
  3376. return x < 0 ? -1 : 1;
  3377. }
  3378. function evenRound(x) {
  3379. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  3380. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  3381. return Math.floor(x);
  3382. } else {
  3383. return Math.round(x);
  3384. }
  3385. }
  3386. function createNumberConversion(bitLength, typeOpts) {
  3387. if (!typeOpts.unsigned) {
  3388. --bitLength;
  3389. }
  3390. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  3391. const upperBound = Math.pow(2, bitLength) - 1;
  3392. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  3393. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  3394. return function(V, opts) {
  3395. if (!opts) opts = {};
  3396. let x = +V;
  3397. if (opts.enforceRange) {
  3398. if (!Number.isFinite(x)) {
  3399. throw new TypeError("Argument is not a finite number");
  3400. }
  3401. x = sign(x) * Math.floor(Math.abs(x));
  3402. if (x < lowerBound || x > upperBound) {
  3403. throw new TypeError("Argument is not in byte range");
  3404. }
  3405. return x;
  3406. }
  3407. if (!isNaN(x) && opts.clamp) {
  3408. x = evenRound(x);
  3409. if (x < lowerBound) x = lowerBound;
  3410. if (x > upperBound) x = upperBound;
  3411. return x;
  3412. }
  3413. if (!Number.isFinite(x) || x === 0) {
  3414. return 0;
  3415. }
  3416. x = sign(x) * Math.floor(Math.abs(x));
  3417. x = x % moduloVal;
  3418. if (!typeOpts.unsigned && x >= moduloBound) {
  3419. return x - moduloVal;
  3420. } else if (typeOpts.unsigned) {
  3421. if (x < 0) {
  3422. x += moduloVal;
  3423. } else if (x === -0) { // don't return negative zero
  3424. return 0;
  3425. }
  3426. }
  3427. return x;
  3428. }
  3429. }
  3430. conversions["void"] = function () {
  3431. return undefined;
  3432. };
  3433. conversions["boolean"] = function (val) {
  3434. return !!val;
  3435. };
  3436. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  3437. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  3438. conversions["short"] = createNumberConversion(16, { unsigned: false });
  3439. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  3440. conversions["long"] = createNumberConversion(32, { unsigned: false });
  3441. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  3442. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  3443. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  3444. conversions["double"] = function (V) {
  3445. const x = +V;
  3446. if (!Number.isFinite(x)) {
  3447. throw new TypeError("Argument is not a finite floating-point value");
  3448. }
  3449. return x;
  3450. };
  3451. conversions["unrestricted double"] = function (V) {
  3452. const x = +V;
  3453. if (isNaN(x)) {
  3454. throw new TypeError("Argument is NaN");
  3455. }
  3456. return x;
  3457. };
  3458. // not quite valid, but good enough for JS
  3459. conversions["float"] = conversions["double"];
  3460. conversions["unrestricted float"] = conversions["unrestricted double"];
  3461. conversions["DOMString"] = function (V, opts) {
  3462. if (!opts) opts = {};
  3463. if (opts.treatNullAsEmptyString && V === null) {
  3464. return "";
  3465. }
  3466. return String(V);
  3467. };
  3468. conversions["ByteString"] = function (V, opts) {
  3469. const x = String(V);
  3470. let c = undefined;
  3471. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  3472. if (c > 255) {
  3473. throw new TypeError("Argument is not a valid bytestring");
  3474. }
  3475. }
  3476. return x;
  3477. };
  3478. conversions["USVString"] = function (V) {
  3479. const S = String(V);
  3480. const n = S.length;
  3481. const U = [];
  3482. for (let i = 0; i < n; ++i) {
  3483. const c = S.charCodeAt(i);
  3484. if (c < 0xD800 || c > 0xDFFF) {
  3485. U.push(String.fromCodePoint(c));
  3486. } else if (0xDC00 <= c && c <= 0xDFFF) {
  3487. U.push(String.fromCodePoint(0xFFFD));
  3488. } else {
  3489. if (i === n - 1) {
  3490. U.push(String.fromCodePoint(0xFFFD));
  3491. } else {
  3492. const d = S.charCodeAt(i + 1);
  3493. if (0xDC00 <= d && d <= 0xDFFF) {
  3494. const a = c & 0x3FF;
  3495. const b = d & 0x3FF;
  3496. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  3497. ++i;
  3498. } else {
  3499. U.push(String.fromCodePoint(0xFFFD));
  3500. }
  3501. }
  3502. }
  3503. }
  3504. return U.join('');
  3505. };
  3506. conversions["Date"] = function (V, opts) {
  3507. if (!(V instanceof Date)) {
  3508. throw new TypeError("Argument is not a Date object");
  3509. }
  3510. if (isNaN(V)) {
  3511. return undefined;
  3512. }
  3513. return V;
  3514. };
  3515. conversions["RegExp"] = function (V, opts) {
  3516. if (!(V instanceof RegExp)) {
  3517. V = new RegExp(V);
  3518. }
  3519. return V;
  3520. };
  3521. /***/ }),
  3522. /***/ 153:
  3523. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3524. "use strict";
  3525. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3526. if (k2 === undefined) k2 = k;
  3527. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3528. }) : (function(o, m, k, k2) {
  3529. if (k2 === undefined) k2 = k;
  3530. o[k2] = m[k];
  3531. }));
  3532. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3533. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3534. }) : function(o, v) {
  3535. o["default"] = v;
  3536. });
  3537. var __importStar = (this && this.__importStar) || function (mod) {
  3538. if (mod && mod.__esModule) return mod;
  3539. var result = {};
  3540. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3541. __setModuleDefault(result, mod);
  3542. return result;
  3543. };
  3544. Object.defineProperty(exports, "__esModule", { value: true });
  3545. exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
  3546. const core = __importStar(__webpack_require__(470));
  3547. /**
  3548. * Indicates whether the POST action is running
  3549. */
  3550. exports.IsPost = !!core.getState('isPost');
  3551. /**
  3552. * The repository path for the POST action. The value is empty during the MAIN action.
  3553. */
  3554. exports.RepositoryPath = core.getState('repositoryPath');
  3555. /**
  3556. * The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
  3557. */
  3558. exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
  3559. /**
  3560. * The SSH key path for the POST action. The value is empty during the MAIN action.
  3561. */
  3562. exports.SshKeyPath = core.getState('sshKeyPath');
  3563. /**
  3564. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  3565. */
  3566. exports.SshKnownHostsPath = core.getState('sshKnownHostsPath');
  3567. /**
  3568. * Save the repository path so the POST action can retrieve the value.
  3569. */
  3570. function setRepositoryPath(repositoryPath) {
  3571. core.saveState('repositoryPath', repositoryPath);
  3572. }
  3573. exports.setRepositoryPath = setRepositoryPath;
  3574. /**
  3575. * Save the SSH key path so the POST action can retrieve the value.
  3576. */
  3577. function setSshKeyPath(sshKeyPath) {
  3578. core.saveState('sshKeyPath', sshKeyPath);
  3579. }
  3580. exports.setSshKeyPath = setSshKeyPath;
  3581. /**
  3582. * Save the SSH known hosts path so the POST action can retrieve the value.
  3583. */
  3584. function setSshKnownHostsPath(sshKnownHostsPath) {
  3585. core.saveState('sshKnownHostsPath', sshKnownHostsPath);
  3586. }
  3587. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  3588. /**
  3589. * Save the sef-safe-directory input so the POST action can retrieve the value.
  3590. */
  3591. function setSafeDirectory() {
  3592. core.saveState('setSafeDirectory', 'true');
  3593. }
  3594. exports.setSafeDirectory = setSafeDirectory;
  3595. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  3596. // This is necessary since we don't have a separate entry point.
  3597. if (!exports.IsPost) {
  3598. core.saveState('isPost', 'true');
  3599. }
  3600. /***/ }),
  3601. /***/ 168:
  3602. /***/ (function(module) {
  3603. "use strict";
  3604. const alias = ['stdin', 'stdout', 'stderr'];
  3605. const hasAlias = opts => alias.some(x => Boolean(opts[x]));
  3606. module.exports = opts => {
  3607. if (!opts) {
  3608. return null;
  3609. }
  3610. if (opts.stdio && hasAlias(opts)) {
  3611. throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
  3612. }
  3613. if (typeof opts.stdio === 'string') {
  3614. return opts.stdio;
  3615. }
  3616. const stdio = opts.stdio || [];
  3617. if (!Array.isArray(stdio)) {
  3618. throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
  3619. }
  3620. const result = [];
  3621. const len = Math.max(stdio.length, alias.length);
  3622. for (let i = 0; i < len; i++) {
  3623. let value = null;
  3624. if (stdio[i] !== undefined) {
  3625. value = stdio[i];
  3626. } else if (opts[alias[i]] !== undefined) {
  3627. value = opts[alias[i]];
  3628. }
  3629. result[i] = value;
  3630. }
  3631. return result;
  3632. };
  3633. /***/ }),
  3634. /***/ 174:
  3635. /***/ (function(module, __unusedexports, __webpack_require__) {
  3636. "use strict";
  3637. var bind = __webpack_require__(739);
  3638. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  3639. /***/ }),
  3640. /***/ 179:
  3641. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3642. "use strict";
  3643. var net = __webpack_require__(631);
  3644. var tls = __webpack_require__(16);
  3645. var http = __webpack_require__(605);
  3646. var https = __webpack_require__(211);
  3647. var events = __webpack_require__(614);
  3648. var assert = __webpack_require__(357);
  3649. var util = __webpack_require__(669);
  3650. exports.httpOverHttp = httpOverHttp;
  3651. exports.httpsOverHttp = httpsOverHttp;
  3652. exports.httpOverHttps = httpOverHttps;
  3653. exports.httpsOverHttps = httpsOverHttps;
  3654. function httpOverHttp(options) {
  3655. var agent = new TunnelingAgent(options);
  3656. agent.request = http.request;
  3657. return agent;
  3658. }
  3659. function httpsOverHttp(options) {
  3660. var agent = new TunnelingAgent(options);
  3661. agent.request = http.request;
  3662. agent.createSocket = createSecureSocket;
  3663. agent.defaultPort = 443;
  3664. return agent;
  3665. }
  3666. function httpOverHttps(options) {
  3667. var agent = new TunnelingAgent(options);
  3668. agent.request = https.request;
  3669. return agent;
  3670. }
  3671. function httpsOverHttps(options) {
  3672. var agent = new TunnelingAgent(options);
  3673. agent.request = https.request;
  3674. agent.createSocket = createSecureSocket;
  3675. agent.defaultPort = 443;
  3676. return agent;
  3677. }
  3678. function TunnelingAgent(options) {
  3679. var self = this;
  3680. self.options = options || {};
  3681. self.proxyOptions = self.options.proxy || {};
  3682. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  3683. self.requests = [];
  3684. self.sockets = [];
  3685. self.on('free', function onFree(socket, host, port, localAddress) {
  3686. var options = toOptions(host, port, localAddress);
  3687. for (var i = 0, len = self.requests.length; i < len; ++i) {
  3688. var pending = self.requests[i];
  3689. if (pending.host === options.host && pending.port === options.port) {
  3690. // Detect the request to connect same origin server,
  3691. // reuse the connection.
  3692. self.requests.splice(i, 1);
  3693. pending.request.onSocket(socket);
  3694. return;
  3695. }
  3696. }
  3697. socket.destroy();
  3698. self.removeSocket(socket);
  3699. });
  3700. }
  3701. util.inherits(TunnelingAgent, events.EventEmitter);
  3702. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  3703. var self = this;
  3704. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  3705. if (self.sockets.length >= this.maxSockets) {
  3706. // We are over limit so we'll add it to the queue.
  3707. self.requests.push(options);
  3708. return;
  3709. }
  3710. // If we are under maxSockets create a new one.
  3711. self.createSocket(options, function(socket) {
  3712. socket.on('free', onFree);
  3713. socket.on('close', onCloseOrRemove);
  3714. socket.on('agentRemove', onCloseOrRemove);
  3715. req.onSocket(socket);
  3716. function onFree() {
  3717. self.emit('free', socket, options);
  3718. }
  3719. function onCloseOrRemove(err) {
  3720. self.removeSocket(socket);
  3721. socket.removeListener('free', onFree);
  3722. socket.removeListener('close', onCloseOrRemove);
  3723. socket.removeListener('agentRemove', onCloseOrRemove);
  3724. }
  3725. });
  3726. };
  3727. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  3728. var self = this;
  3729. var placeholder = {};
  3730. self.sockets.push(placeholder);
  3731. var connectOptions = mergeOptions({}, self.proxyOptions, {
  3732. method: 'CONNECT',
  3733. path: options.host + ':' + options.port,
  3734. agent: false,
  3735. headers: {
  3736. host: options.host + ':' + options.port
  3737. }
  3738. });
  3739. if (options.localAddress) {
  3740. connectOptions.localAddress = options.localAddress;
  3741. }
  3742. if (connectOptions.proxyAuth) {
  3743. connectOptions.headers = connectOptions.headers || {};
  3744. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  3745. new Buffer(connectOptions.proxyAuth).toString('base64');
  3746. }
  3747. debug('making CONNECT request');
  3748. var connectReq = self.request(connectOptions);
  3749. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  3750. connectReq.once('response', onResponse); // for v0.6
  3751. connectReq.once('upgrade', onUpgrade); // for v0.6
  3752. connectReq.once('connect', onConnect); // for v0.7 or later
  3753. connectReq.once('error', onError);
  3754. connectReq.end();
  3755. function onResponse(res) {
  3756. // Very hacky. This is necessary to avoid http-parser leaks.
  3757. res.upgrade = true;
  3758. }
  3759. function onUpgrade(res, socket, head) {
  3760. // Hacky.
  3761. process.nextTick(function() {
  3762. onConnect(res, socket, head);
  3763. });
  3764. }
  3765. function onConnect(res, socket, head) {
  3766. connectReq.removeAllListeners();
  3767. socket.removeAllListeners();
  3768. if (res.statusCode !== 200) {
  3769. debug('tunneling socket could not be established, statusCode=%d',
  3770. res.statusCode);
  3771. socket.destroy();
  3772. var error = new Error('tunneling socket could not be established, ' +
  3773. 'statusCode=' + res.statusCode);
  3774. error.code = 'ECONNRESET';
  3775. options.request.emit('error', error);
  3776. self.removeSocket(placeholder);
  3777. return;
  3778. }
  3779. if (head.length > 0) {
  3780. debug('got illegal response body from proxy');
  3781. socket.destroy();
  3782. var error = new Error('got illegal response body from proxy');
  3783. error.code = 'ECONNRESET';
  3784. options.request.emit('error', error);
  3785. self.removeSocket(placeholder);
  3786. return;
  3787. }
  3788. debug('tunneling connection has established');
  3789. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  3790. return cb(socket);
  3791. }
  3792. function onError(cause) {
  3793. connectReq.removeAllListeners();
  3794. debug('tunneling socket could not be established, cause=%s\n',
  3795. cause.message, cause.stack);
  3796. var error = new Error('tunneling socket could not be established, ' +
  3797. 'cause=' + cause.message);
  3798. error.code = 'ECONNRESET';
  3799. options.request.emit('error', error);
  3800. self.removeSocket(placeholder);
  3801. }
  3802. };
  3803. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  3804. var pos = this.sockets.indexOf(socket)
  3805. if (pos === -1) {
  3806. return;
  3807. }
  3808. this.sockets.splice(pos, 1);
  3809. var pending = this.requests.shift();
  3810. if (pending) {
  3811. // If we have pending requests and a socket gets closed a new one
  3812. // needs to be created to take over in the pool for the one that closed.
  3813. this.createSocket(pending, function(socket) {
  3814. pending.request.onSocket(socket);
  3815. });
  3816. }
  3817. };
  3818. function createSecureSocket(options, cb) {
  3819. var self = this;
  3820. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  3821. var hostHeader = options.request.getHeader('host');
  3822. var tlsOptions = mergeOptions({}, self.options, {
  3823. socket: socket,
  3824. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  3825. });
  3826. // 0 is dummy port for v0.6
  3827. var secureSocket = tls.connect(0, tlsOptions);
  3828. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  3829. cb(secureSocket);
  3830. });
  3831. }
  3832. function toOptions(host, port, localAddress) {
  3833. if (typeof host === 'string') { // since v0.10
  3834. return {
  3835. host: host,
  3836. port: port,
  3837. localAddress: localAddress
  3838. };
  3839. }
  3840. return host; // for v0.11 or later
  3841. }
  3842. function mergeOptions(target) {
  3843. for (var i = 1, len = arguments.length; i < len; ++i) {
  3844. var overrides = arguments[i];
  3845. if (typeof overrides === 'object') {
  3846. var keys = Object.keys(overrides);
  3847. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  3848. var k = keys[j];
  3849. if (overrides[k] !== undefined) {
  3850. target[k] = overrides[k];
  3851. }
  3852. }
  3853. }
  3854. }
  3855. return target;
  3856. }
  3857. var debug;
  3858. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  3859. debug = function() {
  3860. var args = Array.prototype.slice.call(arguments);
  3861. if (typeof args[0] === 'string') {
  3862. args[0] = 'TUNNEL: ' + args[0];
  3863. } else {
  3864. args.unshift('TUNNEL:');
  3865. }
  3866. console.error.apply(console, args);
  3867. }
  3868. } else {
  3869. debug = function() {};
  3870. }
  3871. exports.debug = debug; // for test
  3872. /***/ }),
  3873. /***/ 190:
  3874. /***/ (function(module, __unusedexports, __webpack_require__) {
  3875. module.exports = authenticationPlugin;
  3876. const { createTokenAuth } = __webpack_require__(68);
  3877. const { Deprecation } = __webpack_require__(692);
  3878. const once = __webpack_require__(969);
  3879. const beforeRequest = __webpack_require__(863);
  3880. const requestError = __webpack_require__(991);
  3881. const validate = __webpack_require__(954);
  3882. const withAuthorizationPrefix = __webpack_require__(143);
  3883. const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
  3884. const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
  3885. function authenticationPlugin(octokit, options) {
  3886. // If `options.authStrategy` is set then use it and pass in `options.auth`
  3887. if (options.authStrategy) {
  3888. const auth = options.authStrategy(options.auth);
  3889. octokit.hook.wrap("request", auth.hook);
  3890. octokit.auth = auth;
  3891. return;
  3892. }
  3893. // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
  3894. // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
  3895. if (!options.auth) {
  3896. octokit.auth = () =>
  3897. Promise.resolve({
  3898. type: "unauthenticated"
  3899. });
  3900. return;
  3901. }
  3902. const isBasicAuthString =
  3903. typeof options.auth === "string" &&
  3904. /^basic/.test(withAuthorizationPrefix(options.auth));
  3905. // If only `options.auth` is set to a string, use the default token authentication strategy.
  3906. if (typeof options.auth === "string" && !isBasicAuthString) {
  3907. const auth = createTokenAuth(options.auth);
  3908. octokit.hook.wrap("request", auth.hook);
  3909. octokit.auth = auth;
  3910. return;
  3911. }
  3912. // Otherwise log a deprecation message
  3913. const [deprecationMethod, deprecationMessapge] = isBasicAuthString
  3914. ? [
  3915. deprecateAuthBasic,
  3916. 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
  3917. ]
  3918. : [
  3919. deprecateAuthObject,
  3920. 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
  3921. ];
  3922. deprecationMethod(
  3923. octokit.log,
  3924. new Deprecation("[@octokit/rest] " + deprecationMessapge)
  3925. );
  3926. octokit.auth = () =>
  3927. Promise.resolve({
  3928. type: "deprecated",
  3929. message: deprecationMessapge
  3930. });
  3931. validate(options.auth);
  3932. const state = {
  3933. octokit,
  3934. auth: options.auth
  3935. };
  3936. octokit.hook.before("request", beforeRequest.bind(null, state));
  3937. octokit.hook.error("request", requestError.bind(null, state));
  3938. }
  3939. /***/ }),
  3940. /***/ 195:
  3941. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3942. "use strict";
  3943. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3944. if (k2 === undefined) k2 = k;
  3945. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3946. }) : (function(o, m, k, k2) {
  3947. if (k2 === undefined) k2 = k;
  3948. o[k2] = m[k];
  3949. }));
  3950. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3951. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3952. }) : function(o, v) {
  3953. o["default"] = v;
  3954. });
  3955. var __importStar = (this && this.__importStar) || function (mod) {
  3956. if (mod && mod.__esModule) return mod;
  3957. var result = {};
  3958. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3959. __setModuleDefault(result, mod);
  3960. return result;
  3961. };
  3962. Object.defineProperty(exports, "__esModule", { value: true });
  3963. exports.getOctokit = exports.Octokit = void 0;
  3964. const github = __importStar(__webpack_require__(469));
  3965. const url_helper_1 = __webpack_require__(81);
  3966. // Centralize all Octokit references by re-exporting
  3967. var rest_1 = __webpack_require__(0);
  3968. Object.defineProperty(exports, "Octokit", { enumerable: true, get: function () { return rest_1.Octokit; } });
  3969. function getOctokit(authToken, opts) {
  3970. const options = {
  3971. baseUrl: (0, url_helper_1.getServerApiUrl)(opts.baseUrl)
  3972. };
  3973. if (opts.userAgent) {
  3974. options.userAgent = opts.userAgent;
  3975. }
  3976. return new github.GitHub(authToken, options);
  3977. }
  3978. exports.getOctokit = getOctokit;
  3979. /***/ }),
  3980. /***/ 197:
  3981. /***/ (function(module, __unusedexports, __webpack_require__) {
  3982. module.exports = isexe
  3983. isexe.sync = sync
  3984. var fs = __webpack_require__(747)
  3985. function isexe (path, options, cb) {
  3986. fs.stat(path, function (er, stat) {
  3987. cb(er, er ? false : checkStat(stat, options))
  3988. })
  3989. }
  3990. function sync (path, options) {
  3991. return checkStat(fs.statSync(path), options)
  3992. }
  3993. function checkStat (stat, options) {
  3994. return stat.isFile() && checkMode(stat, options)
  3995. }
  3996. function checkMode (stat, options) {
  3997. var mod = stat.mode
  3998. var uid = stat.uid
  3999. var gid = stat.gid
  4000. var myUid = options.uid !== undefined ?
  4001. options.uid : process.getuid && process.getuid()
  4002. var myGid = options.gid !== undefined ?
  4003. options.gid : process.getgid && process.getgid()
  4004. var u = parseInt('100', 8)
  4005. var g = parseInt('010', 8)
  4006. var o = parseInt('001', 8)
  4007. var ug = u | g
  4008. var ret = (mod & o) ||
  4009. (mod & g) && gid === myGid ||
  4010. (mod & u) && uid === myUid ||
  4011. (mod & ug) && myUid === 0
  4012. return ret
  4013. }
  4014. /***/ }),
  4015. /***/ 198:
  4016. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4017. "use strict";
  4018. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4019. if (k2 === undefined) k2 = k;
  4020. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  4021. }) : (function(o, m, k, k2) {
  4022. if (k2 === undefined) k2 = k;
  4023. o[k2] = m[k];
  4024. }));
  4025. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4026. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4027. }) : function(o, v) {
  4028. o["default"] = v;
  4029. });
  4030. var __importStar = (this && this.__importStar) || function (mod) {
  4031. if (mod && mod.__esModule) return mod;
  4032. var result = {};
  4033. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4034. __setModuleDefault(result, mod);
  4035. return result;
  4036. };
  4037. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4038. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4039. return new (P || (P = Promise))(function (resolve, reject) {
  4040. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4041. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4042. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4043. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4044. });
  4045. };
  4046. Object.defineProperty(exports, "__esModule", { value: true });
  4047. const core = __importStar(__webpack_require__(470));
  4048. const coreCommand = __importStar(__webpack_require__(431));
  4049. const gitSourceProvider = __importStar(__webpack_require__(853));
  4050. const inputHelper = __importStar(__webpack_require__(821));
  4051. const path = __importStar(__webpack_require__(622));
  4052. const stateHelper = __importStar(__webpack_require__(153));
  4053. function run() {
  4054. var _a, _b;
  4055. return __awaiter(this, void 0, void 0, function* () {
  4056. try {
  4057. const sourceSettings = yield inputHelper.getInputs();
  4058. try {
  4059. // Register problem matcher
  4060. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  4061. // Get sources
  4062. yield gitSourceProvider.getSource(sourceSettings);
  4063. }
  4064. finally {
  4065. // Unregister problem matcher
  4066. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  4067. }
  4068. }
  4069. catch (error) {
  4070. core.setFailed(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  4071. }
  4072. });
  4073. }
  4074. function cleanup() {
  4075. var _a, _b;
  4076. return __awaiter(this, void 0, void 0, function* () {
  4077. try {
  4078. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  4079. }
  4080. catch (error) {
  4081. core.warning(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  4082. }
  4083. });
  4084. }
  4085. // Main
  4086. if (!stateHelper.IsPost) {
  4087. run();
  4088. }
  4089. // Post
  4090. else {
  4091. cleanup();
  4092. }
  4093. /***/ }),
  4094. /***/ 204:
  4095. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4096. "use strict";
  4097. Object.defineProperty(exports, "__esModule", {
  4098. value: true
  4099. });
  4100. exports.default = void 0;
  4101. var _validate = _interopRequireDefault(__webpack_require__(634));
  4102. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4103. function parse(uuid) {
  4104. if (!(0, _validate.default)(uuid)) {
  4105. throw TypeError('Invalid UUID');
  4106. }
  4107. let v;
  4108. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  4109. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  4110. arr[1] = v >>> 16 & 0xff;
  4111. arr[2] = v >>> 8 & 0xff;
  4112. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  4113. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  4114. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  4115. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  4116. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  4117. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  4118. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  4119. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  4120. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  4121. arr[11] = v / 0x100000000 & 0xff;
  4122. arr[12] = v >>> 24 & 0xff;
  4123. arr[13] = v >>> 16 & 0xff;
  4124. arr[14] = v >>> 8 & 0xff;
  4125. arr[15] = v & 0xff;
  4126. return arr;
  4127. }
  4128. var _default = parse;
  4129. exports.default = _default;
  4130. /***/ }),
  4131. /***/ 211:
  4132. /***/ (function(module) {
  4133. module.exports = require("https");
  4134. /***/ }),
  4135. /***/ 213:
  4136. /***/ (function(module) {
  4137. module.exports = require("punycode");
  4138. /***/ }),
  4139. /***/ 215:
  4140. /***/ (function(module) {
  4141. module.exports = {"name":"@octokit/rest","version":"16.43.1","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_from":"@octokit/rest@16.43.1"};
  4142. /***/ }),
  4143. /***/ 227:
  4144. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4145. "use strict";
  4146. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4147. if (k2 === undefined) k2 = k;
  4148. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  4149. }) : (function(o, m, k, k2) {
  4150. if (k2 === undefined) k2 = k;
  4151. o[k2] = m[k];
  4152. }));
  4153. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4154. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4155. }) : function(o, v) {
  4156. o["default"] = v;
  4157. });
  4158. var __importStar = (this && this.__importStar) || function (mod) {
  4159. if (mod && mod.__esModule) return mod;
  4160. var result = {};
  4161. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4162. __setModuleDefault(result, mod);
  4163. return result;
  4164. };
  4165. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4166. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4167. return new (P || (P = Promise))(function (resolve, reject) {
  4168. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4169. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4170. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4171. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4172. });
  4173. };
  4174. Object.defineProperty(exports, "__esModule", { value: true });
  4175. exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  4176. const core = __importStar(__webpack_require__(470));
  4177. const github = __importStar(__webpack_require__(469));
  4178. const octokit_provider_1 = __webpack_require__(195);
  4179. const url_helper_1 = __webpack_require__(81);
  4180. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  4181. function getCheckoutInfo(git, ref, commit) {
  4182. return __awaiter(this, void 0, void 0, function* () {
  4183. if (!git) {
  4184. throw new Error('Arg git cannot be empty');
  4185. }
  4186. if (!ref && !commit) {
  4187. throw new Error('Args ref and commit cannot both be empty');
  4188. }
  4189. const result = {};
  4190. const upperRef = (ref || '').toUpperCase();
  4191. // SHA only
  4192. if (!ref) {
  4193. result.ref = commit;
  4194. }
  4195. // refs/heads/
  4196. else if (upperRef.startsWith('REFS/HEADS/')) {
  4197. const branch = ref.substring('refs/heads/'.length);
  4198. result.ref = branch;
  4199. result.startPoint = `refs/remotes/origin/${branch}`;
  4200. }
  4201. // refs/pull/
  4202. else if (upperRef.startsWith('REFS/PULL/')) {
  4203. const branch = ref.substring('refs/pull/'.length);
  4204. result.ref = `refs/remotes/pull/${branch}`;
  4205. }
  4206. // refs/tags/
  4207. else if (upperRef.startsWith('REFS/')) {
  4208. result.ref = ref;
  4209. }
  4210. // Unqualified ref, check for a matching branch or tag
  4211. else {
  4212. if (yield git.branchExists(true, `origin/${ref}`)) {
  4213. result.ref = ref;
  4214. result.startPoint = `refs/remotes/origin/${ref}`;
  4215. }
  4216. else if (yield git.tagExists(`${ref}`)) {
  4217. result.ref = `refs/tags/${ref}`;
  4218. }
  4219. else {
  4220. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  4221. }
  4222. }
  4223. return result;
  4224. });
  4225. }
  4226. exports.getCheckoutInfo = getCheckoutInfo;
  4227. function getRefSpecForAllHistory(ref, commit) {
  4228. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  4229. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  4230. const branch = ref.substring('refs/pull/'.length);
  4231. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  4232. }
  4233. return result;
  4234. }
  4235. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  4236. function getRefSpec(ref, commit) {
  4237. if (!ref && !commit) {
  4238. throw new Error('Args ref and commit cannot both be empty');
  4239. }
  4240. const upperRef = (ref || '').toUpperCase();
  4241. // SHA
  4242. if (commit) {
  4243. // refs/heads
  4244. if (upperRef.startsWith('REFS/HEADS/')) {
  4245. const branch = ref.substring('refs/heads/'.length);
  4246. return [`+${commit}:refs/remotes/origin/${branch}`];
  4247. }
  4248. // refs/pull/
  4249. else if (upperRef.startsWith('REFS/PULL/')) {
  4250. const branch = ref.substring('refs/pull/'.length);
  4251. return [`+${commit}:refs/remotes/pull/${branch}`];
  4252. }
  4253. // refs/tags/
  4254. else if (upperRef.startsWith('REFS/TAGS/')) {
  4255. return [`+${commit}:${ref}`];
  4256. }
  4257. // Otherwise no destination ref
  4258. else {
  4259. return [commit];
  4260. }
  4261. }
  4262. // Unqualified ref, check for a matching branch or tag
  4263. else if (!upperRef.startsWith('REFS/')) {
  4264. return [
  4265. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  4266. `+refs/tags/${ref}*:refs/tags/${ref}*`
  4267. ];
  4268. }
  4269. // refs/heads/
  4270. else if (upperRef.startsWith('REFS/HEADS/')) {
  4271. const branch = ref.substring('refs/heads/'.length);
  4272. return [`+${ref}:refs/remotes/origin/${branch}`];
  4273. }
  4274. // refs/pull/
  4275. else if (upperRef.startsWith('REFS/PULL/')) {
  4276. const branch = ref.substring('refs/pull/'.length);
  4277. return [`+${ref}:refs/remotes/pull/${branch}`];
  4278. }
  4279. // refs/tags/
  4280. else {
  4281. return [`+${ref}:${ref}`];
  4282. }
  4283. }
  4284. exports.getRefSpec = getRefSpec;
  4285. /**
  4286. * Tests whether the initial fetch created the ref at the expected commit
  4287. */
  4288. function testRef(git, ref, commit) {
  4289. return __awaiter(this, void 0, void 0, function* () {
  4290. if (!git) {
  4291. throw new Error('Arg git cannot be empty');
  4292. }
  4293. if (!ref && !commit) {
  4294. throw new Error('Args ref and commit cannot both be empty');
  4295. }
  4296. // No SHA? Nothing to test
  4297. if (!commit) {
  4298. return true;
  4299. }
  4300. // SHA only?
  4301. else if (!ref) {
  4302. return yield git.shaExists(commit);
  4303. }
  4304. const upperRef = ref.toUpperCase();
  4305. // refs/heads/
  4306. if (upperRef.startsWith('REFS/HEADS/')) {
  4307. const branch = ref.substring('refs/heads/'.length);
  4308. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  4309. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  4310. }
  4311. // refs/pull/
  4312. else if (upperRef.startsWith('REFS/PULL/')) {
  4313. // Assume matches because fetched using the commit
  4314. return true;
  4315. }
  4316. // refs/tags/
  4317. else if (upperRef.startsWith('REFS/TAGS/')) {
  4318. const tagName = ref.substring('refs/tags/'.length);
  4319. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  4320. }
  4321. // Unexpected
  4322. else {
  4323. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  4324. return true;
  4325. }
  4326. });
  4327. }
  4328. exports.testRef = testRef;
  4329. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit, baseUrl) {
  4330. var _a, _b;
  4331. return __awaiter(this, void 0, void 0, function* () {
  4332. try {
  4333. // GHES?
  4334. if ((0, url_helper_1.isGhes)(baseUrl)) {
  4335. return;
  4336. }
  4337. // Auth token?
  4338. if (!token) {
  4339. return;
  4340. }
  4341. // Public PR synchronize, for workflow repo?
  4342. if (fromPayload('repository.private') !== false ||
  4343. github.context.eventName !== 'pull_request' ||
  4344. fromPayload('action') !== 'synchronize' ||
  4345. repositoryOwner !== github.context.repo.owner ||
  4346. repositoryName !== github.context.repo.repo ||
  4347. ref !== github.context.ref ||
  4348. !ref.startsWith('refs/pull/') ||
  4349. commit !== github.context.sha) {
  4350. return;
  4351. }
  4352. // Head SHA
  4353. const expectedHeadSha = fromPayload('after');
  4354. if (!expectedHeadSha) {
  4355. core.debug('Unable to determine head sha');
  4356. return;
  4357. }
  4358. // Base SHA
  4359. const expectedBaseSha = fromPayload('pull_request.base.sha');
  4360. if (!expectedBaseSha) {
  4361. core.debug('Unable to determine base sha');
  4362. return;
  4363. }
  4364. // Expected message?
  4365. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  4366. if (commitInfo.indexOf(expectedMessage) >= 0) {
  4367. return;
  4368. }
  4369. // Extract details from message
  4370. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  4371. if (!match) {
  4372. core.debug('Unexpected message format');
  4373. return;
  4374. }
  4375. // Post telemetry
  4376. const actualHeadSha = match[1];
  4377. if (actualHeadSha !== expectedHeadSha) {
  4378. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  4379. const octokit = (0, octokit_provider_1.getOctokit)(token, {
  4380. baseUrl: baseUrl,
  4381. userAgent: `actions-checkout-tracepoint/1.0 (code=STALE_MERGE;owner=${repositoryOwner};repo=${repositoryName};pr=${fromPayload('number')};run_id=${process.env['GITHUB_RUN_ID']};expected_head_sha=${expectedHeadSha};actual_head_sha=${actualHeadSha})`
  4382. });
  4383. yield octokit.repos.get({ owner: repositoryOwner, repo: repositoryName });
  4384. }
  4385. }
  4386. catch (err) {
  4387. core.debug(`Error when validating commit info: ${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : err}`);
  4388. }
  4389. });
  4390. }
  4391. exports.checkCommitInfo = checkCommitInfo;
  4392. function fromPayload(path) {
  4393. return select(github.context.payload, path);
  4394. }
  4395. function select(obj, path) {
  4396. if (!obj) {
  4397. return undefined;
  4398. }
  4399. const i = path.indexOf('.');
  4400. if (i < 0) {
  4401. return obj[path];
  4402. }
  4403. const key = path.substr(0, i);
  4404. return select(obj[key], path.substr(i + 1));
  4405. }
  4406. /***/ }),
  4407. /***/ 256:
  4408. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4409. "use strict";
  4410. const usm = __webpack_require__(936);
  4411. exports.implementation = class URLImpl {
  4412. constructor(constructorArgs) {
  4413. const url = constructorArgs[0];
  4414. const base = constructorArgs[1];
  4415. let parsedBase = null;
  4416. if (base !== undefined) {
  4417. parsedBase = usm.basicURLParse(base);
  4418. if (parsedBase === "failure") {
  4419. throw new TypeError("Invalid base URL");
  4420. }
  4421. }
  4422. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  4423. if (parsedURL === "failure") {
  4424. throw new TypeError("Invalid URL");
  4425. }
  4426. this._url = parsedURL;
  4427. // TODO: query stuff
  4428. }
  4429. get href() {
  4430. return usm.serializeURL(this._url);
  4431. }
  4432. set href(v) {
  4433. const parsedURL = usm.basicURLParse(v);
  4434. if (parsedURL === "failure") {
  4435. throw new TypeError("Invalid URL");
  4436. }
  4437. this._url = parsedURL;
  4438. }
  4439. get origin() {
  4440. return usm.serializeURLOrigin(this._url);
  4441. }
  4442. get protocol() {
  4443. return this._url.scheme + ":";
  4444. }
  4445. set protocol(v) {
  4446. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  4447. }
  4448. get username() {
  4449. return this._url.username;
  4450. }
  4451. set username(v) {
  4452. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4453. return;
  4454. }
  4455. usm.setTheUsername(this._url, v);
  4456. }
  4457. get password() {
  4458. return this._url.password;
  4459. }
  4460. set password(v) {
  4461. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4462. return;
  4463. }
  4464. usm.setThePassword(this._url, v);
  4465. }
  4466. get host() {
  4467. const url = this._url;
  4468. if (url.host === null) {
  4469. return "";
  4470. }
  4471. if (url.port === null) {
  4472. return usm.serializeHost(url.host);
  4473. }
  4474. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  4475. }
  4476. set host(v) {
  4477. if (this._url.cannotBeABaseURL) {
  4478. return;
  4479. }
  4480. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  4481. }
  4482. get hostname() {
  4483. if (this._url.host === null) {
  4484. return "";
  4485. }
  4486. return usm.serializeHost(this._url.host);
  4487. }
  4488. set hostname(v) {
  4489. if (this._url.cannotBeABaseURL) {
  4490. return;
  4491. }
  4492. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  4493. }
  4494. get port() {
  4495. if (this._url.port === null) {
  4496. return "";
  4497. }
  4498. return usm.serializeInteger(this._url.port);
  4499. }
  4500. set port(v) {
  4501. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4502. return;
  4503. }
  4504. if (v === "") {
  4505. this._url.port = null;
  4506. } else {
  4507. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  4508. }
  4509. }
  4510. get pathname() {
  4511. if (this._url.cannotBeABaseURL) {
  4512. return this._url.path[0];
  4513. }
  4514. if (this._url.path.length === 0) {
  4515. return "";
  4516. }
  4517. return "/" + this._url.path.join("/");
  4518. }
  4519. set pathname(v) {
  4520. if (this._url.cannotBeABaseURL) {
  4521. return;
  4522. }
  4523. this._url.path = [];
  4524. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  4525. }
  4526. get search() {
  4527. if (this._url.query === null || this._url.query === "") {
  4528. return "";
  4529. }
  4530. return "?" + this._url.query;
  4531. }
  4532. set search(v) {
  4533. // TODO: query stuff
  4534. const url = this._url;
  4535. if (v === "") {
  4536. url.query = null;
  4537. return;
  4538. }
  4539. const input = v[0] === "?" ? v.substring(1) : v;
  4540. url.query = "";
  4541. usm.basicURLParse(input, { url, stateOverride: "query" });
  4542. }
  4543. get hash() {
  4544. if (this._url.fragment === null || this._url.fragment === "") {
  4545. return "";
  4546. }
  4547. return "#" + this._url.fragment;
  4548. }
  4549. set hash(v) {
  4550. if (v === "") {
  4551. this._url.fragment = null;
  4552. return;
  4553. }
  4554. const input = v[0] === "#" ? v.substring(1) : v;
  4555. this._url.fragment = "";
  4556. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  4557. }
  4558. toJSON() {
  4559. return this.href;
  4560. }
  4561. };
  4562. /***/ }),
  4563. /***/ 260:
  4564. /***/ (function(module, __unusedexports, __webpack_require__) {
  4565. // Note: since nyc uses this module to output coverage, any lines
  4566. // that are in the direct sync flow of nyc's outputCoverage are
  4567. // ignored, since we can never get coverage for them.
  4568. var assert = __webpack_require__(357)
  4569. var signals = __webpack_require__(654)
  4570. var EE = __webpack_require__(614)
  4571. /* istanbul ignore if */
  4572. if (typeof EE !== 'function') {
  4573. EE = EE.EventEmitter
  4574. }
  4575. var emitter
  4576. if (process.__signal_exit_emitter__) {
  4577. emitter = process.__signal_exit_emitter__
  4578. } else {
  4579. emitter = process.__signal_exit_emitter__ = new EE()
  4580. emitter.count = 0
  4581. emitter.emitted = {}
  4582. }
  4583. // Because this emitter is a global, we have to check to see if a
  4584. // previous version of this library failed to enable infinite listeners.
  4585. // I know what you're about to say. But literally everything about
  4586. // signal-exit is a compromise with evil. Get used to it.
  4587. if (!emitter.infinite) {
  4588. emitter.setMaxListeners(Infinity)
  4589. emitter.infinite = true
  4590. }
  4591. module.exports = function (cb, opts) {
  4592. assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
  4593. if (loaded === false) {
  4594. load()
  4595. }
  4596. var ev = 'exit'
  4597. if (opts && opts.alwaysLast) {
  4598. ev = 'afterexit'
  4599. }
  4600. var remove = function () {
  4601. emitter.removeListener(ev, cb)
  4602. if (emitter.listeners('exit').length === 0 &&
  4603. emitter.listeners('afterexit').length === 0) {
  4604. unload()
  4605. }
  4606. }
  4607. emitter.on(ev, cb)
  4608. return remove
  4609. }
  4610. module.exports.unload = unload
  4611. function unload () {
  4612. if (!loaded) {
  4613. return
  4614. }
  4615. loaded = false
  4616. signals.forEach(function (sig) {
  4617. try {
  4618. process.removeListener(sig, sigListeners[sig])
  4619. } catch (er) {}
  4620. })
  4621. process.emit = originalProcessEmit
  4622. process.reallyExit = originalProcessReallyExit
  4623. emitter.count -= 1
  4624. }
  4625. function emit (event, code, signal) {
  4626. if (emitter.emitted[event]) {
  4627. return
  4628. }
  4629. emitter.emitted[event] = true
  4630. emitter.emit(event, code, signal)
  4631. }
  4632. // { <signal>: <listener fn>, ... }
  4633. var sigListeners = {}
  4634. signals.forEach(function (sig) {
  4635. sigListeners[sig] = function listener () {
  4636. // If there are no other listeners, an exit is coming!
  4637. // Simplest way: remove us and then re-send the signal.
  4638. // We know that this will kill the process, so we can
  4639. // safely emit now.
  4640. var listeners = process.listeners(sig)
  4641. if (listeners.length === emitter.count) {
  4642. unload()
  4643. emit('exit', null, sig)
  4644. /* istanbul ignore next */
  4645. emit('afterexit', null, sig)
  4646. /* istanbul ignore next */
  4647. process.kill(process.pid, sig)
  4648. }
  4649. }
  4650. })
  4651. module.exports.signals = function () {
  4652. return signals
  4653. }
  4654. module.exports.load = load
  4655. var loaded = false
  4656. function load () {
  4657. if (loaded) {
  4658. return
  4659. }
  4660. loaded = true
  4661. // This is the number of onSignalExit's that are in play.
  4662. // It's important so that we can count the correct number of
  4663. // listeners on signals, and don't wait for the other one to
  4664. // handle it instead of us.
  4665. emitter.count += 1
  4666. signals = signals.filter(function (sig) {
  4667. try {
  4668. process.on(sig, sigListeners[sig])
  4669. return true
  4670. } catch (er) {
  4671. return false
  4672. }
  4673. })
  4674. process.emit = processEmit
  4675. process.reallyExit = processReallyExit
  4676. }
  4677. var originalProcessReallyExit = process.reallyExit
  4678. function processReallyExit (code) {
  4679. process.exitCode = code || 0
  4680. emit('exit', process.exitCode, null)
  4681. /* istanbul ignore next */
  4682. emit('afterexit', process.exitCode, null)
  4683. /* istanbul ignore next */
  4684. originalProcessReallyExit.call(process, process.exitCode)
  4685. }
  4686. var originalProcessEmit = process.emit
  4687. function processEmit (ev, arg) {
  4688. if (ev === 'exit') {
  4689. if (arg !== undefined) {
  4690. process.exitCode = arg
  4691. }
  4692. var ret = originalProcessEmit.apply(this, arguments)
  4693. emit('exit', process.exitCode, null)
  4694. /* istanbul ignore next */
  4695. emit('afterexit', process.exitCode, null)
  4696. return ret
  4697. } else {
  4698. return originalProcessEmit.apply(this, arguments)
  4699. }
  4700. }
  4701. /***/ }),
  4702. /***/ 262:
  4703. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4704. "use strict";
  4705. Object.defineProperty(exports, "__esModule", { value: true });
  4706. const fs_1 = __webpack_require__(747);
  4707. const os_1 = __webpack_require__(87);
  4708. class Context {
  4709. /**
  4710. * Hydrate the context from the environment
  4711. */
  4712. constructor() {
  4713. this.payload = {};
  4714. if (process.env.GITHUB_EVENT_PATH) {
  4715. if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {
  4716. this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  4717. }
  4718. else {
  4719. const path = process.env.GITHUB_EVENT_PATH;
  4720. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  4721. }
  4722. }
  4723. this.eventName = process.env.GITHUB_EVENT_NAME;
  4724. this.sha = process.env.GITHUB_SHA;
  4725. this.ref = process.env.GITHUB_REF;
  4726. this.workflow = process.env.GITHUB_WORKFLOW;
  4727. this.action = process.env.GITHUB_ACTION;
  4728. this.actor = process.env.GITHUB_ACTOR;
  4729. }
  4730. get issue() {
  4731. const payload = this.payload;
  4732. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  4733. }
  4734. get repo() {
  4735. if (process.env.GITHUB_REPOSITORY) {
  4736. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  4737. return { owner, repo };
  4738. }
  4739. if (this.payload.repository) {
  4740. return {
  4741. owner: this.payload.repository.owner.login,
  4742. repo: this.payload.repository.name
  4743. };
  4744. }
  4745. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  4746. }
  4747. }
  4748. exports.Context = Context;
  4749. //# sourceMappingURL=context.js.map
  4750. /***/ }),
  4751. /***/ 265:
  4752. /***/ (function(module, __unusedexports, __webpack_require__) {
  4753. module.exports = getPage
  4754. const deprecate = __webpack_require__(370)
  4755. const getPageLinks = __webpack_require__(577)
  4756. const HttpError = __webpack_require__(297)
  4757. function getPage (octokit, link, which, headers) {
  4758. deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  4759. const url = getPageLinks(link)[which]
  4760. if (!url) {
  4761. const urlError = new HttpError(`No ${which} page found`, 404)
  4762. return Promise.reject(urlError)
  4763. }
  4764. const requestOptions = {
  4765. url,
  4766. headers: applyAcceptHeader(link, headers)
  4767. }
  4768. const promise = octokit.request(requestOptions)
  4769. return promise
  4770. }
  4771. function applyAcceptHeader (res, headers) {
  4772. const previous = res.headers && res.headers['x-github-media-type']
  4773. if (!previous || (headers && headers.accept)) {
  4774. return headers
  4775. }
  4776. headers = headers || {}
  4777. headers.accept = 'application/vnd.' + previous
  4778. .replace('; param=', '.')
  4779. .replace('; format=', '+')
  4780. return headers
  4781. }
  4782. /***/ }),
  4783. /***/ 277:
  4784. /***/ (function(module, __unusedexports, __webpack_require__) {
  4785. "use strict";
  4786. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  4787. var hasSymbolSham = __webpack_require__(923);
  4788. module.exports = function hasNativeSymbols() {
  4789. if (typeof origSymbol !== 'function') { return false; }
  4790. if (typeof Symbol !== 'function') { return false; }
  4791. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  4792. if (typeof Symbol('bar') !== 'symbol') { return false; }
  4793. return hasSymbolSham();
  4794. };
  4795. /***/ }),
  4796. /***/ 280:
  4797. /***/ (function(module, exports) {
  4798. exports = module.exports = SemVer
  4799. var debug
  4800. /* istanbul ignore next */
  4801. if (typeof process === 'object' &&
  4802. process.env &&
  4803. process.env.NODE_DEBUG &&
  4804. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  4805. debug = function () {
  4806. var args = Array.prototype.slice.call(arguments, 0)
  4807. args.unshift('SEMVER')
  4808. console.log.apply(console, args)
  4809. }
  4810. } else {
  4811. debug = function () {}
  4812. }
  4813. // Note: this is the semver.org version of the spec that it implements
  4814. // Not necessarily the package version of this code.
  4815. exports.SEMVER_SPEC_VERSION = '2.0.0'
  4816. var MAX_LENGTH = 256
  4817. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  4818. /* istanbul ignore next */ 9007199254740991
  4819. // Max safe segment length for coercion.
  4820. var MAX_SAFE_COMPONENT_LENGTH = 16
  4821. // The actual regexps go on exports.re
  4822. var re = exports.re = []
  4823. var src = exports.src = []
  4824. var R = 0
  4825. // The following Regular Expressions can be used for tokenizing,
  4826. // validating, and parsing SemVer version strings.
  4827. // ## Numeric Identifier
  4828. // A single `0`, or a non-zero digit followed by zero or more digits.
  4829. var NUMERICIDENTIFIER = R++
  4830. src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  4831. var NUMERICIDENTIFIERLOOSE = R++
  4832. src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  4833. // ## Non-numeric Identifier
  4834. // Zero or more digits, followed by a letter or hyphen, and then zero or
  4835. // more letters, digits, or hyphens.
  4836. var NONNUMERICIDENTIFIER = R++
  4837. src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  4838. // ## Main Version
  4839. // Three dot-separated numeric identifiers.
  4840. var MAINVERSION = R++
  4841. src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4842. '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4843. '(' + src[NUMERICIDENTIFIER] + ')'
  4844. var MAINVERSIONLOOSE = R++
  4845. src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4846. '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4847. '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
  4848. // ## Pre-release Version Identifier
  4849. // A numeric identifier, or a non-numeric identifier.
  4850. var PRERELEASEIDENTIFIER = R++
  4851. src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
  4852. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4853. var PRERELEASEIDENTIFIERLOOSE = R++
  4854. src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
  4855. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4856. // ## Pre-release Version
  4857. // Hyphen, followed by one or more dot-separated pre-release version
  4858. // identifiers.
  4859. var PRERELEASE = R++
  4860. src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
  4861. '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
  4862. var PRERELEASELOOSE = R++
  4863. src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
  4864. '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
  4865. // ## Build Metadata Identifier
  4866. // Any combination of digits, letters, or hyphens.
  4867. var BUILDIDENTIFIER = R++
  4868. src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  4869. // ## Build Metadata
  4870. // Plus sign, followed by one or more period-separated build metadata
  4871. // identifiers.
  4872. var BUILD = R++
  4873. src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
  4874. '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
  4875. // ## Full Version String
  4876. // A main version, followed optionally by a pre-release version and
  4877. // build metadata.
  4878. // Note that the only major, minor, patch, and pre-release sections of
  4879. // the version string are capturing groups. The build metadata is not a
  4880. // capturing group, because it should not ever be used in version
  4881. // comparison.
  4882. var FULL = R++
  4883. var FULLPLAIN = 'v?' + src[MAINVERSION] +
  4884. src[PRERELEASE] + '?' +
  4885. src[BUILD] + '?'
  4886. src[FULL] = '^' + FULLPLAIN + '$'
  4887. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  4888. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  4889. // common in the npm registry.
  4890. var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
  4891. src[PRERELEASELOOSE] + '?' +
  4892. src[BUILD] + '?'
  4893. var LOOSE = R++
  4894. src[LOOSE] = '^' + LOOSEPLAIN + '$'
  4895. var GTLT = R++
  4896. src[GTLT] = '((?:<|>)?=?)'
  4897. // Something like "2.*" or "1.2.x".
  4898. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  4899. // Only the first item is strictly required.
  4900. var XRANGEIDENTIFIERLOOSE = R++
  4901. src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  4902. var XRANGEIDENTIFIER = R++
  4903. src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
  4904. var XRANGEPLAIN = R++
  4905. src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
  4906. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4907. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4908. '(?:' + src[PRERELEASE] + ')?' +
  4909. src[BUILD] + '?' +
  4910. ')?)?'
  4911. var XRANGEPLAINLOOSE = R++
  4912. src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4913. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4914. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4915. '(?:' + src[PRERELEASELOOSE] + ')?' +
  4916. src[BUILD] + '?' +
  4917. ')?)?'
  4918. var XRANGE = R++
  4919. src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
  4920. var XRANGELOOSE = R++
  4921. src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
  4922. // Coercion.
  4923. // Extract anything that could conceivably be a part of a valid semver
  4924. var COERCE = R++
  4925. src[COERCE] = '(?:^|[^\\d])' +
  4926. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  4927. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4928. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4929. '(?:$|[^\\d])'
  4930. // Tilde ranges.
  4931. // Meaning is "reasonably at or greater than"
  4932. var LONETILDE = R++
  4933. src[LONETILDE] = '(?:~>?)'
  4934. var TILDETRIM = R++
  4935. src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
  4936. re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
  4937. var tildeTrimReplace = '$1~'
  4938. var TILDE = R++
  4939. src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
  4940. var TILDELOOSE = R++
  4941. src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
  4942. // Caret ranges.
  4943. // Meaning is "at least and backwards compatible with"
  4944. var LONECARET = R++
  4945. src[LONECARET] = '(?:\\^)'
  4946. var CARETTRIM = R++
  4947. src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
  4948. re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
  4949. var caretTrimReplace = '$1^'
  4950. var CARET = R++
  4951. src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
  4952. var CARETLOOSE = R++
  4953. src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
  4954. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  4955. var COMPARATORLOOSE = R++
  4956. src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
  4957. var COMPARATOR = R++
  4958. src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
  4959. // An expression to strip any whitespace between the gtlt and the thing
  4960. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  4961. var COMPARATORTRIM = R++
  4962. src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
  4963. '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
  4964. // this one has to use the /g flag
  4965. re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
  4966. var comparatorTrimReplace = '$1$2$3'
  4967. // Something like `1.2.3 - 1.2.4`
  4968. // Note that these all use the loose form, because they'll be
  4969. // checked against either the strict or loose comparator form
  4970. // later.
  4971. var HYPHENRANGE = R++
  4972. src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
  4973. '\\s+-\\s+' +
  4974. '(' + src[XRANGEPLAIN] + ')' +
  4975. '\\s*$'
  4976. var HYPHENRANGELOOSE = R++
  4977. src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
  4978. '\\s+-\\s+' +
  4979. '(' + src[XRANGEPLAINLOOSE] + ')' +
  4980. '\\s*$'
  4981. // Star ranges basically just allow anything at all.
  4982. var STAR = R++
  4983. src[STAR] = '(<|>)?=?\\s*\\*'
  4984. // Compile to actual regexp objects.
  4985. // All are flag-free, unless they were created above with a flag.
  4986. for (var i = 0; i < R; i++) {
  4987. debug(i, src[i])
  4988. if (!re[i]) {
  4989. re[i] = new RegExp(src[i])
  4990. }
  4991. }
  4992. exports.parse = parse
  4993. function parse (version, options) {
  4994. if (!options || typeof options !== 'object') {
  4995. options = {
  4996. loose: !!options,
  4997. includePrerelease: false
  4998. }
  4999. }
  5000. if (version instanceof SemVer) {
  5001. return version
  5002. }
  5003. if (typeof version !== 'string') {
  5004. return null
  5005. }
  5006. if (version.length > MAX_LENGTH) {
  5007. return null
  5008. }
  5009. var r = options.loose ? re[LOOSE] : re[FULL]
  5010. if (!r.test(version)) {
  5011. return null
  5012. }
  5013. try {
  5014. return new SemVer(version, options)
  5015. } catch (er) {
  5016. return null
  5017. }
  5018. }
  5019. exports.valid = valid
  5020. function valid (version, options) {
  5021. var v = parse(version, options)
  5022. return v ? v.version : null
  5023. }
  5024. exports.clean = clean
  5025. function clean (version, options) {
  5026. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  5027. return s ? s.version : null
  5028. }
  5029. exports.SemVer = SemVer
  5030. function SemVer (version, options) {
  5031. if (!options || typeof options !== 'object') {
  5032. options = {
  5033. loose: !!options,
  5034. includePrerelease: false
  5035. }
  5036. }
  5037. if (version instanceof SemVer) {
  5038. if (version.loose === options.loose) {
  5039. return version
  5040. } else {
  5041. version = version.version
  5042. }
  5043. } else if (typeof version !== 'string') {
  5044. throw new TypeError('Invalid Version: ' + version)
  5045. }
  5046. if (version.length > MAX_LENGTH) {
  5047. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  5048. }
  5049. if (!(this instanceof SemVer)) {
  5050. return new SemVer(version, options)
  5051. }
  5052. debug('SemVer', version, options)
  5053. this.options = options
  5054. this.loose = !!options.loose
  5055. var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
  5056. if (!m) {
  5057. throw new TypeError('Invalid Version: ' + version)
  5058. }
  5059. this.raw = version
  5060. // these are actually numbers
  5061. this.major = +m[1]
  5062. this.minor = +m[2]
  5063. this.patch = +m[3]
  5064. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  5065. throw new TypeError('Invalid major version')
  5066. }
  5067. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  5068. throw new TypeError('Invalid minor version')
  5069. }
  5070. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  5071. throw new TypeError('Invalid patch version')
  5072. }
  5073. // numberify any prerelease numeric ids
  5074. if (!m[4]) {
  5075. this.prerelease = []
  5076. } else {
  5077. this.prerelease = m[4].split('.').map(function (id) {
  5078. if (/^[0-9]+$/.test(id)) {
  5079. var num = +id
  5080. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  5081. return num
  5082. }
  5083. }
  5084. return id
  5085. })
  5086. }
  5087. this.build = m[5] ? m[5].split('.') : []
  5088. this.format()
  5089. }
  5090. SemVer.prototype.format = function () {
  5091. this.version = this.major + '.' + this.minor + '.' + this.patch
  5092. if (this.prerelease.length) {
  5093. this.version += '-' + this.prerelease.join('.')
  5094. }
  5095. return this.version
  5096. }
  5097. SemVer.prototype.toString = function () {
  5098. return this.version
  5099. }
  5100. SemVer.prototype.compare = function (other) {
  5101. debug('SemVer.compare', this.version, this.options, other)
  5102. if (!(other instanceof SemVer)) {
  5103. other = new SemVer(other, this.options)
  5104. }
  5105. return this.compareMain(other) || this.comparePre(other)
  5106. }
  5107. SemVer.prototype.compareMain = function (other) {
  5108. if (!(other instanceof SemVer)) {
  5109. other = new SemVer(other, this.options)
  5110. }
  5111. return compareIdentifiers(this.major, other.major) ||
  5112. compareIdentifiers(this.minor, other.minor) ||
  5113. compareIdentifiers(this.patch, other.patch)
  5114. }
  5115. SemVer.prototype.comparePre = function (other) {
  5116. if (!(other instanceof SemVer)) {
  5117. other = new SemVer(other, this.options)
  5118. }
  5119. // NOT having a prerelease is > having one
  5120. if (this.prerelease.length && !other.prerelease.length) {
  5121. return -1
  5122. } else if (!this.prerelease.length && other.prerelease.length) {
  5123. return 1
  5124. } else if (!this.prerelease.length && !other.prerelease.length) {
  5125. return 0
  5126. }
  5127. var i = 0
  5128. do {
  5129. var a = this.prerelease[i]
  5130. var b = other.prerelease[i]
  5131. debug('prerelease compare', i, a, b)
  5132. if (a === undefined && b === undefined) {
  5133. return 0
  5134. } else if (b === undefined) {
  5135. return 1
  5136. } else if (a === undefined) {
  5137. return -1
  5138. } else if (a === b) {
  5139. continue
  5140. } else {
  5141. return compareIdentifiers(a, b)
  5142. }
  5143. } while (++i)
  5144. }
  5145. // preminor will bump the version up to the next minor release, and immediately
  5146. // down to pre-release. premajor and prepatch work the same way.
  5147. SemVer.prototype.inc = function (release, identifier) {
  5148. switch (release) {
  5149. case 'premajor':
  5150. this.prerelease.length = 0
  5151. this.patch = 0
  5152. this.minor = 0
  5153. this.major++
  5154. this.inc('pre', identifier)
  5155. break
  5156. case 'preminor':
  5157. this.prerelease.length = 0
  5158. this.patch = 0
  5159. this.minor++
  5160. this.inc('pre', identifier)
  5161. break
  5162. case 'prepatch':
  5163. // If this is already a prerelease, it will bump to the next version
  5164. // drop any prereleases that might already exist, since they are not
  5165. // relevant at this point.
  5166. this.prerelease.length = 0
  5167. this.inc('patch', identifier)
  5168. this.inc('pre', identifier)
  5169. break
  5170. // If the input is a non-prerelease version, this acts the same as
  5171. // prepatch.
  5172. case 'prerelease':
  5173. if (this.prerelease.length === 0) {
  5174. this.inc('patch', identifier)
  5175. }
  5176. this.inc('pre', identifier)
  5177. break
  5178. case 'major':
  5179. // If this is a pre-major version, bump up to the same major version.
  5180. // Otherwise increment major.
  5181. // 1.0.0-5 bumps to 1.0.0
  5182. // 1.1.0 bumps to 2.0.0
  5183. if (this.minor !== 0 ||
  5184. this.patch !== 0 ||
  5185. this.prerelease.length === 0) {
  5186. this.major++
  5187. }
  5188. this.minor = 0
  5189. this.patch = 0
  5190. this.prerelease = []
  5191. break
  5192. case 'minor':
  5193. // If this is a pre-minor version, bump up to the same minor version.
  5194. // Otherwise increment minor.
  5195. // 1.2.0-5 bumps to 1.2.0
  5196. // 1.2.1 bumps to 1.3.0
  5197. if (this.patch !== 0 || this.prerelease.length === 0) {
  5198. this.minor++
  5199. }
  5200. this.patch = 0
  5201. this.prerelease = []
  5202. break
  5203. case 'patch':
  5204. // If this is not a pre-release version, it will increment the patch.
  5205. // If it is a pre-release it will bump up to the same patch version.
  5206. // 1.2.0-5 patches to 1.2.0
  5207. // 1.2.0 patches to 1.2.1
  5208. if (this.prerelease.length === 0) {
  5209. this.patch++
  5210. }
  5211. this.prerelease = []
  5212. break
  5213. // This probably shouldn't be used publicly.
  5214. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  5215. case 'pre':
  5216. if (this.prerelease.length === 0) {
  5217. this.prerelease = [0]
  5218. } else {
  5219. var i = this.prerelease.length
  5220. while (--i >= 0) {
  5221. if (typeof this.prerelease[i] === 'number') {
  5222. this.prerelease[i]++
  5223. i = -2
  5224. }
  5225. }
  5226. if (i === -1) {
  5227. // didn't increment anything
  5228. this.prerelease.push(0)
  5229. }
  5230. }
  5231. if (identifier) {
  5232. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  5233. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  5234. if (this.prerelease[0] === identifier) {
  5235. if (isNaN(this.prerelease[1])) {
  5236. this.prerelease = [identifier, 0]
  5237. }
  5238. } else {
  5239. this.prerelease = [identifier, 0]
  5240. }
  5241. }
  5242. break
  5243. default:
  5244. throw new Error('invalid increment argument: ' + release)
  5245. }
  5246. this.format()
  5247. this.raw = this.version
  5248. return this
  5249. }
  5250. exports.inc = inc
  5251. function inc (version, release, loose, identifier) {
  5252. if (typeof (loose) === 'string') {
  5253. identifier = loose
  5254. loose = undefined
  5255. }
  5256. try {
  5257. return new SemVer(version, loose).inc(release, identifier).version
  5258. } catch (er) {
  5259. return null
  5260. }
  5261. }
  5262. exports.diff = diff
  5263. function diff (version1, version2) {
  5264. if (eq(version1, version2)) {
  5265. return null
  5266. } else {
  5267. var v1 = parse(version1)
  5268. var v2 = parse(version2)
  5269. var prefix = ''
  5270. if (v1.prerelease.length || v2.prerelease.length) {
  5271. prefix = 'pre'
  5272. var defaultResult = 'prerelease'
  5273. }
  5274. for (var key in v1) {
  5275. if (key === 'major' || key === 'minor' || key === 'patch') {
  5276. if (v1[key] !== v2[key]) {
  5277. return prefix + key
  5278. }
  5279. }
  5280. }
  5281. return defaultResult // may be undefined
  5282. }
  5283. }
  5284. exports.compareIdentifiers = compareIdentifiers
  5285. var numeric = /^[0-9]+$/
  5286. function compareIdentifiers (a, b) {
  5287. var anum = numeric.test(a)
  5288. var bnum = numeric.test(b)
  5289. if (anum && bnum) {
  5290. a = +a
  5291. b = +b
  5292. }
  5293. return a === b ? 0
  5294. : (anum && !bnum) ? -1
  5295. : (bnum && !anum) ? 1
  5296. : a < b ? -1
  5297. : 1
  5298. }
  5299. exports.rcompareIdentifiers = rcompareIdentifiers
  5300. function rcompareIdentifiers (a, b) {
  5301. return compareIdentifiers(b, a)
  5302. }
  5303. exports.major = major
  5304. function major (a, loose) {
  5305. return new SemVer(a, loose).major
  5306. }
  5307. exports.minor = minor
  5308. function minor (a, loose) {
  5309. return new SemVer(a, loose).minor
  5310. }
  5311. exports.patch = patch
  5312. function patch (a, loose) {
  5313. return new SemVer(a, loose).patch
  5314. }
  5315. exports.compare = compare
  5316. function compare (a, b, loose) {
  5317. return new SemVer(a, loose).compare(new SemVer(b, loose))
  5318. }
  5319. exports.compareLoose = compareLoose
  5320. function compareLoose (a, b) {
  5321. return compare(a, b, true)
  5322. }
  5323. exports.rcompare = rcompare
  5324. function rcompare (a, b, loose) {
  5325. return compare(b, a, loose)
  5326. }
  5327. exports.sort = sort
  5328. function sort (list, loose) {
  5329. return list.sort(function (a, b) {
  5330. return exports.compare(a, b, loose)
  5331. })
  5332. }
  5333. exports.rsort = rsort
  5334. function rsort (list, loose) {
  5335. return list.sort(function (a, b) {
  5336. return exports.rcompare(a, b, loose)
  5337. })
  5338. }
  5339. exports.gt = gt
  5340. function gt (a, b, loose) {
  5341. return compare(a, b, loose) > 0
  5342. }
  5343. exports.lt = lt
  5344. function lt (a, b, loose) {
  5345. return compare(a, b, loose) < 0
  5346. }
  5347. exports.eq = eq
  5348. function eq (a, b, loose) {
  5349. return compare(a, b, loose) === 0
  5350. }
  5351. exports.neq = neq
  5352. function neq (a, b, loose) {
  5353. return compare(a, b, loose) !== 0
  5354. }
  5355. exports.gte = gte
  5356. function gte (a, b, loose) {
  5357. return compare(a, b, loose) >= 0
  5358. }
  5359. exports.lte = lte
  5360. function lte (a, b, loose) {
  5361. return compare(a, b, loose) <= 0
  5362. }
  5363. exports.cmp = cmp
  5364. function cmp (a, op, b, loose) {
  5365. switch (op) {
  5366. case '===':
  5367. if (typeof a === 'object')
  5368. a = a.version
  5369. if (typeof b === 'object')
  5370. b = b.version
  5371. return a === b
  5372. case '!==':
  5373. if (typeof a === 'object')
  5374. a = a.version
  5375. if (typeof b === 'object')
  5376. b = b.version
  5377. return a !== b
  5378. case '':
  5379. case '=':
  5380. case '==':
  5381. return eq(a, b, loose)
  5382. case '!=':
  5383. return neq(a, b, loose)
  5384. case '>':
  5385. return gt(a, b, loose)
  5386. case '>=':
  5387. return gte(a, b, loose)
  5388. case '<':
  5389. return lt(a, b, loose)
  5390. case '<=':
  5391. return lte(a, b, loose)
  5392. default:
  5393. throw new TypeError('Invalid operator: ' + op)
  5394. }
  5395. }
  5396. exports.Comparator = Comparator
  5397. function Comparator (comp, options) {
  5398. if (!options || typeof options !== 'object') {
  5399. options = {
  5400. loose: !!options,
  5401. includePrerelease: false
  5402. }
  5403. }
  5404. if (comp instanceof Comparator) {
  5405. if (comp.loose === !!options.loose) {
  5406. return comp
  5407. } else {
  5408. comp = comp.value
  5409. }
  5410. }
  5411. if (!(this instanceof Comparator)) {
  5412. return new Comparator(comp, options)
  5413. }
  5414. debug('comparator', comp, options)
  5415. this.options = options
  5416. this.loose = !!options.loose
  5417. this.parse(comp)
  5418. if (this.semver === ANY) {
  5419. this.value = ''
  5420. } else {
  5421. this.value = this.operator + this.semver.version
  5422. }
  5423. debug('comp', this)
  5424. }
  5425. var ANY = {}
  5426. Comparator.prototype.parse = function (comp) {
  5427. var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  5428. var m = comp.match(r)
  5429. if (!m) {
  5430. throw new TypeError('Invalid comparator: ' + comp)
  5431. }
  5432. this.operator = m[1]
  5433. if (this.operator === '=') {
  5434. this.operator = ''
  5435. }
  5436. // if it literally is just '>' or '' then allow anything.
  5437. if (!m[2]) {
  5438. this.semver = ANY
  5439. } else {
  5440. this.semver = new SemVer(m[2], this.options.loose)
  5441. }
  5442. }
  5443. Comparator.prototype.toString = function () {
  5444. return this.value
  5445. }
  5446. Comparator.prototype.test = function (version) {
  5447. debug('Comparator.test', version, this.options.loose)
  5448. if (this.semver === ANY) {
  5449. return true
  5450. }
  5451. if (typeof version === 'string') {
  5452. version = new SemVer(version, this.options)
  5453. }
  5454. return cmp(version, this.operator, this.semver, this.options)
  5455. }
  5456. Comparator.prototype.intersects = function (comp, options) {
  5457. if (!(comp instanceof Comparator)) {
  5458. throw new TypeError('a Comparator is required')
  5459. }
  5460. if (!options || typeof options !== 'object') {
  5461. options = {
  5462. loose: !!options,
  5463. includePrerelease: false
  5464. }
  5465. }
  5466. var rangeTmp
  5467. if (this.operator === '') {
  5468. rangeTmp = new Range(comp.value, options)
  5469. return satisfies(this.value, rangeTmp, options)
  5470. } else if (comp.operator === '') {
  5471. rangeTmp = new Range(this.value, options)
  5472. return satisfies(comp.semver, rangeTmp, options)
  5473. }
  5474. var sameDirectionIncreasing =
  5475. (this.operator === '>=' || this.operator === '>') &&
  5476. (comp.operator === '>=' || comp.operator === '>')
  5477. var sameDirectionDecreasing =
  5478. (this.operator === '<=' || this.operator === '<') &&
  5479. (comp.operator === '<=' || comp.operator === '<')
  5480. var sameSemVer = this.semver.version === comp.semver.version
  5481. var differentDirectionsInclusive =
  5482. (this.operator === '>=' || this.operator === '<=') &&
  5483. (comp.operator === '>=' || comp.operator === '<=')
  5484. var oppositeDirectionsLessThan =
  5485. cmp(this.semver, '<', comp.semver, options) &&
  5486. ((this.operator === '>=' || this.operator === '>') &&
  5487. (comp.operator === '<=' || comp.operator === '<'))
  5488. var oppositeDirectionsGreaterThan =
  5489. cmp(this.semver, '>', comp.semver, options) &&
  5490. ((this.operator === '<=' || this.operator === '<') &&
  5491. (comp.operator === '>=' || comp.operator === '>'))
  5492. return sameDirectionIncreasing || sameDirectionDecreasing ||
  5493. (sameSemVer && differentDirectionsInclusive) ||
  5494. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  5495. }
  5496. exports.Range = Range
  5497. function Range (range, options) {
  5498. if (!options || typeof options !== 'object') {
  5499. options = {
  5500. loose: !!options,
  5501. includePrerelease: false
  5502. }
  5503. }
  5504. if (range instanceof Range) {
  5505. if (range.loose === !!options.loose &&
  5506. range.includePrerelease === !!options.includePrerelease) {
  5507. return range
  5508. } else {
  5509. return new Range(range.raw, options)
  5510. }
  5511. }
  5512. if (range instanceof Comparator) {
  5513. return new Range(range.value, options)
  5514. }
  5515. if (!(this instanceof Range)) {
  5516. return new Range(range, options)
  5517. }
  5518. this.options = options
  5519. this.loose = !!options.loose
  5520. this.includePrerelease = !!options.includePrerelease
  5521. // First, split based on boolean or ||
  5522. this.raw = range
  5523. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  5524. return this.parseRange(range.trim())
  5525. }, this).filter(function (c) {
  5526. // throw out any that are not relevant for whatever reason
  5527. return c.length
  5528. })
  5529. if (!this.set.length) {
  5530. throw new TypeError('Invalid SemVer Range: ' + range)
  5531. }
  5532. this.format()
  5533. }
  5534. Range.prototype.format = function () {
  5535. this.range = this.set.map(function (comps) {
  5536. return comps.join(' ').trim()
  5537. }).join('||').trim()
  5538. return this.range
  5539. }
  5540. Range.prototype.toString = function () {
  5541. return this.range
  5542. }
  5543. Range.prototype.parseRange = function (range) {
  5544. var loose = this.options.loose
  5545. range = range.trim()
  5546. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  5547. var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
  5548. range = range.replace(hr, hyphenReplace)
  5549. debug('hyphen replace', range)
  5550. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  5551. range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
  5552. debug('comparator trim', range, re[COMPARATORTRIM])
  5553. // `~ 1.2.3` => `~1.2.3`
  5554. range = range.replace(re[TILDETRIM], tildeTrimReplace)
  5555. // `^ 1.2.3` => `^1.2.3`
  5556. range = range.replace(re[CARETTRIM], caretTrimReplace)
  5557. // normalize spaces
  5558. range = range.split(/\s+/).join(' ')
  5559. // At this point, the range is completely trimmed and
  5560. // ready to be split into comparators.
  5561. var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  5562. var set = range.split(' ').map(function (comp) {
  5563. return parseComparator(comp, this.options)
  5564. }, this).join(' ').split(/\s+/)
  5565. if (this.options.loose) {
  5566. // in loose mode, throw out any that are not valid comparators
  5567. set = set.filter(function (comp) {
  5568. return !!comp.match(compRe)
  5569. })
  5570. }
  5571. set = set.map(function (comp) {
  5572. return new Comparator(comp, this.options)
  5573. }, this)
  5574. return set
  5575. }
  5576. Range.prototype.intersects = function (range, options) {
  5577. if (!(range instanceof Range)) {
  5578. throw new TypeError('a Range is required')
  5579. }
  5580. return this.set.some(function (thisComparators) {
  5581. return thisComparators.every(function (thisComparator) {
  5582. return range.set.some(function (rangeComparators) {
  5583. return rangeComparators.every(function (rangeComparator) {
  5584. return thisComparator.intersects(rangeComparator, options)
  5585. })
  5586. })
  5587. })
  5588. })
  5589. }
  5590. // Mostly just for testing and legacy API reasons
  5591. exports.toComparators = toComparators
  5592. function toComparators (range, options) {
  5593. return new Range(range, options).set.map(function (comp) {
  5594. return comp.map(function (c) {
  5595. return c.value
  5596. }).join(' ').trim().split(' ')
  5597. })
  5598. }
  5599. // comprised of xranges, tildes, stars, and gtlt's at this point.
  5600. // already replaced the hyphen ranges
  5601. // turn into a set of JUST comparators.
  5602. function parseComparator (comp, options) {
  5603. debug('comp', comp, options)
  5604. comp = replaceCarets(comp, options)
  5605. debug('caret', comp)
  5606. comp = replaceTildes(comp, options)
  5607. debug('tildes', comp)
  5608. comp = replaceXRanges(comp, options)
  5609. debug('xrange', comp)
  5610. comp = replaceStars(comp, options)
  5611. debug('stars', comp)
  5612. return comp
  5613. }
  5614. function isX (id) {
  5615. return !id || id.toLowerCase() === 'x' || id === '*'
  5616. }
  5617. // ~, ~> --> * (any, kinda silly)
  5618. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  5619. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  5620. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  5621. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  5622. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  5623. function replaceTildes (comp, options) {
  5624. return comp.trim().split(/\s+/).map(function (comp) {
  5625. return replaceTilde(comp, options)
  5626. }).join(' ')
  5627. }
  5628. function replaceTilde (comp, options) {
  5629. var r = options.loose ? re[TILDELOOSE] : re[TILDE]
  5630. return comp.replace(r, function (_, M, m, p, pr) {
  5631. debug('tilde', comp, _, M, m, p, pr)
  5632. var ret
  5633. if (isX(M)) {
  5634. ret = ''
  5635. } else if (isX(m)) {
  5636. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5637. } else if (isX(p)) {
  5638. // ~1.2 == >=1.2.0 <1.3.0
  5639. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5640. } else if (pr) {
  5641. debug('replaceTilde pr', pr)
  5642. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5643. ' <' + M + '.' + (+m + 1) + '.0'
  5644. } else {
  5645. // ~1.2.3 == >=1.2.3 <1.3.0
  5646. ret = '>=' + M + '.' + m + '.' + p +
  5647. ' <' + M + '.' + (+m + 1) + '.0'
  5648. }
  5649. debug('tilde return', ret)
  5650. return ret
  5651. })
  5652. }
  5653. // ^ --> * (any, kinda silly)
  5654. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  5655. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  5656. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  5657. // ^1.2.3 --> >=1.2.3 <2.0.0
  5658. // ^1.2.0 --> >=1.2.0 <2.0.0
  5659. function replaceCarets (comp, options) {
  5660. return comp.trim().split(/\s+/).map(function (comp) {
  5661. return replaceCaret(comp, options)
  5662. }).join(' ')
  5663. }
  5664. function replaceCaret (comp, options) {
  5665. debug('caret', comp, options)
  5666. var r = options.loose ? re[CARETLOOSE] : re[CARET]
  5667. return comp.replace(r, function (_, M, m, p, pr) {
  5668. debug('caret', comp, _, M, m, p, pr)
  5669. var ret
  5670. if (isX(M)) {
  5671. ret = ''
  5672. } else if (isX(m)) {
  5673. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5674. } else if (isX(p)) {
  5675. if (M === '0') {
  5676. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5677. } else {
  5678. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  5679. }
  5680. } else if (pr) {
  5681. debug('replaceCaret pr', pr)
  5682. if (M === '0') {
  5683. if (m === '0') {
  5684. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5685. ' <' + M + '.' + m + '.' + (+p + 1)
  5686. } else {
  5687. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5688. ' <' + M + '.' + (+m + 1) + '.0'
  5689. }
  5690. } else {
  5691. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5692. ' <' + (+M + 1) + '.0.0'
  5693. }
  5694. } else {
  5695. debug('no pr')
  5696. if (M === '0') {
  5697. if (m === '0') {
  5698. ret = '>=' + M + '.' + m + '.' + p +
  5699. ' <' + M + '.' + m + '.' + (+p + 1)
  5700. } else {
  5701. ret = '>=' + M + '.' + m + '.' + p +
  5702. ' <' + M + '.' + (+m + 1) + '.0'
  5703. }
  5704. } else {
  5705. ret = '>=' + M + '.' + m + '.' + p +
  5706. ' <' + (+M + 1) + '.0.0'
  5707. }
  5708. }
  5709. debug('caret return', ret)
  5710. return ret
  5711. })
  5712. }
  5713. function replaceXRanges (comp, options) {
  5714. debug('replaceXRanges', comp, options)
  5715. return comp.split(/\s+/).map(function (comp) {
  5716. return replaceXRange(comp, options)
  5717. }).join(' ')
  5718. }
  5719. function replaceXRange (comp, options) {
  5720. comp = comp.trim()
  5721. var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
  5722. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  5723. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  5724. var xM = isX(M)
  5725. var xm = xM || isX(m)
  5726. var xp = xm || isX(p)
  5727. var anyX = xp
  5728. if (gtlt === '=' && anyX) {
  5729. gtlt = ''
  5730. }
  5731. if (xM) {
  5732. if (gtlt === '>' || gtlt === '<') {
  5733. // nothing is allowed
  5734. ret = '<0.0.0'
  5735. } else {
  5736. // nothing is forbidden
  5737. ret = '*'
  5738. }
  5739. } else if (gtlt && anyX) {
  5740. // we know patch is an x, because we have any x at all.
  5741. // replace X with 0
  5742. if (xm) {
  5743. m = 0
  5744. }
  5745. p = 0
  5746. if (gtlt === '>') {
  5747. // >1 => >=2.0.0
  5748. // >1.2 => >=1.3.0
  5749. // >1.2.3 => >= 1.2.4
  5750. gtlt = '>='
  5751. if (xm) {
  5752. M = +M + 1
  5753. m = 0
  5754. p = 0
  5755. } else {
  5756. m = +m + 1
  5757. p = 0
  5758. }
  5759. } else if (gtlt === '<=') {
  5760. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  5761. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  5762. gtlt = '<'
  5763. if (xm) {
  5764. M = +M + 1
  5765. } else {
  5766. m = +m + 1
  5767. }
  5768. }
  5769. ret = gtlt + M + '.' + m + '.' + p
  5770. } else if (xm) {
  5771. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5772. } else if (xp) {
  5773. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5774. }
  5775. debug('xRange return', ret)
  5776. return ret
  5777. })
  5778. }
  5779. // Because * is AND-ed with everything else in the comparator,
  5780. // and '' means "any version", just remove the *s entirely.
  5781. function replaceStars (comp, options) {
  5782. debug('replaceStars', comp, options)
  5783. // Looseness is ignored here. star is always as loose as it gets!
  5784. return comp.trim().replace(re[STAR], '')
  5785. }
  5786. // This function is passed to string.replace(re[HYPHENRANGE])
  5787. // M, m, patch, prerelease, build
  5788. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  5789. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  5790. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  5791. function hyphenReplace ($0,
  5792. from, fM, fm, fp, fpr, fb,
  5793. to, tM, tm, tp, tpr, tb) {
  5794. if (isX(fM)) {
  5795. from = ''
  5796. } else if (isX(fm)) {
  5797. from = '>=' + fM + '.0.0'
  5798. } else if (isX(fp)) {
  5799. from = '>=' + fM + '.' + fm + '.0'
  5800. } else {
  5801. from = '>=' + from
  5802. }
  5803. if (isX(tM)) {
  5804. to = ''
  5805. } else if (isX(tm)) {
  5806. to = '<' + (+tM + 1) + '.0.0'
  5807. } else if (isX(tp)) {
  5808. to = '<' + tM + '.' + (+tm + 1) + '.0'
  5809. } else if (tpr) {
  5810. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  5811. } else {
  5812. to = '<=' + to
  5813. }
  5814. return (from + ' ' + to).trim()
  5815. }
  5816. // if ANY of the sets match ALL of its comparators, then pass
  5817. Range.prototype.test = function (version) {
  5818. if (!version) {
  5819. return false
  5820. }
  5821. if (typeof version === 'string') {
  5822. version = new SemVer(version, this.options)
  5823. }
  5824. for (var i = 0; i < this.set.length; i++) {
  5825. if (testSet(this.set[i], version, this.options)) {
  5826. return true
  5827. }
  5828. }
  5829. return false
  5830. }
  5831. function testSet (set, version, options) {
  5832. for (var i = 0; i < set.length; i++) {
  5833. if (!set[i].test(version)) {
  5834. return false
  5835. }
  5836. }
  5837. if (version.prerelease.length && !options.includePrerelease) {
  5838. // Find the set of versions that are allowed to have prereleases
  5839. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  5840. // That should allow `1.2.3-pr.2` to pass.
  5841. // However, `1.2.4-alpha.notready` should NOT be allowed,
  5842. // even though it's within the range set by the comparators.
  5843. for (i = 0; i < set.length; i++) {
  5844. debug(set[i].semver)
  5845. if (set[i].semver === ANY) {
  5846. continue
  5847. }
  5848. if (set[i].semver.prerelease.length > 0) {
  5849. var allowed = set[i].semver
  5850. if (allowed.major === version.major &&
  5851. allowed.minor === version.minor &&
  5852. allowed.patch === version.patch) {
  5853. return true
  5854. }
  5855. }
  5856. }
  5857. // Version has a -pre, but it's not one of the ones we like.
  5858. return false
  5859. }
  5860. return true
  5861. }
  5862. exports.satisfies = satisfies
  5863. function satisfies (version, range, options) {
  5864. try {
  5865. range = new Range(range, options)
  5866. } catch (er) {
  5867. return false
  5868. }
  5869. return range.test(version)
  5870. }
  5871. exports.maxSatisfying = maxSatisfying
  5872. function maxSatisfying (versions, range, options) {
  5873. var max = null
  5874. var maxSV = null
  5875. try {
  5876. var rangeObj = new Range(range, options)
  5877. } catch (er) {
  5878. return null
  5879. }
  5880. versions.forEach(function (v) {
  5881. if (rangeObj.test(v)) {
  5882. // satisfies(v, range, options)
  5883. if (!max || maxSV.compare(v) === -1) {
  5884. // compare(max, v, true)
  5885. max = v
  5886. maxSV = new SemVer(max, options)
  5887. }
  5888. }
  5889. })
  5890. return max
  5891. }
  5892. exports.minSatisfying = minSatisfying
  5893. function minSatisfying (versions, range, options) {
  5894. var min = null
  5895. var minSV = null
  5896. try {
  5897. var rangeObj = new Range(range, options)
  5898. } catch (er) {
  5899. return null
  5900. }
  5901. versions.forEach(function (v) {
  5902. if (rangeObj.test(v)) {
  5903. // satisfies(v, range, options)
  5904. if (!min || minSV.compare(v) === 1) {
  5905. // compare(min, v, true)
  5906. min = v
  5907. minSV = new SemVer(min, options)
  5908. }
  5909. }
  5910. })
  5911. return min
  5912. }
  5913. exports.minVersion = minVersion
  5914. function minVersion (range, loose) {
  5915. range = new Range(range, loose)
  5916. var minver = new SemVer('0.0.0')
  5917. if (range.test(minver)) {
  5918. return minver
  5919. }
  5920. minver = new SemVer('0.0.0-0')
  5921. if (range.test(minver)) {
  5922. return minver
  5923. }
  5924. minver = null
  5925. for (var i = 0; i < range.set.length; ++i) {
  5926. var comparators = range.set[i]
  5927. comparators.forEach(function (comparator) {
  5928. // Clone to avoid manipulating the comparator's semver object.
  5929. var compver = new SemVer(comparator.semver.version)
  5930. switch (comparator.operator) {
  5931. case '>':
  5932. if (compver.prerelease.length === 0) {
  5933. compver.patch++
  5934. } else {
  5935. compver.prerelease.push(0)
  5936. }
  5937. compver.raw = compver.format()
  5938. /* fallthrough */
  5939. case '':
  5940. case '>=':
  5941. if (!minver || gt(minver, compver)) {
  5942. minver = compver
  5943. }
  5944. break
  5945. case '<':
  5946. case '<=':
  5947. /* Ignore maximum versions */
  5948. break
  5949. /* istanbul ignore next */
  5950. default:
  5951. throw new Error('Unexpected operation: ' + comparator.operator)
  5952. }
  5953. })
  5954. }
  5955. if (minver && range.test(minver)) {
  5956. return minver
  5957. }
  5958. return null
  5959. }
  5960. exports.validRange = validRange
  5961. function validRange (range, options) {
  5962. try {
  5963. // Return '*' instead of '' so that truthiness works.
  5964. // This will throw if it's invalid anyway
  5965. return new Range(range, options).range || '*'
  5966. } catch (er) {
  5967. return null
  5968. }
  5969. }
  5970. // Determine if version is less than all the versions possible in the range
  5971. exports.ltr = ltr
  5972. function ltr (version, range, options) {
  5973. return outside(version, range, '<', options)
  5974. }
  5975. // Determine if version is greater than all the versions possible in the range.
  5976. exports.gtr = gtr
  5977. function gtr (version, range, options) {
  5978. return outside(version, range, '>', options)
  5979. }
  5980. exports.outside = outside
  5981. function outside (version, range, hilo, options) {
  5982. version = new SemVer(version, options)
  5983. range = new Range(range, options)
  5984. var gtfn, ltefn, ltfn, comp, ecomp
  5985. switch (hilo) {
  5986. case '>':
  5987. gtfn = gt
  5988. ltefn = lte
  5989. ltfn = lt
  5990. comp = '>'
  5991. ecomp = '>='
  5992. break
  5993. case '<':
  5994. gtfn = lt
  5995. ltefn = gte
  5996. ltfn = gt
  5997. comp = '<'
  5998. ecomp = '<='
  5999. break
  6000. default:
  6001. throw new TypeError('Must provide a hilo val of "<" or ">"')
  6002. }
  6003. // If it satisifes the range it is not outside
  6004. if (satisfies(version, range, options)) {
  6005. return false
  6006. }
  6007. // From now on, variable terms are as if we're in "gtr" mode.
  6008. // but note that everything is flipped for the "ltr" function.
  6009. for (var i = 0; i < range.set.length; ++i) {
  6010. var comparators = range.set[i]
  6011. var high = null
  6012. var low = null
  6013. comparators.forEach(function (comparator) {
  6014. if (comparator.semver === ANY) {
  6015. comparator = new Comparator('>=0.0.0')
  6016. }
  6017. high = high || comparator
  6018. low = low || comparator
  6019. if (gtfn(comparator.semver, high.semver, options)) {
  6020. high = comparator
  6021. } else if (ltfn(comparator.semver, low.semver, options)) {
  6022. low = comparator
  6023. }
  6024. })
  6025. // If the edge version comparator has a operator then our version
  6026. // isn't outside it
  6027. if (high.operator === comp || high.operator === ecomp) {
  6028. return false
  6029. }
  6030. // If the lowest version comparator has an operator and our version
  6031. // is less than it then it isn't higher than the range
  6032. if ((!low.operator || low.operator === comp) &&
  6033. ltefn(version, low.semver)) {
  6034. return false
  6035. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  6036. return false
  6037. }
  6038. }
  6039. return true
  6040. }
  6041. exports.prerelease = prerelease
  6042. function prerelease (version, options) {
  6043. var parsed = parse(version, options)
  6044. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  6045. }
  6046. exports.intersects = intersects
  6047. function intersects (r1, r2, options) {
  6048. r1 = new Range(r1, options)
  6049. r2 = new Range(r2, options)
  6050. return r1.intersects(r2)
  6051. }
  6052. exports.coerce = coerce
  6053. function coerce (version) {
  6054. if (version instanceof SemVer) {
  6055. return version
  6056. }
  6057. if (typeof version !== 'string') {
  6058. return null
  6059. }
  6060. var match = version.match(re[COERCE])
  6061. if (match == null) {
  6062. return null
  6063. }
  6064. return parse(match[1] +
  6065. '.' + (match[2] || '0') +
  6066. '.' + (match[3] || '0'))
  6067. }
  6068. /***/ }),
  6069. /***/ 287:
  6070. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6071. "use strict";
  6072. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6073. if (k2 === undefined) k2 = k;
  6074. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6075. }) : (function(o, m, k, k2) {
  6076. if (k2 === undefined) k2 = k;
  6077. o[k2] = m[k];
  6078. }));
  6079. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6080. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6081. }) : function(o, v) {
  6082. o["default"] = v;
  6083. });
  6084. var __importStar = (this && this.__importStar) || function (mod) {
  6085. if (mod && mod.__esModule) return mod;
  6086. var result = {};
  6087. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6088. __setModuleDefault(result, mod);
  6089. return result;
  6090. };
  6091. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6092. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6093. return new (P || (P = Promise))(function (resolve, reject) {
  6094. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6095. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6096. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6097. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6098. });
  6099. };
  6100. var __importDefault = (this && this.__importDefault) || function (mod) {
  6101. return (mod && mod.__esModule) ? mod : { "default": mod };
  6102. };
  6103. Object.defineProperty(exports, "__esModule", { value: true });
  6104. exports.createAuthHelper = void 0;
  6105. const assert = __importStar(__webpack_require__(357));
  6106. const core = __importStar(__webpack_require__(470));
  6107. const exec = __importStar(__webpack_require__(986));
  6108. const fs = __importStar(__webpack_require__(747));
  6109. const io = __importStar(__webpack_require__(1));
  6110. const os = __importStar(__webpack_require__(87));
  6111. const path = __importStar(__webpack_require__(622));
  6112. const regexpHelper = __importStar(__webpack_require__(528));
  6113. const stateHelper = __importStar(__webpack_require__(153));
  6114. const urlHelper = __importStar(__webpack_require__(81));
  6115. const v4_1 = __importDefault(__webpack_require__(826));
  6116. const IS_WINDOWS = process.platform === 'win32';
  6117. const SSH_COMMAND_KEY = 'core.sshCommand';
  6118. function createAuthHelper(git, settings) {
  6119. return new GitAuthHelper(git, settings);
  6120. }
  6121. exports.createAuthHelper = createAuthHelper;
  6122. class GitAuthHelper {
  6123. constructor(gitCommandManager, gitSourceSettings) {
  6124. this.insteadOfValues = [];
  6125. this.sshCommand = '';
  6126. this.sshKeyPath = '';
  6127. this.sshKnownHostsPath = '';
  6128. this.temporaryHomePath = '';
  6129. this.git = gitCommandManager;
  6130. this.settings = gitSourceSettings || {};
  6131. // Token auth header
  6132. const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl);
  6133. this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT]
  6134. const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64');
  6135. core.setSecret(basicCredential);
  6136. this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`;
  6137. this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`;
  6138. // Instead of SSH URL
  6139. this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT]
  6140. this.insteadOfValues.push(`git@${serverUrl.hostname}:`);
  6141. if (this.settings.workflowOrganizationId) {
  6142. this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`);
  6143. }
  6144. }
  6145. configureAuth() {
  6146. return __awaiter(this, void 0, void 0, function* () {
  6147. // Remove possible previous values
  6148. yield this.removeAuth();
  6149. // Configure new values
  6150. yield this.configureSsh();
  6151. yield this.configureToken();
  6152. });
  6153. }
  6154. configureTempGlobalConfig() {
  6155. var _a, _b;
  6156. return __awaiter(this, void 0, void 0, function* () {
  6157. // Already setup global config
  6158. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  6159. return path.join(this.temporaryHomePath, '.gitconfig');
  6160. }
  6161. // Create a temp home directory
  6162. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  6163. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  6164. const uniqueId = (0, v4_1.default)();
  6165. this.temporaryHomePath = path.join(runnerTemp, uniqueId);
  6166. yield fs.promises.mkdir(this.temporaryHomePath, { recursive: true });
  6167. // Copy the global git config
  6168. const gitConfigPath = path.join(process.env['HOME'] || os.homedir(), '.gitconfig');
  6169. const newGitConfigPath = path.join(this.temporaryHomePath, '.gitconfig');
  6170. let configExists = false;
  6171. try {
  6172. yield fs.promises.stat(gitConfigPath);
  6173. configExists = true;
  6174. }
  6175. catch (err) {
  6176. if (((_b = err) === null || _b === void 0 ? void 0 : _b.code) !== 'ENOENT') {
  6177. throw err;
  6178. }
  6179. }
  6180. if (configExists) {
  6181. core.info(`Copying '${gitConfigPath}' to '${newGitConfigPath}'`);
  6182. yield io.cp(gitConfigPath, newGitConfigPath);
  6183. }
  6184. else {
  6185. yield fs.promises.writeFile(newGitConfigPath, '');
  6186. }
  6187. // Override HOME
  6188. core.info(`Temporarily overriding HOME='${this.temporaryHomePath}' before making global git config changes`);
  6189. this.git.setEnvironmentVariable('HOME', this.temporaryHomePath);
  6190. return newGitConfigPath;
  6191. });
  6192. }
  6193. configureGlobalAuth() {
  6194. return __awaiter(this, void 0, void 0, function* () {
  6195. // 'configureTempGlobalConfig' noops if already set, just returns the path
  6196. const newGitConfigPath = yield this.configureTempGlobalConfig();
  6197. try {
  6198. // Configure the token
  6199. yield this.configureToken(newGitConfigPath, true);
  6200. // Configure HTTPS instead of SSH
  6201. yield this.git.tryConfigUnset(this.insteadOfKey, true);
  6202. if (!this.settings.sshKey) {
  6203. for (const insteadOfValue of this.insteadOfValues) {
  6204. yield this.git.config(this.insteadOfKey, insteadOfValue, true, true);
  6205. }
  6206. }
  6207. }
  6208. catch (err) {
  6209. // Unset in case somehow written to the real global config
  6210. core.info('Encountered an error when attempting to configure token. Attempting unconfigure.');
  6211. yield this.git.tryConfigUnset(this.tokenConfigKey, true);
  6212. throw err;
  6213. }
  6214. });
  6215. }
  6216. configureSubmoduleAuth() {
  6217. return __awaiter(this, void 0, void 0, function* () {
  6218. // Remove possible previous HTTPS instead of SSH
  6219. yield this.removeGitConfig(this.insteadOfKey, true);
  6220. if (this.settings.persistCredentials) {
  6221. // Configure a placeholder value. This approach avoids the credential being captured
  6222. // by process creation audit events, which are commonly logged. For more information,
  6223. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  6224. const output = yield this.git.submoduleForeach(
  6225. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  6226. `sh -c "git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url"`, this.settings.nestedSubmodules);
  6227. // Replace the placeholder
  6228. const configPaths = output.match(/(?<=(^|\n)file:)[^\t]+(?=\tremote\.origin\.url)/g) || [];
  6229. for (const configPath of configPaths) {
  6230. core.debug(`Replacing token placeholder in '${configPath}'`);
  6231. yield this.replaceTokenPlaceholder(configPath);
  6232. }
  6233. if (this.settings.sshKey) {
  6234. // Configure core.sshCommand
  6235. yield this.git.submoduleForeach(`git config --local '${SSH_COMMAND_KEY}' '${this.sshCommand}'`, this.settings.nestedSubmodules);
  6236. }
  6237. else {
  6238. // Configure HTTPS instead of SSH
  6239. for (const insteadOfValue of this.insteadOfValues) {
  6240. yield this.git.submoduleForeach(`git config --local --add '${this.insteadOfKey}' '${insteadOfValue}'`, this.settings.nestedSubmodules);
  6241. }
  6242. }
  6243. }
  6244. });
  6245. }
  6246. removeAuth() {
  6247. return __awaiter(this, void 0, void 0, function* () {
  6248. yield this.removeSsh();
  6249. yield this.removeToken();
  6250. });
  6251. }
  6252. removeGlobalConfig() {
  6253. var _a;
  6254. return __awaiter(this, void 0, void 0, function* () {
  6255. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  6256. core.debug(`Unsetting HOME override`);
  6257. this.git.removeEnvironmentVariable('HOME');
  6258. yield io
  6259. .rmRF(this.temporaryHomePath)
  6260. // eslint-disable-next-line github/no-then
  6261. .catch(err => {
  6262. // eslint-disable-next-line i18n-text/no-en
  6263. core.warning(`Failed to remove temporary home directory: ${err}`);
  6264. });
  6265. }
  6266. });
  6267. }
  6268. configureSsh() {
  6269. var _a;
  6270. return __awaiter(this, void 0, void 0, function* () {
  6271. if (!this.settings.sshKey) {
  6272. return;
  6273. }
  6274. // Write key
  6275. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  6276. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  6277. const uniqueId = (0, v4_1.default)();
  6278. this.sshKeyPath = path.join(runnerTemp, uniqueId);
  6279. stateHelper.setSshKeyPath(this.sshKeyPath);
  6280. yield fs.promises.mkdir(runnerTemp, { recursive: true });
  6281. yield fs.promises.writeFile(this.sshKeyPath, this.settings.sshKey.trim() + '\n', { mode: 0o600 });
  6282. // Remove inherited permissions on Windows
  6283. if (IS_WINDOWS) {
  6284. const icacls = yield io.which('icacls.exe');
  6285. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
  6286. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
  6287. }
  6288. // Write known hosts
  6289. const userKnownHostsPath = path.join(os.homedir(), '.ssh', 'known_hosts');
  6290. let userKnownHosts = '';
  6291. try {
  6292. userKnownHosts = (yield fs.promises.readFile(userKnownHostsPath)).toString();
  6293. }
  6294. catch (err) {
  6295. if (((_a = err) === null || _a === void 0 ? void 0 : _a.code) !== 'ENOENT') {
  6296. throw err;
  6297. }
  6298. }
  6299. let knownHosts = '';
  6300. if (userKnownHosts) {
  6301. knownHosts += `# Begin from ${userKnownHostsPath}\n${userKnownHosts}\n# End from ${userKnownHostsPath}\n`;
  6302. }
  6303. if (this.settings.sshKnownHosts) {
  6304. knownHosts += `# Begin from input known hosts\n${this.settings.sshKnownHosts}\n# end from input known hosts\n`;
  6305. }
  6306. knownHosts += `# Begin implicitly added github.com\ngithub.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==\n# End implicitly added github.com\n`;
  6307. this.sshKnownHostsPath = path.join(runnerTemp, `${uniqueId}_known_hosts`);
  6308. stateHelper.setSshKnownHostsPath(this.sshKnownHostsPath);
  6309. yield fs.promises.writeFile(this.sshKnownHostsPath, knownHosts);
  6310. // Configure GIT_SSH_COMMAND
  6311. const sshPath = yield io.which('ssh', true);
  6312. this.sshCommand = `"${sshPath}" -i "$RUNNER_TEMP/${path.basename(this.sshKeyPath)}"`;
  6313. if (this.settings.sshStrict) {
  6314. this.sshCommand += ' -o StrictHostKeyChecking=yes -o CheckHostIP=no';
  6315. }
  6316. this.sshCommand += ` -o "UserKnownHostsFile=$RUNNER_TEMP/${path.basename(this.sshKnownHostsPath)}"`;
  6317. core.info(`Temporarily overriding GIT_SSH_COMMAND=${this.sshCommand}`);
  6318. this.git.setEnvironmentVariable('GIT_SSH_COMMAND', this.sshCommand);
  6319. // Configure core.sshCommand
  6320. if (this.settings.persistCredentials) {
  6321. yield this.git.config(SSH_COMMAND_KEY, this.sshCommand);
  6322. }
  6323. });
  6324. }
  6325. configureToken(configPath, globalConfig) {
  6326. return __awaiter(this, void 0, void 0, function* () {
  6327. // Validate args
  6328. assert.ok((configPath && globalConfig) || (!configPath && !globalConfig), 'Unexpected configureToken parameter combinations');
  6329. // Default config path
  6330. if (!configPath && !globalConfig) {
  6331. configPath = path.join(this.git.getWorkingDirectory(), '.git', 'config');
  6332. }
  6333. // Configure a placeholder value. This approach avoids the credential being captured
  6334. // by process creation audit events, which are commonly logged. For more information,
  6335. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  6336. yield this.git.config(this.tokenConfigKey, this.tokenPlaceholderConfigValue, globalConfig);
  6337. // Replace the placeholder
  6338. yield this.replaceTokenPlaceholder(configPath || '');
  6339. });
  6340. }
  6341. replaceTokenPlaceholder(configPath) {
  6342. return __awaiter(this, void 0, void 0, function* () {
  6343. assert.ok(configPath, 'configPath is not defined');
  6344. let content = (yield fs.promises.readFile(configPath)).toString();
  6345. const placeholderIndex = content.indexOf(this.tokenPlaceholderConfigValue);
  6346. if (placeholderIndex < 0 ||
  6347. placeholderIndex != content.lastIndexOf(this.tokenPlaceholderConfigValue)) {
  6348. throw new Error(`Unable to replace auth placeholder in ${configPath}`);
  6349. }
  6350. assert.ok(this.tokenConfigValue, 'tokenConfigValue is not defined');
  6351. content = content.replace(this.tokenPlaceholderConfigValue, this.tokenConfigValue);
  6352. yield fs.promises.writeFile(configPath, content);
  6353. });
  6354. }
  6355. removeSsh() {
  6356. var _a, _b;
  6357. return __awaiter(this, void 0, void 0, function* () {
  6358. // SSH key
  6359. const keyPath = this.sshKeyPath || stateHelper.SshKeyPath;
  6360. if (keyPath) {
  6361. try {
  6362. yield io.rmRF(keyPath);
  6363. }
  6364. catch (err) {
  6365. core.debug(`${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : err}`);
  6366. core.warning(`Failed to remove SSH key '${keyPath}'`);
  6367. }
  6368. }
  6369. // SSH known hosts
  6370. const knownHostsPath = this.sshKnownHostsPath || stateHelper.SshKnownHostsPath;
  6371. if (knownHostsPath) {
  6372. try {
  6373. yield io.rmRF(knownHostsPath);
  6374. }
  6375. catch (_c) {
  6376. // Intentionally empty
  6377. }
  6378. }
  6379. // SSH command
  6380. yield this.removeGitConfig(SSH_COMMAND_KEY);
  6381. });
  6382. }
  6383. removeToken() {
  6384. return __awaiter(this, void 0, void 0, function* () {
  6385. // HTTP extra header
  6386. yield this.removeGitConfig(this.tokenConfigKey);
  6387. });
  6388. }
  6389. removeGitConfig(configKey, submoduleOnly = false) {
  6390. return __awaiter(this, void 0, void 0, function* () {
  6391. if (!submoduleOnly) {
  6392. if ((yield this.git.configExists(configKey)) &&
  6393. !(yield this.git.tryConfigUnset(configKey))) {
  6394. // Load the config contents
  6395. core.warning(`Failed to remove '${configKey}' from the git config`);
  6396. }
  6397. }
  6398. const pattern = regexpHelper.escape(configKey);
  6399. yield this.git.submoduleForeach(
  6400. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  6401. `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
  6402. });
  6403. }
  6404. }
  6405. /***/ }),
  6406. /***/ 289:
  6407. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6408. "use strict";
  6409. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6410. if (k2 === undefined) k2 = k;
  6411. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6412. }) : (function(o, m, k, k2) {
  6413. if (k2 === undefined) k2 = k;
  6414. o[k2] = m[k];
  6415. }));
  6416. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6417. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6418. }) : function(o, v) {
  6419. o["default"] = v;
  6420. });
  6421. var __importStar = (this && this.__importStar) || function (mod) {
  6422. if (mod && mod.__esModule) return mod;
  6423. var result = {};
  6424. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6425. __setModuleDefault(result, mod);
  6426. return result;
  6427. };
  6428. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6429. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6430. return new (P || (P = Promise))(function (resolve, reject) {
  6431. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6432. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6433. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6434. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6435. });
  6436. };
  6437. Object.defineProperty(exports, "__esModule", { value: true });
  6438. exports.createCommandManager = exports.MinimumGitVersion = void 0;
  6439. const core = __importStar(__webpack_require__(470));
  6440. const exec = __importStar(__webpack_require__(986));
  6441. const fshelper = __importStar(__webpack_require__(618));
  6442. const io = __importStar(__webpack_require__(1));
  6443. const path = __importStar(__webpack_require__(622));
  6444. const refHelper = __importStar(__webpack_require__(227));
  6445. const regexpHelper = __importStar(__webpack_require__(528));
  6446. const retryHelper = __importStar(__webpack_require__(587));
  6447. const git_version_1 = __webpack_require__(559);
  6448. // Auth header not supported before 2.9
  6449. // Wire protocol v2 not supported before 2.18
  6450. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  6451. function createCommandManager(workingDirectory, lfs) {
  6452. return __awaiter(this, void 0, void 0, function* () {
  6453. return yield GitCommandManager.createCommandManager(workingDirectory, lfs);
  6454. });
  6455. }
  6456. exports.createCommandManager = createCommandManager;
  6457. class GitCommandManager {
  6458. // Private constructor; use createCommandManager()
  6459. constructor() {
  6460. this.gitEnv = {
  6461. GIT_TERMINAL_PROMPT: '0',
  6462. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  6463. };
  6464. this.gitPath = '';
  6465. this.lfs = false;
  6466. this.workingDirectory = '';
  6467. }
  6468. branchDelete(remote, branch) {
  6469. return __awaiter(this, void 0, void 0, function* () {
  6470. const args = ['branch', '--delete', '--force'];
  6471. if (remote) {
  6472. args.push('--remote');
  6473. }
  6474. args.push(branch);
  6475. yield this.execGit(args);
  6476. });
  6477. }
  6478. branchExists(remote, pattern) {
  6479. return __awaiter(this, void 0, void 0, function* () {
  6480. const args = ['branch', '--list'];
  6481. if (remote) {
  6482. args.push('--remote');
  6483. }
  6484. args.push(pattern);
  6485. const output = yield this.execGit(args);
  6486. return !!output.stdout.trim();
  6487. });
  6488. }
  6489. branchList(remote) {
  6490. return __awaiter(this, void 0, void 0, function* () {
  6491. const result = [];
  6492. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  6493. // "branch --list" is more difficult when in a detached HEAD state.
  6494. // Note, this implementation uses "rev-parse --symbolic-full-name" because there is a bug
  6495. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names.
  6496. const args = ['rev-parse', '--symbolic-full-name'];
  6497. if (remote) {
  6498. args.push('--remotes=origin');
  6499. }
  6500. else {
  6501. args.push('--branches');
  6502. }
  6503. const output = yield this.execGit(args);
  6504. for (let branch of output.stdout.trim().split('\n')) {
  6505. branch = branch.trim();
  6506. if (branch) {
  6507. if (branch.startsWith('refs/heads/')) {
  6508. branch = branch.substr('refs/heads/'.length);
  6509. }
  6510. else if (branch.startsWith('refs/remotes/')) {
  6511. branch = branch.substr('refs/remotes/'.length);
  6512. }
  6513. result.push(branch);
  6514. }
  6515. }
  6516. return result;
  6517. });
  6518. }
  6519. checkout(ref, startPoint) {
  6520. return __awaiter(this, void 0, void 0, function* () {
  6521. const args = ['checkout', '--progress', '--force'];
  6522. if (startPoint) {
  6523. args.push('-B', ref, startPoint);
  6524. }
  6525. else {
  6526. args.push(ref);
  6527. }
  6528. yield this.execGit(args);
  6529. });
  6530. }
  6531. checkoutDetach() {
  6532. return __awaiter(this, void 0, void 0, function* () {
  6533. const args = ['checkout', '--detach'];
  6534. yield this.execGit(args);
  6535. });
  6536. }
  6537. config(configKey, configValue, globalConfig, add) {
  6538. return __awaiter(this, void 0, void 0, function* () {
  6539. const args = ['config', globalConfig ? '--global' : '--local'];
  6540. if (add) {
  6541. args.push('--add');
  6542. }
  6543. args.push(...[configKey, configValue]);
  6544. yield this.execGit(args);
  6545. });
  6546. }
  6547. configExists(configKey, globalConfig) {
  6548. return __awaiter(this, void 0, void 0, function* () {
  6549. const pattern = regexpHelper.escape(configKey);
  6550. const output = yield this.execGit([
  6551. 'config',
  6552. globalConfig ? '--global' : '--local',
  6553. '--name-only',
  6554. '--get-regexp',
  6555. pattern
  6556. ], true);
  6557. return output.exitCode === 0;
  6558. });
  6559. }
  6560. fetch(refSpec, fetchDepth) {
  6561. return __awaiter(this, void 0, void 0, function* () {
  6562. const args = ['-c', 'protocol.version=2', 'fetch'];
  6563. if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
  6564. args.push('--no-tags');
  6565. }
  6566. args.push('--prune', '--progress', '--no-recurse-submodules');
  6567. if (fetchDepth && fetchDepth > 0) {
  6568. args.push(`--depth=${fetchDepth}`);
  6569. }
  6570. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  6571. args.push('--unshallow');
  6572. }
  6573. args.push('origin');
  6574. for (const arg of refSpec) {
  6575. args.push(arg);
  6576. }
  6577. const that = this;
  6578. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6579. yield that.execGit(args);
  6580. }));
  6581. });
  6582. }
  6583. getDefaultBranch(repositoryUrl) {
  6584. return __awaiter(this, void 0, void 0, function* () {
  6585. let output;
  6586. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6587. output = yield this.execGit([
  6588. 'ls-remote',
  6589. '--quiet',
  6590. '--exit-code',
  6591. '--symref',
  6592. repositoryUrl,
  6593. 'HEAD'
  6594. ]);
  6595. }));
  6596. if (output) {
  6597. // Satisfy compiler, will always be set
  6598. for (let line of output.stdout.trim().split('\n')) {
  6599. line = line.trim();
  6600. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  6601. return line
  6602. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  6603. .trim();
  6604. }
  6605. }
  6606. }
  6607. throw new Error('Unexpected output when retrieving default branch');
  6608. });
  6609. }
  6610. getWorkingDirectory() {
  6611. return this.workingDirectory;
  6612. }
  6613. init() {
  6614. return __awaiter(this, void 0, void 0, function* () {
  6615. yield this.execGit(['init', this.workingDirectory]);
  6616. });
  6617. }
  6618. isDetached() {
  6619. return __awaiter(this, void 0, void 0, function* () {
  6620. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  6621. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  6622. return !output.stdout.trim().startsWith('refs/heads/');
  6623. });
  6624. }
  6625. lfsFetch(ref) {
  6626. return __awaiter(this, void 0, void 0, function* () {
  6627. const args = ['lfs', 'fetch', 'origin', ref];
  6628. const that = this;
  6629. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6630. yield that.execGit(args);
  6631. }));
  6632. });
  6633. }
  6634. lfsInstall() {
  6635. return __awaiter(this, void 0, void 0, function* () {
  6636. yield this.execGit(['lfs', 'install', '--local']);
  6637. });
  6638. }
  6639. log1(format) {
  6640. return __awaiter(this, void 0, void 0, function* () {
  6641. var args = format ? ['log', '-1', format] : ['log', '-1'];
  6642. var silent = format ? false : true;
  6643. const output = yield this.execGit(args, false, silent);
  6644. return output.stdout;
  6645. });
  6646. }
  6647. remoteAdd(remoteName, remoteUrl) {
  6648. return __awaiter(this, void 0, void 0, function* () {
  6649. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  6650. });
  6651. }
  6652. removeEnvironmentVariable(name) {
  6653. delete this.gitEnv[name];
  6654. }
  6655. /**
  6656. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  6657. * For an annotated tag, the tag SHA is returned.
  6658. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  6659. * @returns {Promise<string>}
  6660. */
  6661. revParse(ref) {
  6662. return __awaiter(this, void 0, void 0, function* () {
  6663. const output = yield this.execGit(['rev-parse', ref]);
  6664. return output.stdout.trim();
  6665. });
  6666. }
  6667. setEnvironmentVariable(name, value) {
  6668. this.gitEnv[name] = value;
  6669. }
  6670. shaExists(sha) {
  6671. return __awaiter(this, void 0, void 0, function* () {
  6672. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  6673. const output = yield this.execGit(args, true);
  6674. return output.exitCode === 0;
  6675. });
  6676. }
  6677. submoduleForeach(command, recursive) {
  6678. return __awaiter(this, void 0, void 0, function* () {
  6679. const args = ['submodule', 'foreach'];
  6680. if (recursive) {
  6681. args.push('--recursive');
  6682. }
  6683. args.push(command);
  6684. const output = yield this.execGit(args);
  6685. return output.stdout;
  6686. });
  6687. }
  6688. submoduleSync(recursive) {
  6689. return __awaiter(this, void 0, void 0, function* () {
  6690. const args = ['submodule', 'sync'];
  6691. if (recursive) {
  6692. args.push('--recursive');
  6693. }
  6694. yield this.execGit(args);
  6695. });
  6696. }
  6697. submoduleUpdate(fetchDepth, recursive) {
  6698. return __awaiter(this, void 0, void 0, function* () {
  6699. const args = ['-c', 'protocol.version=2'];
  6700. args.push('submodule', 'update', '--init', '--force');
  6701. if (fetchDepth > 0) {
  6702. args.push(`--depth=${fetchDepth}`);
  6703. }
  6704. if (recursive) {
  6705. args.push('--recursive');
  6706. }
  6707. yield this.execGit(args);
  6708. });
  6709. }
  6710. tagExists(pattern) {
  6711. return __awaiter(this, void 0, void 0, function* () {
  6712. const output = yield this.execGit(['tag', '--list', pattern]);
  6713. return !!output.stdout.trim();
  6714. });
  6715. }
  6716. tryClean() {
  6717. return __awaiter(this, void 0, void 0, function* () {
  6718. const output = yield this.execGit(['clean', '-ffdx'], true);
  6719. return output.exitCode === 0;
  6720. });
  6721. }
  6722. tryConfigUnset(configKey, globalConfig) {
  6723. return __awaiter(this, void 0, void 0, function* () {
  6724. const output = yield this.execGit([
  6725. 'config',
  6726. globalConfig ? '--global' : '--local',
  6727. '--unset-all',
  6728. configKey
  6729. ], true);
  6730. return output.exitCode === 0;
  6731. });
  6732. }
  6733. tryDisableAutomaticGarbageCollection() {
  6734. return __awaiter(this, void 0, void 0, function* () {
  6735. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  6736. return output.exitCode === 0;
  6737. });
  6738. }
  6739. tryGetFetchUrl() {
  6740. return __awaiter(this, void 0, void 0, function* () {
  6741. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  6742. if (output.exitCode !== 0) {
  6743. return '';
  6744. }
  6745. const stdout = output.stdout.trim();
  6746. if (stdout.includes('\n')) {
  6747. return '';
  6748. }
  6749. return stdout;
  6750. });
  6751. }
  6752. tryReset() {
  6753. return __awaiter(this, void 0, void 0, function* () {
  6754. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  6755. return output.exitCode === 0;
  6756. });
  6757. }
  6758. static createCommandManager(workingDirectory, lfs) {
  6759. return __awaiter(this, void 0, void 0, function* () {
  6760. const result = new GitCommandManager();
  6761. yield result.initializeCommandManager(workingDirectory, lfs);
  6762. return result;
  6763. });
  6764. }
  6765. execGit(args, allowAllExitCodes = false, silent = false) {
  6766. return __awaiter(this, void 0, void 0, function* () {
  6767. fshelper.directoryExistsSync(this.workingDirectory, true);
  6768. const result = new GitOutput();
  6769. const env = {};
  6770. for (const key of Object.keys(process.env)) {
  6771. env[key] = process.env[key];
  6772. }
  6773. for (const key of Object.keys(this.gitEnv)) {
  6774. env[key] = this.gitEnv[key];
  6775. }
  6776. const stdout = [];
  6777. const options = {
  6778. cwd: this.workingDirectory,
  6779. env,
  6780. silent,
  6781. ignoreReturnCode: allowAllExitCodes,
  6782. listeners: {
  6783. stdout: (data) => {
  6784. stdout.push(data.toString());
  6785. }
  6786. }
  6787. };
  6788. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  6789. result.stdout = stdout.join('');
  6790. return result;
  6791. });
  6792. }
  6793. initializeCommandManager(workingDirectory, lfs) {
  6794. return __awaiter(this, void 0, void 0, function* () {
  6795. this.workingDirectory = workingDirectory;
  6796. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  6797. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  6798. this.lfs = lfs;
  6799. if (!this.lfs) {
  6800. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  6801. }
  6802. this.gitPath = yield io.which('git', true);
  6803. // Git version
  6804. core.debug('Getting git version');
  6805. let gitVersion = new git_version_1.GitVersion();
  6806. let gitOutput = yield this.execGit(['version']);
  6807. let stdout = gitOutput.stdout.trim();
  6808. if (!stdout.includes('\n')) {
  6809. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6810. if (match) {
  6811. gitVersion = new git_version_1.GitVersion(match[0]);
  6812. }
  6813. }
  6814. if (!gitVersion.isValid()) {
  6815. throw new Error('Unable to determine git version');
  6816. }
  6817. // Minimum git version
  6818. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  6819. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  6820. }
  6821. if (this.lfs) {
  6822. // Git-lfs version
  6823. core.debug('Getting git-lfs version');
  6824. let gitLfsVersion = new git_version_1.GitVersion();
  6825. const gitLfsPath = yield io.which('git-lfs', true);
  6826. gitOutput = yield this.execGit(['lfs', 'version']);
  6827. stdout = gitOutput.stdout.trim();
  6828. if (!stdout.includes('\n')) {
  6829. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6830. if (match) {
  6831. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  6832. }
  6833. }
  6834. if (!gitLfsVersion.isValid()) {
  6835. throw new Error('Unable to determine git-lfs version');
  6836. }
  6837. // Minimum git-lfs version
  6838. // Note:
  6839. // - Auth header not supported before 2.1
  6840. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  6841. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  6842. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  6843. }
  6844. }
  6845. // Set the user agent
  6846. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  6847. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  6848. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  6849. });
  6850. }
  6851. }
  6852. class GitOutput {
  6853. constructor() {
  6854. this.stdout = '';
  6855. this.exitCode = 0;
  6856. }
  6857. }
  6858. /***/ }),
  6859. /***/ 293:
  6860. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6861. "use strict";
  6862. Object.defineProperty(exports, "__esModule", {
  6863. value: true
  6864. });
  6865. exports.default = void 0;
  6866. var _rng = _interopRequireDefault(__webpack_require__(506));
  6867. var _stringify = _interopRequireDefault(__webpack_require__(960));
  6868. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6869. function v4(options, buf, offset) {
  6870. options = options || {};
  6871. const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  6872. rnds[6] = rnds[6] & 0x0f | 0x40;
  6873. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  6874. if (buf) {
  6875. offset = offset || 0;
  6876. for (let i = 0; i < 16; ++i) {
  6877. buf[offset + i] = rnds[i];
  6878. }
  6879. return buf;
  6880. }
  6881. return (0, _stringify.default)(rnds);
  6882. }
  6883. var _default = v4;
  6884. exports.default = _default;
  6885. /***/ }),
  6886. /***/ 294:
  6887. /***/ (function(module, __unusedexports, __webpack_require__) {
  6888. module.exports = parseOptions;
  6889. const { Deprecation } = __webpack_require__(692);
  6890. const { getUserAgent } = __webpack_require__(796);
  6891. const once = __webpack_require__(969);
  6892. const pkg = __webpack_require__(215);
  6893. const deprecateOptionsTimeout = once((log, deprecation) =>
  6894. log.warn(deprecation)
  6895. );
  6896. const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation));
  6897. const deprecateOptionsHeaders = once((log, deprecation) =>
  6898. log.warn(deprecation)
  6899. );
  6900. function parseOptions(options, log, hook) {
  6901. if (options.headers) {
  6902. options.headers = Object.keys(options.headers).reduce((newObj, key) => {
  6903. newObj[key.toLowerCase()] = options.headers[key];
  6904. return newObj;
  6905. }, {});
  6906. }
  6907. const clientDefaults = {
  6908. headers: options.headers || {},
  6909. request: options.request || {},
  6910. mediaType: {
  6911. previews: [],
  6912. format: ""
  6913. }
  6914. };
  6915. if (options.baseUrl) {
  6916. clientDefaults.baseUrl = options.baseUrl;
  6917. }
  6918. if (options.userAgent) {
  6919. clientDefaults.headers["user-agent"] = options.userAgent;
  6920. }
  6921. if (options.previews) {
  6922. clientDefaults.mediaType.previews = options.previews;
  6923. }
  6924. if (options.timeZone) {
  6925. clientDefaults.headers["time-zone"] = options.timeZone;
  6926. }
  6927. if (options.timeout) {
  6928. deprecateOptionsTimeout(
  6929. log,
  6930. new Deprecation(
  6931. "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"
  6932. )
  6933. );
  6934. clientDefaults.request.timeout = options.timeout;
  6935. }
  6936. if (options.agent) {
  6937. deprecateOptionsAgent(
  6938. log,
  6939. new Deprecation(
  6940. "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"
  6941. )
  6942. );
  6943. clientDefaults.request.agent = options.agent;
  6944. }
  6945. if (options.headers) {
  6946. deprecateOptionsHeaders(
  6947. log,
  6948. new Deprecation(
  6949. "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"
  6950. )
  6951. );
  6952. }
  6953. const userAgentOption = clientDefaults.headers["user-agent"];
  6954. const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`;
  6955. clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent]
  6956. .filter(Boolean)
  6957. .join(" ");
  6958. clientDefaults.request.hook = hook.bind(null, "request");
  6959. return clientDefaults;
  6960. }
  6961. /***/ }),
  6962. /***/ 297:
  6963. /***/ (function(module) {
  6964. module.exports = class HttpError extends Error {
  6965. constructor (message, code, headers) {
  6966. super(message)
  6967. // Maintains proper stack trace (only available on V8)
  6968. /* istanbul ignore next */
  6969. if (Error.captureStackTrace) {
  6970. Error.captureStackTrace(this, this.constructor)
  6971. }
  6972. this.name = 'HttpError'
  6973. this.code = code
  6974. this.headers = headers
  6975. }
  6976. }
  6977. /***/ }),
  6978. /***/ 299:
  6979. /***/ (function(__unusedmodule, exports) {
  6980. "use strict";
  6981. Object.defineProperty(exports, '__esModule', { value: true });
  6982. const VERSION = "1.1.2";
  6983. /**
  6984. * Some “list” response that can be paginated have a different response structure
  6985. *
  6986. * They have a `total_count` key in the response (search also has `incomplete_results`,
  6987. * /installation/repositories also has `repository_selection`), as well as a key with
  6988. * the list of the items which name varies from endpoint to endpoint:
  6989. *
  6990. * - https://developer.github.com/v3/search/#example (key `items`)
  6991. * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
  6992. * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
  6993. * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
  6994. * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
  6995. *
  6996. * Octokit normalizes these responses so that paginated results are always returned following
  6997. * the same structure. One challenge is that if the list response has only one page, no Link
  6998. * header is provided, so this header alone is not sufficient to check wether a response is
  6999. * paginated or not. For the exceptions with the namespace, a fallback check for the route
  7000. * paths has to be added in order to normalize the response. We cannot check for the total_count
  7001. * property because it also exists in the response of Get the combined status for a specific ref.
  7002. */
  7003. const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];
  7004. function normalizePaginatedListResponse(octokit, url, response) {
  7005. const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
  7006. const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
  7007. if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
  7008. // to retrieve the same information.
  7009. const incompleteResults = response.data.incomplete_results;
  7010. const repositorySelection = response.data.repository_selection;
  7011. const totalCount = response.data.total_count;
  7012. delete response.data.incomplete_results;
  7013. delete response.data.repository_selection;
  7014. delete response.data.total_count;
  7015. const namespaceKey = Object.keys(response.data)[0];
  7016. const data = response.data[namespaceKey];
  7017. response.data = data;
  7018. if (typeof incompleteResults !== "undefined") {
  7019. response.data.incomplete_results = incompleteResults;
  7020. }
  7021. if (typeof repositorySelection !== "undefined") {
  7022. response.data.repository_selection = repositorySelection;
  7023. }
  7024. response.data.total_count = totalCount;
  7025. Object.defineProperty(response.data, namespaceKey, {
  7026. get() {
  7027. octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
  7028. return Array.from(data);
  7029. }
  7030. });
  7031. }
  7032. function iterator(octokit, route, parameters) {
  7033. const options = octokit.request.endpoint(route, parameters);
  7034. const method = options.method;
  7035. const headers = options.headers;
  7036. let url = options.url;
  7037. return {
  7038. [Symbol.asyncIterator]: () => ({
  7039. next() {
  7040. if (!url) {
  7041. return Promise.resolve({
  7042. done: true
  7043. });
  7044. }
  7045. return octokit.request({
  7046. method,
  7047. url,
  7048. headers
  7049. }).then(response => {
  7050. normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
  7051. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  7052. // sets `url` to undefined if "next" URL is not present or `link` header is not set
  7053. url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
  7054. return {
  7055. value: response
  7056. };
  7057. });
  7058. }
  7059. })
  7060. };
  7061. }
  7062. function paginate(octokit, route, parameters, mapFn) {
  7063. if (typeof parameters === "function") {
  7064. mapFn = parameters;
  7065. parameters = undefined;
  7066. }
  7067. return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
  7068. }
  7069. function gather(octokit, results, iterator, mapFn) {
  7070. return iterator.next().then(result => {
  7071. if (result.done) {
  7072. return results;
  7073. }
  7074. let earlyExit = false;
  7075. function done() {
  7076. earlyExit = true;
  7077. }
  7078. results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
  7079. if (earlyExit) {
  7080. return results;
  7081. }
  7082. return gather(octokit, results, iterator, mapFn);
  7083. });
  7084. }
  7085. /**
  7086. * @param octokit Octokit instance
  7087. * @param options Options passed to Octokit constructor
  7088. */
  7089. function paginateRest(octokit) {
  7090. return {
  7091. paginate: Object.assign(paginate.bind(null, octokit), {
  7092. iterator: iterator.bind(null, octokit)
  7093. })
  7094. };
  7095. }
  7096. paginateRest.VERSION = VERSION;
  7097. exports.paginateRest = paginateRest;
  7098. //# sourceMappingURL=index.js.map
  7099. /***/ }),
  7100. /***/ 323:
  7101. /***/ (function(module) {
  7102. "use strict";
  7103. var isStream = module.exports = function (stream) {
  7104. return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
  7105. };
  7106. isStream.writable = function (stream) {
  7107. return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
  7108. };
  7109. isStream.readable = function (stream) {
  7110. return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
  7111. };
  7112. isStream.duplex = function (stream) {
  7113. return isStream.writable(stream) && isStream.readable(stream);
  7114. };
  7115. isStream.transform = function (stream) {
  7116. return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
  7117. };
  7118. /***/ }),
  7119. /***/ 329:
  7120. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7121. "use strict";
  7122. Object.defineProperty(exports, "__esModule", {
  7123. value: true
  7124. });
  7125. exports.default = void 0;
  7126. var _crypto = _interopRequireDefault(__webpack_require__(417));
  7127. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  7128. function sha1(bytes) {
  7129. if (Array.isArray(bytes)) {
  7130. bytes = Buffer.from(bytes);
  7131. } else if (typeof bytes === 'string') {
  7132. bytes = Buffer.from(bytes, 'utf8');
  7133. }
  7134. return _crypto.default.createHash('sha1').update(bytes).digest();
  7135. }
  7136. var _default = sha1;
  7137. exports.default = _default;
  7138. /***/ }),
  7139. /***/ 330:
  7140. /***/ (function(module, __unusedexports, __webpack_require__) {
  7141. module.exports = __webpack_require__(669).inspect;
  7142. /***/ }),
  7143. /***/ 335:
  7144. /***/ (function(module, __unusedexports, __webpack_require__) {
  7145. module.exports = __webpack_require__(179);
  7146. /***/ }),
  7147. /***/ 336:
  7148. /***/ (function(module, __unusedexports, __webpack_require__) {
  7149. module.exports = hasLastPage
  7150. const deprecate = __webpack_require__(370)
  7151. const getPageLinks = __webpack_require__(577)
  7152. function hasLastPage (link) {
  7153. deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  7154. return getPageLinks(link).last
  7155. }
  7156. /***/ }),
  7157. /***/ 348:
  7158. /***/ (function(module, __unusedexports, __webpack_require__) {
  7159. "use strict";
  7160. module.exports = validate;
  7161. const { RequestError } = __webpack_require__(497);
  7162. const get = __webpack_require__(854);
  7163. const set = __webpack_require__(883);
  7164. function validate(octokit, options) {
  7165. if (!options.request.validate) {
  7166. return;
  7167. }
  7168. const { validate: params } = options.request;
  7169. Object.keys(params).forEach(parameterName => {
  7170. const parameter = get(params, parameterName);
  7171. const expectedType = parameter.type;
  7172. let parentParameterName;
  7173. let parentValue;
  7174. let parentParamIsPresent = true;
  7175. let parentParameterIsArray = false;
  7176. if (/\./.test(parameterName)) {
  7177. parentParameterName = parameterName.replace(/\.[^.]+$/, "");
  7178. parentParameterIsArray = parentParameterName.slice(-2) === "[]";
  7179. if (parentParameterIsArray) {
  7180. parentParameterName = parentParameterName.slice(0, -2);
  7181. }
  7182. parentValue = get(options, parentParameterName);
  7183. parentParamIsPresent =
  7184. parentParameterName === "headers" ||
  7185. (typeof parentValue === "object" && parentValue !== null);
  7186. }
  7187. const values = parentParameterIsArray
  7188. ? (get(options, parentParameterName) || []).map(
  7189. value => value[parameterName.split(/\./).pop()]
  7190. )
  7191. : [get(options, parameterName)];
  7192. values.forEach((value, i) => {
  7193. const valueIsPresent = typeof value !== "undefined";
  7194. const valueIsNull = value === null;
  7195. const currentParameterName = parentParameterIsArray
  7196. ? parameterName.replace(/\[\]/, `[${i}]`)
  7197. : parameterName;
  7198. if (!parameter.required && !valueIsPresent) {
  7199. return;
  7200. }
  7201. // if the parent parameter is of type object but allows null
  7202. // then the child parameters can be ignored
  7203. if (!parentParamIsPresent) {
  7204. return;
  7205. }
  7206. if (parameter.allowNull && valueIsNull) {
  7207. return;
  7208. }
  7209. if (!parameter.allowNull && valueIsNull) {
  7210. throw new RequestError(
  7211. `'${currentParameterName}' cannot be null`,
  7212. 400,
  7213. {
  7214. request: options
  7215. }
  7216. );
  7217. }
  7218. if (parameter.required && !valueIsPresent) {
  7219. throw new RequestError(
  7220. `Empty value for parameter '${currentParameterName}': ${JSON.stringify(
  7221. value
  7222. )}`,
  7223. 400,
  7224. {
  7225. request: options
  7226. }
  7227. );
  7228. }
  7229. // parse to integer before checking for enum
  7230. // so that string "1" will match enum with number 1
  7231. if (expectedType === "integer") {
  7232. const unparsedValue = value;
  7233. value = parseInt(value, 10);
  7234. if (isNaN(value)) {
  7235. throw new RequestError(
  7236. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7237. unparsedValue
  7238. )} is NaN`,
  7239. 400,
  7240. {
  7241. request: options
  7242. }
  7243. );
  7244. }
  7245. }
  7246. if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) {
  7247. throw new RequestError(
  7248. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7249. value
  7250. )}`,
  7251. 400,
  7252. {
  7253. request: options
  7254. }
  7255. );
  7256. }
  7257. if (parameter.validation) {
  7258. const regex = new RegExp(parameter.validation);
  7259. if (!regex.test(value)) {
  7260. throw new RequestError(
  7261. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7262. value
  7263. )}`,
  7264. 400,
  7265. {
  7266. request: options
  7267. }
  7268. );
  7269. }
  7270. }
  7271. if (expectedType === "object" && typeof value === "string") {
  7272. try {
  7273. value = JSON.parse(value);
  7274. } catch (exception) {
  7275. throw new RequestError(
  7276. `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(
  7277. value
  7278. )}`,
  7279. 400,
  7280. {
  7281. request: options
  7282. }
  7283. );
  7284. }
  7285. }
  7286. set(options, parameter.mapTo || currentParameterName, value);
  7287. });
  7288. });
  7289. return options;
  7290. }
  7291. /***/ }),
  7292. /***/ 349:
  7293. /***/ (function(module, __unusedexports, __webpack_require__) {
  7294. module.exports = authenticationRequestError;
  7295. const { RequestError } = __webpack_require__(497);
  7296. function authenticationRequestError(state, error, options) {
  7297. /* istanbul ignore next */
  7298. if (!error.headers) throw error;
  7299. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  7300. // handle "2FA required" error only
  7301. if (error.status !== 401 || !otpRequired) {
  7302. throw error;
  7303. }
  7304. if (
  7305. error.status === 401 &&
  7306. otpRequired &&
  7307. error.request &&
  7308. error.request.headers["x-github-otp"]
  7309. ) {
  7310. throw new RequestError(
  7311. "Invalid one-time password for two-factor authentication",
  7312. 401,
  7313. {
  7314. headers: error.headers,
  7315. request: options
  7316. }
  7317. );
  7318. }
  7319. if (typeof state.auth.on2fa !== "function") {
  7320. throw new RequestError(
  7321. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  7322. 401,
  7323. {
  7324. headers: error.headers,
  7325. request: options
  7326. }
  7327. );
  7328. }
  7329. return Promise.resolve()
  7330. .then(() => {
  7331. return state.auth.on2fa();
  7332. })
  7333. .then(oneTimePassword => {
  7334. const newOptions = Object.assign(options, {
  7335. headers: Object.assign(
  7336. { "x-github-otp": oneTimePassword },
  7337. options.headers
  7338. )
  7339. });
  7340. return state.octokit.request(newOptions);
  7341. });
  7342. }
  7343. /***/ }),
  7344. /***/ 353:
  7345. /***/ (function(module) {
  7346. "use strict";
  7347. /* eslint no-invalid-this: 1 */
  7348. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  7349. var slice = Array.prototype.slice;
  7350. var toStr = Object.prototype.toString;
  7351. var funcType = '[object Function]';
  7352. module.exports = function bind(that) {
  7353. var target = this;
  7354. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  7355. throw new TypeError(ERROR_MESSAGE + target);
  7356. }
  7357. var args = slice.call(arguments, 1);
  7358. var bound;
  7359. var binder = function () {
  7360. if (this instanceof bound) {
  7361. var result = target.apply(
  7362. this,
  7363. args.concat(slice.call(arguments))
  7364. );
  7365. if (Object(result) === result) {
  7366. return result;
  7367. }
  7368. return this;
  7369. } else {
  7370. return target.apply(
  7371. that,
  7372. args.concat(slice.call(arguments))
  7373. );
  7374. }
  7375. };
  7376. var boundLength = Math.max(0, target.length - args.length);
  7377. var boundArgs = [];
  7378. for (var i = 0; i < boundLength; i++) {
  7379. boundArgs.push('$' + i);
  7380. }
  7381. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  7382. if (target.prototype) {
  7383. var Empty = function Empty() {};
  7384. Empty.prototype = target.prototype;
  7385. bound.prototype = new Empty();
  7386. Empty.prototype = null;
  7387. }
  7388. return bound;
  7389. };
  7390. /***/ }),
  7391. /***/ 357:
  7392. /***/ (function(module) {
  7393. module.exports = require("assert");
  7394. /***/ }),
  7395. /***/ 363:
  7396. /***/ (function(__unusedmodule, exports) {
  7397. "use strict";
  7398. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7399. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  7400. return new (P || (P = Promise))(function (resolve, reject) {
  7401. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  7402. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7403. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7404. step((generator = generator.apply(thisArg, _arguments || [])).next());
  7405. });
  7406. };
  7407. Object.defineProperty(exports, "__esModule", { value: true });
  7408. exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
  7409. class BasicCredentialHandler {
  7410. constructor(username, password) {
  7411. this.username = username;
  7412. this.password = password;
  7413. }
  7414. prepareRequest(options) {
  7415. if (!options.headers) {
  7416. throw Error('The request has no headers');
  7417. }
  7418. options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
  7419. }
  7420. // This handler cannot handle 401
  7421. canHandleAuthentication() {
  7422. return false;
  7423. }
  7424. handleAuthentication() {
  7425. return __awaiter(this, void 0, void 0, function* () {
  7426. throw new Error('not implemented');
  7427. });
  7428. }
  7429. }
  7430. exports.BasicCredentialHandler = BasicCredentialHandler;
  7431. class BearerCredentialHandler {
  7432. constructor(token) {
  7433. this.token = token;
  7434. }
  7435. // currently implements pre-authorization
  7436. // TODO: support preAuth = false where it hooks on 401
  7437. prepareRequest(options) {
  7438. if (!options.headers) {
  7439. throw Error('The request has no headers');
  7440. }
  7441. options.headers['Authorization'] = `Bearer ${this.token}`;
  7442. }
  7443. // This handler cannot handle 401
  7444. canHandleAuthentication() {
  7445. return false;
  7446. }
  7447. handleAuthentication() {
  7448. return __awaiter(this, void 0, void 0, function* () {
  7449. throw new Error('not implemented');
  7450. });
  7451. }
  7452. }
  7453. exports.BearerCredentialHandler = BearerCredentialHandler;
  7454. class PersonalAccessTokenCredentialHandler {
  7455. constructor(token) {
  7456. this.token = token;
  7457. }
  7458. // currently implements pre-authorization
  7459. // TODO: support preAuth = false where it hooks on 401
  7460. prepareRequest(options) {
  7461. if (!options.headers) {
  7462. throw Error('The request has no headers');
  7463. }
  7464. options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
  7465. }
  7466. // This handler cannot handle 401
  7467. canHandleAuthentication() {
  7468. return false;
  7469. }
  7470. handleAuthentication() {
  7471. return __awaiter(this, void 0, void 0, function* () {
  7472. throw new Error('not implemented');
  7473. });
  7474. }
  7475. }
  7476. exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
  7477. //# sourceMappingURL=auth.js.map
  7478. /***/ }),
  7479. /***/ 368:
  7480. /***/ (function(module) {
  7481. module.exports = function atob(str) {
  7482. return Buffer.from(str, 'base64').toString('binary')
  7483. }
  7484. /***/ }),
  7485. /***/ 370:
  7486. /***/ (function(module) {
  7487. module.exports = deprecate
  7488. const loggedMessages = {}
  7489. function deprecate (message) {
  7490. if (loggedMessages[message]) {
  7491. return
  7492. }
  7493. console.warn(`DEPRECATED (@octokit/rest): ${message}`)
  7494. loggedMessages[message] = 1
  7495. }
  7496. /***/ }),
  7497. /***/ 385:
  7498. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7499. "use strict";
  7500. Object.defineProperty(exports, '__esModule', { value: true });
  7501. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7502. var isPlainObject = _interopDefault(__webpack_require__(696));
  7503. var universalUserAgent = __webpack_require__(562);
  7504. function lowercaseKeys(object) {
  7505. if (!object) {
  7506. return {};
  7507. }
  7508. return Object.keys(object).reduce((newObj, key) => {
  7509. newObj[key.toLowerCase()] = object[key];
  7510. return newObj;
  7511. }, {});
  7512. }
  7513. function mergeDeep(defaults, options) {
  7514. const result = Object.assign({}, defaults);
  7515. Object.keys(options).forEach(key => {
  7516. if (isPlainObject(options[key])) {
  7517. if (!(key in defaults)) Object.assign(result, {
  7518. [key]: options[key]
  7519. });else result[key] = mergeDeep(defaults[key], options[key]);
  7520. } else {
  7521. Object.assign(result, {
  7522. [key]: options[key]
  7523. });
  7524. }
  7525. });
  7526. return result;
  7527. }
  7528. function merge(defaults, route, options) {
  7529. if (typeof route === "string") {
  7530. let [method, url] = route.split(" ");
  7531. options = Object.assign(url ? {
  7532. method,
  7533. url
  7534. } : {
  7535. url: method
  7536. }, options);
  7537. } else {
  7538. options = Object.assign({}, route);
  7539. } // lowercase header names before merging with defaults to avoid duplicates
  7540. options.headers = lowercaseKeys(options.headers);
  7541. const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
  7542. if (defaults && defaults.mediaType.previews.length) {
  7543. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  7544. }
  7545. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
  7546. return mergedOptions;
  7547. }
  7548. function addQueryParameters(url, parameters) {
  7549. const separator = /\?/.test(url) ? "&" : "?";
  7550. const names = Object.keys(parameters);
  7551. if (names.length === 0) {
  7552. return url;
  7553. }
  7554. return url + separator + names.map(name => {
  7555. if (name === "q") {
  7556. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  7557. }
  7558. return `${name}=${encodeURIComponent(parameters[name])}`;
  7559. }).join("&");
  7560. }
  7561. const urlVariableRegex = /\{[^}]+\}/g;
  7562. function removeNonChars(variableName) {
  7563. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  7564. }
  7565. function extractUrlVariableNames(url) {
  7566. const matches = url.match(urlVariableRegex);
  7567. if (!matches) {
  7568. return [];
  7569. }
  7570. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  7571. }
  7572. function omit(object, keysToOmit) {
  7573. return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
  7574. obj[key] = object[key];
  7575. return obj;
  7576. }, {});
  7577. }
  7578. // Based on https://github.com/bramstein/url-template, licensed under BSD
  7579. // TODO: create separate package.
  7580. //
  7581. // Copyright (c) 2012-2014, Bram Stein
  7582. // All rights reserved.
  7583. // Redistribution and use in source and binary forms, with or without
  7584. // modification, are permitted provided that the following conditions
  7585. // are met:
  7586. // 1. Redistributions of source code must retain the above copyright
  7587. // notice, this list of conditions and the following disclaimer.
  7588. // 2. Redistributions in binary form must reproduce the above copyright
  7589. // notice, this list of conditions and the following disclaimer in the
  7590. // documentation and/or other materials provided with the distribution.
  7591. // 3. The name of the author may not be used to endorse or promote products
  7592. // derived from this software without specific prior written permission.
  7593. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  7594. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  7595. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  7596. // EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  7597. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  7598. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  7599. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  7600. // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  7601. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  7602. // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  7603. /* istanbul ignore file */
  7604. function encodeReserved(str) {
  7605. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
  7606. if (!/%[0-9A-Fa-f]/.test(part)) {
  7607. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  7608. }
  7609. return part;
  7610. }).join("");
  7611. }
  7612. function encodeUnreserved(str) {
  7613. return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
  7614. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  7615. });
  7616. }
  7617. function encodeValue(operator, value, key) {
  7618. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  7619. if (key) {
  7620. return encodeUnreserved(key) + "=" + value;
  7621. } else {
  7622. return value;
  7623. }
  7624. }
  7625. function isDefined(value) {
  7626. return value !== undefined && value !== null;
  7627. }
  7628. function isKeyOperator(operator) {
  7629. return operator === ";" || operator === "&" || operator === "?";
  7630. }
  7631. function getValues(context, operator, key, modifier) {
  7632. var value = context[key],
  7633. result = [];
  7634. if (isDefined(value) && value !== "") {
  7635. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  7636. value = value.toString();
  7637. if (modifier && modifier !== "*") {
  7638. value = value.substring(0, parseInt(modifier, 10));
  7639. }
  7640. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7641. } else {
  7642. if (modifier === "*") {
  7643. if (Array.isArray(value)) {
  7644. value.filter(isDefined).forEach(function (value) {
  7645. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7646. });
  7647. } else {
  7648. Object.keys(value).forEach(function (k) {
  7649. if (isDefined(value[k])) {
  7650. result.push(encodeValue(operator, value[k], k));
  7651. }
  7652. });
  7653. }
  7654. } else {
  7655. const tmp = [];
  7656. if (Array.isArray(value)) {
  7657. value.filter(isDefined).forEach(function (value) {
  7658. tmp.push(encodeValue(operator, value));
  7659. });
  7660. } else {
  7661. Object.keys(value).forEach(function (k) {
  7662. if (isDefined(value[k])) {
  7663. tmp.push(encodeUnreserved(k));
  7664. tmp.push(encodeValue(operator, value[k].toString()));
  7665. }
  7666. });
  7667. }
  7668. if (isKeyOperator(operator)) {
  7669. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  7670. } else if (tmp.length !== 0) {
  7671. result.push(tmp.join(","));
  7672. }
  7673. }
  7674. }
  7675. } else {
  7676. if (operator === ";") {
  7677. if (isDefined(value)) {
  7678. result.push(encodeUnreserved(key));
  7679. }
  7680. } else if (value === "" && (operator === "&" || operator === "?")) {
  7681. result.push(encodeUnreserved(key) + "=");
  7682. } else if (value === "") {
  7683. result.push("");
  7684. }
  7685. }
  7686. return result;
  7687. }
  7688. function parseUrl(template) {
  7689. return {
  7690. expand: expand.bind(null, template)
  7691. };
  7692. }
  7693. function expand(template, context) {
  7694. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  7695. return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
  7696. if (expression) {
  7697. let operator = "";
  7698. const values = [];
  7699. if (operators.indexOf(expression.charAt(0)) !== -1) {
  7700. operator = expression.charAt(0);
  7701. expression = expression.substr(1);
  7702. }
  7703. expression.split(/,/g).forEach(function (variable) {
  7704. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  7705. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  7706. });
  7707. if (operator && operator !== "+") {
  7708. var separator = ",";
  7709. if (operator === "?") {
  7710. separator = "&";
  7711. } else if (operator !== "#") {
  7712. separator = operator;
  7713. }
  7714. return (values.length !== 0 ? operator : "") + values.join(separator);
  7715. } else {
  7716. return values.join(",");
  7717. }
  7718. } else {
  7719. return encodeReserved(literal);
  7720. }
  7721. });
  7722. }
  7723. function parse(options) {
  7724. // https://fetch.spec.whatwg.org/#methods
  7725. let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
  7726. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
  7727. let headers = Object.assign({}, options.headers);
  7728. let body;
  7729. let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
  7730. const urlVariableNames = extractUrlVariableNames(url);
  7731. url = parseUrl(url).expand(parameters);
  7732. if (!/^http/.test(url)) {
  7733. url = options.baseUrl + url;
  7734. }
  7735. const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
  7736. const remainingParameters = omit(parameters, omittedParameters);
  7737. const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
  7738. if (!isBinaryRequset) {
  7739. if (options.mediaType.format) {
  7740. // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
  7741. headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
  7742. }
  7743. if (options.mediaType.previews.length) {
  7744. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  7745. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
  7746. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  7747. return `application/vnd.github.${preview}-preview${format}`;
  7748. }).join(",");
  7749. }
  7750. } // for GET/HEAD requests, set URL query parameters from remaining parameters
  7751. // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
  7752. if (["GET", "HEAD"].includes(method)) {
  7753. url = addQueryParameters(url, remainingParameters);
  7754. } else {
  7755. if ("data" in remainingParameters) {
  7756. body = remainingParameters.data;
  7757. } else {
  7758. if (Object.keys(remainingParameters).length) {
  7759. body = remainingParameters;
  7760. } else {
  7761. headers["content-length"] = 0;
  7762. }
  7763. }
  7764. } // default content-type for JSON if body is set
  7765. if (!headers["content-type"] && typeof body !== "undefined") {
  7766. headers["content-type"] = "application/json; charset=utf-8";
  7767. } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
  7768. // fetch does not allow to set `content-length` header, but we can set body to an empty string
  7769. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  7770. body = "";
  7771. } // Only return body/request keys if present
  7772. return Object.assign({
  7773. method,
  7774. url,
  7775. headers
  7776. }, typeof body !== "undefined" ? {
  7777. body
  7778. } : null, options.request ? {
  7779. request: options.request
  7780. } : null);
  7781. }
  7782. function endpointWithDefaults(defaults, route, options) {
  7783. return parse(merge(defaults, route, options));
  7784. }
  7785. function withDefaults(oldDefaults, newDefaults) {
  7786. const DEFAULTS = merge(oldDefaults, newDefaults);
  7787. const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
  7788. return Object.assign(endpoint, {
  7789. DEFAULTS,
  7790. defaults: withDefaults.bind(null, DEFAULTS),
  7791. merge: merge.bind(null, DEFAULTS),
  7792. parse
  7793. });
  7794. }
  7795. const VERSION = "6.0.1";
  7796. const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
  7797. // So we use RequestParameters and add method as additional required property.
  7798. const DEFAULTS = {
  7799. method: "GET",
  7800. baseUrl: "https://api.github.com",
  7801. headers: {
  7802. accept: "application/vnd.github.v3+json",
  7803. "user-agent": userAgent
  7804. },
  7805. mediaType: {
  7806. format: "",
  7807. previews: []
  7808. }
  7809. };
  7810. const endpoint = withDefaults(null, DEFAULTS);
  7811. exports.endpoint = endpoint;
  7812. //# sourceMappingURL=index.js.map
  7813. /***/ }),
  7814. /***/ 386:
  7815. /***/ (function(module, __unusedexports, __webpack_require__) {
  7816. "use strict";
  7817. var stringify = __webpack_require__(897);
  7818. var parse = __webpack_require__(755);
  7819. var formats = __webpack_require__(13);
  7820. module.exports = {
  7821. formats: formats,
  7822. parse: parse,
  7823. stringify: stringify
  7824. };
  7825. /***/ }),
  7826. /***/ 389:
  7827. /***/ (function(module, __unusedexports, __webpack_require__) {
  7828. "use strict";
  7829. const fs = __webpack_require__(747);
  7830. const shebangCommand = __webpack_require__(866);
  7831. function readShebang(command) {
  7832. // Read the first 150 bytes from the file
  7833. const size = 150;
  7834. let buffer;
  7835. if (Buffer.alloc) {
  7836. // Node.js v4.5+ / v5.10+
  7837. buffer = Buffer.alloc(size);
  7838. } else {
  7839. // Old Node.js API
  7840. buffer = new Buffer(size);
  7841. buffer.fill(0); // zero-fill
  7842. }
  7843. let fd;
  7844. try {
  7845. fd = fs.openSync(command, 'r');
  7846. fs.readSync(fd, buffer, 0, size, 0);
  7847. fs.closeSync(fd);
  7848. } catch (e) { /* Empty */ }
  7849. // Attempt to extract shebang (null is returned if not a shebang)
  7850. return shebangCommand(buffer.toString());
  7851. }
  7852. module.exports = readShebang;
  7853. /***/ }),
  7854. /***/ 392:
  7855. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7856. "use strict";
  7857. Object.defineProperty(exports, '__esModule', { value: true });
  7858. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7859. var osName = _interopDefault(__webpack_require__(2));
  7860. function getUserAgent() {
  7861. try {
  7862. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  7863. } catch (error) {
  7864. if (/wmic os get Caption/.test(error.message)) {
  7865. return "Windows <version undetectable>";
  7866. }
  7867. return "<environment undetectable>";
  7868. }
  7869. }
  7870. exports.getUserAgent = getUserAgent;
  7871. //# sourceMappingURL=index.js.map
  7872. /***/ }),
  7873. /***/ 402:
  7874. /***/ (function(module, __unusedexports, __webpack_require__) {
  7875. module.exports = Octokit;
  7876. const { request } = __webpack_require__(753);
  7877. const Hook = __webpack_require__(523);
  7878. const parseClientOptions = __webpack_require__(294);
  7879. function Octokit(plugins, options) {
  7880. options = options || {};
  7881. const hook = new Hook.Collection();
  7882. const log = Object.assign(
  7883. {
  7884. debug: () => {},
  7885. info: () => {},
  7886. warn: console.warn,
  7887. error: console.error
  7888. },
  7889. options && options.log
  7890. );
  7891. const api = {
  7892. hook,
  7893. log,
  7894. request: request.defaults(parseClientOptions(options, log, hook))
  7895. };
  7896. plugins.forEach(pluginFunction => pluginFunction(api, options));
  7897. return api;
  7898. }
  7899. /***/ }),
  7900. /***/ 413:
  7901. /***/ (function(module, __unusedexports, __webpack_require__) {
  7902. module.exports = __webpack_require__(141);
  7903. /***/ }),
  7904. /***/ 417:
  7905. /***/ (function(module) {
  7906. module.exports = require("crypto");
  7907. /***/ }),
  7908. /***/ 427:
  7909. /***/ (function(module, __unusedexports, __webpack_require__) {
  7910. "use strict";
  7911. // Older verions of Node.js might not have `util.getSystemErrorName()`.
  7912. // In that case, fall back to a deprecated internal.
  7913. const util = __webpack_require__(669);
  7914. let uv;
  7915. if (typeof util.getSystemErrorName === 'function') {
  7916. module.exports = util.getSystemErrorName;
  7917. } else {
  7918. try {
  7919. uv = process.binding('uv');
  7920. if (typeof uv.errname !== 'function') {
  7921. throw new TypeError('uv.errname is not a function');
  7922. }
  7923. } catch (err) {
  7924. console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
  7925. uv = null;
  7926. }
  7927. module.exports = code => errname(uv, code);
  7928. }
  7929. // Used for testing the fallback behavior
  7930. module.exports.__test__ = errname;
  7931. function errname(uv, code) {
  7932. if (uv) {
  7933. return uv.errname(code);
  7934. }
  7935. if (!(code < 0)) {
  7936. throw new Error('err >= 0');
  7937. }
  7938. return `Unknown system error ${code}`;
  7939. }
  7940. /***/ }),
  7941. /***/ 430:
  7942. /***/ (function(module, __unusedexports, __webpack_require__) {
  7943. module.exports = octokitValidate;
  7944. const validate = __webpack_require__(348);
  7945. function octokitValidate(octokit) {
  7946. octokit.hook.before("request", validate.bind(null, octokit));
  7947. }
  7948. /***/ }),
  7949. /***/ 431:
  7950. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7951. "use strict";
  7952. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7953. if (k2 === undefined) k2 = k;
  7954. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7955. }) : (function(o, m, k, k2) {
  7956. if (k2 === undefined) k2 = k;
  7957. o[k2] = m[k];
  7958. }));
  7959. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  7960. Object.defineProperty(o, "default", { enumerable: true, value: v });
  7961. }) : function(o, v) {
  7962. o["default"] = v;
  7963. });
  7964. var __importStar = (this && this.__importStar) || function (mod) {
  7965. if (mod && mod.__esModule) return mod;
  7966. var result = {};
  7967. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  7968. __setModuleDefault(result, mod);
  7969. return result;
  7970. };
  7971. Object.defineProperty(exports, "__esModule", { value: true });
  7972. exports.issue = exports.issueCommand = void 0;
  7973. const os = __importStar(__webpack_require__(87));
  7974. const utils_1 = __webpack_require__(82);
  7975. /**
  7976. * Commands
  7977. *
  7978. * Command Format:
  7979. * ::name key=value,key=value::message
  7980. *
  7981. * Examples:
  7982. * ::warning::This is the message
  7983. * ::set-env name=MY_VAR::some value
  7984. */
  7985. function issueCommand(command, properties, message) {
  7986. const cmd = new Command(command, properties, message);
  7987. process.stdout.write(cmd.toString() + os.EOL);
  7988. }
  7989. exports.issueCommand = issueCommand;
  7990. function issue(name, message = '') {
  7991. issueCommand(name, {}, message);
  7992. }
  7993. exports.issue = issue;
  7994. const CMD_STRING = '::';
  7995. class Command {
  7996. constructor(command, properties, message) {
  7997. if (!command) {
  7998. command = 'missing.command';
  7999. }
  8000. this.command = command;
  8001. this.properties = properties;
  8002. this.message = message;
  8003. }
  8004. toString() {
  8005. let cmdStr = CMD_STRING + this.command;
  8006. if (this.properties && Object.keys(this.properties).length > 0) {
  8007. cmdStr += ' ';
  8008. let first = true;
  8009. for (const key in this.properties) {
  8010. if (this.properties.hasOwnProperty(key)) {
  8011. const val = this.properties[key];
  8012. if (val) {
  8013. if (first) {
  8014. first = false;
  8015. }
  8016. else {
  8017. cmdStr += ',';
  8018. }
  8019. cmdStr += `${key}=${escapeProperty(val)}`;
  8020. }
  8021. }
  8022. }
  8023. }
  8024. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  8025. return cmdStr;
  8026. }
  8027. }
  8028. function escapeData(s) {
  8029. return utils_1.toCommandValue(s)
  8030. .replace(/%/g, '%25')
  8031. .replace(/\r/g, '%0D')
  8032. .replace(/\n/g, '%0A');
  8033. }
  8034. function escapeProperty(s) {
  8035. return utils_1.toCommandValue(s)
  8036. .replace(/%/g, '%25')
  8037. .replace(/\r/g, '%0D')
  8038. .replace(/\n/g, '%0A')
  8039. .replace(/:/g, '%3A')
  8040. .replace(/,/g, '%2C');
  8041. }
  8042. //# sourceMappingURL=command.js.map
  8043. /***/ }),
  8044. /***/ 438:
  8045. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  8046. "use strict";
  8047. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  8048. if (k2 === undefined) k2 = k;
  8049. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  8050. }) : (function(o, m, k, k2) {
  8051. if (k2 === undefined) k2 = k;
  8052. o[k2] = m[k];
  8053. }));
  8054. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  8055. Object.defineProperty(o, "default", { enumerable: true, value: v });
  8056. }) : function(o, v) {
  8057. o["default"] = v;
  8058. });
  8059. var __importStar = (this && this.__importStar) || function (mod) {
  8060. if (mod && mod.__esModule) return mod;
  8061. var result = {};
  8062. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  8063. __setModuleDefault(result, mod);
  8064. return result;
  8065. };
  8066. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  8067. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  8068. return new (P || (P = Promise))(function (resolve, reject) {
  8069. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  8070. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  8071. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  8072. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8073. });
  8074. };
  8075. Object.defineProperty(exports, "__esModule", { value: true });
  8076. exports.prepareExistingDirectory = void 0;
  8077. const assert = __importStar(__webpack_require__(357));
  8078. const core = __importStar(__webpack_require__(470));
  8079. const fs = __importStar(__webpack_require__(747));
  8080. const fsHelper = __importStar(__webpack_require__(618));
  8081. const io = __importStar(__webpack_require__(1));
  8082. const path = __importStar(__webpack_require__(622));
  8083. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  8084. var _a, _b;
  8085. return __awaiter(this, void 0, void 0, function* () {
  8086. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  8087. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  8088. // Indicates whether to delete the directory contents
  8089. let remove = false;
  8090. // Check whether using git or REST API
  8091. if (!git) {
  8092. remove = true;
  8093. }
  8094. // Fetch URL does not match
  8095. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  8096. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  8097. remove = true;
  8098. }
  8099. else {
  8100. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  8101. const lockPaths = [
  8102. path.join(repositoryPath, '.git', 'index.lock'),
  8103. path.join(repositoryPath, '.git', 'shallow.lock')
  8104. ];
  8105. for (const lockPath of lockPaths) {
  8106. try {
  8107. yield io.rmRF(lockPath);
  8108. }
  8109. catch (error) {
  8110. core.debug(`Unable to delete '${lockPath}'. ${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  8111. }
  8112. }
  8113. try {
  8114. core.startGroup('Removing previously created refs, to avoid conflicts');
  8115. // Checkout detached HEAD
  8116. if (!(yield git.isDetached())) {
  8117. yield git.checkoutDetach();
  8118. }
  8119. // Remove all refs/heads/*
  8120. let branches = yield git.branchList(false);
  8121. for (const branch of branches) {
  8122. yield git.branchDelete(false, branch);
  8123. }
  8124. // Remove any conflicting refs/remotes/origin/*
  8125. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  8126. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  8127. if (ref) {
  8128. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  8129. if (ref.startsWith('refs/heads/')) {
  8130. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  8131. const upperName1Slash = `${upperName1}/`;
  8132. branches = yield git.branchList(true);
  8133. for (const branch of branches) {
  8134. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  8135. const upperName2Slash = `${upperName2}/`;
  8136. if (upperName1.startsWith(upperName2Slash) ||
  8137. upperName2.startsWith(upperName1Slash)) {
  8138. yield git.branchDelete(true, branch);
  8139. }
  8140. }
  8141. }
  8142. }
  8143. core.endGroup();
  8144. // Clean
  8145. if (clean) {
  8146. core.startGroup('Cleaning the repository');
  8147. if (!(yield git.tryClean())) {
  8148. core.debug(`The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For futher investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.`);
  8149. remove = true;
  8150. }
  8151. else if (!(yield git.tryReset())) {
  8152. remove = true;
  8153. }
  8154. core.endGroup();
  8155. if (remove) {
  8156. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  8157. }
  8158. }
  8159. }
  8160. catch (error) {
  8161. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  8162. remove = true;
  8163. }
  8164. }
  8165. if (remove) {
  8166. // Delete the contents of the directory. Don't delete the directory itself
  8167. // since it might be the current working directory.
  8168. core.info(`Deleting the contents of '${repositoryPath}'`);
  8169. for (const file of yield fs.promises.readdir(repositoryPath)) {
  8170. yield io.rmRF(path.join(repositoryPath, file));
  8171. }
  8172. }
  8173. });
  8174. }
  8175. exports.prepareExistingDirectory = prepareExistingDirectory;
  8176. /***/ }),
  8177. /***/ 453:
  8178. /***/ (function(module, __unusedexports, __webpack_require__) {
  8179. var once = __webpack_require__(969)
  8180. var eos = __webpack_require__(3)
  8181. var fs = __webpack_require__(747) // we only need fs to get the ReadStream and WriteStream prototypes
  8182. var noop = function () {}
  8183. var ancient = /^v?\.0/.test(process.version)
  8184. var isFn = function (fn) {
  8185. return typeof fn === 'function'
  8186. }
  8187. var isFS = function (stream) {
  8188. if (!ancient) return false // newer node version do not need to care about fs is a special way
  8189. if (!fs) return false // browser
  8190. return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
  8191. }
  8192. var isRequest = function (stream) {
  8193. return stream.setHeader && isFn(stream.abort)
  8194. }
  8195. var destroyer = function (stream, reading, writing, callback) {
  8196. callback = once(callback)
  8197. var closed = false
  8198. stream.on('close', function () {
  8199. closed = true
  8200. })
  8201. eos(stream, {readable: reading, writable: writing}, function (err) {
  8202. if (err) return callback(err)
  8203. closed = true
  8204. callback()
  8205. })
  8206. var destroyed = false
  8207. return function (err) {
  8208. if (closed) return
  8209. if (destroyed) return
  8210. destroyed = true
  8211. if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
  8212. if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
  8213. if (isFn(stream.destroy)) return stream.destroy()
  8214. callback(err || new Error('stream was destroyed'))
  8215. }
  8216. }
  8217. var call = function (fn) {
  8218. fn()
  8219. }
  8220. var pipe = function (from, to) {
  8221. return from.pipe(to)
  8222. }
  8223. var pump = function () {
  8224. var streams = Array.prototype.slice.call(arguments)
  8225. var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
  8226. if (Array.isArray(streams[0])) streams = streams[0]
  8227. if (streams.length < 2) throw new Error('pump requires two streams per minimum')
  8228. var error
  8229. var destroys = streams.map(function (stream, i) {
  8230. var reading = i < streams.length - 1
  8231. var writing = i > 0
  8232. return destroyer(stream, reading, writing, function (err) {
  8233. if (!error) error = err
  8234. if (err) destroys.forEach(call)
  8235. if (reading) return
  8236. destroys.forEach(call)
  8237. callback(error)
  8238. })
  8239. })
  8240. return streams.reduce(pipe)
  8241. }
  8242. module.exports = pump
  8243. /***/ }),
  8244. /***/ 454:
  8245. /***/ (function(module, exports, __webpack_require__) {
  8246. "use strict";
  8247. Object.defineProperty(exports, '__esModule', { value: true });
  8248. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  8249. var Stream = _interopDefault(__webpack_require__(794));
  8250. var http = _interopDefault(__webpack_require__(605));
  8251. var Url = _interopDefault(__webpack_require__(835));
  8252. var whatwgUrl = _interopDefault(__webpack_require__(70));
  8253. var https = _interopDefault(__webpack_require__(211));
  8254. var zlib = _interopDefault(__webpack_require__(761));
  8255. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  8256. // fix for "Readable" isn't a named export issue
  8257. const Readable = Stream.Readable;
  8258. const BUFFER = Symbol('buffer');
  8259. const TYPE = Symbol('type');
  8260. class Blob {
  8261. constructor() {
  8262. this[TYPE] = '';
  8263. const blobParts = arguments[0];
  8264. const options = arguments[1];
  8265. const buffers = [];
  8266. let size = 0;
  8267. if (blobParts) {
  8268. const a = blobParts;
  8269. const length = Number(a.length);
  8270. for (let i = 0; i < length; i++) {
  8271. const element = a[i];
  8272. let buffer;
  8273. if (element instanceof Buffer) {
  8274. buffer = element;
  8275. } else if (ArrayBuffer.isView(element)) {
  8276. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  8277. } else if (element instanceof ArrayBuffer) {
  8278. buffer = Buffer.from(element);
  8279. } else if (element instanceof Blob) {
  8280. buffer = element[BUFFER];
  8281. } else {
  8282. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  8283. }
  8284. size += buffer.length;
  8285. buffers.push(buffer);
  8286. }
  8287. }
  8288. this[BUFFER] = Buffer.concat(buffers);
  8289. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  8290. if (type && !/[^\u0020-\u007E]/.test(type)) {
  8291. this[TYPE] = type;
  8292. }
  8293. }
  8294. get size() {
  8295. return this[BUFFER].length;
  8296. }
  8297. get type() {
  8298. return this[TYPE];
  8299. }
  8300. text() {
  8301. return Promise.resolve(this[BUFFER].toString());
  8302. }
  8303. arrayBuffer() {
  8304. const buf = this[BUFFER];
  8305. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  8306. return Promise.resolve(ab);
  8307. }
  8308. stream() {
  8309. const readable = new Readable();
  8310. readable._read = function () {};
  8311. readable.push(this[BUFFER]);
  8312. readable.push(null);
  8313. return readable;
  8314. }
  8315. toString() {
  8316. return '[object Blob]';
  8317. }
  8318. slice() {
  8319. const size = this.size;
  8320. const start = arguments[0];
  8321. const end = arguments[1];
  8322. let relativeStart, relativeEnd;
  8323. if (start === undefined) {
  8324. relativeStart = 0;
  8325. } else if (start < 0) {
  8326. relativeStart = Math.max(size + start, 0);
  8327. } else {
  8328. relativeStart = Math.min(start, size);
  8329. }
  8330. if (end === undefined) {
  8331. relativeEnd = size;
  8332. } else if (end < 0) {
  8333. relativeEnd = Math.max(size + end, 0);
  8334. } else {
  8335. relativeEnd = Math.min(end, size);
  8336. }
  8337. const span = Math.max(relativeEnd - relativeStart, 0);
  8338. const buffer = this[BUFFER];
  8339. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  8340. const blob = new Blob([], { type: arguments[2] });
  8341. blob[BUFFER] = slicedBuffer;
  8342. return blob;
  8343. }
  8344. }
  8345. Object.defineProperties(Blob.prototype, {
  8346. size: { enumerable: true },
  8347. type: { enumerable: true },
  8348. slice: { enumerable: true }
  8349. });
  8350. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  8351. value: 'Blob',
  8352. writable: false,
  8353. enumerable: false,
  8354. configurable: true
  8355. });
  8356. /**
  8357. * fetch-error.js
  8358. *
  8359. * FetchError interface for operational errors
  8360. */
  8361. /**
  8362. * Create FetchError instance
  8363. *
  8364. * @param String message Error message for human
  8365. * @param String type Error type for machine
  8366. * @param String systemError For Node.js system error
  8367. * @return FetchError
  8368. */
  8369. function FetchError(message, type, systemError) {
  8370. Error.call(this, message);
  8371. this.message = message;
  8372. this.type = type;
  8373. // when err.type is `system`, err.code contains system error code
  8374. if (systemError) {
  8375. this.code = this.errno = systemError.code;
  8376. }
  8377. // hide custom error implementation details from end-users
  8378. Error.captureStackTrace(this, this.constructor);
  8379. }
  8380. FetchError.prototype = Object.create(Error.prototype);
  8381. FetchError.prototype.constructor = FetchError;
  8382. FetchError.prototype.name = 'FetchError';
  8383. let convert;
  8384. try {
  8385. convert = __webpack_require__(18).convert;
  8386. } catch (e) {}
  8387. const INTERNALS = Symbol('Body internals');
  8388. // fix an issue where "PassThrough" isn't a named export for node <10
  8389. const PassThrough = Stream.PassThrough;
  8390. /**
  8391. * Body mixin
  8392. *
  8393. * Ref: https://fetch.spec.whatwg.org/#body
  8394. *
  8395. * @param Stream body Readable stream
  8396. * @param Object opts Response options
  8397. * @return Void
  8398. */
  8399. function Body(body) {
  8400. var _this = this;
  8401. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  8402. _ref$size = _ref.size;
  8403. let size = _ref$size === undefined ? 0 : _ref$size;
  8404. var _ref$timeout = _ref.timeout;
  8405. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  8406. if (body == null) {
  8407. // body is undefined or null
  8408. body = null;
  8409. } else if (isURLSearchParams(body)) {
  8410. // body is a URLSearchParams
  8411. body = Buffer.from(body.toString());
  8412. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8413. // body is ArrayBuffer
  8414. body = Buffer.from(body);
  8415. } else if (ArrayBuffer.isView(body)) {
  8416. // body is ArrayBufferView
  8417. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  8418. } else if (body instanceof Stream) ; else {
  8419. // none of the above
  8420. // coerce to string then buffer
  8421. body = Buffer.from(String(body));
  8422. }
  8423. this[INTERNALS] = {
  8424. body,
  8425. disturbed: false,
  8426. error: null
  8427. };
  8428. this.size = size;
  8429. this.timeout = timeout;
  8430. if (body instanceof Stream) {
  8431. body.on('error', function (err) {
  8432. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  8433. _this[INTERNALS].error = error;
  8434. });
  8435. }
  8436. }
  8437. Body.prototype = {
  8438. get body() {
  8439. return this[INTERNALS].body;
  8440. },
  8441. get bodyUsed() {
  8442. return this[INTERNALS].disturbed;
  8443. },
  8444. /**
  8445. * Decode response as ArrayBuffer
  8446. *
  8447. * @return Promise
  8448. */
  8449. arrayBuffer() {
  8450. return consumeBody.call(this).then(function (buf) {
  8451. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  8452. });
  8453. },
  8454. /**
  8455. * Return raw response as Blob
  8456. *
  8457. * @return Promise
  8458. */
  8459. blob() {
  8460. let ct = this.headers && this.headers.get('content-type') || '';
  8461. return consumeBody.call(this).then(function (buf) {
  8462. return Object.assign(
  8463. // Prevent copying
  8464. new Blob([], {
  8465. type: ct.toLowerCase()
  8466. }), {
  8467. [BUFFER]: buf
  8468. });
  8469. });
  8470. },
  8471. /**
  8472. * Decode response as json
  8473. *
  8474. * @return Promise
  8475. */
  8476. json() {
  8477. var _this2 = this;
  8478. return consumeBody.call(this).then(function (buffer) {
  8479. try {
  8480. return JSON.parse(buffer.toString());
  8481. } catch (err) {
  8482. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  8483. }
  8484. });
  8485. },
  8486. /**
  8487. * Decode response as text
  8488. *
  8489. * @return Promise
  8490. */
  8491. text() {
  8492. return consumeBody.call(this).then(function (buffer) {
  8493. return buffer.toString();
  8494. });
  8495. },
  8496. /**
  8497. * Decode response as buffer (non-spec api)
  8498. *
  8499. * @return Promise
  8500. */
  8501. buffer() {
  8502. return consumeBody.call(this);
  8503. },
  8504. /**
  8505. * Decode response as text, while automatically detecting the encoding and
  8506. * trying to decode to UTF-8 (non-spec api)
  8507. *
  8508. * @return Promise
  8509. */
  8510. textConverted() {
  8511. var _this3 = this;
  8512. return consumeBody.call(this).then(function (buffer) {
  8513. return convertBody(buffer, _this3.headers);
  8514. });
  8515. }
  8516. };
  8517. // In browsers, all properties are enumerable.
  8518. Object.defineProperties(Body.prototype, {
  8519. body: { enumerable: true },
  8520. bodyUsed: { enumerable: true },
  8521. arrayBuffer: { enumerable: true },
  8522. blob: { enumerable: true },
  8523. json: { enumerable: true },
  8524. text: { enumerable: true }
  8525. });
  8526. Body.mixIn = function (proto) {
  8527. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  8528. // istanbul ignore else: future proof
  8529. if (!(name in proto)) {
  8530. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  8531. Object.defineProperty(proto, name, desc);
  8532. }
  8533. }
  8534. };
  8535. /**
  8536. * Consume and convert an entire Body to a Buffer.
  8537. *
  8538. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  8539. *
  8540. * @return Promise
  8541. */
  8542. function consumeBody() {
  8543. var _this4 = this;
  8544. if (this[INTERNALS].disturbed) {
  8545. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  8546. }
  8547. this[INTERNALS].disturbed = true;
  8548. if (this[INTERNALS].error) {
  8549. return Body.Promise.reject(this[INTERNALS].error);
  8550. }
  8551. let body = this.body;
  8552. // body is null
  8553. if (body === null) {
  8554. return Body.Promise.resolve(Buffer.alloc(0));
  8555. }
  8556. // body is blob
  8557. if (isBlob(body)) {
  8558. body = body.stream();
  8559. }
  8560. // body is buffer
  8561. if (Buffer.isBuffer(body)) {
  8562. return Body.Promise.resolve(body);
  8563. }
  8564. // istanbul ignore if: should never happen
  8565. if (!(body instanceof Stream)) {
  8566. return Body.Promise.resolve(Buffer.alloc(0));
  8567. }
  8568. // body is stream
  8569. // get ready to actually consume the body
  8570. let accum = [];
  8571. let accumBytes = 0;
  8572. let abort = false;
  8573. return new Body.Promise(function (resolve, reject) {
  8574. let resTimeout;
  8575. // allow timeout on slow response body
  8576. if (_this4.timeout) {
  8577. resTimeout = setTimeout(function () {
  8578. abort = true;
  8579. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  8580. }, _this4.timeout);
  8581. }
  8582. // handle stream errors
  8583. body.on('error', function (err) {
  8584. if (err.name === 'AbortError') {
  8585. // if the request was aborted, reject with this Error
  8586. abort = true;
  8587. reject(err);
  8588. } else {
  8589. // other errors, such as incorrect content-encoding
  8590. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  8591. }
  8592. });
  8593. body.on('data', function (chunk) {
  8594. if (abort || chunk === null) {
  8595. return;
  8596. }
  8597. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  8598. abort = true;
  8599. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  8600. return;
  8601. }
  8602. accumBytes += chunk.length;
  8603. accum.push(chunk);
  8604. });
  8605. body.on('end', function () {
  8606. if (abort) {
  8607. return;
  8608. }
  8609. clearTimeout(resTimeout);
  8610. try {
  8611. resolve(Buffer.concat(accum, accumBytes));
  8612. } catch (err) {
  8613. // handle streams that have accumulated too much data (issue #414)
  8614. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  8615. }
  8616. });
  8617. });
  8618. }
  8619. /**
  8620. * Detect buffer encoding and convert to target encoding
  8621. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  8622. *
  8623. * @param Buffer buffer Incoming buffer
  8624. * @param String encoding Target encoding
  8625. * @return String
  8626. */
  8627. function convertBody(buffer, headers) {
  8628. if (typeof convert !== 'function') {
  8629. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  8630. }
  8631. const ct = headers.get('content-type');
  8632. let charset = 'utf-8';
  8633. let res, str;
  8634. // header
  8635. if (ct) {
  8636. res = /charset=([^;]*)/i.exec(ct);
  8637. }
  8638. // no charset in content type, peek at response body for at most 1024 bytes
  8639. str = buffer.slice(0, 1024).toString();
  8640. // html5
  8641. if (!res && str) {
  8642. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  8643. }
  8644. // html4
  8645. if (!res && str) {
  8646. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  8647. if (!res) {
  8648. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  8649. if (res) {
  8650. res.pop(); // drop last quote
  8651. }
  8652. }
  8653. if (res) {
  8654. res = /charset=(.*)/i.exec(res.pop());
  8655. }
  8656. }
  8657. // xml
  8658. if (!res && str) {
  8659. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  8660. }
  8661. // found charset
  8662. if (res) {
  8663. charset = res.pop();
  8664. // prevent decode issues when sites use incorrect encoding
  8665. // ref: https://hsivonen.fi/encoding-menu/
  8666. if (charset === 'gb2312' || charset === 'gbk') {
  8667. charset = 'gb18030';
  8668. }
  8669. }
  8670. // turn raw buffers into a single utf-8 buffer
  8671. return convert(buffer, 'UTF-8', charset).toString();
  8672. }
  8673. /**
  8674. * Detect a URLSearchParams object
  8675. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  8676. *
  8677. * @param Object obj Object to detect by type or brand
  8678. * @return String
  8679. */
  8680. function isURLSearchParams(obj) {
  8681. // Duck-typing as a necessary condition.
  8682. if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
  8683. return false;
  8684. }
  8685. // Brand-checking and more duck-typing as optional condition.
  8686. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  8687. }
  8688. /**
  8689. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  8690. * @param {*} obj
  8691. * @return {boolean}
  8692. */
  8693. function isBlob(obj) {
  8694. return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
  8695. }
  8696. /**
  8697. * Clone body given Res/Req instance
  8698. *
  8699. * @param Mixed instance Response or Request instance
  8700. * @return Mixed
  8701. */
  8702. function clone(instance) {
  8703. let p1, p2;
  8704. let body = instance.body;
  8705. // don't allow cloning a used body
  8706. if (instance.bodyUsed) {
  8707. throw new Error('cannot clone body after it is used');
  8708. }
  8709. // check that body is a stream and not form-data object
  8710. // note: we can't clone the form-data object without having it as a dependency
  8711. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  8712. // tee instance body
  8713. p1 = new PassThrough();
  8714. p2 = new PassThrough();
  8715. body.pipe(p1);
  8716. body.pipe(p2);
  8717. // set instance body to teed body and return the other teed body
  8718. instance[INTERNALS].body = p1;
  8719. body = p2;
  8720. }
  8721. return body;
  8722. }
  8723. /**
  8724. * Performs the operation "extract a `Content-Type` value from |object|" as
  8725. * specified in the specification:
  8726. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  8727. *
  8728. * This function assumes that instance.body is present.
  8729. *
  8730. * @param Mixed instance Any options.body input
  8731. */
  8732. function extractContentType(body) {
  8733. if (body === null) {
  8734. // body is null
  8735. return null;
  8736. } else if (typeof body === 'string') {
  8737. // body is string
  8738. return 'text/plain;charset=UTF-8';
  8739. } else if (isURLSearchParams(body)) {
  8740. // body is a URLSearchParams
  8741. return 'application/x-www-form-urlencoded;charset=UTF-8';
  8742. } else if (isBlob(body)) {
  8743. // body is blob
  8744. return body.type || null;
  8745. } else if (Buffer.isBuffer(body)) {
  8746. // body is buffer
  8747. return null;
  8748. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8749. // body is ArrayBuffer
  8750. return null;
  8751. } else if (ArrayBuffer.isView(body)) {
  8752. // body is ArrayBufferView
  8753. return null;
  8754. } else if (typeof body.getBoundary === 'function') {
  8755. // detect form data input from form-data module
  8756. return `multipart/form-data;boundary=${body.getBoundary()}`;
  8757. } else if (body instanceof Stream) {
  8758. // body is stream
  8759. // can't really do much about this
  8760. return null;
  8761. } else {
  8762. // Body constructor defaults other things to string
  8763. return 'text/plain;charset=UTF-8';
  8764. }
  8765. }
  8766. /**
  8767. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  8768. * For us, we have to explicitly get it with a function.
  8769. *
  8770. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  8771. *
  8772. * @param Body instance Instance of Body
  8773. * @return Number? Number of bytes, or null if not possible
  8774. */
  8775. function getTotalBytes(instance) {
  8776. const body = instance.body;
  8777. if (body === null) {
  8778. // body is null
  8779. return 0;
  8780. } else if (isBlob(body)) {
  8781. return body.size;
  8782. } else if (Buffer.isBuffer(body)) {
  8783. // body is buffer
  8784. return body.length;
  8785. } else if (body && typeof body.getLengthSync === 'function') {
  8786. // detect form data input from form-data module
  8787. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  8788. body.hasKnownLength && body.hasKnownLength()) {
  8789. // 2.x
  8790. return body.getLengthSync();
  8791. }
  8792. return null;
  8793. } else {
  8794. // body is stream
  8795. return null;
  8796. }
  8797. }
  8798. /**
  8799. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  8800. *
  8801. * @param Body instance Instance of Body
  8802. * @return Void
  8803. */
  8804. function writeToStream(dest, instance) {
  8805. const body = instance.body;
  8806. if (body === null) {
  8807. // body is null
  8808. dest.end();
  8809. } else if (isBlob(body)) {
  8810. body.stream().pipe(dest);
  8811. } else if (Buffer.isBuffer(body)) {
  8812. // body is buffer
  8813. dest.write(body);
  8814. dest.end();
  8815. } else {
  8816. // body is stream
  8817. body.pipe(dest);
  8818. }
  8819. }
  8820. // expose Promise
  8821. Body.Promise = global.Promise;
  8822. /**
  8823. * headers.js
  8824. *
  8825. * Headers class offers convenient helpers
  8826. */
  8827. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  8828. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  8829. function validateName(name) {
  8830. name = `${name}`;
  8831. if (invalidTokenRegex.test(name) || name === '') {
  8832. throw new TypeError(`${name} is not a legal HTTP header name`);
  8833. }
  8834. }
  8835. function validateValue(value) {
  8836. value = `${value}`;
  8837. if (invalidHeaderCharRegex.test(value)) {
  8838. throw new TypeError(`${value} is not a legal HTTP header value`);
  8839. }
  8840. }
  8841. /**
  8842. * Find the key in the map object given a header name.
  8843. *
  8844. * Returns undefined if not found.
  8845. *
  8846. * @param String name Header name
  8847. * @return String|Undefined
  8848. */
  8849. function find(map, name) {
  8850. name = name.toLowerCase();
  8851. for (const key in map) {
  8852. if (key.toLowerCase() === name) {
  8853. return key;
  8854. }
  8855. }
  8856. return undefined;
  8857. }
  8858. const MAP = Symbol('map');
  8859. class Headers {
  8860. /**
  8861. * Headers class
  8862. *
  8863. * @param Object headers Response headers
  8864. * @return Void
  8865. */
  8866. constructor() {
  8867. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  8868. this[MAP] = Object.create(null);
  8869. if (init instanceof Headers) {
  8870. const rawHeaders = init.raw();
  8871. const headerNames = Object.keys(rawHeaders);
  8872. for (const headerName of headerNames) {
  8873. for (const value of rawHeaders[headerName]) {
  8874. this.append(headerName, value);
  8875. }
  8876. }
  8877. return;
  8878. }
  8879. // We don't worry about converting prop to ByteString here as append()
  8880. // will handle it.
  8881. if (init == null) ; else if (typeof init === 'object') {
  8882. const method = init[Symbol.iterator];
  8883. if (method != null) {
  8884. if (typeof method !== 'function') {
  8885. throw new TypeError('Header pairs must be iterable');
  8886. }
  8887. // sequence<sequence<ByteString>>
  8888. // Note: per spec we have to first exhaust the lists then process them
  8889. const pairs = [];
  8890. for (const pair of init) {
  8891. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  8892. throw new TypeError('Each header pair must be iterable');
  8893. }
  8894. pairs.push(Array.from(pair));
  8895. }
  8896. for (const pair of pairs) {
  8897. if (pair.length !== 2) {
  8898. throw new TypeError('Each header pair must be a name/value tuple');
  8899. }
  8900. this.append(pair[0], pair[1]);
  8901. }
  8902. } else {
  8903. // record<ByteString, ByteString>
  8904. for (const key of Object.keys(init)) {
  8905. const value = init[key];
  8906. this.append(key, value);
  8907. }
  8908. }
  8909. } else {
  8910. throw new TypeError('Provided initializer must be an object');
  8911. }
  8912. }
  8913. /**
  8914. * Return combined header value given name
  8915. *
  8916. * @param String name Header name
  8917. * @return Mixed
  8918. */
  8919. get(name) {
  8920. name = `${name}`;
  8921. validateName(name);
  8922. const key = find(this[MAP], name);
  8923. if (key === undefined) {
  8924. return null;
  8925. }
  8926. return this[MAP][key].join(', ');
  8927. }
  8928. /**
  8929. * Iterate over all headers
  8930. *
  8931. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  8932. * @param Boolean thisArg `this` context for callback function
  8933. * @return Void
  8934. */
  8935. forEach(callback) {
  8936. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  8937. let pairs = getHeaders(this);
  8938. let i = 0;
  8939. while (i < pairs.length) {
  8940. var _pairs$i = pairs[i];
  8941. const name = _pairs$i[0],
  8942. value = _pairs$i[1];
  8943. callback.call(thisArg, value, name, this);
  8944. pairs = getHeaders(this);
  8945. i++;
  8946. }
  8947. }
  8948. /**
  8949. * Overwrite header values given name
  8950. *
  8951. * @param String name Header name
  8952. * @param String value Header value
  8953. * @return Void
  8954. */
  8955. set(name, value) {
  8956. name = `${name}`;
  8957. value = `${value}`;
  8958. validateName(name);
  8959. validateValue(value);
  8960. const key = find(this[MAP], name);
  8961. this[MAP][key !== undefined ? key : name] = [value];
  8962. }
  8963. /**
  8964. * Append a value onto existing header
  8965. *
  8966. * @param String name Header name
  8967. * @param String value Header value
  8968. * @return Void
  8969. */
  8970. append(name, value) {
  8971. name = `${name}`;
  8972. value = `${value}`;
  8973. validateName(name);
  8974. validateValue(value);
  8975. const key = find(this[MAP], name);
  8976. if (key !== undefined) {
  8977. this[MAP][key].push(value);
  8978. } else {
  8979. this[MAP][name] = [value];
  8980. }
  8981. }
  8982. /**
  8983. * Check for header name existence
  8984. *
  8985. * @param String name Header name
  8986. * @return Boolean
  8987. */
  8988. has(name) {
  8989. name = `${name}`;
  8990. validateName(name);
  8991. return find(this[MAP], name) !== undefined;
  8992. }
  8993. /**
  8994. * Delete all header values given name
  8995. *
  8996. * @param String name Header name
  8997. * @return Void
  8998. */
  8999. delete(name) {
  9000. name = `${name}`;
  9001. validateName(name);
  9002. const key = find(this[MAP], name);
  9003. if (key !== undefined) {
  9004. delete this[MAP][key];
  9005. }
  9006. }
  9007. /**
  9008. * Return raw headers (non-spec api)
  9009. *
  9010. * @return Object
  9011. */
  9012. raw() {
  9013. return this[MAP];
  9014. }
  9015. /**
  9016. * Get an iterator on keys.
  9017. *
  9018. * @return Iterator
  9019. */
  9020. keys() {
  9021. return createHeadersIterator(this, 'key');
  9022. }
  9023. /**
  9024. * Get an iterator on values.
  9025. *
  9026. * @return Iterator
  9027. */
  9028. values() {
  9029. return createHeadersIterator(this, 'value');
  9030. }
  9031. /**
  9032. * Get an iterator on entries.
  9033. *
  9034. * This is the default iterator of the Headers object.
  9035. *
  9036. * @return Iterator
  9037. */
  9038. [Symbol.iterator]() {
  9039. return createHeadersIterator(this, 'key+value');
  9040. }
  9041. }
  9042. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  9043. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  9044. value: 'Headers',
  9045. writable: false,
  9046. enumerable: false,
  9047. configurable: true
  9048. });
  9049. Object.defineProperties(Headers.prototype, {
  9050. get: { enumerable: true },
  9051. forEach: { enumerable: true },
  9052. set: { enumerable: true },
  9053. append: { enumerable: true },
  9054. has: { enumerable: true },
  9055. delete: { enumerable: true },
  9056. keys: { enumerable: true },
  9057. values: { enumerable: true },
  9058. entries: { enumerable: true }
  9059. });
  9060. function getHeaders(headers) {
  9061. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  9062. const keys = Object.keys(headers[MAP]).sort();
  9063. return keys.map(kind === 'key' ? function (k) {
  9064. return k.toLowerCase();
  9065. } : kind === 'value' ? function (k) {
  9066. return headers[MAP][k].join(', ');
  9067. } : function (k) {
  9068. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  9069. });
  9070. }
  9071. const INTERNAL = Symbol('internal');
  9072. function createHeadersIterator(target, kind) {
  9073. const iterator = Object.create(HeadersIteratorPrototype);
  9074. iterator[INTERNAL] = {
  9075. target,
  9076. kind,
  9077. index: 0
  9078. };
  9079. return iterator;
  9080. }
  9081. const HeadersIteratorPrototype = Object.setPrototypeOf({
  9082. next() {
  9083. // istanbul ignore if
  9084. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  9085. throw new TypeError('Value of `this` is not a HeadersIterator');
  9086. }
  9087. var _INTERNAL = this[INTERNAL];
  9088. const target = _INTERNAL.target,
  9089. kind = _INTERNAL.kind,
  9090. index = _INTERNAL.index;
  9091. const values = getHeaders(target, kind);
  9092. const len = values.length;
  9093. if (index >= len) {
  9094. return {
  9095. value: undefined,
  9096. done: true
  9097. };
  9098. }
  9099. this[INTERNAL].index = index + 1;
  9100. return {
  9101. value: values[index],
  9102. done: false
  9103. };
  9104. }
  9105. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  9106. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  9107. value: 'HeadersIterator',
  9108. writable: false,
  9109. enumerable: false,
  9110. configurable: true
  9111. });
  9112. /**
  9113. * Export the Headers object in a form that Node.js can consume.
  9114. *
  9115. * @param Headers headers
  9116. * @return Object
  9117. */
  9118. function exportNodeCompatibleHeaders(headers) {
  9119. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  9120. // http.request() only supports string as Host header. This hack makes
  9121. // specifying custom Host header possible.
  9122. const hostHeaderKey = find(headers[MAP], 'Host');
  9123. if (hostHeaderKey !== undefined) {
  9124. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  9125. }
  9126. return obj;
  9127. }
  9128. /**
  9129. * Create a Headers object from an object of headers, ignoring those that do
  9130. * not conform to HTTP grammar productions.
  9131. *
  9132. * @param Object obj Object of headers
  9133. * @return Headers
  9134. */
  9135. function createHeadersLenient(obj) {
  9136. const headers = new Headers();
  9137. for (const name of Object.keys(obj)) {
  9138. if (invalidTokenRegex.test(name)) {
  9139. continue;
  9140. }
  9141. if (Array.isArray(obj[name])) {
  9142. for (const val of obj[name]) {
  9143. if (invalidHeaderCharRegex.test(val)) {
  9144. continue;
  9145. }
  9146. if (headers[MAP][name] === undefined) {
  9147. headers[MAP][name] = [val];
  9148. } else {
  9149. headers[MAP][name].push(val);
  9150. }
  9151. }
  9152. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  9153. headers[MAP][name] = [obj[name]];
  9154. }
  9155. }
  9156. return headers;
  9157. }
  9158. const INTERNALS$1 = Symbol('Response internals');
  9159. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  9160. const STATUS_CODES = http.STATUS_CODES;
  9161. /**
  9162. * Response class
  9163. *
  9164. * @param Stream body Readable stream
  9165. * @param Object opts Response options
  9166. * @return Void
  9167. */
  9168. class Response {
  9169. constructor() {
  9170. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  9171. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9172. Body.call(this, body, opts);
  9173. const status = opts.status || 200;
  9174. const headers = new Headers(opts.headers);
  9175. if (body != null && !headers.has('Content-Type')) {
  9176. const contentType = extractContentType(body);
  9177. if (contentType) {
  9178. headers.append('Content-Type', contentType);
  9179. }
  9180. }
  9181. this[INTERNALS$1] = {
  9182. url: opts.url,
  9183. status,
  9184. statusText: opts.statusText || STATUS_CODES[status],
  9185. headers,
  9186. counter: opts.counter
  9187. };
  9188. }
  9189. get url() {
  9190. return this[INTERNALS$1].url || '';
  9191. }
  9192. get status() {
  9193. return this[INTERNALS$1].status;
  9194. }
  9195. /**
  9196. * Convenience property representing if the request ended normally
  9197. */
  9198. get ok() {
  9199. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  9200. }
  9201. get redirected() {
  9202. return this[INTERNALS$1].counter > 0;
  9203. }
  9204. get statusText() {
  9205. return this[INTERNALS$1].statusText;
  9206. }
  9207. get headers() {
  9208. return this[INTERNALS$1].headers;
  9209. }
  9210. /**
  9211. * Clone this response
  9212. *
  9213. * @return Response
  9214. */
  9215. clone() {
  9216. return new Response(clone(this), {
  9217. url: this.url,
  9218. status: this.status,
  9219. statusText: this.statusText,
  9220. headers: this.headers,
  9221. ok: this.ok,
  9222. redirected: this.redirected
  9223. });
  9224. }
  9225. }
  9226. Body.mixIn(Response.prototype);
  9227. Object.defineProperties(Response.prototype, {
  9228. url: { enumerable: true },
  9229. status: { enumerable: true },
  9230. ok: { enumerable: true },
  9231. redirected: { enumerable: true },
  9232. statusText: { enumerable: true },
  9233. headers: { enumerable: true },
  9234. clone: { enumerable: true }
  9235. });
  9236. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  9237. value: 'Response',
  9238. writable: false,
  9239. enumerable: false,
  9240. configurable: true
  9241. });
  9242. const INTERNALS$2 = Symbol('Request internals');
  9243. const URL = Url.URL || whatwgUrl.URL;
  9244. // fix an issue where "format", "parse" aren't a named export for node <10
  9245. const parse_url = Url.parse;
  9246. const format_url = Url.format;
  9247. /**
  9248. * Wrapper around `new URL` to handle arbitrary URLs
  9249. *
  9250. * @param {string} urlStr
  9251. * @return {void}
  9252. */
  9253. function parseURL(urlStr) {
  9254. /*
  9255. Check whether the URL is absolute or not
  9256. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  9257. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  9258. */
  9259. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  9260. urlStr = new URL(urlStr).toString();
  9261. }
  9262. // Fallback to old implementation for arbitrary URLs
  9263. return parse_url(urlStr);
  9264. }
  9265. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  9266. /**
  9267. * Check if a value is an instance of Request.
  9268. *
  9269. * @param Mixed input
  9270. * @return Boolean
  9271. */
  9272. function isRequest(input) {
  9273. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  9274. }
  9275. function isAbortSignal(signal) {
  9276. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  9277. return !!(proto && proto.constructor.name === 'AbortSignal');
  9278. }
  9279. /**
  9280. * Request class
  9281. *
  9282. * @param Mixed input Url or Request instance
  9283. * @param Object init Custom options
  9284. * @return Void
  9285. */
  9286. class Request {
  9287. constructor(input) {
  9288. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9289. let parsedURL;
  9290. // normalize input
  9291. if (!isRequest(input)) {
  9292. if (input && input.href) {
  9293. // in order to support Node.js' Url objects; though WHATWG's URL objects
  9294. // will fall into this branch also (since their `toString()` will return
  9295. // `href` property anyway)
  9296. parsedURL = parseURL(input.href);
  9297. } else {
  9298. // coerce input to a string before attempting to parse
  9299. parsedURL = parseURL(`${input}`);
  9300. }
  9301. input = {};
  9302. } else {
  9303. parsedURL = parseURL(input.url);
  9304. }
  9305. let method = init.method || input.method || 'GET';
  9306. method = method.toUpperCase();
  9307. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  9308. throw new TypeError('Request with GET/HEAD method cannot have body');
  9309. }
  9310. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  9311. Body.call(this, inputBody, {
  9312. timeout: init.timeout || input.timeout || 0,
  9313. size: init.size || input.size || 0
  9314. });
  9315. const headers = new Headers(init.headers || input.headers || {});
  9316. if (inputBody != null && !headers.has('Content-Type')) {
  9317. const contentType = extractContentType(inputBody);
  9318. if (contentType) {
  9319. headers.append('Content-Type', contentType);
  9320. }
  9321. }
  9322. let signal = isRequest(input) ? input.signal : null;
  9323. if ('signal' in init) signal = init.signal;
  9324. if (signal != null && !isAbortSignal(signal)) {
  9325. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  9326. }
  9327. this[INTERNALS$2] = {
  9328. method,
  9329. redirect: init.redirect || input.redirect || 'follow',
  9330. headers,
  9331. parsedURL,
  9332. signal
  9333. };
  9334. // node-fetch-only options
  9335. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  9336. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  9337. this.counter = init.counter || input.counter || 0;
  9338. this.agent = init.agent || input.agent;
  9339. }
  9340. get method() {
  9341. return this[INTERNALS$2].method;
  9342. }
  9343. get url() {
  9344. return format_url(this[INTERNALS$2].parsedURL);
  9345. }
  9346. get headers() {
  9347. return this[INTERNALS$2].headers;
  9348. }
  9349. get redirect() {
  9350. return this[INTERNALS$2].redirect;
  9351. }
  9352. get signal() {
  9353. return this[INTERNALS$2].signal;
  9354. }
  9355. /**
  9356. * Clone this request
  9357. *
  9358. * @return Request
  9359. */
  9360. clone() {
  9361. return new Request(this);
  9362. }
  9363. }
  9364. Body.mixIn(Request.prototype);
  9365. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  9366. value: 'Request',
  9367. writable: false,
  9368. enumerable: false,
  9369. configurable: true
  9370. });
  9371. Object.defineProperties(Request.prototype, {
  9372. method: { enumerable: true },
  9373. url: { enumerable: true },
  9374. headers: { enumerable: true },
  9375. redirect: { enumerable: true },
  9376. clone: { enumerable: true },
  9377. signal: { enumerable: true }
  9378. });
  9379. /**
  9380. * Convert a Request to Node.js http request options.
  9381. *
  9382. * @param Request A Request instance
  9383. * @return Object The options object to be passed to http.request
  9384. */
  9385. function getNodeRequestOptions(request) {
  9386. const parsedURL = request[INTERNALS$2].parsedURL;
  9387. const headers = new Headers(request[INTERNALS$2].headers);
  9388. // fetch step 1.3
  9389. if (!headers.has('Accept')) {
  9390. headers.set('Accept', '*/*');
  9391. }
  9392. // Basic fetch
  9393. if (!parsedURL.protocol || !parsedURL.hostname) {
  9394. throw new TypeError('Only absolute URLs are supported');
  9395. }
  9396. if (!/^https?:$/.test(parsedURL.protocol)) {
  9397. throw new TypeError('Only HTTP(S) protocols are supported');
  9398. }
  9399. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  9400. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  9401. }
  9402. // HTTP-network-or-cache fetch steps 2.4-2.7
  9403. let contentLengthValue = null;
  9404. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  9405. contentLengthValue = '0';
  9406. }
  9407. if (request.body != null) {
  9408. const totalBytes = getTotalBytes(request);
  9409. if (typeof totalBytes === 'number') {
  9410. contentLengthValue = String(totalBytes);
  9411. }
  9412. }
  9413. if (contentLengthValue) {
  9414. headers.set('Content-Length', contentLengthValue);
  9415. }
  9416. // HTTP-network-or-cache fetch step 2.11
  9417. if (!headers.has('User-Agent')) {
  9418. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  9419. }
  9420. // HTTP-network-or-cache fetch step 2.15
  9421. if (request.compress && !headers.has('Accept-Encoding')) {
  9422. headers.set('Accept-Encoding', 'gzip,deflate');
  9423. }
  9424. let agent = request.agent;
  9425. if (typeof agent === 'function') {
  9426. agent = agent(parsedURL);
  9427. }
  9428. if (!headers.has('Connection') && !agent) {
  9429. headers.set('Connection', 'close');
  9430. }
  9431. // HTTP-network fetch step 4.2
  9432. // chunked encoding is handled by Node.js
  9433. return Object.assign({}, parsedURL, {
  9434. method: request.method,
  9435. headers: exportNodeCompatibleHeaders(headers),
  9436. agent
  9437. });
  9438. }
  9439. /**
  9440. * abort-error.js
  9441. *
  9442. * AbortError interface for cancelled requests
  9443. */
  9444. /**
  9445. * Create AbortError instance
  9446. *
  9447. * @param String message Error message for human
  9448. * @return AbortError
  9449. */
  9450. function AbortError(message) {
  9451. Error.call(this, message);
  9452. this.type = 'aborted';
  9453. this.message = message;
  9454. // hide custom error implementation details from end-users
  9455. Error.captureStackTrace(this, this.constructor);
  9456. }
  9457. AbortError.prototype = Object.create(Error.prototype);
  9458. AbortError.prototype.constructor = AbortError;
  9459. AbortError.prototype.name = 'AbortError';
  9460. const URL$1 = Url.URL || whatwgUrl.URL;
  9461. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  9462. const PassThrough$1 = Stream.PassThrough;
  9463. const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
  9464. const orig = new URL$1(original).hostname;
  9465. const dest = new URL$1(destination).hostname;
  9466. return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
  9467. };
  9468. /**
  9469. * Fetch function
  9470. *
  9471. * @param Mixed url Absolute url or Request instance
  9472. * @param Object opts Fetch options
  9473. * @return Promise
  9474. */
  9475. function fetch(url, opts) {
  9476. // allow custom promise
  9477. if (!fetch.Promise) {
  9478. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  9479. }
  9480. Body.Promise = fetch.Promise;
  9481. // wrap http.request into fetch
  9482. return new fetch.Promise(function (resolve, reject) {
  9483. // build request object
  9484. const request = new Request(url, opts);
  9485. const options = getNodeRequestOptions(request);
  9486. const send = (options.protocol === 'https:' ? https : http).request;
  9487. const signal = request.signal;
  9488. let response = null;
  9489. const abort = function abort() {
  9490. let error = new AbortError('The user aborted a request.');
  9491. reject(error);
  9492. if (request.body && request.body instanceof Stream.Readable) {
  9493. request.body.destroy(error);
  9494. }
  9495. if (!response || !response.body) return;
  9496. response.body.emit('error', error);
  9497. };
  9498. if (signal && signal.aborted) {
  9499. abort();
  9500. return;
  9501. }
  9502. const abortAndFinalize = function abortAndFinalize() {
  9503. abort();
  9504. finalize();
  9505. };
  9506. // send request
  9507. const req = send(options);
  9508. let reqTimeout;
  9509. if (signal) {
  9510. signal.addEventListener('abort', abortAndFinalize);
  9511. }
  9512. function finalize() {
  9513. req.abort();
  9514. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9515. clearTimeout(reqTimeout);
  9516. }
  9517. if (request.timeout) {
  9518. req.once('socket', function (socket) {
  9519. reqTimeout = setTimeout(function () {
  9520. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  9521. finalize();
  9522. }, request.timeout);
  9523. });
  9524. }
  9525. req.on('error', function (err) {
  9526. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  9527. finalize();
  9528. });
  9529. req.on('response', function (res) {
  9530. clearTimeout(reqTimeout);
  9531. const headers = createHeadersLenient(res.headers);
  9532. // HTTP fetch step 5
  9533. if (fetch.isRedirect(res.statusCode)) {
  9534. // HTTP fetch step 5.2
  9535. const location = headers.get('Location');
  9536. // HTTP fetch step 5.3
  9537. let locationURL = null;
  9538. try {
  9539. locationURL = location === null ? null : new URL$1(location, request.url).toString();
  9540. } catch (err) {
  9541. // error here can only be invalid URL in Location: header
  9542. // do not throw when options.redirect == manual
  9543. // let the user extract the errorneous redirect URL
  9544. if (request.redirect !== 'manual') {
  9545. reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
  9546. finalize();
  9547. return;
  9548. }
  9549. }
  9550. // HTTP fetch step 5.5
  9551. switch (request.redirect) {
  9552. case 'error':
  9553. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  9554. finalize();
  9555. return;
  9556. case 'manual':
  9557. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  9558. if (locationURL !== null) {
  9559. // handle corrupted header
  9560. try {
  9561. headers.set('Location', locationURL);
  9562. } catch (err) {
  9563. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  9564. reject(err);
  9565. }
  9566. }
  9567. break;
  9568. case 'follow':
  9569. // HTTP-redirect fetch step 2
  9570. if (locationURL === null) {
  9571. break;
  9572. }
  9573. // HTTP-redirect fetch step 5
  9574. if (request.counter >= request.follow) {
  9575. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  9576. finalize();
  9577. return;
  9578. }
  9579. // HTTP-redirect fetch step 6 (counter increment)
  9580. // Create a new Request object.
  9581. const requestOpts = {
  9582. headers: new Headers(request.headers),
  9583. follow: request.follow,
  9584. counter: request.counter + 1,
  9585. agent: request.agent,
  9586. compress: request.compress,
  9587. method: request.method,
  9588. body: request.body,
  9589. signal: request.signal,
  9590. timeout: request.timeout,
  9591. size: request.size
  9592. };
  9593. if (!isDomainOrSubdomain(request.url, locationURL)) {
  9594. for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
  9595. requestOpts.headers.delete(name);
  9596. }
  9597. }
  9598. // HTTP-redirect fetch step 9
  9599. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  9600. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  9601. finalize();
  9602. return;
  9603. }
  9604. // HTTP-redirect fetch step 11
  9605. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  9606. requestOpts.method = 'GET';
  9607. requestOpts.body = undefined;
  9608. requestOpts.headers.delete('content-length');
  9609. }
  9610. // HTTP-redirect fetch step 15
  9611. resolve(fetch(new Request(locationURL, requestOpts)));
  9612. finalize();
  9613. return;
  9614. }
  9615. }
  9616. // prepare response
  9617. res.once('end', function () {
  9618. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9619. });
  9620. let body = res.pipe(new PassThrough$1());
  9621. const response_options = {
  9622. url: request.url,
  9623. status: res.statusCode,
  9624. statusText: res.statusMessage,
  9625. headers: headers,
  9626. size: request.size,
  9627. timeout: request.timeout,
  9628. counter: request.counter
  9629. };
  9630. // HTTP-network fetch step 12.1.1.3
  9631. const codings = headers.get('Content-Encoding');
  9632. // HTTP-network fetch step 12.1.1.4: handle content codings
  9633. // in following scenarios we ignore compression support
  9634. // 1. compression support is disabled
  9635. // 2. HEAD request
  9636. // 3. no Content-Encoding header
  9637. // 4. no content response (204)
  9638. // 5. content not modified response (304)
  9639. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  9640. response = new Response(body, response_options);
  9641. resolve(response);
  9642. return;
  9643. }
  9644. // For Node v6+
  9645. // Be less strict when decoding compressed responses, since sometimes
  9646. // servers send slightly invalid responses that are still accepted
  9647. // by common browsers.
  9648. // Always using Z_SYNC_FLUSH is what cURL does.
  9649. const zlibOptions = {
  9650. flush: zlib.Z_SYNC_FLUSH,
  9651. finishFlush: zlib.Z_SYNC_FLUSH
  9652. };
  9653. // for gzip
  9654. if (codings == 'gzip' || codings == 'x-gzip') {
  9655. body = body.pipe(zlib.createGunzip(zlibOptions));
  9656. response = new Response(body, response_options);
  9657. resolve(response);
  9658. return;
  9659. }
  9660. // for deflate
  9661. if (codings == 'deflate' || codings == 'x-deflate') {
  9662. // handle the infamous raw deflate response from old servers
  9663. // a hack for old IIS and Apache servers
  9664. const raw = res.pipe(new PassThrough$1());
  9665. raw.once('data', function (chunk) {
  9666. // see http://stackoverflow.com/questions/37519828
  9667. if ((chunk[0] & 0x0F) === 0x08) {
  9668. body = body.pipe(zlib.createInflate());
  9669. } else {
  9670. body = body.pipe(zlib.createInflateRaw());
  9671. }
  9672. response = new Response(body, response_options);
  9673. resolve(response);
  9674. });
  9675. return;
  9676. }
  9677. // for br
  9678. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  9679. body = body.pipe(zlib.createBrotliDecompress());
  9680. response = new Response(body, response_options);
  9681. resolve(response);
  9682. return;
  9683. }
  9684. // otherwise, use response as-is
  9685. response = new Response(body, response_options);
  9686. resolve(response);
  9687. });
  9688. writeToStream(req, request);
  9689. });
  9690. }
  9691. /**
  9692. * Redirect code matching
  9693. *
  9694. * @param Number code Status code
  9695. * @return Boolean
  9696. */
  9697. fetch.isRedirect = function (code) {
  9698. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  9699. };
  9700. // expose Promise
  9701. fetch.Promise = global.Promise;
  9702. module.exports = exports = fetch;
  9703. Object.defineProperty(exports, "__esModule", { value: true });
  9704. exports.default = exports;
  9705. exports.Headers = Headers;
  9706. exports.Request = Request;
  9707. exports.Response = Response;
  9708. exports.FetchError = FetchError;
  9709. /***/ }),
  9710. /***/ 462:
  9711. /***/ (function(module) {
  9712. "use strict";
  9713. // See http://www.robvanderwoude.com/escapechars.php
  9714. const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
  9715. function escapeCommand(arg) {
  9716. // Escape meta chars
  9717. arg = arg.replace(metaCharsRegExp, '^$1');
  9718. return arg;
  9719. }
  9720. function escapeArgument(arg, doubleEscapeMetaChars) {
  9721. // Convert to string
  9722. arg = `${arg}`;
  9723. // Algorithm below is based on https://qntm.org/cmd
  9724. // Sequence of backslashes followed by a double quote:
  9725. // double up all the backslashes and escape the double quote
  9726. arg = arg.replace(/(\\*)"/g, '$1$1\\"');
  9727. // Sequence of backslashes followed by the end of the string
  9728. // (which will become a double quote later):
  9729. // double up all the backslashes
  9730. arg = arg.replace(/(\\*)$/, '$1$1');
  9731. // All other backslashes occur literally
  9732. // Quote the whole thing:
  9733. arg = `"${arg}"`;
  9734. // Escape meta chars
  9735. arg = arg.replace(metaCharsRegExp, '^$1');
  9736. // Double escape meta chars if necessary
  9737. if (doubleEscapeMetaChars) {
  9738. arg = arg.replace(metaCharsRegExp, '^$1');
  9739. }
  9740. return arg;
  9741. }
  9742. module.exports.command = escapeCommand;
  9743. module.exports.argument = escapeArgument;
  9744. /***/ }),
  9745. /***/ 463:
  9746. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9747. "use strict";
  9748. Object.defineProperty(exports, '__esModule', { value: true });
  9749. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  9750. var deprecation = __webpack_require__(692);
  9751. var once = _interopDefault(__webpack_require__(969));
  9752. const logOnce = once(deprecation => console.warn(deprecation));
  9753. /**
  9754. * Error with extra properties to help with debugging
  9755. */
  9756. class RequestError extends Error {
  9757. constructor(message, statusCode, options) {
  9758. super(message); // Maintains proper stack trace (only available on V8)
  9759. /* istanbul ignore next */
  9760. if (Error.captureStackTrace) {
  9761. Error.captureStackTrace(this, this.constructor);
  9762. }
  9763. this.name = "HttpError";
  9764. this.status = statusCode;
  9765. Object.defineProperty(this, "code", {
  9766. get() {
  9767. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  9768. return statusCode;
  9769. }
  9770. });
  9771. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  9772. const requestCopy = Object.assign({}, options.request);
  9773. if (options.request.headers.authorization) {
  9774. requestCopy.headers = Object.assign({}, options.request.headers, {
  9775. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  9776. });
  9777. }
  9778. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  9779. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  9780. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  9781. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  9782. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  9783. this.request = requestCopy;
  9784. }
  9785. }
  9786. exports.RequestError = RequestError;
  9787. //# sourceMappingURL=index.js.map
  9788. /***/ }),
  9789. /***/ 464:
  9790. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9791. "use strict";
  9792. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  9793. if (k2 === undefined) k2 = k;
  9794. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  9795. }) : (function(o, m, k, k2) {
  9796. if (k2 === undefined) k2 = k;
  9797. o[k2] = m[k];
  9798. }));
  9799. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  9800. Object.defineProperty(o, "default", { enumerable: true, value: v });
  9801. }) : function(o, v) {
  9802. o["default"] = v;
  9803. });
  9804. var __importStar = (this && this.__importStar) || function (mod) {
  9805. if (mod && mod.__esModule) return mod;
  9806. var result = {};
  9807. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  9808. __setModuleDefault(result, mod);
  9809. return result;
  9810. };
  9811. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  9812. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  9813. return new (P || (P = Promise))(function (resolve, reject) {
  9814. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  9815. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  9816. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  9817. step((generator = generator.apply(thisArg, _arguments || [])).next());
  9818. });
  9819. };
  9820. var __importDefault = (this && this.__importDefault) || function (mod) {
  9821. return (mod && mod.__esModule) ? mod : { "default": mod };
  9822. };
  9823. Object.defineProperty(exports, "__esModule", { value: true });
  9824. exports.getDefaultBranch = exports.downloadRepository = void 0;
  9825. const assert = __importStar(__webpack_require__(357));
  9826. const core = __importStar(__webpack_require__(470));
  9827. const fs = __importStar(__webpack_require__(747));
  9828. const io = __importStar(__webpack_require__(1));
  9829. const path = __importStar(__webpack_require__(622));
  9830. const retryHelper = __importStar(__webpack_require__(587));
  9831. const toolCache = __importStar(__webpack_require__(533));
  9832. const v4_1 = __importDefault(__webpack_require__(826));
  9833. const octokit_provider_1 = __webpack_require__(195);
  9834. const IS_WINDOWS = process.platform === 'win32';
  9835. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath, baseUrl) {
  9836. return __awaiter(this, void 0, void 0, function* () {
  9837. // Determine the default branch
  9838. if (!ref && !commit) {
  9839. core.info('Determining the default branch');
  9840. ref = yield getDefaultBranch(authToken, owner, repo, baseUrl);
  9841. }
  9842. // Download the archive
  9843. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9844. core.info('Downloading the archive');
  9845. return yield downloadArchive(authToken, owner, repo, ref, commit, baseUrl);
  9846. }));
  9847. // Write archive to disk
  9848. core.info('Writing archive to disk');
  9849. const uniqueId = (0, v4_1.default)();
  9850. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  9851. yield fs.promises.writeFile(archivePath, archiveData);
  9852. archiveData = Buffer.from(''); // Free memory
  9853. // Extract archive
  9854. core.info('Extracting the archive');
  9855. const extractPath = path.join(repositoryPath, uniqueId);
  9856. yield io.mkdirP(extractPath);
  9857. if (IS_WINDOWS) {
  9858. yield toolCache.extractZip(archivePath, extractPath);
  9859. }
  9860. else {
  9861. yield toolCache.extractTar(archivePath, extractPath);
  9862. }
  9863. yield io.rmRF(archivePath);
  9864. // Determine the path of the repository content. The archive contains
  9865. // a top-level folder and the repository content is inside.
  9866. const archiveFileNames = yield fs.promises.readdir(extractPath);
  9867. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  9868. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  9869. core.info(`Resolved version ${archiveVersion}`);
  9870. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  9871. // Move the files
  9872. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  9873. const sourcePath = path.join(tempRepositoryPath, fileName);
  9874. const targetPath = path.join(repositoryPath, fileName);
  9875. if (IS_WINDOWS) {
  9876. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  9877. }
  9878. else {
  9879. yield io.mv(sourcePath, targetPath);
  9880. }
  9881. }
  9882. yield io.rmRF(extractPath);
  9883. });
  9884. }
  9885. exports.downloadRepository = downloadRepository;
  9886. /**
  9887. * Looks up the default branch name
  9888. */
  9889. function getDefaultBranch(authToken, owner, repo, baseUrl) {
  9890. return __awaiter(this, void 0, void 0, function* () {
  9891. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9892. var _a;
  9893. core.info('Retrieving the default branch name');
  9894. const octokit = (0, octokit_provider_1.getOctokit)(authToken, { baseUrl: baseUrl });
  9895. let result;
  9896. try {
  9897. // Get the default branch from the repo info
  9898. const response = yield octokit.repos.get({ owner, repo });
  9899. result = response.data.default_branch;
  9900. assert.ok(result, 'default_branch cannot be empty');
  9901. }
  9902. catch (err) {
  9903. // Handle .wiki repo
  9904. if (((_a = err) === null || _a === void 0 ? void 0 : _a.status) === 404 &&
  9905. repo.toUpperCase().endsWith('.WIKI')) {
  9906. result = 'master';
  9907. }
  9908. // Otherwise error
  9909. else {
  9910. throw err;
  9911. }
  9912. }
  9913. // Print the default branch
  9914. core.info(`Default branch '${result}'`);
  9915. // Prefix with 'refs/heads'
  9916. if (!result.startsWith('refs/')) {
  9917. result = `refs/heads/${result}`;
  9918. }
  9919. return result;
  9920. }));
  9921. });
  9922. }
  9923. exports.getDefaultBranch = getDefaultBranch;
  9924. function downloadArchive(authToken, owner, repo, ref, commit, baseUrl) {
  9925. return __awaiter(this, void 0, void 0, function* () {
  9926. const octokit = (0, octokit_provider_1.getOctokit)(authToken, { baseUrl: baseUrl });
  9927. const params = {
  9928. owner: owner,
  9929. repo: repo,
  9930. archive_format: IS_WINDOWS ? 'zipball' : 'tarball',
  9931. ref: commit || ref
  9932. };
  9933. const response = yield octokit.repos.getArchiveLink(params);
  9934. if (response.status != 200) {
  9935. throw new Error(`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`);
  9936. }
  9937. return Buffer.from(response.data); // response.data is ArrayBuffer
  9938. });
  9939. }
  9940. /***/ }),
  9941. /***/ 469:
  9942. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9943. "use strict";
  9944. var __importStar = (this && this.__importStar) || function (mod) {
  9945. if (mod && mod.__esModule) return mod;
  9946. var result = {};
  9947. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  9948. result["default"] = mod;
  9949. return result;
  9950. };
  9951. Object.defineProperty(exports, "__esModule", { value: true });
  9952. // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
  9953. const graphql_1 = __webpack_require__(898);
  9954. const rest_1 = __webpack_require__(0);
  9955. const Context = __importStar(__webpack_require__(262));
  9956. const httpClient = __importStar(__webpack_require__(539));
  9957. // We need this in order to extend Octokit
  9958. rest_1.Octokit.prototype = new rest_1.Octokit();
  9959. exports.context = new Context.Context();
  9960. class GitHub extends rest_1.Octokit {
  9961. constructor(token, opts) {
  9962. super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
  9963. this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
  9964. }
  9965. /**
  9966. * Disambiguates the constructor overload parameters
  9967. */
  9968. static disambiguate(token, opts) {
  9969. return [
  9970. typeof token === 'string' ? token : '',
  9971. typeof token === 'object' ? token : opts || {}
  9972. ];
  9973. }
  9974. static getOctokitOptions(args) {
  9975. const token = args[0];
  9976. const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
  9977. // Base URL - GHES or Dotcom
  9978. options.baseUrl = options.baseUrl || this.getApiBaseUrl();
  9979. // Auth
  9980. const auth = GitHub.getAuthString(token, options);
  9981. if (auth) {
  9982. options.auth = auth;
  9983. }
  9984. // Proxy
  9985. const agent = GitHub.getProxyAgent(options.baseUrl, options);
  9986. if (agent) {
  9987. // Shallow clone - don't mutate the object provided by the caller
  9988. options.request = options.request ? Object.assign({}, options.request) : {};
  9989. // Set the agent
  9990. options.request.agent = agent;
  9991. }
  9992. return options;
  9993. }
  9994. static getGraphQL(args) {
  9995. const defaults = {};
  9996. defaults.baseUrl = this.getGraphQLBaseUrl();
  9997. const token = args[0];
  9998. const options = args[1];
  9999. // Authorization
  10000. const auth = this.getAuthString(token, options);
  10001. if (auth) {
  10002. defaults.headers = {
  10003. authorization: auth
  10004. };
  10005. }
  10006. // Proxy
  10007. const agent = GitHub.getProxyAgent(defaults.baseUrl, options);
  10008. if (agent) {
  10009. defaults.request = { agent };
  10010. }
  10011. return graphql_1.graphql.defaults(defaults);
  10012. }
  10013. static getAuthString(token, options) {
  10014. // Validate args
  10015. if (!token && !options.auth) {
  10016. throw new Error('Parameter token or opts.auth is required');
  10017. }
  10018. else if (token && options.auth) {
  10019. throw new Error('Parameters token and opts.auth may not both be specified');
  10020. }
  10021. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  10022. }
  10023. static getProxyAgent(destinationUrl, options) {
  10024. var _a;
  10025. if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
  10026. if (httpClient.getProxyUrl(destinationUrl)) {
  10027. const hc = new httpClient.HttpClient();
  10028. return hc.getAgent(destinationUrl);
  10029. }
  10030. }
  10031. return undefined;
  10032. }
  10033. static getApiBaseUrl() {
  10034. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  10035. }
  10036. static getGraphQLBaseUrl() {
  10037. let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql';
  10038. // Shouldn't be a trailing slash, but remove if so
  10039. if (url.endsWith('/')) {
  10040. url = url.substr(0, url.length - 1);
  10041. }
  10042. // Remove trailing "/graphql"
  10043. if (url.toUpperCase().endsWith('/GRAPHQL')) {
  10044. url = url.substr(0, url.length - '/graphql'.length);
  10045. }
  10046. return url;
  10047. }
  10048. }
  10049. exports.GitHub = GitHub;
  10050. //# sourceMappingURL=github.js.map
  10051. /***/ }),
  10052. /***/ 470:
  10053. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10054. "use strict";
  10055. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  10056. if (k2 === undefined) k2 = k;
  10057. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  10058. }) : (function(o, m, k, k2) {
  10059. if (k2 === undefined) k2 = k;
  10060. o[k2] = m[k];
  10061. }));
  10062. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  10063. Object.defineProperty(o, "default", { enumerable: true, value: v });
  10064. }) : function(o, v) {
  10065. o["default"] = v;
  10066. });
  10067. var __importStar = (this && this.__importStar) || function (mod) {
  10068. if (mod && mod.__esModule) return mod;
  10069. var result = {};
  10070. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  10071. __setModuleDefault(result, mod);
  10072. return result;
  10073. };
  10074. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  10075. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  10076. return new (P || (P = Promise))(function (resolve, reject) {
  10077. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10078. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  10079. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  10080. step((generator = generator.apply(thisArg, _arguments || [])).next());
  10081. });
  10082. };
  10083. Object.defineProperty(exports, "__esModule", { value: true });
  10084. exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
  10085. const command_1 = __webpack_require__(431);
  10086. const file_command_1 = __webpack_require__(102);
  10087. const utils_1 = __webpack_require__(82);
  10088. const os = __importStar(__webpack_require__(87));
  10089. const path = __importStar(__webpack_require__(622));
  10090. const oidc_utils_1 = __webpack_require__(742);
  10091. /**
  10092. * The code to exit an action
  10093. */
  10094. var ExitCode;
  10095. (function (ExitCode) {
  10096. /**
  10097. * A code indicating that the action was successful
  10098. */
  10099. ExitCode[ExitCode["Success"] = 0] = "Success";
  10100. /**
  10101. * A code indicating that the action was a failure
  10102. */
  10103. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  10104. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  10105. //-----------------------------------------------------------------------
  10106. // Variables
  10107. //-----------------------------------------------------------------------
  10108. /**
  10109. * Sets env variable for this action and future actions in the job
  10110. * @param name the name of the variable to set
  10111. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  10112. */
  10113. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10114. function exportVariable(name, val) {
  10115. const convertedVal = utils_1.toCommandValue(val);
  10116. process.env[name] = convertedVal;
  10117. const filePath = process.env['GITHUB_ENV'] || '';
  10118. if (filePath) {
  10119. return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
  10120. }
  10121. command_1.issueCommand('set-env', { name }, convertedVal);
  10122. }
  10123. exports.exportVariable = exportVariable;
  10124. /**
  10125. * Registers a secret which will get masked from logs
  10126. * @param secret value of the secret
  10127. */
  10128. function setSecret(secret) {
  10129. command_1.issueCommand('add-mask', {}, secret);
  10130. }
  10131. exports.setSecret = setSecret;
  10132. /**
  10133. * Prepends inputPath to the PATH (for this action and future actions)
  10134. * @param inputPath
  10135. */
  10136. function addPath(inputPath) {
  10137. const filePath = process.env['GITHUB_PATH'] || '';
  10138. if (filePath) {
  10139. file_command_1.issueFileCommand('PATH', inputPath);
  10140. }
  10141. else {
  10142. command_1.issueCommand('add-path', {}, inputPath);
  10143. }
  10144. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  10145. }
  10146. exports.addPath = addPath;
  10147. /**
  10148. * Gets the value of an input.
  10149. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
  10150. * Returns an empty string if the value is not defined.
  10151. *
  10152. * @param name name of the input to get
  10153. * @param options optional. See InputOptions.
  10154. * @returns string
  10155. */
  10156. function getInput(name, options) {
  10157. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  10158. if (options && options.required && !val) {
  10159. throw new Error(`Input required and not supplied: ${name}`);
  10160. }
  10161. if (options && options.trimWhitespace === false) {
  10162. return val;
  10163. }
  10164. return val.trim();
  10165. }
  10166. exports.getInput = getInput;
  10167. /**
  10168. * Gets the values of an multiline input. Each value is also trimmed.
  10169. *
  10170. * @param name name of the input to get
  10171. * @param options optional. See InputOptions.
  10172. * @returns string[]
  10173. *
  10174. */
  10175. function getMultilineInput(name, options) {
  10176. const inputs = getInput(name, options)
  10177. .split('\n')
  10178. .filter(x => x !== '');
  10179. if (options && options.trimWhitespace === false) {
  10180. return inputs;
  10181. }
  10182. return inputs.map(input => input.trim());
  10183. }
  10184. exports.getMultilineInput = getMultilineInput;
  10185. /**
  10186. * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
  10187. * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
  10188. * The return value is also in boolean type.
  10189. * ref: https://yaml.org/spec/1.2/spec.html#id2804923
  10190. *
  10191. * @param name name of the input to get
  10192. * @param options optional. See InputOptions.
  10193. * @returns boolean
  10194. */
  10195. function getBooleanInput(name, options) {
  10196. const trueValue = ['true', 'True', 'TRUE'];
  10197. const falseValue = ['false', 'False', 'FALSE'];
  10198. const val = getInput(name, options);
  10199. if (trueValue.includes(val))
  10200. return true;
  10201. if (falseValue.includes(val))
  10202. return false;
  10203. throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
  10204. `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
  10205. }
  10206. exports.getBooleanInput = getBooleanInput;
  10207. /**
  10208. * Sets the value of an output.
  10209. *
  10210. * @param name name of the output to set
  10211. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  10212. */
  10213. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10214. function setOutput(name, value) {
  10215. const filePath = process.env['GITHUB_OUTPUT'] || '';
  10216. if (filePath) {
  10217. return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
  10218. }
  10219. process.stdout.write(os.EOL);
  10220. command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
  10221. }
  10222. exports.setOutput = setOutput;
  10223. /**
  10224. * Enables or disables the echoing of commands into stdout for the rest of the step.
  10225. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  10226. *
  10227. */
  10228. function setCommandEcho(enabled) {
  10229. command_1.issue('echo', enabled ? 'on' : 'off');
  10230. }
  10231. exports.setCommandEcho = setCommandEcho;
  10232. //-----------------------------------------------------------------------
  10233. // Results
  10234. //-----------------------------------------------------------------------
  10235. /**
  10236. * Sets the action status to failed.
  10237. * When the action exits it will be with an exit code of 1
  10238. * @param message add error issue message
  10239. */
  10240. function setFailed(message) {
  10241. process.exitCode = ExitCode.Failure;
  10242. error(message);
  10243. }
  10244. exports.setFailed = setFailed;
  10245. //-----------------------------------------------------------------------
  10246. // Logging Commands
  10247. //-----------------------------------------------------------------------
  10248. /**
  10249. * Gets whether Actions Step Debug is on or not
  10250. */
  10251. function isDebug() {
  10252. return process.env['RUNNER_DEBUG'] === '1';
  10253. }
  10254. exports.isDebug = isDebug;
  10255. /**
  10256. * Writes debug message to user log
  10257. * @param message debug message
  10258. */
  10259. function debug(message) {
  10260. command_1.issueCommand('debug', {}, message);
  10261. }
  10262. exports.debug = debug;
  10263. /**
  10264. * Adds an error issue
  10265. * @param message error issue message. Errors will be converted to string via toString()
  10266. * @param properties optional properties to add to the annotation.
  10267. */
  10268. function error(message, properties = {}) {
  10269. command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10270. }
  10271. exports.error = error;
  10272. /**
  10273. * Adds a warning issue
  10274. * @param message warning issue message. Errors will be converted to string via toString()
  10275. * @param properties optional properties to add to the annotation.
  10276. */
  10277. function warning(message, properties = {}) {
  10278. command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10279. }
  10280. exports.warning = warning;
  10281. /**
  10282. * Adds a notice issue
  10283. * @param message notice issue message. Errors will be converted to string via toString()
  10284. * @param properties optional properties to add to the annotation.
  10285. */
  10286. function notice(message, properties = {}) {
  10287. command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10288. }
  10289. exports.notice = notice;
  10290. /**
  10291. * Writes info to log with console.log.
  10292. * @param message info message
  10293. */
  10294. function info(message) {
  10295. process.stdout.write(message + os.EOL);
  10296. }
  10297. exports.info = info;
  10298. /**
  10299. * Begin an output group.
  10300. *
  10301. * Output until the next `groupEnd` will be foldable in this group
  10302. *
  10303. * @param name The name of the output group
  10304. */
  10305. function startGroup(name) {
  10306. command_1.issue('group', name);
  10307. }
  10308. exports.startGroup = startGroup;
  10309. /**
  10310. * End an output group.
  10311. */
  10312. function endGroup() {
  10313. command_1.issue('endgroup');
  10314. }
  10315. exports.endGroup = endGroup;
  10316. /**
  10317. * Wrap an asynchronous function call in a group.
  10318. *
  10319. * Returns the same type as the function itself.
  10320. *
  10321. * @param name The name of the group
  10322. * @param fn The function to wrap in the group
  10323. */
  10324. function group(name, fn) {
  10325. return __awaiter(this, void 0, void 0, function* () {
  10326. startGroup(name);
  10327. let result;
  10328. try {
  10329. result = yield fn();
  10330. }
  10331. finally {
  10332. endGroup();
  10333. }
  10334. return result;
  10335. });
  10336. }
  10337. exports.group = group;
  10338. //-----------------------------------------------------------------------
  10339. // Wrapper action state
  10340. //-----------------------------------------------------------------------
  10341. /**
  10342. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  10343. *
  10344. * @param name name of the state to store
  10345. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  10346. */
  10347. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10348. function saveState(name, value) {
  10349. const filePath = process.env['GITHUB_STATE'] || '';
  10350. if (filePath) {
  10351. return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
  10352. }
  10353. command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
  10354. }
  10355. exports.saveState = saveState;
  10356. /**
  10357. * Gets the value of an state set by this action's main execution.
  10358. *
  10359. * @param name name of the state to get
  10360. * @returns string
  10361. */
  10362. function getState(name) {
  10363. return process.env[`STATE_${name}`] || '';
  10364. }
  10365. exports.getState = getState;
  10366. function getIDToken(aud) {
  10367. return __awaiter(this, void 0, void 0, function* () {
  10368. return yield oidc_utils_1.OidcClient.getIDToken(aud);
  10369. });
  10370. }
  10371. exports.getIDToken = getIDToken;
  10372. /**
  10373. * Summary exports
  10374. */
  10375. var summary_1 = __webpack_require__(665);
  10376. Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } });
  10377. /**
  10378. * @deprecated use core.summary
  10379. */
  10380. var summary_2 = __webpack_require__(665);
  10381. Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } });
  10382. /**
  10383. * Path exports
  10384. */
  10385. var path_utils_1 = __webpack_require__(573);
  10386. Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });
  10387. Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });
  10388. Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });
  10389. //# sourceMappingURL=core.js.map
  10390. /***/ }),
  10391. /***/ 471:
  10392. /***/ (function(module, __unusedexports, __webpack_require__) {
  10393. module.exports = authenticationBeforeRequest;
  10394. const btoa = __webpack_require__(675);
  10395. const uniq = __webpack_require__(126);
  10396. function authenticationBeforeRequest(state, options) {
  10397. if (!state.auth.type) {
  10398. return;
  10399. }
  10400. if (state.auth.type === "basic") {
  10401. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  10402. options.headers.authorization = `Basic ${hash}`;
  10403. return;
  10404. }
  10405. if (state.auth.type === "token") {
  10406. options.headers.authorization = `token ${state.auth.token}`;
  10407. return;
  10408. }
  10409. if (state.auth.type === "app") {
  10410. options.headers.authorization = `Bearer ${state.auth.token}`;
  10411. const acceptHeaders = options.headers.accept
  10412. .split(",")
  10413. .concat("application/vnd.github.machine-man-preview+json");
  10414. options.headers.accept = uniq(acceptHeaders)
  10415. .filter(Boolean)
  10416. .join(",");
  10417. return;
  10418. }
  10419. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  10420. if (state.auth.token) {
  10421. options.url += `access_token=${encodeURIComponent(state.auth.token)}`;
  10422. return;
  10423. }
  10424. const key = encodeURIComponent(state.auth.key);
  10425. const secret = encodeURIComponent(state.auth.secret);
  10426. options.url += `client_id=${key}&client_secret=${secret}`;
  10427. }
  10428. /***/ }),
  10429. /***/ 482:
  10430. /***/ (function(module) {
  10431. module.exports = [[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]];
  10432. /***/ }),
  10433. /***/ 489:
  10434. /***/ (function(module, __unusedexports, __webpack_require__) {
  10435. "use strict";
  10436. const path = __webpack_require__(622);
  10437. const which = __webpack_require__(814);
  10438. const pathKey = __webpack_require__(39)();
  10439. function resolveCommandAttempt(parsed, withoutPathExt) {
  10440. const cwd = process.cwd();
  10441. const hasCustomCwd = parsed.options.cwd != null;
  10442. // If a custom `cwd` was specified, we need to change the process cwd
  10443. // because `which` will do stat calls but does not support a custom cwd
  10444. if (hasCustomCwd) {
  10445. try {
  10446. process.chdir(parsed.options.cwd);
  10447. } catch (err) {
  10448. /* Empty */
  10449. }
  10450. }
  10451. let resolved;
  10452. try {
  10453. resolved = which.sync(parsed.command, {
  10454. path: (parsed.options.env || process.env)[pathKey],
  10455. pathExt: withoutPathExt ? path.delimiter : undefined,
  10456. });
  10457. } catch (e) {
  10458. /* Empty */
  10459. } finally {
  10460. process.chdir(cwd);
  10461. }
  10462. // If we successfully resolved, ensure that an absolute path is returned
  10463. // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
  10464. if (resolved) {
  10465. resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
  10466. }
  10467. return resolved;
  10468. }
  10469. function resolveCommand(parsed) {
  10470. return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
  10471. }
  10472. module.exports = resolveCommand;
  10473. /***/ }),
  10474. /***/ 497:
  10475. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10476. "use strict";
  10477. Object.defineProperty(exports, '__esModule', { value: true });
  10478. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  10479. var deprecation = __webpack_require__(692);
  10480. var once = _interopDefault(__webpack_require__(969));
  10481. const logOnce = once(deprecation => console.warn(deprecation));
  10482. /**
  10483. * Error with extra properties to help with debugging
  10484. */
  10485. class RequestError extends Error {
  10486. constructor(message, statusCode, options) {
  10487. super(message); // Maintains proper stack trace (only available on V8)
  10488. /* istanbul ignore next */
  10489. if (Error.captureStackTrace) {
  10490. Error.captureStackTrace(this, this.constructor);
  10491. }
  10492. this.name = "HttpError";
  10493. this.status = statusCode;
  10494. Object.defineProperty(this, "code", {
  10495. get() {
  10496. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  10497. return statusCode;
  10498. }
  10499. });
  10500. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  10501. const requestCopy = Object.assign({}, options.request);
  10502. if (options.request.headers.authorization) {
  10503. requestCopy.headers = Object.assign({}, options.request.headers, {
  10504. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  10505. });
  10506. }
  10507. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  10508. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  10509. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  10510. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  10511. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  10512. this.request = requestCopy;
  10513. }
  10514. }
  10515. exports.RequestError = RequestError;
  10516. //# sourceMappingURL=index.js.map
  10517. /***/ }),
  10518. /***/ 501:
  10519. /***/ (function(module) {
  10520. module.exports = register
  10521. function register (state, name, method, options) {
  10522. if (typeof method !== 'function') {
  10523. throw new Error('method for before hook must be a function')
  10524. }
  10525. if (!options) {
  10526. options = {}
  10527. }
  10528. if (Array.isArray(name)) {
  10529. return name.reverse().reduce(function (callback, name) {
  10530. return register.bind(null, state, name, callback, options)
  10531. }, method)()
  10532. }
  10533. return Promise.resolve()
  10534. .then(function () {
  10535. if (!state.registry[name]) {
  10536. return method(options)
  10537. }
  10538. return (state.registry[name]).reduce(function (method, registered) {
  10539. return registered.hook.bind(null, method, options)
  10540. }, method)()
  10541. })
  10542. }
  10543. /***/ }),
  10544. /***/ 506:
  10545. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10546. "use strict";
  10547. Object.defineProperty(exports, "__esModule", {
  10548. value: true
  10549. });
  10550. exports.default = rng;
  10551. var _crypto = _interopRequireDefault(__webpack_require__(417));
  10552. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10553. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  10554. let poolPtr = rnds8Pool.length;
  10555. function rng() {
  10556. if (poolPtr > rnds8Pool.length - 16) {
  10557. _crypto.default.randomFillSync(rnds8Pool);
  10558. poolPtr = 0;
  10559. }
  10560. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  10561. }
  10562. /***/ }),
  10563. /***/ 510:
  10564. /***/ (function(module) {
  10565. module.exports = addHook
  10566. function addHook (state, kind, name, hook) {
  10567. var orig = hook
  10568. if (!state.registry[name]) {
  10569. state.registry[name] = []
  10570. }
  10571. if (kind === 'before') {
  10572. hook = function (method, options) {
  10573. return Promise.resolve()
  10574. .then(orig.bind(null, options))
  10575. .then(method.bind(null, options))
  10576. }
  10577. }
  10578. if (kind === 'after') {
  10579. hook = function (method, options) {
  10580. var result
  10581. return Promise.resolve()
  10582. .then(method.bind(null, options))
  10583. .then(function (result_) {
  10584. result = result_
  10585. return orig(result, options)
  10586. })
  10587. .then(function () {
  10588. return result
  10589. })
  10590. }
  10591. }
  10592. if (kind === 'error') {
  10593. hook = function (method, options) {
  10594. return Promise.resolve()
  10595. .then(method.bind(null, options))
  10596. .catch(function (error) {
  10597. return orig(error, options)
  10598. })
  10599. }
  10600. }
  10601. state.registry[name].push({
  10602. hook: hook,
  10603. orig: orig
  10604. })
  10605. }
  10606. /***/ }),
  10607. /***/ 523:
  10608. /***/ (function(module, __unusedexports, __webpack_require__) {
  10609. var register = __webpack_require__(501)
  10610. var addHook = __webpack_require__(510)
  10611. var removeHook = __webpack_require__(763)
  10612. // bind with array of arguments: https://stackoverflow.com/a/21792913
  10613. var bind = Function.bind
  10614. var bindable = bind.bind(bind)
  10615. function bindApi (hook, state, name) {
  10616. var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
  10617. hook.api = { remove: removeHookRef }
  10618. hook.remove = removeHookRef
  10619. ;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
  10620. var args = name ? [state, kind, name] : [state, kind]
  10621. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
  10622. })
  10623. }
  10624. function HookSingular () {
  10625. var singularHookName = 'h'
  10626. var singularHookState = {
  10627. registry: {}
  10628. }
  10629. var singularHook = register.bind(null, singularHookState, singularHookName)
  10630. bindApi(singularHook, singularHookState, singularHookName)
  10631. return singularHook
  10632. }
  10633. function HookCollection () {
  10634. var state = {
  10635. registry: {}
  10636. }
  10637. var hook = register.bind(null, state)
  10638. bindApi(hook, state)
  10639. return hook
  10640. }
  10641. var collectionHookDeprecationMessageDisplayed = false
  10642. function Hook () {
  10643. if (!collectionHookDeprecationMessageDisplayed) {
  10644. console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
  10645. collectionHookDeprecationMessageDisplayed = true
  10646. }
  10647. return HookCollection()
  10648. }
  10649. Hook.Singular = HookSingular.bind()
  10650. Hook.Collection = HookCollection.bind()
  10651. module.exports = Hook
  10652. // expose constructors as a named property for TypeScript
  10653. module.exports.Hook = Hook
  10654. module.exports.Singular = Hook.Singular
  10655. module.exports.Collection = Hook.Collection
  10656. /***/ }),
  10657. /***/ 525:
  10658. /***/ (function(__unusedmodule, exports) {
  10659. "use strict";
  10660. Object.defineProperty(exports, "__esModule", {
  10661. value: true
  10662. });
  10663. exports.default = void 0;
  10664. var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
  10665. exports.default = _default;
  10666. /***/ }),
  10667. /***/ 528:
  10668. /***/ (function(__unusedmodule, exports) {
  10669. "use strict";
  10670. Object.defineProperty(exports, "__esModule", { value: true });
  10671. exports.escape = void 0;
  10672. function escape(value) {
  10673. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  10674. return `\\${x}`;
  10675. });
  10676. }
  10677. exports.escape = escape;
  10678. /***/ }),
  10679. /***/ 529:
  10680. /***/ (function(module, __unusedexports, __webpack_require__) {
  10681. const factory = __webpack_require__(47);
  10682. module.exports = factory();
  10683. /***/ }),
  10684. /***/ 533:
  10685. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10686. "use strict";
  10687. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  10688. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  10689. return new (P || (P = Promise))(function (resolve, reject) {
  10690. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10691. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  10692. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  10693. step((generator = generator.apply(thisArg, _arguments || [])).next());
  10694. });
  10695. };
  10696. Object.defineProperty(exports, "__esModule", { value: true });
  10697. const core = __webpack_require__(470);
  10698. const io = __webpack_require__(667);
  10699. const fs = __webpack_require__(747);
  10700. const os = __webpack_require__(87);
  10701. const path = __webpack_require__(622);
  10702. const httpm = __webpack_require__(874);
  10703. const semver = __webpack_require__(656);
  10704. const uuidV4 = __webpack_require__(826);
  10705. const exec_1 = __webpack_require__(986);
  10706. const assert_1 = __webpack_require__(357);
  10707. class HTTPError extends Error {
  10708. constructor(httpStatusCode) {
  10709. super(`Unexpected HTTP response: ${httpStatusCode}`);
  10710. this.httpStatusCode = httpStatusCode;
  10711. Object.setPrototypeOf(this, new.target.prototype);
  10712. }
  10713. }
  10714. exports.HTTPError = HTTPError;
  10715. const IS_WINDOWS = process.platform === 'win32';
  10716. const userAgent = 'actions/tool-cache';
  10717. // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
  10718. let tempDirectory = process.env['RUNNER_TEMP'] || '';
  10719. let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
  10720. // If directories not found, place them in common temp locations
  10721. if (!tempDirectory || !cacheRoot) {
  10722. let baseLocation;
  10723. if (IS_WINDOWS) {
  10724. // On windows use the USERPROFILE env variable
  10725. baseLocation = process.env['USERPROFILE'] || 'C:\\';
  10726. }
  10727. else {
  10728. if (process.platform === 'darwin') {
  10729. baseLocation = '/Users';
  10730. }
  10731. else {
  10732. baseLocation = '/home';
  10733. }
  10734. }
  10735. if (!tempDirectory) {
  10736. tempDirectory = path.join(baseLocation, 'actions', 'temp');
  10737. }
  10738. if (!cacheRoot) {
  10739. cacheRoot = path.join(baseLocation, 'actions', 'cache');
  10740. }
  10741. }
  10742. /**
  10743. * Download a tool from an url and stream it into a file
  10744. *
  10745. * @param url url of tool to download
  10746. * @returns path to downloaded tool
  10747. */
  10748. function downloadTool(url) {
  10749. return __awaiter(this, void 0, void 0, function* () {
  10750. // Wrap in a promise so that we can resolve from within stream callbacks
  10751. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  10752. try {
  10753. const http = new httpm.HttpClient(userAgent, [], {
  10754. allowRetries: true,
  10755. maxRetries: 3
  10756. });
  10757. const destPath = path.join(tempDirectory, uuidV4());
  10758. yield io.mkdirP(tempDirectory);
  10759. core.debug(`Downloading ${url}`);
  10760. core.debug(`Downloading ${destPath}`);
  10761. if (fs.existsSync(destPath)) {
  10762. throw new Error(`Destination file path ${destPath} already exists`);
  10763. }
  10764. const response = yield http.get(url);
  10765. if (response.message.statusCode !== 200) {
  10766. const err = new HTTPError(response.message.statusCode);
  10767. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10768. throw err;
  10769. }
  10770. const file = fs.createWriteStream(destPath);
  10771. file.on('open', () => __awaiter(this, void 0, void 0, function* () {
  10772. try {
  10773. const stream = response.message.pipe(file);
  10774. stream.on('close', () => {
  10775. core.debug('download complete');
  10776. resolve(destPath);
  10777. });
  10778. }
  10779. catch (err) {
  10780. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10781. reject(err);
  10782. }
  10783. }));
  10784. file.on('error', err => {
  10785. file.end();
  10786. reject(err);
  10787. });
  10788. }
  10789. catch (err) {
  10790. reject(err);
  10791. }
  10792. }));
  10793. });
  10794. }
  10795. exports.downloadTool = downloadTool;
  10796. /**
  10797. * Extract a .7z file
  10798. *
  10799. * @param file path to the .7z file
  10800. * @param dest destination directory. Optional.
  10801. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  10802. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  10803. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  10804. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  10805. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  10806. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  10807. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  10808. * to 7zr.exe can be pass to this function.
  10809. * @returns path to the destination directory
  10810. */
  10811. function extract7z(file, dest, _7zPath) {
  10812. return __awaiter(this, void 0, void 0, function* () {
  10813. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  10814. assert_1.ok(file, 'parameter "file" is required');
  10815. dest = dest || (yield _createExtractFolder(dest));
  10816. const originalCwd = process.cwd();
  10817. process.chdir(dest);
  10818. if (_7zPath) {
  10819. try {
  10820. const args = [
  10821. 'x',
  10822. '-bb1',
  10823. '-bd',
  10824. '-sccUTF-8',
  10825. file
  10826. ];
  10827. const options = {
  10828. silent: true
  10829. };
  10830. yield exec_1.exec(`"${_7zPath}"`, args, options);
  10831. }
  10832. finally {
  10833. process.chdir(originalCwd);
  10834. }
  10835. }
  10836. else {
  10837. const escapedScript = path
  10838. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  10839. .replace(/'/g, "''")
  10840. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10841. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10842. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10843. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  10844. const args = [
  10845. '-NoLogo',
  10846. '-Sta',
  10847. '-NoProfile',
  10848. '-NonInteractive',
  10849. '-ExecutionPolicy',
  10850. 'Unrestricted',
  10851. '-Command',
  10852. command
  10853. ];
  10854. const options = {
  10855. silent: true
  10856. };
  10857. try {
  10858. const powershellPath = yield io.which('powershell', true);
  10859. yield exec_1.exec(`"${powershellPath}"`, args, options);
  10860. }
  10861. finally {
  10862. process.chdir(originalCwd);
  10863. }
  10864. }
  10865. return dest;
  10866. });
  10867. }
  10868. exports.extract7z = extract7z;
  10869. /**
  10870. * Extract a tar
  10871. *
  10872. * @param file path to the tar
  10873. * @param dest destination directory. Optional.
  10874. * @param flags flags for the tar. Optional.
  10875. * @returns path to the destination directory
  10876. */
  10877. function extractTar(file, dest, flags = 'xz') {
  10878. return __awaiter(this, void 0, void 0, function* () {
  10879. if (!file) {
  10880. throw new Error("parameter 'file' is required");
  10881. }
  10882. dest = dest || (yield _createExtractFolder(dest));
  10883. const tarPath = yield io.which('tar', true);
  10884. yield exec_1.exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file]);
  10885. return dest;
  10886. });
  10887. }
  10888. exports.extractTar = extractTar;
  10889. /**
  10890. * Extract a zip
  10891. *
  10892. * @param file path to the zip
  10893. * @param dest destination directory. Optional.
  10894. * @returns path to the destination directory
  10895. */
  10896. function extractZip(file, dest) {
  10897. return __awaiter(this, void 0, void 0, function* () {
  10898. if (!file) {
  10899. throw new Error("parameter 'file' is required");
  10900. }
  10901. dest = dest || (yield _createExtractFolder(dest));
  10902. if (IS_WINDOWS) {
  10903. yield extractZipWin(file, dest);
  10904. }
  10905. else {
  10906. yield extractZipNix(file, dest);
  10907. }
  10908. return dest;
  10909. });
  10910. }
  10911. exports.extractZip = extractZip;
  10912. function extractZipWin(file, dest) {
  10913. return __awaiter(this, void 0, void 0, function* () {
  10914. // build the powershell command
  10915. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10916. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10917. const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
  10918. // run powershell
  10919. const powershellPath = yield io.which('powershell');
  10920. const args = [
  10921. '-NoLogo',
  10922. '-Sta',
  10923. '-NoProfile',
  10924. '-NonInteractive',
  10925. '-ExecutionPolicy',
  10926. 'Unrestricted',
  10927. '-Command',
  10928. command
  10929. ];
  10930. yield exec_1.exec(`"${powershellPath}"`, args);
  10931. });
  10932. }
  10933. function extractZipNix(file, dest) {
  10934. return __awaiter(this, void 0, void 0, function* () {
  10935. const unzipPath = yield io.which('unzip');
  10936. yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
  10937. });
  10938. }
  10939. /**
  10940. * Caches a directory and installs it into the tool cacheDir
  10941. *
  10942. * @param sourceDir the directory to cache into tools
  10943. * @param tool tool name
  10944. * @param version version of the tool. semver format
  10945. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10946. */
  10947. function cacheDir(sourceDir, tool, version, arch) {
  10948. return __awaiter(this, void 0, void 0, function* () {
  10949. version = semver.clean(version) || version;
  10950. arch = arch || os.arch();
  10951. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10952. core.debug(`source dir: ${sourceDir}`);
  10953. if (!fs.statSync(sourceDir).isDirectory()) {
  10954. throw new Error('sourceDir is not a directory');
  10955. }
  10956. // Create the tool dir
  10957. const destPath = yield _createToolPath(tool, version, arch);
  10958. // copy each child item. do not move. move can fail on Windows
  10959. // due to anti-virus software having an open handle on a file.
  10960. for (const itemName of fs.readdirSync(sourceDir)) {
  10961. const s = path.join(sourceDir, itemName);
  10962. yield io.cp(s, destPath, { recursive: true });
  10963. }
  10964. // write .complete
  10965. _completeToolPath(tool, version, arch);
  10966. return destPath;
  10967. });
  10968. }
  10969. exports.cacheDir = cacheDir;
  10970. /**
  10971. * Caches a downloaded file (GUID) and installs it
  10972. * into the tool cache with a given targetName
  10973. *
  10974. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  10975. * @param targetFile the name of the file name in the tools directory
  10976. * @param tool tool name
  10977. * @param version version of the tool. semver format
  10978. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10979. */
  10980. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  10981. return __awaiter(this, void 0, void 0, function* () {
  10982. version = semver.clean(version) || version;
  10983. arch = arch || os.arch();
  10984. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10985. core.debug(`source file: ${sourceFile}`);
  10986. if (!fs.statSync(sourceFile).isFile()) {
  10987. throw new Error('sourceFile is not a file');
  10988. }
  10989. // create the tool dir
  10990. const destFolder = yield _createToolPath(tool, version, arch);
  10991. // copy instead of move. move can fail on Windows due to
  10992. // anti-virus software having an open handle on a file.
  10993. const destPath = path.join(destFolder, targetFile);
  10994. core.debug(`destination file ${destPath}`);
  10995. yield io.cp(sourceFile, destPath);
  10996. // write .complete
  10997. _completeToolPath(tool, version, arch);
  10998. return destFolder;
  10999. });
  11000. }
  11001. exports.cacheFile = cacheFile;
  11002. /**
  11003. * Finds the path to a tool version in the local installed tool cache
  11004. *
  11005. * @param toolName name of the tool
  11006. * @param versionSpec version of the tool
  11007. * @param arch optional arch. defaults to arch of computer
  11008. */
  11009. function find(toolName, versionSpec, arch) {
  11010. if (!toolName) {
  11011. throw new Error('toolName parameter is required');
  11012. }
  11013. if (!versionSpec) {
  11014. throw new Error('versionSpec parameter is required');
  11015. }
  11016. arch = arch || os.arch();
  11017. // attempt to resolve an explicit version
  11018. if (!_isExplicitVersion(versionSpec)) {
  11019. const localVersions = findAllVersions(toolName, arch);
  11020. const match = _evaluateVersions(localVersions, versionSpec);
  11021. versionSpec = match;
  11022. }
  11023. // check for the explicit version in the cache
  11024. let toolPath = '';
  11025. if (versionSpec) {
  11026. versionSpec = semver.clean(versionSpec) || '';
  11027. const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
  11028. core.debug(`checking cache: ${cachePath}`);
  11029. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  11030. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  11031. toolPath = cachePath;
  11032. }
  11033. else {
  11034. core.debug('not found');
  11035. }
  11036. }
  11037. return toolPath;
  11038. }
  11039. exports.find = find;
  11040. /**
  11041. * Finds the paths to all versions of a tool that are installed in the local tool cache
  11042. *
  11043. * @param toolName name of the tool
  11044. * @param arch optional arch. defaults to arch of computer
  11045. */
  11046. function findAllVersions(toolName, arch) {
  11047. const versions = [];
  11048. arch = arch || os.arch();
  11049. const toolPath = path.join(cacheRoot, toolName);
  11050. if (fs.existsSync(toolPath)) {
  11051. const children = fs.readdirSync(toolPath);
  11052. for (const child of children) {
  11053. if (_isExplicitVersion(child)) {
  11054. const fullPath = path.join(toolPath, child, arch || '');
  11055. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  11056. versions.push(child);
  11057. }
  11058. }
  11059. }
  11060. }
  11061. return versions;
  11062. }
  11063. exports.findAllVersions = findAllVersions;
  11064. function _createExtractFolder(dest) {
  11065. return __awaiter(this, void 0, void 0, function* () {
  11066. if (!dest) {
  11067. // create a temp dir
  11068. dest = path.join(tempDirectory, uuidV4());
  11069. }
  11070. yield io.mkdirP(dest);
  11071. return dest;
  11072. });
  11073. }
  11074. function _createToolPath(tool, version, arch) {
  11075. return __awaiter(this, void 0, void 0, function* () {
  11076. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  11077. core.debug(`destination ${folderPath}`);
  11078. const markerPath = `${folderPath}.complete`;
  11079. yield io.rmRF(folderPath);
  11080. yield io.rmRF(markerPath);
  11081. yield io.mkdirP(folderPath);
  11082. return folderPath;
  11083. });
  11084. }
  11085. function _completeToolPath(tool, version, arch) {
  11086. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  11087. const markerPath = `${folderPath}.complete`;
  11088. fs.writeFileSync(markerPath, '');
  11089. core.debug('finished caching tool');
  11090. }
  11091. function _isExplicitVersion(versionSpec) {
  11092. const c = semver.clean(versionSpec) || '';
  11093. core.debug(`isExplicit: ${c}`);
  11094. const valid = semver.valid(c) != null;
  11095. core.debug(`explicit? ${valid}`);
  11096. return valid;
  11097. }
  11098. function _evaluateVersions(versions, versionSpec) {
  11099. let version = '';
  11100. core.debug(`evaluating ${versions.length} versions`);
  11101. versions = versions.sort((a, b) => {
  11102. if (semver.gt(a, b)) {
  11103. return 1;
  11104. }
  11105. return -1;
  11106. });
  11107. for (let i = versions.length - 1; i >= 0; i--) {
  11108. const potential = versions[i];
  11109. const satisfied = semver.satisfies(potential, versionSpec);
  11110. if (satisfied) {
  11111. version = potential;
  11112. break;
  11113. }
  11114. }
  11115. if (version) {
  11116. core.debug(`matched: ${version}`);
  11117. }
  11118. else {
  11119. core.debug('match not found');
  11120. }
  11121. return version;
  11122. }
  11123. //# sourceMappingURL=tool-cache.js.map
  11124. /***/ }),
  11125. /***/ 536:
  11126. /***/ (function(module, __unusedexports, __webpack_require__) {
  11127. module.exports = hasFirstPage
  11128. const deprecate = __webpack_require__(370)
  11129. const getPageLinks = __webpack_require__(577)
  11130. function hasFirstPage (link) {
  11131. deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  11132. return getPageLinks(link).first
  11133. }
  11134. /***/ }),
  11135. /***/ 539:
  11136. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11137. "use strict";
  11138. Object.defineProperty(exports, "__esModule", { value: true });
  11139. const url = __webpack_require__(835);
  11140. const http = __webpack_require__(605);
  11141. const https = __webpack_require__(211);
  11142. const pm = __webpack_require__(950);
  11143. let tunnel;
  11144. var HttpCodes;
  11145. (function (HttpCodes) {
  11146. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  11147. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  11148. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  11149. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  11150. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  11151. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  11152. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  11153. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  11154. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  11155. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  11156. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  11157. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  11158. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  11159. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  11160. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  11161. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  11162. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  11163. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  11164. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  11165. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  11166. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  11167. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  11168. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  11169. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  11170. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  11171. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  11172. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  11173. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  11174. var Headers;
  11175. (function (Headers) {
  11176. Headers["Accept"] = "accept";
  11177. Headers["ContentType"] = "content-type";
  11178. })(Headers = exports.Headers || (exports.Headers = {}));
  11179. var MediaTypes;
  11180. (function (MediaTypes) {
  11181. MediaTypes["ApplicationJson"] = "application/json";
  11182. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  11183. /**
  11184. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  11185. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  11186. */
  11187. function getProxyUrl(serverUrl) {
  11188. let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
  11189. return proxyUrl ? proxyUrl.href : '';
  11190. }
  11191. exports.getProxyUrl = getProxyUrl;
  11192. const HttpRedirectCodes = [
  11193. HttpCodes.MovedPermanently,
  11194. HttpCodes.ResourceMoved,
  11195. HttpCodes.SeeOther,
  11196. HttpCodes.TemporaryRedirect,
  11197. HttpCodes.PermanentRedirect
  11198. ];
  11199. const HttpResponseRetryCodes = [
  11200. HttpCodes.BadGateway,
  11201. HttpCodes.ServiceUnavailable,
  11202. HttpCodes.GatewayTimeout
  11203. ];
  11204. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  11205. const ExponentialBackoffCeiling = 10;
  11206. const ExponentialBackoffTimeSlice = 5;
  11207. class HttpClientResponse {
  11208. constructor(message) {
  11209. this.message = message;
  11210. }
  11211. readBody() {
  11212. return new Promise(async (resolve, reject) => {
  11213. let output = Buffer.alloc(0);
  11214. this.message.on('data', (chunk) => {
  11215. output = Buffer.concat([output, chunk]);
  11216. });
  11217. this.message.on('end', () => {
  11218. resolve(output.toString());
  11219. });
  11220. });
  11221. }
  11222. }
  11223. exports.HttpClientResponse = HttpClientResponse;
  11224. function isHttps(requestUrl) {
  11225. let parsedUrl = url.parse(requestUrl);
  11226. return parsedUrl.protocol === 'https:';
  11227. }
  11228. exports.isHttps = isHttps;
  11229. class HttpClient {
  11230. constructor(userAgent, handlers, requestOptions) {
  11231. this._ignoreSslError = false;
  11232. this._allowRedirects = true;
  11233. this._allowRedirectDowngrade = false;
  11234. this._maxRedirects = 50;
  11235. this._allowRetries = false;
  11236. this._maxRetries = 1;
  11237. this._keepAlive = false;
  11238. this._disposed = false;
  11239. this.userAgent = userAgent;
  11240. this.handlers = handlers || [];
  11241. this.requestOptions = requestOptions;
  11242. if (requestOptions) {
  11243. if (requestOptions.ignoreSslError != null) {
  11244. this._ignoreSslError = requestOptions.ignoreSslError;
  11245. }
  11246. this._socketTimeout = requestOptions.socketTimeout;
  11247. if (requestOptions.allowRedirects != null) {
  11248. this._allowRedirects = requestOptions.allowRedirects;
  11249. }
  11250. if (requestOptions.allowRedirectDowngrade != null) {
  11251. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  11252. }
  11253. if (requestOptions.maxRedirects != null) {
  11254. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  11255. }
  11256. if (requestOptions.keepAlive != null) {
  11257. this._keepAlive = requestOptions.keepAlive;
  11258. }
  11259. if (requestOptions.allowRetries != null) {
  11260. this._allowRetries = requestOptions.allowRetries;
  11261. }
  11262. if (requestOptions.maxRetries != null) {
  11263. this._maxRetries = requestOptions.maxRetries;
  11264. }
  11265. }
  11266. }
  11267. options(requestUrl, additionalHeaders) {
  11268. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  11269. }
  11270. get(requestUrl, additionalHeaders) {
  11271. return this.request('GET', requestUrl, null, additionalHeaders || {});
  11272. }
  11273. del(requestUrl, additionalHeaders) {
  11274. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  11275. }
  11276. post(requestUrl, data, additionalHeaders) {
  11277. return this.request('POST', requestUrl, data, additionalHeaders || {});
  11278. }
  11279. patch(requestUrl, data, additionalHeaders) {
  11280. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  11281. }
  11282. put(requestUrl, data, additionalHeaders) {
  11283. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  11284. }
  11285. head(requestUrl, additionalHeaders) {
  11286. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  11287. }
  11288. sendStream(verb, requestUrl, stream, additionalHeaders) {
  11289. return this.request(verb, requestUrl, stream, additionalHeaders);
  11290. }
  11291. /**
  11292. * Gets a typed object from an endpoint
  11293. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  11294. */
  11295. async getJson(requestUrl, additionalHeaders = {}) {
  11296. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11297. let res = await this.get(requestUrl, additionalHeaders);
  11298. return this._processResponse(res, this.requestOptions);
  11299. }
  11300. async postJson(requestUrl, obj, additionalHeaders = {}) {
  11301. let data = JSON.stringify(obj, null, 2);
  11302. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11303. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11304. let res = await this.post(requestUrl, data, additionalHeaders);
  11305. return this._processResponse(res, this.requestOptions);
  11306. }
  11307. async putJson(requestUrl, obj, additionalHeaders = {}) {
  11308. let data = JSON.stringify(obj, null, 2);
  11309. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11310. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11311. let res = await this.put(requestUrl, data, additionalHeaders);
  11312. return this._processResponse(res, this.requestOptions);
  11313. }
  11314. async patchJson(requestUrl, obj, additionalHeaders = {}) {
  11315. let data = JSON.stringify(obj, null, 2);
  11316. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11317. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11318. let res = await this.patch(requestUrl, data, additionalHeaders);
  11319. return this._processResponse(res, this.requestOptions);
  11320. }
  11321. /**
  11322. * Makes a raw http request.
  11323. * All other methods such as get, post, patch, and request ultimately call this.
  11324. * Prefer get, del, post and patch
  11325. */
  11326. async request(verb, requestUrl, data, headers) {
  11327. if (this._disposed) {
  11328. throw new Error('Client has already been disposed.');
  11329. }
  11330. let parsedUrl = url.parse(requestUrl);
  11331. let info = this._prepareRequest(verb, parsedUrl, headers);
  11332. // Only perform retries on reads since writes may not be idempotent.
  11333. let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
  11334. ? this._maxRetries + 1
  11335. : 1;
  11336. let numTries = 0;
  11337. let response;
  11338. while (numTries < maxTries) {
  11339. response = await this.requestRaw(info, data);
  11340. // Check if it's an authentication challenge
  11341. if (response &&
  11342. response.message &&
  11343. response.message.statusCode === HttpCodes.Unauthorized) {
  11344. let authenticationHandler;
  11345. for (let i = 0; i < this.handlers.length; i++) {
  11346. if (this.handlers[i].canHandleAuthentication(response)) {
  11347. authenticationHandler = this.handlers[i];
  11348. break;
  11349. }
  11350. }
  11351. if (authenticationHandler) {
  11352. return authenticationHandler.handleAuthentication(this, info, data);
  11353. }
  11354. else {
  11355. // We have received an unauthorized response but have no handlers to handle it.
  11356. // Let the response return to the caller.
  11357. return response;
  11358. }
  11359. }
  11360. let redirectsRemaining = this._maxRedirects;
  11361. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
  11362. this._allowRedirects &&
  11363. redirectsRemaining > 0) {
  11364. const redirectUrl = response.message.headers['location'];
  11365. if (!redirectUrl) {
  11366. // if there's no location to redirect to, we won't
  11367. break;
  11368. }
  11369. let parsedRedirectUrl = url.parse(redirectUrl);
  11370. if (parsedUrl.protocol == 'https:' &&
  11371. parsedUrl.protocol != parsedRedirectUrl.protocol &&
  11372. !this._allowRedirectDowngrade) {
  11373. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  11374. }
  11375. // we need to finish reading the response before reassigning response
  11376. // which will leak the open socket.
  11377. await response.readBody();
  11378. // strip authorization header if redirected to a different hostname
  11379. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  11380. for (let header in headers) {
  11381. // header names are case insensitive
  11382. if (header.toLowerCase() === 'authorization') {
  11383. delete headers[header];
  11384. }
  11385. }
  11386. }
  11387. // let's make the request with the new redirectUrl
  11388. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  11389. response = await this.requestRaw(info, data);
  11390. redirectsRemaining--;
  11391. }
  11392. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  11393. // If not a retry code, return immediately instead of retrying
  11394. return response;
  11395. }
  11396. numTries += 1;
  11397. if (numTries < maxTries) {
  11398. await response.readBody();
  11399. await this._performExponentialBackoff(numTries);
  11400. }
  11401. }
  11402. return response;
  11403. }
  11404. /**
  11405. * Needs to be called if keepAlive is set to true in request options.
  11406. */
  11407. dispose() {
  11408. if (this._agent) {
  11409. this._agent.destroy();
  11410. }
  11411. this._disposed = true;
  11412. }
  11413. /**
  11414. * Raw request.
  11415. * @param info
  11416. * @param data
  11417. */
  11418. requestRaw(info, data) {
  11419. return new Promise((resolve, reject) => {
  11420. let callbackForResult = function (err, res) {
  11421. if (err) {
  11422. reject(err);
  11423. }
  11424. resolve(res);
  11425. };
  11426. this.requestRawWithCallback(info, data, callbackForResult);
  11427. });
  11428. }
  11429. /**
  11430. * Raw request with callback.
  11431. * @param info
  11432. * @param data
  11433. * @param onResult
  11434. */
  11435. requestRawWithCallback(info, data, onResult) {
  11436. let socket;
  11437. if (typeof data === 'string') {
  11438. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  11439. }
  11440. let callbackCalled = false;
  11441. let handleResult = (err, res) => {
  11442. if (!callbackCalled) {
  11443. callbackCalled = true;
  11444. onResult(err, res);
  11445. }
  11446. };
  11447. let req = info.httpModule.request(info.options, (msg) => {
  11448. let res = new HttpClientResponse(msg);
  11449. handleResult(null, res);
  11450. });
  11451. req.on('socket', sock => {
  11452. socket = sock;
  11453. });
  11454. // If we ever get disconnected, we want the socket to timeout eventually
  11455. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  11456. if (socket) {
  11457. socket.end();
  11458. }
  11459. handleResult(new Error('Request timeout: ' + info.options.path), null);
  11460. });
  11461. req.on('error', function (err) {
  11462. // err has statusCode property
  11463. // res should have headers
  11464. handleResult(err, null);
  11465. });
  11466. if (data && typeof data === 'string') {
  11467. req.write(data, 'utf8');
  11468. }
  11469. if (data && typeof data !== 'string') {
  11470. data.on('close', function () {
  11471. req.end();
  11472. });
  11473. data.pipe(req);
  11474. }
  11475. else {
  11476. req.end();
  11477. }
  11478. }
  11479. /**
  11480. * Gets an http agent. This function is useful when you need an http agent that handles
  11481. * routing through a proxy server - depending upon the url and proxy environment variables.
  11482. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  11483. */
  11484. getAgent(serverUrl) {
  11485. let parsedUrl = url.parse(serverUrl);
  11486. return this._getAgent(parsedUrl);
  11487. }
  11488. _prepareRequest(method, requestUrl, headers) {
  11489. const info = {};
  11490. info.parsedUrl = requestUrl;
  11491. const usingSsl = info.parsedUrl.protocol === 'https:';
  11492. info.httpModule = usingSsl ? https : http;
  11493. const defaultPort = usingSsl ? 443 : 80;
  11494. info.options = {};
  11495. info.options.host = info.parsedUrl.hostname;
  11496. info.options.port = info.parsedUrl.port
  11497. ? parseInt(info.parsedUrl.port)
  11498. : defaultPort;
  11499. info.options.path =
  11500. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  11501. info.options.method = method;
  11502. info.options.headers = this._mergeHeaders(headers);
  11503. if (this.userAgent != null) {
  11504. info.options.headers['user-agent'] = this.userAgent;
  11505. }
  11506. info.options.agent = this._getAgent(info.parsedUrl);
  11507. // gives handlers an opportunity to participate
  11508. if (this.handlers) {
  11509. this.handlers.forEach(handler => {
  11510. handler.prepareRequest(info.options);
  11511. });
  11512. }
  11513. return info;
  11514. }
  11515. _mergeHeaders(headers) {
  11516. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  11517. if (this.requestOptions && this.requestOptions.headers) {
  11518. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  11519. }
  11520. return lowercaseKeys(headers || {});
  11521. }
  11522. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  11523. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  11524. let clientHeader;
  11525. if (this.requestOptions && this.requestOptions.headers) {
  11526. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  11527. }
  11528. return additionalHeaders[header] || clientHeader || _default;
  11529. }
  11530. _getAgent(parsedUrl) {
  11531. let agent;
  11532. let proxyUrl = pm.getProxyUrl(parsedUrl);
  11533. let useProxy = proxyUrl && proxyUrl.hostname;
  11534. if (this._keepAlive && useProxy) {
  11535. agent = this._proxyAgent;
  11536. }
  11537. if (this._keepAlive && !useProxy) {
  11538. agent = this._agent;
  11539. }
  11540. // if agent is already assigned use that agent.
  11541. if (!!agent) {
  11542. return agent;
  11543. }
  11544. const usingSsl = parsedUrl.protocol === 'https:';
  11545. let maxSockets = 100;
  11546. if (!!this.requestOptions) {
  11547. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  11548. }
  11549. if (useProxy) {
  11550. // If using proxy, need tunnel
  11551. if (!tunnel) {
  11552. tunnel = __webpack_require__(335);
  11553. }
  11554. const agentOptions = {
  11555. maxSockets: maxSockets,
  11556. keepAlive: this._keepAlive,
  11557. proxy: {
  11558. proxyAuth: proxyUrl.auth,
  11559. host: proxyUrl.hostname,
  11560. port: proxyUrl.port
  11561. }
  11562. };
  11563. let tunnelAgent;
  11564. const overHttps = proxyUrl.protocol === 'https:';
  11565. if (usingSsl) {
  11566. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  11567. }
  11568. else {
  11569. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  11570. }
  11571. agent = tunnelAgent(agentOptions);
  11572. this._proxyAgent = agent;
  11573. }
  11574. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  11575. if (this._keepAlive && !agent) {
  11576. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  11577. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  11578. this._agent = agent;
  11579. }
  11580. // if not using private agent and tunnel agent isn't setup then use global agent
  11581. if (!agent) {
  11582. agent = usingSsl ? https.globalAgent : http.globalAgent;
  11583. }
  11584. if (usingSsl && this._ignoreSslError) {
  11585. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  11586. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  11587. // we have to cast it to any and change it directly
  11588. agent.options = Object.assign(agent.options || {}, {
  11589. rejectUnauthorized: false
  11590. });
  11591. }
  11592. return agent;
  11593. }
  11594. _performExponentialBackoff(retryNumber) {
  11595. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  11596. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  11597. return new Promise(resolve => setTimeout(() => resolve(), ms));
  11598. }
  11599. static dateTimeDeserializer(key, value) {
  11600. if (typeof value === 'string') {
  11601. let a = new Date(value);
  11602. if (!isNaN(a.valueOf())) {
  11603. return a;
  11604. }
  11605. }
  11606. return value;
  11607. }
  11608. async _processResponse(res, options) {
  11609. return new Promise(async (resolve, reject) => {
  11610. const statusCode = res.message.statusCode;
  11611. const response = {
  11612. statusCode: statusCode,
  11613. result: null,
  11614. headers: {}
  11615. };
  11616. // not found leads to null obj returned
  11617. if (statusCode == HttpCodes.NotFound) {
  11618. resolve(response);
  11619. }
  11620. let obj;
  11621. let contents;
  11622. // get the result from the body
  11623. try {
  11624. contents = await res.readBody();
  11625. if (contents && contents.length > 0) {
  11626. if (options && options.deserializeDates) {
  11627. obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
  11628. }
  11629. else {
  11630. obj = JSON.parse(contents);
  11631. }
  11632. response.result = obj;
  11633. }
  11634. response.headers = res.message.headers;
  11635. }
  11636. catch (err) {
  11637. // Invalid resource (contents not json); leaving result obj null
  11638. }
  11639. // note that 3xx redirects are handled by the http layer.
  11640. if (statusCode > 299) {
  11641. let msg;
  11642. // if exception/error in body, attempt to get better error
  11643. if (obj && obj.message) {
  11644. msg = obj.message;
  11645. }
  11646. else if (contents && contents.length > 0) {
  11647. // it may be the case that the exception is in the body message as string
  11648. msg = contents;
  11649. }
  11650. else {
  11651. msg = 'Failed request: (' + statusCode + ')';
  11652. }
  11653. let err = new Error(msg);
  11654. // attach statusCode and body obj (if available) to the error object
  11655. err['statusCode'] = statusCode;
  11656. if (response.result) {
  11657. err['result'] = response.result;
  11658. }
  11659. reject(err);
  11660. }
  11661. else {
  11662. resolve(response);
  11663. }
  11664. });
  11665. }
  11666. }
  11667. exports.HttpClient = HttpClient;
  11668. /***/ }),
  11669. /***/ 550:
  11670. /***/ (function(module, __unusedexports, __webpack_require__) {
  11671. module.exports = getNextPage
  11672. const getPage = __webpack_require__(265)
  11673. function getNextPage (octokit, link, headers) {
  11674. return getPage(octokit, link, 'next', headers)
  11675. }
  11676. /***/ }),
  11677. /***/ 558:
  11678. /***/ (function(module, __unusedexports, __webpack_require__) {
  11679. module.exports = hasPreviousPage
  11680. const deprecate = __webpack_require__(370)
  11681. const getPageLinks = __webpack_require__(577)
  11682. function hasPreviousPage (link) {
  11683. deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  11684. return getPageLinks(link).prev
  11685. }
  11686. /***/ }),
  11687. /***/ 559:
  11688. /***/ (function(__unusedmodule, exports) {
  11689. "use strict";
  11690. Object.defineProperty(exports, "__esModule", { value: true });
  11691. exports.GitVersion = void 0;
  11692. class GitVersion {
  11693. /**
  11694. * Used for comparing the version of git and git-lfs against the minimum required version
  11695. * @param version the version string, e.g. 1.2 or 1.2.3
  11696. */
  11697. constructor(version) {
  11698. this.major = NaN;
  11699. this.minor = NaN;
  11700. this.patch = NaN;
  11701. if (version) {
  11702. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  11703. if (match) {
  11704. this.major = Number(match[1]);
  11705. this.minor = Number(match[2]);
  11706. if (match[4]) {
  11707. this.patch = Number(match[4]);
  11708. }
  11709. }
  11710. }
  11711. }
  11712. /**
  11713. * Compares the instance against a minimum required version
  11714. * @param minimum Minimum version
  11715. */
  11716. checkMinimum(minimum) {
  11717. if (!minimum.isValid()) {
  11718. throw new Error('Arg minimum is not a valid version');
  11719. }
  11720. // Major is insufficient
  11721. if (this.major < minimum.major) {
  11722. return false;
  11723. }
  11724. // Major is equal
  11725. if (this.major === minimum.major) {
  11726. // Minor is insufficient
  11727. if (this.minor < minimum.minor) {
  11728. return false;
  11729. }
  11730. // Minor is equal
  11731. if (this.minor === minimum.minor) {
  11732. // Patch is insufficient
  11733. if (this.patch && this.patch < (minimum.patch || 0)) {
  11734. return false;
  11735. }
  11736. }
  11737. }
  11738. return true;
  11739. }
  11740. /**
  11741. * Indicates whether the instance was constructed from a valid version string
  11742. */
  11743. isValid() {
  11744. return !isNaN(this.major);
  11745. }
  11746. /**
  11747. * Returns the version as a string, e.g. 1.2 or 1.2.3
  11748. */
  11749. toString() {
  11750. let result = '';
  11751. if (this.isValid()) {
  11752. result = `${this.major}.${this.minor}`;
  11753. if (!isNaN(this.patch)) {
  11754. result += `.${this.patch}`;
  11755. }
  11756. }
  11757. return result;
  11758. }
  11759. }
  11760. exports.GitVersion = GitVersion;
  11761. /***/ }),
  11762. /***/ 562:
  11763. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11764. "use strict";
  11765. Object.defineProperty(exports, '__esModule', { value: true });
  11766. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  11767. var osName = _interopDefault(__webpack_require__(2));
  11768. function getUserAgent() {
  11769. try {
  11770. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  11771. } catch (error) {
  11772. if (/wmic os get Caption/.test(error.message)) {
  11773. return "Windows <version undetectable>";
  11774. }
  11775. return "<environment undetectable>";
  11776. }
  11777. }
  11778. exports.getUserAgent = getUserAgent;
  11779. //# sourceMappingURL=index.js.map
  11780. /***/ }),
  11781. /***/ 563:
  11782. /***/ (function(module, __unusedexports, __webpack_require__) {
  11783. module.exports = getPreviousPage
  11784. const getPage = __webpack_require__(265)
  11785. function getPreviousPage (octokit, link, headers) {
  11786. return getPage(octokit, link, 'prev', headers)
  11787. }
  11788. /***/ }),
  11789. /***/ 568:
  11790. /***/ (function(module, __unusedexports, __webpack_require__) {
  11791. "use strict";
  11792. const path = __webpack_require__(622);
  11793. const niceTry = __webpack_require__(948);
  11794. const resolveCommand = __webpack_require__(489);
  11795. const escape = __webpack_require__(462);
  11796. const readShebang = __webpack_require__(389);
  11797. const semver = __webpack_require__(280);
  11798. const isWin = process.platform === 'win32';
  11799. const isExecutableRegExp = /\.(?:com|exe)$/i;
  11800. const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
  11801. // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
  11802. const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
  11803. function detectShebang(parsed) {
  11804. parsed.file = resolveCommand(parsed);
  11805. const shebang = parsed.file && readShebang(parsed.file);
  11806. if (shebang) {
  11807. parsed.args.unshift(parsed.file);
  11808. parsed.command = shebang;
  11809. return resolveCommand(parsed);
  11810. }
  11811. return parsed.file;
  11812. }
  11813. function parseNonShell(parsed) {
  11814. if (!isWin) {
  11815. return parsed;
  11816. }
  11817. // Detect & add support for shebangs
  11818. const commandFile = detectShebang(parsed);
  11819. // We don't need a shell if the command filename is an executable
  11820. const needsShell = !isExecutableRegExp.test(commandFile);
  11821. // If a shell is required, use cmd.exe and take care of escaping everything correctly
  11822. // Note that `forceShell` is an hidden option used only in tests
  11823. if (parsed.options.forceShell || needsShell) {
  11824. // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
  11825. // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
  11826. // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
  11827. // we need to double escape them
  11828. const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
  11829. // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
  11830. // This is necessary otherwise it will always fail with ENOENT in those cases
  11831. parsed.command = path.normalize(parsed.command);
  11832. // Escape command & arguments
  11833. parsed.command = escape.command(parsed.command);
  11834. parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
  11835. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11836. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11837. parsed.command = process.env.comspec || 'cmd.exe';
  11838. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11839. }
  11840. return parsed;
  11841. }
  11842. function parseShell(parsed) {
  11843. // If node supports the shell option, there's no need to mimic its behavior
  11844. if (supportsShellOption) {
  11845. return parsed;
  11846. }
  11847. // Mimic node shell option
  11848. // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
  11849. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11850. if (isWin) {
  11851. parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
  11852. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11853. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11854. } else {
  11855. if (typeof parsed.options.shell === 'string') {
  11856. parsed.command = parsed.options.shell;
  11857. } else if (process.platform === 'android') {
  11858. parsed.command = '/system/bin/sh';
  11859. } else {
  11860. parsed.command = '/bin/sh';
  11861. }
  11862. parsed.args = ['-c', shellCommand];
  11863. }
  11864. return parsed;
  11865. }
  11866. function parse(command, args, options) {
  11867. // Normalize arguments, similar to nodejs
  11868. if (args && !Array.isArray(args)) {
  11869. options = args;
  11870. args = null;
  11871. }
  11872. args = args ? args.slice(0) : []; // Clone array to avoid changing the original
  11873. options = Object.assign({}, options); // Clone object to avoid changing the original
  11874. // Build our parsed object
  11875. const parsed = {
  11876. command,
  11877. args,
  11878. options,
  11879. file: undefined,
  11880. original: {
  11881. command,
  11882. args,
  11883. },
  11884. };
  11885. // Delegate further parsing to shell or non-shell
  11886. return options.shell ? parseShell(parsed) : parseNonShell(parsed);
  11887. }
  11888. module.exports = parse;
  11889. /***/ }),
  11890. /***/ 572:
  11891. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11892. "use strict";
  11893. Object.defineProperty(exports, "__esModule", {
  11894. value: true
  11895. });
  11896. exports.default = void 0;
  11897. var _v = _interopRequireDefault(__webpack_require__(136));
  11898. var _md = _interopRequireDefault(__webpack_require__(659));
  11899. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11900. const v3 = (0, _v.default)('v3', 0x30, _md.default);
  11901. var _default = v3;
  11902. exports.default = _default;
  11903. /***/ }),
  11904. /***/ 573:
  11905. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11906. "use strict";
  11907. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11908. if (k2 === undefined) k2 = k;
  11909. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11910. }) : (function(o, m, k, k2) {
  11911. if (k2 === undefined) k2 = k;
  11912. o[k2] = m[k];
  11913. }));
  11914. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11915. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11916. }) : function(o, v) {
  11917. o["default"] = v;
  11918. });
  11919. var __importStar = (this && this.__importStar) || function (mod) {
  11920. if (mod && mod.__esModule) return mod;
  11921. var result = {};
  11922. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11923. __setModuleDefault(result, mod);
  11924. return result;
  11925. };
  11926. Object.defineProperty(exports, "__esModule", { value: true });
  11927. exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
  11928. const path = __importStar(__webpack_require__(622));
  11929. /**
  11930. * toPosixPath converts the given path to the posix form. On Windows, \\ will be
  11931. * replaced with /.
  11932. *
  11933. * @param pth. Path to transform.
  11934. * @return string Posix path.
  11935. */
  11936. function toPosixPath(pth) {
  11937. return pth.replace(/[\\]/g, '/');
  11938. }
  11939. exports.toPosixPath = toPosixPath;
  11940. /**
  11941. * toWin32Path converts the given path to the win32 form. On Linux, / will be
  11942. * replaced with \\.
  11943. *
  11944. * @param pth. Path to transform.
  11945. * @return string Win32 path.
  11946. */
  11947. function toWin32Path(pth) {
  11948. return pth.replace(/[/]/g, '\\');
  11949. }
  11950. exports.toWin32Path = toWin32Path;
  11951. /**
  11952. * toPlatformPath converts the given path to a platform-specific path. It does
  11953. * this by replacing instances of / and \ with the platform-specific path
  11954. * separator.
  11955. *
  11956. * @param pth The path to platformize.
  11957. * @return string The platform-specific path.
  11958. */
  11959. function toPlatformPath(pth) {
  11960. return pth.replace(/[/\\]/g, path.sep);
  11961. }
  11962. exports.toPlatformPath = toPlatformPath;
  11963. //# sourceMappingURL=path-utils.js.map
  11964. /***/ }),
  11965. /***/ 577:
  11966. /***/ (function(module) {
  11967. module.exports = getPageLinks
  11968. function getPageLinks (link) {
  11969. link = link.link || link.headers.link || ''
  11970. const links = {}
  11971. // link format:
  11972. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  11973. link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
  11974. links[type] = uri
  11975. })
  11976. return links
  11977. }
  11978. /***/ }),
  11979. /***/ 581:
  11980. /***/ (function(module, __unusedexports, __webpack_require__) {
  11981. "use strict";
  11982. var formats = __webpack_require__(13);
  11983. var has = Object.prototype.hasOwnProperty;
  11984. var isArray = Array.isArray;
  11985. var hexTable = (function () {
  11986. var array = [];
  11987. for (var i = 0; i < 256; ++i) {
  11988. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  11989. }
  11990. return array;
  11991. }());
  11992. var compactQueue = function compactQueue(queue) {
  11993. while (queue.length > 1) {
  11994. var item = queue.pop();
  11995. var obj = item.obj[item.prop];
  11996. if (isArray(obj)) {
  11997. var compacted = [];
  11998. for (var j = 0; j < obj.length; ++j) {
  11999. if (typeof obj[j] !== 'undefined') {
  12000. compacted.push(obj[j]);
  12001. }
  12002. }
  12003. item.obj[item.prop] = compacted;
  12004. }
  12005. }
  12006. };
  12007. var arrayToObject = function arrayToObject(source, options) {
  12008. var obj = options && options.plainObjects ? Object.create(null) : {};
  12009. for (var i = 0; i < source.length; ++i) {
  12010. if (typeof source[i] !== 'undefined') {
  12011. obj[i] = source[i];
  12012. }
  12013. }
  12014. return obj;
  12015. };
  12016. var merge = function merge(target, source, options) {
  12017. /* eslint no-param-reassign: 0 */
  12018. if (!source) {
  12019. return target;
  12020. }
  12021. if (typeof source !== 'object') {
  12022. if (isArray(target)) {
  12023. target.push(source);
  12024. } else if (target && typeof target === 'object') {
  12025. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  12026. target[source] = true;
  12027. }
  12028. } else {
  12029. return [target, source];
  12030. }
  12031. return target;
  12032. }
  12033. if (!target || typeof target !== 'object') {
  12034. return [target].concat(source);
  12035. }
  12036. var mergeTarget = target;
  12037. if (isArray(target) && !isArray(source)) {
  12038. mergeTarget = arrayToObject(target, options);
  12039. }
  12040. if (isArray(target) && isArray(source)) {
  12041. source.forEach(function (item, i) {
  12042. if (has.call(target, i)) {
  12043. var targetItem = target[i];
  12044. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  12045. target[i] = merge(targetItem, item, options);
  12046. } else {
  12047. target.push(item);
  12048. }
  12049. } else {
  12050. target[i] = item;
  12051. }
  12052. });
  12053. return target;
  12054. }
  12055. return Object.keys(source).reduce(function (acc, key) {
  12056. var value = source[key];
  12057. if (has.call(acc, key)) {
  12058. acc[key] = merge(acc[key], value, options);
  12059. } else {
  12060. acc[key] = value;
  12061. }
  12062. return acc;
  12063. }, mergeTarget);
  12064. };
  12065. var assign = function assignSingleSource(target, source) {
  12066. return Object.keys(source).reduce(function (acc, key) {
  12067. acc[key] = source[key];
  12068. return acc;
  12069. }, target);
  12070. };
  12071. var decode = function (str, decoder, charset) {
  12072. var strWithoutPlus = str.replace(/\+/g, ' ');
  12073. if (charset === 'iso-8859-1') {
  12074. // unescape never throws, no try...catch needed:
  12075. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  12076. }
  12077. // utf-8
  12078. try {
  12079. return decodeURIComponent(strWithoutPlus);
  12080. } catch (e) {
  12081. return strWithoutPlus;
  12082. }
  12083. };
  12084. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  12085. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  12086. // It has been adapted here for stricter adherence to RFC 3986
  12087. if (str.length === 0) {
  12088. return str;
  12089. }
  12090. var string = str;
  12091. if (typeof str === 'symbol') {
  12092. string = Symbol.prototype.toString.call(str);
  12093. } else if (typeof str !== 'string') {
  12094. string = String(str);
  12095. }
  12096. if (charset === 'iso-8859-1') {
  12097. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  12098. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  12099. });
  12100. }
  12101. var out = '';
  12102. for (var i = 0; i < string.length; ++i) {
  12103. var c = string.charCodeAt(i);
  12104. if (
  12105. c === 0x2D // -
  12106. || c === 0x2E // .
  12107. || c === 0x5F // _
  12108. || c === 0x7E // ~
  12109. || (c >= 0x30 && c <= 0x39) // 0-9
  12110. || (c >= 0x41 && c <= 0x5A) // a-z
  12111. || (c >= 0x61 && c <= 0x7A) // A-Z
  12112. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  12113. ) {
  12114. out += string.charAt(i);
  12115. continue;
  12116. }
  12117. if (c < 0x80) {
  12118. out = out + hexTable[c];
  12119. continue;
  12120. }
  12121. if (c < 0x800) {
  12122. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  12123. continue;
  12124. }
  12125. if (c < 0xD800 || c >= 0xE000) {
  12126. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  12127. continue;
  12128. }
  12129. i += 1;
  12130. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  12131. out += hexTable[0xF0 | (c >> 18)]
  12132. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  12133. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  12134. + hexTable[0x80 | (c & 0x3F)];
  12135. }
  12136. return out;
  12137. };
  12138. var compact = function compact(value) {
  12139. var queue = [{ obj: { o: value }, prop: 'o' }];
  12140. var refs = [];
  12141. for (var i = 0; i < queue.length; ++i) {
  12142. var item = queue[i];
  12143. var obj = item.obj[item.prop];
  12144. var keys = Object.keys(obj);
  12145. for (var j = 0; j < keys.length; ++j) {
  12146. var key = keys[j];
  12147. var val = obj[key];
  12148. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  12149. queue.push({ obj: obj, prop: key });
  12150. refs.push(val);
  12151. }
  12152. }
  12153. }
  12154. compactQueue(queue);
  12155. return value;
  12156. };
  12157. var isRegExp = function isRegExp(obj) {
  12158. return Object.prototype.toString.call(obj) === '[object RegExp]';
  12159. };
  12160. var isBuffer = function isBuffer(obj) {
  12161. if (!obj || typeof obj !== 'object') {
  12162. return false;
  12163. }
  12164. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  12165. };
  12166. var combine = function combine(a, b) {
  12167. return [].concat(a, b);
  12168. };
  12169. var maybeMap = function maybeMap(val, fn) {
  12170. if (isArray(val)) {
  12171. var mapped = [];
  12172. for (var i = 0; i < val.length; i += 1) {
  12173. mapped.push(fn(val[i]));
  12174. }
  12175. return mapped;
  12176. }
  12177. return fn(val);
  12178. };
  12179. module.exports = {
  12180. arrayToObject: arrayToObject,
  12181. assign: assign,
  12182. combine: combine,
  12183. compact: compact,
  12184. decode: decode,
  12185. encode: encode,
  12186. isBuffer: isBuffer,
  12187. isRegExp: isRegExp,
  12188. maybeMap: maybeMap,
  12189. merge: merge
  12190. };
  12191. /***/ }),
  12192. /***/ 587:
  12193. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12194. "use strict";
  12195. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12196. if (k2 === undefined) k2 = k;
  12197. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12198. }) : (function(o, m, k, k2) {
  12199. if (k2 === undefined) k2 = k;
  12200. o[k2] = m[k];
  12201. }));
  12202. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12203. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12204. }) : function(o, v) {
  12205. o["default"] = v;
  12206. });
  12207. var __importStar = (this && this.__importStar) || function (mod) {
  12208. if (mod && mod.__esModule) return mod;
  12209. var result = {};
  12210. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12211. __setModuleDefault(result, mod);
  12212. return result;
  12213. };
  12214. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  12215. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  12216. return new (P || (P = Promise))(function (resolve, reject) {
  12217. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  12218. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  12219. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  12220. step((generator = generator.apply(thisArg, _arguments || [])).next());
  12221. });
  12222. };
  12223. Object.defineProperty(exports, "__esModule", { value: true });
  12224. exports.execute = exports.RetryHelper = void 0;
  12225. const core = __importStar(__webpack_require__(470));
  12226. const defaultMaxAttempts = 3;
  12227. const defaultMinSeconds = 10;
  12228. const defaultMaxSeconds = 20;
  12229. class RetryHelper {
  12230. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  12231. this.maxAttempts = maxAttempts;
  12232. this.minSeconds = Math.floor(minSeconds);
  12233. this.maxSeconds = Math.floor(maxSeconds);
  12234. if (this.minSeconds > this.maxSeconds) {
  12235. throw new Error('min seconds should be less than or equal to max seconds');
  12236. }
  12237. }
  12238. execute(action) {
  12239. var _a;
  12240. return __awaiter(this, void 0, void 0, function* () {
  12241. let attempt = 1;
  12242. while (attempt < this.maxAttempts) {
  12243. // Try
  12244. try {
  12245. return yield action();
  12246. }
  12247. catch (err) {
  12248. core.info((_a = err) === null || _a === void 0 ? void 0 : _a.message);
  12249. }
  12250. // Sleep
  12251. const seconds = this.getSleepAmount();
  12252. core.info(`Waiting ${seconds} seconds before trying again`);
  12253. yield this.sleep(seconds);
  12254. attempt++;
  12255. }
  12256. // Last attempt
  12257. return yield action();
  12258. });
  12259. }
  12260. getSleepAmount() {
  12261. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  12262. this.minSeconds);
  12263. }
  12264. sleep(seconds) {
  12265. return __awaiter(this, void 0, void 0, function* () {
  12266. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  12267. });
  12268. }
  12269. }
  12270. exports.RetryHelper = RetryHelper;
  12271. function execute(action) {
  12272. return __awaiter(this, void 0, void 0, function* () {
  12273. const retryHelper = new RetryHelper();
  12274. return yield retryHelper.execute(action);
  12275. });
  12276. }
  12277. exports.execute = execute;
  12278. /***/ }),
  12279. /***/ 605:
  12280. /***/ (function(module) {
  12281. module.exports = require("http");
  12282. /***/ }),
  12283. /***/ 614:
  12284. /***/ (function(module) {
  12285. module.exports = require("events");
  12286. /***/ }),
  12287. /***/ 618:
  12288. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12289. "use strict";
  12290. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12291. if (k2 === undefined) k2 = k;
  12292. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12293. }) : (function(o, m, k, k2) {
  12294. if (k2 === undefined) k2 = k;
  12295. o[k2] = m[k];
  12296. }));
  12297. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12298. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12299. }) : function(o, v) {
  12300. o["default"] = v;
  12301. });
  12302. var __importStar = (this && this.__importStar) || function (mod) {
  12303. if (mod && mod.__esModule) return mod;
  12304. var result = {};
  12305. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12306. __setModuleDefault(result, mod);
  12307. return result;
  12308. };
  12309. Object.defineProperty(exports, "__esModule", { value: true });
  12310. exports.fileExistsSync = exports.existsSync = exports.directoryExistsSync = void 0;
  12311. const fs = __importStar(__webpack_require__(747));
  12312. function directoryExistsSync(path, required) {
  12313. var _a, _b, _c;
  12314. if (!path) {
  12315. throw new Error("Arg 'path' must not be empty");
  12316. }
  12317. let stats;
  12318. try {
  12319. stats = fs.statSync(path);
  12320. }
  12321. catch (error) {
  12322. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12323. if (!required) {
  12324. return false;
  12325. }
  12326. throw new Error(`Directory '${path}' does not exist`);
  12327. }
  12328. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12329. }
  12330. if (stats.isDirectory()) {
  12331. return true;
  12332. }
  12333. else if (!required) {
  12334. return false;
  12335. }
  12336. throw new Error(`Directory '${path}' does not exist`);
  12337. }
  12338. exports.directoryExistsSync = directoryExistsSync;
  12339. function existsSync(path) {
  12340. var _a, _b, _c;
  12341. if (!path) {
  12342. throw new Error("Arg 'path' must not be empty");
  12343. }
  12344. try {
  12345. fs.statSync(path);
  12346. }
  12347. catch (error) {
  12348. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12349. return false;
  12350. }
  12351. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12352. }
  12353. return true;
  12354. }
  12355. exports.existsSync = existsSync;
  12356. function fileExistsSync(path) {
  12357. var _a, _b, _c;
  12358. if (!path) {
  12359. throw new Error("Arg 'path' must not be empty");
  12360. }
  12361. let stats;
  12362. try {
  12363. stats = fs.statSync(path);
  12364. }
  12365. catch (error) {
  12366. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12367. return false;
  12368. }
  12369. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12370. }
  12371. if (!stats.isDirectory()) {
  12372. return true;
  12373. }
  12374. return false;
  12375. }
  12376. exports.fileExistsSync = fileExistsSync;
  12377. /***/ }),
  12378. /***/ 621:
  12379. /***/ (function(module, __unusedexports, __webpack_require__) {
  12380. "use strict";
  12381. const path = __webpack_require__(622);
  12382. const pathKey = __webpack_require__(39);
  12383. module.exports = opts => {
  12384. opts = Object.assign({
  12385. cwd: process.cwd(),
  12386. path: process.env[pathKey()]
  12387. }, opts);
  12388. let prev;
  12389. let pth = path.resolve(opts.cwd);
  12390. const ret = [];
  12391. while (prev !== pth) {
  12392. ret.push(path.join(pth, 'node_modules/.bin'));
  12393. prev = pth;
  12394. pth = path.resolve(pth, '..');
  12395. }
  12396. // ensure the running `node` binary is used
  12397. ret.push(path.dirname(process.execPath));
  12398. return ret.concat(opts.path).join(path.delimiter);
  12399. };
  12400. module.exports.env = opts => {
  12401. opts = Object.assign({
  12402. env: process.env
  12403. }, opts);
  12404. const env = Object.assign({}, opts.env);
  12405. const path = pathKey({env});
  12406. opts.path = env[path];
  12407. env[path] = module.exports(opts);
  12408. return env;
  12409. };
  12410. /***/ }),
  12411. /***/ 622:
  12412. /***/ (function(module) {
  12413. module.exports = require("path");
  12414. /***/ }),
  12415. /***/ 630:
  12416. /***/ (function(module, __unusedexports, __webpack_require__) {
  12417. "use strict";
  12418. var GetIntrinsic = __webpack_require__(915);
  12419. var callBind = __webpack_require__(749);
  12420. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  12421. module.exports = function callBoundIntrinsic(name, allowMissing) {
  12422. var intrinsic = GetIntrinsic(name, !!allowMissing);
  12423. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  12424. return callBind(intrinsic);
  12425. }
  12426. return intrinsic;
  12427. };
  12428. /***/ }),
  12429. /***/ 631:
  12430. /***/ (function(module) {
  12431. module.exports = require("net");
  12432. /***/ }),
  12433. /***/ 634:
  12434. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12435. "use strict";
  12436. Object.defineProperty(exports, "__esModule", {
  12437. value: true
  12438. });
  12439. exports.default = void 0;
  12440. var _regex = _interopRequireDefault(__webpack_require__(525));
  12441. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12442. function validate(uuid) {
  12443. return typeof uuid === 'string' && _regex.default.test(uuid);
  12444. }
  12445. var _default = validate;
  12446. exports.default = _default;
  12447. /***/ }),
  12448. /***/ 638:
  12449. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12450. "use strict";
  12451. Object.defineProperty(exports, "__esModule", {
  12452. value: true
  12453. });
  12454. exports.default = void 0;
  12455. var _v = _interopRequireDefault(__webpack_require__(136));
  12456. var _sha = _interopRequireDefault(__webpack_require__(329));
  12457. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12458. const v5 = (0, _v.default)('v5', 0x50, _sha.default);
  12459. var _default = v5;
  12460. exports.default = _default;
  12461. /***/ }),
  12462. /***/ 642:
  12463. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12464. "use strict";
  12465. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12466. if (k2 === undefined) k2 = k;
  12467. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12468. }) : (function(o, m, k, k2) {
  12469. if (k2 === undefined) k2 = k;
  12470. o[k2] = m[k];
  12471. }));
  12472. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12473. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12474. }) : function(o, v) {
  12475. o["default"] = v;
  12476. });
  12477. var __importStar = (this && this.__importStar) || function (mod) {
  12478. if (mod && mod.__esModule) return mod;
  12479. var result = {};
  12480. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12481. __setModuleDefault(result, mod);
  12482. return result;
  12483. };
  12484. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  12485. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  12486. return new (P || (P = Promise))(function (resolve, reject) {
  12487. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  12488. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  12489. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  12490. step((generator = generator.apply(thisArg, _arguments || [])).next());
  12491. });
  12492. };
  12493. Object.defineProperty(exports, "__esModule", { value: true });
  12494. exports.getOrganizationId = void 0;
  12495. const core = __importStar(__webpack_require__(470));
  12496. const fs = __importStar(__webpack_require__(747));
  12497. /**
  12498. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  12499. */
  12500. function getOrganizationId() {
  12501. var _a, _b;
  12502. return __awaiter(this, void 0, void 0, function* () {
  12503. try {
  12504. const eventPath = process.env.GITHUB_EVENT_PATH;
  12505. if (!eventPath) {
  12506. core.debug(`GITHUB_EVENT_PATH is not defined`);
  12507. return;
  12508. }
  12509. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  12510. const event = JSON.parse(content);
  12511. const id = (_b = (_a = event === null || event === void 0 ? void 0 : event.repository) === null || _a === void 0 ? void 0 : _a.owner) === null || _b === void 0 ? void 0 : _b.id;
  12512. if (typeof id !== 'number') {
  12513. core.debug('Repository owner ID not found within GITHUB event info');
  12514. return;
  12515. }
  12516. return id;
  12517. }
  12518. catch (err) {
  12519. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err
  12520. .message || err}`);
  12521. }
  12522. });
  12523. }
  12524. exports.getOrganizationId = getOrganizationId;
  12525. /***/ }),
  12526. /***/ 649:
  12527. /***/ (function(module) {
  12528. "use strict";
  12529. module.exports.mixin = function mixin(target, source) {
  12530. const keys = Object.getOwnPropertyNames(source);
  12531. for (let i = 0; i < keys.length; ++i) {
  12532. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  12533. }
  12534. };
  12535. module.exports.wrapperSymbol = Symbol("wrapper");
  12536. module.exports.implSymbol = Symbol("impl");
  12537. module.exports.wrapperForImpl = function (impl) {
  12538. return impl[module.exports.wrapperSymbol];
  12539. };
  12540. module.exports.implForWrapper = function (wrapper) {
  12541. return wrapper[module.exports.implSymbol];
  12542. };
  12543. /***/ }),
  12544. /***/ 654:
  12545. /***/ (function(module) {
  12546. // This is not the set of all possible signals.
  12547. //
  12548. // It IS, however, the set of all signals that trigger
  12549. // an exit on either Linux or BSD systems. Linux is a
  12550. // superset of the signal names supported on BSD, and
  12551. // the unknown signals just fail to register, so we can
  12552. // catch that easily enough.
  12553. //
  12554. // Don't bother with SIGKILL. It's uncatchable, which
  12555. // means that we can't fire any callbacks anyway.
  12556. //
  12557. // If a user does happen to register a handler on a non-
  12558. // fatal signal like SIGWINCH or something, and then
  12559. // exit, it'll end up firing `process.emit('exit')`, so
  12560. // the handler will be fired anyway.
  12561. //
  12562. // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
  12563. // artificially, inherently leave the process in a
  12564. // state from which it is not safe to try and enter JS
  12565. // listeners.
  12566. module.exports = [
  12567. 'SIGABRT',
  12568. 'SIGALRM',
  12569. 'SIGHUP',
  12570. 'SIGINT',
  12571. 'SIGTERM'
  12572. ]
  12573. if (process.platform !== 'win32') {
  12574. module.exports.push(
  12575. 'SIGVTALRM',
  12576. 'SIGXCPU',
  12577. 'SIGXFSZ',
  12578. 'SIGUSR2',
  12579. 'SIGTRAP',
  12580. 'SIGSYS',
  12581. 'SIGQUIT',
  12582. 'SIGIOT'
  12583. // should detect profiler and enable/disable accordingly.
  12584. // see #21
  12585. // 'SIGPROF'
  12586. )
  12587. }
  12588. if (process.platform === 'linux') {
  12589. module.exports.push(
  12590. 'SIGIO',
  12591. 'SIGPOLL',
  12592. 'SIGPWR',
  12593. 'SIGSTKFLT',
  12594. 'SIGUNUSED'
  12595. )
  12596. }
  12597. /***/ }),
  12598. /***/ 656:
  12599. /***/ (function(module, exports) {
  12600. exports = module.exports = SemVer
  12601. var debug
  12602. /* istanbul ignore next */
  12603. if (typeof process === 'object' &&
  12604. process.env &&
  12605. process.env.NODE_DEBUG &&
  12606. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  12607. debug = function () {
  12608. var args = Array.prototype.slice.call(arguments, 0)
  12609. args.unshift('SEMVER')
  12610. console.log.apply(console, args)
  12611. }
  12612. } else {
  12613. debug = function () {}
  12614. }
  12615. // Note: this is the semver.org version of the spec that it implements
  12616. // Not necessarily the package version of this code.
  12617. exports.SEMVER_SPEC_VERSION = '2.0.0'
  12618. var MAX_LENGTH = 256
  12619. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  12620. /* istanbul ignore next */ 9007199254740991
  12621. // Max safe segment length for coercion.
  12622. var MAX_SAFE_COMPONENT_LENGTH = 16
  12623. // The actual regexps go on exports.re
  12624. var re = exports.re = []
  12625. var src = exports.src = []
  12626. var t = exports.tokens = {}
  12627. var R = 0
  12628. function tok (n) {
  12629. t[n] = R++
  12630. }
  12631. // The following Regular Expressions can be used for tokenizing,
  12632. // validating, and parsing SemVer version strings.
  12633. // ## Numeric Identifier
  12634. // A single `0`, or a non-zero digit followed by zero or more digits.
  12635. tok('NUMERICIDENTIFIER')
  12636. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  12637. tok('NUMERICIDENTIFIERLOOSE')
  12638. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  12639. // ## Non-numeric Identifier
  12640. // Zero or more digits, followed by a letter or hyphen, and then zero or
  12641. // more letters, digits, or hyphens.
  12642. tok('NONNUMERICIDENTIFIER')
  12643. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  12644. // ## Main Version
  12645. // Three dot-separated numeric identifiers.
  12646. tok('MAINVERSION')
  12647. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  12648. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  12649. '(' + src[t.NUMERICIDENTIFIER] + ')'
  12650. tok('MAINVERSIONLOOSE')
  12651. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  12652. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  12653. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  12654. // ## Pre-release Version Identifier
  12655. // A numeric identifier, or a non-numeric identifier.
  12656. tok('PRERELEASEIDENTIFIER')
  12657. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  12658. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12659. tok('PRERELEASEIDENTIFIERLOOSE')
  12660. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  12661. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12662. // ## Pre-release Version
  12663. // Hyphen, followed by one or more dot-separated pre-release version
  12664. // identifiers.
  12665. tok('PRERELEASE')
  12666. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  12667. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  12668. tok('PRERELEASELOOSE')
  12669. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  12670. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  12671. // ## Build Metadata Identifier
  12672. // Any combination of digits, letters, or hyphens.
  12673. tok('BUILDIDENTIFIER')
  12674. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  12675. // ## Build Metadata
  12676. // Plus sign, followed by one or more period-separated build metadata
  12677. // identifiers.
  12678. tok('BUILD')
  12679. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  12680. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  12681. // ## Full Version String
  12682. // A main version, followed optionally by a pre-release version and
  12683. // build metadata.
  12684. // Note that the only major, minor, patch, and pre-release sections of
  12685. // the version string are capturing groups. The build metadata is not a
  12686. // capturing group, because it should not ever be used in version
  12687. // comparison.
  12688. tok('FULL')
  12689. tok('FULLPLAIN')
  12690. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  12691. src[t.PRERELEASE] + '?' +
  12692. src[t.BUILD] + '?'
  12693. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  12694. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  12695. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  12696. // common in the npm registry.
  12697. tok('LOOSEPLAIN')
  12698. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  12699. src[t.PRERELEASELOOSE] + '?' +
  12700. src[t.BUILD] + '?'
  12701. tok('LOOSE')
  12702. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  12703. tok('GTLT')
  12704. src[t.GTLT] = '((?:<|>)?=?)'
  12705. // Something like "2.*" or "1.2.x".
  12706. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  12707. // Only the first item is strictly required.
  12708. tok('XRANGEIDENTIFIERLOOSE')
  12709. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  12710. tok('XRANGEIDENTIFIER')
  12711. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  12712. tok('XRANGEPLAIN')
  12713. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  12714. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12715. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12716. '(?:' + src[t.PRERELEASE] + ')?' +
  12717. src[t.BUILD] + '?' +
  12718. ')?)?'
  12719. tok('XRANGEPLAINLOOSE')
  12720. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12721. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12722. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12723. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  12724. src[t.BUILD] + '?' +
  12725. ')?)?'
  12726. tok('XRANGE')
  12727. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  12728. tok('XRANGELOOSE')
  12729. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  12730. // Coercion.
  12731. // Extract anything that could conceivably be a part of a valid semver
  12732. tok('COERCE')
  12733. src[t.COERCE] = '(^|[^\\d])' +
  12734. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  12735. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12736. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12737. '(?:$|[^\\d])'
  12738. tok('COERCERTL')
  12739. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  12740. // Tilde ranges.
  12741. // Meaning is "reasonably at or greater than"
  12742. tok('LONETILDE')
  12743. src[t.LONETILDE] = '(?:~>?)'
  12744. tok('TILDETRIM')
  12745. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  12746. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  12747. var tildeTrimReplace = '$1~'
  12748. tok('TILDE')
  12749. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  12750. tok('TILDELOOSE')
  12751. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  12752. // Caret ranges.
  12753. // Meaning is "at least and backwards compatible with"
  12754. tok('LONECARET')
  12755. src[t.LONECARET] = '(?:\\^)'
  12756. tok('CARETTRIM')
  12757. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  12758. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  12759. var caretTrimReplace = '$1^'
  12760. tok('CARET')
  12761. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  12762. tok('CARETLOOSE')
  12763. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  12764. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  12765. tok('COMPARATORLOOSE')
  12766. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  12767. tok('COMPARATOR')
  12768. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  12769. // An expression to strip any whitespace between the gtlt and the thing
  12770. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  12771. tok('COMPARATORTRIM')
  12772. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  12773. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  12774. // this one has to use the /g flag
  12775. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  12776. var comparatorTrimReplace = '$1$2$3'
  12777. // Something like `1.2.3 - 1.2.4`
  12778. // Note that these all use the loose form, because they'll be
  12779. // checked against either the strict or loose comparator form
  12780. // later.
  12781. tok('HYPHENRANGE')
  12782. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  12783. '\\s+-\\s+' +
  12784. '(' + src[t.XRANGEPLAIN] + ')' +
  12785. '\\s*$'
  12786. tok('HYPHENRANGELOOSE')
  12787. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12788. '\\s+-\\s+' +
  12789. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12790. '\\s*$'
  12791. // Star ranges basically just allow anything at all.
  12792. tok('STAR')
  12793. src[t.STAR] = '(<|>)?=?\\s*\\*'
  12794. // Compile to actual regexp objects.
  12795. // All are flag-free, unless they were created above with a flag.
  12796. for (var i = 0; i < R; i++) {
  12797. debug(i, src[i])
  12798. if (!re[i]) {
  12799. re[i] = new RegExp(src[i])
  12800. }
  12801. }
  12802. exports.parse = parse
  12803. function parse (version, options) {
  12804. if (!options || typeof options !== 'object') {
  12805. options = {
  12806. loose: !!options,
  12807. includePrerelease: false
  12808. }
  12809. }
  12810. if (version instanceof SemVer) {
  12811. return version
  12812. }
  12813. if (typeof version !== 'string') {
  12814. return null
  12815. }
  12816. if (version.length > MAX_LENGTH) {
  12817. return null
  12818. }
  12819. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  12820. if (!r.test(version)) {
  12821. return null
  12822. }
  12823. try {
  12824. return new SemVer(version, options)
  12825. } catch (er) {
  12826. return null
  12827. }
  12828. }
  12829. exports.valid = valid
  12830. function valid (version, options) {
  12831. var v = parse(version, options)
  12832. return v ? v.version : null
  12833. }
  12834. exports.clean = clean
  12835. function clean (version, options) {
  12836. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  12837. return s ? s.version : null
  12838. }
  12839. exports.SemVer = SemVer
  12840. function SemVer (version, options) {
  12841. if (!options || typeof options !== 'object') {
  12842. options = {
  12843. loose: !!options,
  12844. includePrerelease: false
  12845. }
  12846. }
  12847. if (version instanceof SemVer) {
  12848. if (version.loose === options.loose) {
  12849. return version
  12850. } else {
  12851. version = version.version
  12852. }
  12853. } else if (typeof version !== 'string') {
  12854. throw new TypeError('Invalid Version: ' + version)
  12855. }
  12856. if (version.length > MAX_LENGTH) {
  12857. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  12858. }
  12859. if (!(this instanceof SemVer)) {
  12860. return new SemVer(version, options)
  12861. }
  12862. debug('SemVer', version, options)
  12863. this.options = options
  12864. this.loose = !!options.loose
  12865. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  12866. if (!m) {
  12867. throw new TypeError('Invalid Version: ' + version)
  12868. }
  12869. this.raw = version
  12870. // these are actually numbers
  12871. this.major = +m[1]
  12872. this.minor = +m[2]
  12873. this.patch = +m[3]
  12874. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  12875. throw new TypeError('Invalid major version')
  12876. }
  12877. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  12878. throw new TypeError('Invalid minor version')
  12879. }
  12880. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  12881. throw new TypeError('Invalid patch version')
  12882. }
  12883. // numberify any prerelease numeric ids
  12884. if (!m[4]) {
  12885. this.prerelease = []
  12886. } else {
  12887. this.prerelease = m[4].split('.').map(function (id) {
  12888. if (/^[0-9]+$/.test(id)) {
  12889. var num = +id
  12890. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  12891. return num
  12892. }
  12893. }
  12894. return id
  12895. })
  12896. }
  12897. this.build = m[5] ? m[5].split('.') : []
  12898. this.format()
  12899. }
  12900. SemVer.prototype.format = function () {
  12901. this.version = this.major + '.' + this.minor + '.' + this.patch
  12902. if (this.prerelease.length) {
  12903. this.version += '-' + this.prerelease.join('.')
  12904. }
  12905. return this.version
  12906. }
  12907. SemVer.prototype.toString = function () {
  12908. return this.version
  12909. }
  12910. SemVer.prototype.compare = function (other) {
  12911. debug('SemVer.compare', this.version, this.options, other)
  12912. if (!(other instanceof SemVer)) {
  12913. other = new SemVer(other, this.options)
  12914. }
  12915. return this.compareMain(other) || this.comparePre(other)
  12916. }
  12917. SemVer.prototype.compareMain = function (other) {
  12918. if (!(other instanceof SemVer)) {
  12919. other = new SemVer(other, this.options)
  12920. }
  12921. return compareIdentifiers(this.major, other.major) ||
  12922. compareIdentifiers(this.minor, other.minor) ||
  12923. compareIdentifiers(this.patch, other.patch)
  12924. }
  12925. SemVer.prototype.comparePre = function (other) {
  12926. if (!(other instanceof SemVer)) {
  12927. other = new SemVer(other, this.options)
  12928. }
  12929. // NOT having a prerelease is > having one
  12930. if (this.prerelease.length && !other.prerelease.length) {
  12931. return -1
  12932. } else if (!this.prerelease.length && other.prerelease.length) {
  12933. return 1
  12934. } else if (!this.prerelease.length && !other.prerelease.length) {
  12935. return 0
  12936. }
  12937. var i = 0
  12938. do {
  12939. var a = this.prerelease[i]
  12940. var b = other.prerelease[i]
  12941. debug('prerelease compare', i, a, b)
  12942. if (a === undefined && b === undefined) {
  12943. return 0
  12944. } else if (b === undefined) {
  12945. return 1
  12946. } else if (a === undefined) {
  12947. return -1
  12948. } else if (a === b) {
  12949. continue
  12950. } else {
  12951. return compareIdentifiers(a, b)
  12952. }
  12953. } while (++i)
  12954. }
  12955. SemVer.prototype.compareBuild = function (other) {
  12956. if (!(other instanceof SemVer)) {
  12957. other = new SemVer(other, this.options)
  12958. }
  12959. var i = 0
  12960. do {
  12961. var a = this.build[i]
  12962. var b = other.build[i]
  12963. debug('prerelease compare', i, a, b)
  12964. if (a === undefined && b === undefined) {
  12965. return 0
  12966. } else if (b === undefined) {
  12967. return 1
  12968. } else if (a === undefined) {
  12969. return -1
  12970. } else if (a === b) {
  12971. continue
  12972. } else {
  12973. return compareIdentifiers(a, b)
  12974. }
  12975. } while (++i)
  12976. }
  12977. // preminor will bump the version up to the next minor release, and immediately
  12978. // down to pre-release. premajor and prepatch work the same way.
  12979. SemVer.prototype.inc = function (release, identifier) {
  12980. switch (release) {
  12981. case 'premajor':
  12982. this.prerelease.length = 0
  12983. this.patch = 0
  12984. this.minor = 0
  12985. this.major++
  12986. this.inc('pre', identifier)
  12987. break
  12988. case 'preminor':
  12989. this.prerelease.length = 0
  12990. this.patch = 0
  12991. this.minor++
  12992. this.inc('pre', identifier)
  12993. break
  12994. case 'prepatch':
  12995. // If this is already a prerelease, it will bump to the next version
  12996. // drop any prereleases that might already exist, since they are not
  12997. // relevant at this point.
  12998. this.prerelease.length = 0
  12999. this.inc('patch', identifier)
  13000. this.inc('pre', identifier)
  13001. break
  13002. // If the input is a non-prerelease version, this acts the same as
  13003. // prepatch.
  13004. case 'prerelease':
  13005. if (this.prerelease.length === 0) {
  13006. this.inc('patch', identifier)
  13007. }
  13008. this.inc('pre', identifier)
  13009. break
  13010. case 'major':
  13011. // If this is a pre-major version, bump up to the same major version.
  13012. // Otherwise increment major.
  13013. // 1.0.0-5 bumps to 1.0.0
  13014. // 1.1.0 bumps to 2.0.0
  13015. if (this.minor !== 0 ||
  13016. this.patch !== 0 ||
  13017. this.prerelease.length === 0) {
  13018. this.major++
  13019. }
  13020. this.minor = 0
  13021. this.patch = 0
  13022. this.prerelease = []
  13023. break
  13024. case 'minor':
  13025. // If this is a pre-minor version, bump up to the same minor version.
  13026. // Otherwise increment minor.
  13027. // 1.2.0-5 bumps to 1.2.0
  13028. // 1.2.1 bumps to 1.3.0
  13029. if (this.patch !== 0 || this.prerelease.length === 0) {
  13030. this.minor++
  13031. }
  13032. this.patch = 0
  13033. this.prerelease = []
  13034. break
  13035. case 'patch':
  13036. // If this is not a pre-release version, it will increment the patch.
  13037. // If it is a pre-release it will bump up to the same patch version.
  13038. // 1.2.0-5 patches to 1.2.0
  13039. // 1.2.0 patches to 1.2.1
  13040. if (this.prerelease.length === 0) {
  13041. this.patch++
  13042. }
  13043. this.prerelease = []
  13044. break
  13045. // This probably shouldn't be used publicly.
  13046. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  13047. case 'pre':
  13048. if (this.prerelease.length === 0) {
  13049. this.prerelease = [0]
  13050. } else {
  13051. var i = this.prerelease.length
  13052. while (--i >= 0) {
  13053. if (typeof this.prerelease[i] === 'number') {
  13054. this.prerelease[i]++
  13055. i = -2
  13056. }
  13057. }
  13058. if (i === -1) {
  13059. // didn't increment anything
  13060. this.prerelease.push(0)
  13061. }
  13062. }
  13063. if (identifier) {
  13064. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  13065. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  13066. if (this.prerelease[0] === identifier) {
  13067. if (isNaN(this.prerelease[1])) {
  13068. this.prerelease = [identifier, 0]
  13069. }
  13070. } else {
  13071. this.prerelease = [identifier, 0]
  13072. }
  13073. }
  13074. break
  13075. default:
  13076. throw new Error('invalid increment argument: ' + release)
  13077. }
  13078. this.format()
  13079. this.raw = this.version
  13080. return this
  13081. }
  13082. exports.inc = inc
  13083. function inc (version, release, loose, identifier) {
  13084. if (typeof (loose) === 'string') {
  13085. identifier = loose
  13086. loose = undefined
  13087. }
  13088. try {
  13089. return new SemVer(version, loose).inc(release, identifier).version
  13090. } catch (er) {
  13091. return null
  13092. }
  13093. }
  13094. exports.diff = diff
  13095. function diff (version1, version2) {
  13096. if (eq(version1, version2)) {
  13097. return null
  13098. } else {
  13099. var v1 = parse(version1)
  13100. var v2 = parse(version2)
  13101. var prefix = ''
  13102. if (v1.prerelease.length || v2.prerelease.length) {
  13103. prefix = 'pre'
  13104. var defaultResult = 'prerelease'
  13105. }
  13106. for (var key in v1) {
  13107. if (key === 'major' || key === 'minor' || key === 'patch') {
  13108. if (v1[key] !== v2[key]) {
  13109. return prefix + key
  13110. }
  13111. }
  13112. }
  13113. return defaultResult // may be undefined
  13114. }
  13115. }
  13116. exports.compareIdentifiers = compareIdentifiers
  13117. var numeric = /^[0-9]+$/
  13118. function compareIdentifiers (a, b) {
  13119. var anum = numeric.test(a)
  13120. var bnum = numeric.test(b)
  13121. if (anum && bnum) {
  13122. a = +a
  13123. b = +b
  13124. }
  13125. return a === b ? 0
  13126. : (anum && !bnum) ? -1
  13127. : (bnum && !anum) ? 1
  13128. : a < b ? -1
  13129. : 1
  13130. }
  13131. exports.rcompareIdentifiers = rcompareIdentifiers
  13132. function rcompareIdentifiers (a, b) {
  13133. return compareIdentifiers(b, a)
  13134. }
  13135. exports.major = major
  13136. function major (a, loose) {
  13137. return new SemVer(a, loose).major
  13138. }
  13139. exports.minor = minor
  13140. function minor (a, loose) {
  13141. return new SemVer(a, loose).minor
  13142. }
  13143. exports.patch = patch
  13144. function patch (a, loose) {
  13145. return new SemVer(a, loose).patch
  13146. }
  13147. exports.compare = compare
  13148. function compare (a, b, loose) {
  13149. return new SemVer(a, loose).compare(new SemVer(b, loose))
  13150. }
  13151. exports.compareLoose = compareLoose
  13152. function compareLoose (a, b) {
  13153. return compare(a, b, true)
  13154. }
  13155. exports.compareBuild = compareBuild
  13156. function compareBuild (a, b, loose) {
  13157. var versionA = new SemVer(a, loose)
  13158. var versionB = new SemVer(b, loose)
  13159. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  13160. }
  13161. exports.rcompare = rcompare
  13162. function rcompare (a, b, loose) {
  13163. return compare(b, a, loose)
  13164. }
  13165. exports.sort = sort
  13166. function sort (list, loose) {
  13167. return list.sort(function (a, b) {
  13168. return exports.compareBuild(a, b, loose)
  13169. })
  13170. }
  13171. exports.rsort = rsort
  13172. function rsort (list, loose) {
  13173. return list.sort(function (a, b) {
  13174. return exports.compareBuild(b, a, loose)
  13175. })
  13176. }
  13177. exports.gt = gt
  13178. function gt (a, b, loose) {
  13179. return compare(a, b, loose) > 0
  13180. }
  13181. exports.lt = lt
  13182. function lt (a, b, loose) {
  13183. return compare(a, b, loose) < 0
  13184. }
  13185. exports.eq = eq
  13186. function eq (a, b, loose) {
  13187. return compare(a, b, loose) === 0
  13188. }
  13189. exports.neq = neq
  13190. function neq (a, b, loose) {
  13191. return compare(a, b, loose) !== 0
  13192. }
  13193. exports.gte = gte
  13194. function gte (a, b, loose) {
  13195. return compare(a, b, loose) >= 0
  13196. }
  13197. exports.lte = lte
  13198. function lte (a, b, loose) {
  13199. return compare(a, b, loose) <= 0
  13200. }
  13201. exports.cmp = cmp
  13202. function cmp (a, op, b, loose) {
  13203. switch (op) {
  13204. case '===':
  13205. if (typeof a === 'object')
  13206. a = a.version
  13207. if (typeof b === 'object')
  13208. b = b.version
  13209. return a === b
  13210. case '!==':
  13211. if (typeof a === 'object')
  13212. a = a.version
  13213. if (typeof b === 'object')
  13214. b = b.version
  13215. return a !== b
  13216. case '':
  13217. case '=':
  13218. case '==':
  13219. return eq(a, b, loose)
  13220. case '!=':
  13221. return neq(a, b, loose)
  13222. case '>':
  13223. return gt(a, b, loose)
  13224. case '>=':
  13225. return gte(a, b, loose)
  13226. case '<':
  13227. return lt(a, b, loose)
  13228. case '<=':
  13229. return lte(a, b, loose)
  13230. default:
  13231. throw new TypeError('Invalid operator: ' + op)
  13232. }
  13233. }
  13234. exports.Comparator = Comparator
  13235. function Comparator (comp, options) {
  13236. if (!options || typeof options !== 'object') {
  13237. options = {
  13238. loose: !!options,
  13239. includePrerelease: false
  13240. }
  13241. }
  13242. if (comp instanceof Comparator) {
  13243. if (comp.loose === !!options.loose) {
  13244. return comp
  13245. } else {
  13246. comp = comp.value
  13247. }
  13248. }
  13249. if (!(this instanceof Comparator)) {
  13250. return new Comparator(comp, options)
  13251. }
  13252. debug('comparator', comp, options)
  13253. this.options = options
  13254. this.loose = !!options.loose
  13255. this.parse(comp)
  13256. if (this.semver === ANY) {
  13257. this.value = ''
  13258. } else {
  13259. this.value = this.operator + this.semver.version
  13260. }
  13261. debug('comp', this)
  13262. }
  13263. var ANY = {}
  13264. Comparator.prototype.parse = function (comp) {
  13265. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  13266. var m = comp.match(r)
  13267. if (!m) {
  13268. throw new TypeError('Invalid comparator: ' + comp)
  13269. }
  13270. this.operator = m[1] !== undefined ? m[1] : ''
  13271. if (this.operator === '=') {
  13272. this.operator = ''
  13273. }
  13274. // if it literally is just '>' or '' then allow anything.
  13275. if (!m[2]) {
  13276. this.semver = ANY
  13277. } else {
  13278. this.semver = new SemVer(m[2], this.options.loose)
  13279. }
  13280. }
  13281. Comparator.prototype.toString = function () {
  13282. return this.value
  13283. }
  13284. Comparator.prototype.test = function (version) {
  13285. debug('Comparator.test', version, this.options.loose)
  13286. if (this.semver === ANY || version === ANY) {
  13287. return true
  13288. }
  13289. if (typeof version === 'string') {
  13290. try {
  13291. version = new SemVer(version, this.options)
  13292. } catch (er) {
  13293. return false
  13294. }
  13295. }
  13296. return cmp(version, this.operator, this.semver, this.options)
  13297. }
  13298. Comparator.prototype.intersects = function (comp, options) {
  13299. if (!(comp instanceof Comparator)) {
  13300. throw new TypeError('a Comparator is required')
  13301. }
  13302. if (!options || typeof options !== 'object') {
  13303. options = {
  13304. loose: !!options,
  13305. includePrerelease: false
  13306. }
  13307. }
  13308. var rangeTmp
  13309. if (this.operator === '') {
  13310. if (this.value === '') {
  13311. return true
  13312. }
  13313. rangeTmp = new Range(comp.value, options)
  13314. return satisfies(this.value, rangeTmp, options)
  13315. } else if (comp.operator === '') {
  13316. if (comp.value === '') {
  13317. return true
  13318. }
  13319. rangeTmp = new Range(this.value, options)
  13320. return satisfies(comp.semver, rangeTmp, options)
  13321. }
  13322. var sameDirectionIncreasing =
  13323. (this.operator === '>=' || this.operator === '>') &&
  13324. (comp.operator === '>=' || comp.operator === '>')
  13325. var sameDirectionDecreasing =
  13326. (this.operator === '<=' || this.operator === '<') &&
  13327. (comp.operator === '<=' || comp.operator === '<')
  13328. var sameSemVer = this.semver.version === comp.semver.version
  13329. var differentDirectionsInclusive =
  13330. (this.operator === '>=' || this.operator === '<=') &&
  13331. (comp.operator === '>=' || comp.operator === '<=')
  13332. var oppositeDirectionsLessThan =
  13333. cmp(this.semver, '<', comp.semver, options) &&
  13334. ((this.operator === '>=' || this.operator === '>') &&
  13335. (comp.operator === '<=' || comp.operator === '<'))
  13336. var oppositeDirectionsGreaterThan =
  13337. cmp(this.semver, '>', comp.semver, options) &&
  13338. ((this.operator === '<=' || this.operator === '<') &&
  13339. (comp.operator === '>=' || comp.operator === '>'))
  13340. return sameDirectionIncreasing || sameDirectionDecreasing ||
  13341. (sameSemVer && differentDirectionsInclusive) ||
  13342. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  13343. }
  13344. exports.Range = Range
  13345. function Range (range, options) {
  13346. if (!options || typeof options !== 'object') {
  13347. options = {
  13348. loose: !!options,
  13349. includePrerelease: false
  13350. }
  13351. }
  13352. if (range instanceof Range) {
  13353. if (range.loose === !!options.loose &&
  13354. range.includePrerelease === !!options.includePrerelease) {
  13355. return range
  13356. } else {
  13357. return new Range(range.raw, options)
  13358. }
  13359. }
  13360. if (range instanceof Comparator) {
  13361. return new Range(range.value, options)
  13362. }
  13363. if (!(this instanceof Range)) {
  13364. return new Range(range, options)
  13365. }
  13366. this.options = options
  13367. this.loose = !!options.loose
  13368. this.includePrerelease = !!options.includePrerelease
  13369. // First, split based on boolean or ||
  13370. this.raw = range
  13371. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  13372. return this.parseRange(range.trim())
  13373. }, this).filter(function (c) {
  13374. // throw out any that are not relevant for whatever reason
  13375. return c.length
  13376. })
  13377. if (!this.set.length) {
  13378. throw new TypeError('Invalid SemVer Range: ' + range)
  13379. }
  13380. this.format()
  13381. }
  13382. Range.prototype.format = function () {
  13383. this.range = this.set.map(function (comps) {
  13384. return comps.join(' ').trim()
  13385. }).join('||').trim()
  13386. return this.range
  13387. }
  13388. Range.prototype.toString = function () {
  13389. return this.range
  13390. }
  13391. Range.prototype.parseRange = function (range) {
  13392. var loose = this.options.loose
  13393. range = range.trim()
  13394. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  13395. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  13396. range = range.replace(hr, hyphenReplace)
  13397. debug('hyphen replace', range)
  13398. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  13399. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  13400. debug('comparator trim', range, re[t.COMPARATORTRIM])
  13401. // `~ 1.2.3` => `~1.2.3`
  13402. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  13403. // `^ 1.2.3` => `^1.2.3`
  13404. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  13405. // normalize spaces
  13406. range = range.split(/\s+/).join(' ')
  13407. // At this point, the range is completely trimmed and
  13408. // ready to be split into comparators.
  13409. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  13410. var set = range.split(' ').map(function (comp) {
  13411. return parseComparator(comp, this.options)
  13412. }, this).join(' ').split(/\s+/)
  13413. if (this.options.loose) {
  13414. // in loose mode, throw out any that are not valid comparators
  13415. set = set.filter(function (comp) {
  13416. return !!comp.match(compRe)
  13417. })
  13418. }
  13419. set = set.map(function (comp) {
  13420. return new Comparator(comp, this.options)
  13421. }, this)
  13422. return set
  13423. }
  13424. Range.prototype.intersects = function (range, options) {
  13425. if (!(range instanceof Range)) {
  13426. throw new TypeError('a Range is required')
  13427. }
  13428. return this.set.some(function (thisComparators) {
  13429. return (
  13430. isSatisfiable(thisComparators, options) &&
  13431. range.set.some(function (rangeComparators) {
  13432. return (
  13433. isSatisfiable(rangeComparators, options) &&
  13434. thisComparators.every(function (thisComparator) {
  13435. return rangeComparators.every(function (rangeComparator) {
  13436. return thisComparator.intersects(rangeComparator, options)
  13437. })
  13438. })
  13439. )
  13440. })
  13441. )
  13442. })
  13443. }
  13444. // take a set of comparators and determine whether there
  13445. // exists a version which can satisfy it
  13446. function isSatisfiable (comparators, options) {
  13447. var result = true
  13448. var remainingComparators = comparators.slice()
  13449. var testComparator = remainingComparators.pop()
  13450. while (result && remainingComparators.length) {
  13451. result = remainingComparators.every(function (otherComparator) {
  13452. return testComparator.intersects(otherComparator, options)
  13453. })
  13454. testComparator = remainingComparators.pop()
  13455. }
  13456. return result
  13457. }
  13458. // Mostly just for testing and legacy API reasons
  13459. exports.toComparators = toComparators
  13460. function toComparators (range, options) {
  13461. return new Range(range, options).set.map(function (comp) {
  13462. return comp.map(function (c) {
  13463. return c.value
  13464. }).join(' ').trim().split(' ')
  13465. })
  13466. }
  13467. // comprised of xranges, tildes, stars, and gtlt's at this point.
  13468. // already replaced the hyphen ranges
  13469. // turn into a set of JUST comparators.
  13470. function parseComparator (comp, options) {
  13471. debug('comp', comp, options)
  13472. comp = replaceCarets(comp, options)
  13473. debug('caret', comp)
  13474. comp = replaceTildes(comp, options)
  13475. debug('tildes', comp)
  13476. comp = replaceXRanges(comp, options)
  13477. debug('xrange', comp)
  13478. comp = replaceStars(comp, options)
  13479. debug('stars', comp)
  13480. return comp
  13481. }
  13482. function isX (id) {
  13483. return !id || id.toLowerCase() === 'x' || id === '*'
  13484. }
  13485. // ~, ~> --> * (any, kinda silly)
  13486. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  13487. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  13488. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  13489. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  13490. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  13491. function replaceTildes (comp, options) {
  13492. return comp.trim().split(/\s+/).map(function (comp) {
  13493. return replaceTilde(comp, options)
  13494. }).join(' ')
  13495. }
  13496. function replaceTilde (comp, options) {
  13497. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  13498. return comp.replace(r, function (_, M, m, p, pr) {
  13499. debug('tilde', comp, _, M, m, p, pr)
  13500. var ret
  13501. if (isX(M)) {
  13502. ret = ''
  13503. } else if (isX(m)) {
  13504. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  13505. } else if (isX(p)) {
  13506. // ~1.2 == >=1.2.0 <1.3.0
  13507. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  13508. } else if (pr) {
  13509. debug('replaceTilde pr', pr)
  13510. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13511. ' <' + M + '.' + (+m + 1) + '.0'
  13512. } else {
  13513. // ~1.2.3 == >=1.2.3 <1.3.0
  13514. ret = '>=' + M + '.' + m + '.' + p +
  13515. ' <' + M + '.' + (+m + 1) + '.0'
  13516. }
  13517. debug('tilde return', ret)
  13518. return ret
  13519. })
  13520. }
  13521. // ^ --> * (any, kinda silly)
  13522. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  13523. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  13524. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  13525. // ^1.2.3 --> >=1.2.3 <2.0.0
  13526. // ^1.2.0 --> >=1.2.0 <2.0.0
  13527. function replaceCarets (comp, options) {
  13528. return comp.trim().split(/\s+/).map(function (comp) {
  13529. return replaceCaret(comp, options)
  13530. }).join(' ')
  13531. }
  13532. function replaceCaret (comp, options) {
  13533. debug('caret', comp, options)
  13534. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  13535. return comp.replace(r, function (_, M, m, p, pr) {
  13536. debug('caret', comp, _, M, m, p, pr)
  13537. var ret
  13538. if (isX(M)) {
  13539. ret = ''
  13540. } else if (isX(m)) {
  13541. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  13542. } else if (isX(p)) {
  13543. if (M === '0') {
  13544. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  13545. } else {
  13546. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  13547. }
  13548. } else if (pr) {
  13549. debug('replaceCaret pr', pr)
  13550. if (M === '0') {
  13551. if (m === '0') {
  13552. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13553. ' <' + M + '.' + m + '.' + (+p + 1)
  13554. } else {
  13555. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13556. ' <' + M + '.' + (+m + 1) + '.0'
  13557. }
  13558. } else {
  13559. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13560. ' <' + (+M + 1) + '.0.0'
  13561. }
  13562. } else {
  13563. debug('no pr')
  13564. if (M === '0') {
  13565. if (m === '0') {
  13566. ret = '>=' + M + '.' + m + '.' + p +
  13567. ' <' + M + '.' + m + '.' + (+p + 1)
  13568. } else {
  13569. ret = '>=' + M + '.' + m + '.' + p +
  13570. ' <' + M + '.' + (+m + 1) + '.0'
  13571. }
  13572. } else {
  13573. ret = '>=' + M + '.' + m + '.' + p +
  13574. ' <' + (+M + 1) + '.0.0'
  13575. }
  13576. }
  13577. debug('caret return', ret)
  13578. return ret
  13579. })
  13580. }
  13581. function replaceXRanges (comp, options) {
  13582. debug('replaceXRanges', comp, options)
  13583. return comp.split(/\s+/).map(function (comp) {
  13584. return replaceXRange(comp, options)
  13585. }).join(' ')
  13586. }
  13587. function replaceXRange (comp, options) {
  13588. comp = comp.trim()
  13589. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  13590. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  13591. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  13592. var xM = isX(M)
  13593. var xm = xM || isX(m)
  13594. var xp = xm || isX(p)
  13595. var anyX = xp
  13596. if (gtlt === '=' && anyX) {
  13597. gtlt = ''
  13598. }
  13599. // if we're including prereleases in the match, then we need
  13600. // to fix this to -0, the lowest possible prerelease value
  13601. pr = options.includePrerelease ? '-0' : ''
  13602. if (xM) {
  13603. if (gtlt === '>' || gtlt === '<') {
  13604. // nothing is allowed
  13605. ret = '<0.0.0-0'
  13606. } else {
  13607. // nothing is forbidden
  13608. ret = '*'
  13609. }
  13610. } else if (gtlt && anyX) {
  13611. // we know patch is an x, because we have any x at all.
  13612. // replace X with 0
  13613. if (xm) {
  13614. m = 0
  13615. }
  13616. p = 0
  13617. if (gtlt === '>') {
  13618. // >1 => >=2.0.0
  13619. // >1.2 => >=1.3.0
  13620. // >1.2.3 => >= 1.2.4
  13621. gtlt = '>='
  13622. if (xm) {
  13623. M = +M + 1
  13624. m = 0
  13625. p = 0
  13626. } else {
  13627. m = +m + 1
  13628. p = 0
  13629. }
  13630. } else if (gtlt === '<=') {
  13631. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  13632. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  13633. gtlt = '<'
  13634. if (xm) {
  13635. M = +M + 1
  13636. } else {
  13637. m = +m + 1
  13638. }
  13639. }
  13640. ret = gtlt + M + '.' + m + '.' + p + pr
  13641. } else if (xm) {
  13642. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  13643. } else if (xp) {
  13644. ret = '>=' + M + '.' + m + '.0' + pr +
  13645. ' <' + M + '.' + (+m + 1) + '.0' + pr
  13646. }
  13647. debug('xRange return', ret)
  13648. return ret
  13649. })
  13650. }
  13651. // Because * is AND-ed with everything else in the comparator,
  13652. // and '' means "any version", just remove the *s entirely.
  13653. function replaceStars (comp, options) {
  13654. debug('replaceStars', comp, options)
  13655. // Looseness is ignored here. star is always as loose as it gets!
  13656. return comp.trim().replace(re[t.STAR], '')
  13657. }
  13658. // This function is passed to string.replace(re[t.HYPHENRANGE])
  13659. // M, m, patch, prerelease, build
  13660. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  13661. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  13662. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  13663. function hyphenReplace ($0,
  13664. from, fM, fm, fp, fpr, fb,
  13665. to, tM, tm, tp, tpr, tb) {
  13666. if (isX(fM)) {
  13667. from = ''
  13668. } else if (isX(fm)) {
  13669. from = '>=' + fM + '.0.0'
  13670. } else if (isX(fp)) {
  13671. from = '>=' + fM + '.' + fm + '.0'
  13672. } else {
  13673. from = '>=' + from
  13674. }
  13675. if (isX(tM)) {
  13676. to = ''
  13677. } else if (isX(tm)) {
  13678. to = '<' + (+tM + 1) + '.0.0'
  13679. } else if (isX(tp)) {
  13680. to = '<' + tM + '.' + (+tm + 1) + '.0'
  13681. } else if (tpr) {
  13682. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  13683. } else {
  13684. to = '<=' + to
  13685. }
  13686. return (from + ' ' + to).trim()
  13687. }
  13688. // if ANY of the sets match ALL of its comparators, then pass
  13689. Range.prototype.test = function (version) {
  13690. if (!version) {
  13691. return false
  13692. }
  13693. if (typeof version === 'string') {
  13694. try {
  13695. version = new SemVer(version, this.options)
  13696. } catch (er) {
  13697. return false
  13698. }
  13699. }
  13700. for (var i = 0; i < this.set.length; i++) {
  13701. if (testSet(this.set[i], version, this.options)) {
  13702. return true
  13703. }
  13704. }
  13705. return false
  13706. }
  13707. function testSet (set, version, options) {
  13708. for (var i = 0; i < set.length; i++) {
  13709. if (!set[i].test(version)) {
  13710. return false
  13711. }
  13712. }
  13713. if (version.prerelease.length && !options.includePrerelease) {
  13714. // Find the set of versions that are allowed to have prereleases
  13715. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  13716. // That should allow `1.2.3-pr.2` to pass.
  13717. // However, `1.2.4-alpha.notready` should NOT be allowed,
  13718. // even though it's within the range set by the comparators.
  13719. for (i = 0; i < set.length; i++) {
  13720. debug(set[i].semver)
  13721. if (set[i].semver === ANY) {
  13722. continue
  13723. }
  13724. if (set[i].semver.prerelease.length > 0) {
  13725. var allowed = set[i].semver
  13726. if (allowed.major === version.major &&
  13727. allowed.minor === version.minor &&
  13728. allowed.patch === version.patch) {
  13729. return true
  13730. }
  13731. }
  13732. }
  13733. // Version has a -pre, but it's not one of the ones we like.
  13734. return false
  13735. }
  13736. return true
  13737. }
  13738. exports.satisfies = satisfies
  13739. function satisfies (version, range, options) {
  13740. try {
  13741. range = new Range(range, options)
  13742. } catch (er) {
  13743. return false
  13744. }
  13745. return range.test(version)
  13746. }
  13747. exports.maxSatisfying = maxSatisfying
  13748. function maxSatisfying (versions, range, options) {
  13749. var max = null
  13750. var maxSV = null
  13751. try {
  13752. var rangeObj = new Range(range, options)
  13753. } catch (er) {
  13754. return null
  13755. }
  13756. versions.forEach(function (v) {
  13757. if (rangeObj.test(v)) {
  13758. // satisfies(v, range, options)
  13759. if (!max || maxSV.compare(v) === -1) {
  13760. // compare(max, v, true)
  13761. max = v
  13762. maxSV = new SemVer(max, options)
  13763. }
  13764. }
  13765. })
  13766. return max
  13767. }
  13768. exports.minSatisfying = minSatisfying
  13769. function minSatisfying (versions, range, options) {
  13770. var min = null
  13771. var minSV = null
  13772. try {
  13773. var rangeObj = new Range(range, options)
  13774. } catch (er) {
  13775. return null
  13776. }
  13777. versions.forEach(function (v) {
  13778. if (rangeObj.test(v)) {
  13779. // satisfies(v, range, options)
  13780. if (!min || minSV.compare(v) === 1) {
  13781. // compare(min, v, true)
  13782. min = v
  13783. minSV = new SemVer(min, options)
  13784. }
  13785. }
  13786. })
  13787. return min
  13788. }
  13789. exports.minVersion = minVersion
  13790. function minVersion (range, loose) {
  13791. range = new Range(range, loose)
  13792. var minver = new SemVer('0.0.0')
  13793. if (range.test(minver)) {
  13794. return minver
  13795. }
  13796. minver = new SemVer('0.0.0-0')
  13797. if (range.test(minver)) {
  13798. return minver
  13799. }
  13800. minver = null
  13801. for (var i = 0; i < range.set.length; ++i) {
  13802. var comparators = range.set[i]
  13803. comparators.forEach(function (comparator) {
  13804. // Clone to avoid manipulating the comparator's semver object.
  13805. var compver = new SemVer(comparator.semver.version)
  13806. switch (comparator.operator) {
  13807. case '>':
  13808. if (compver.prerelease.length === 0) {
  13809. compver.patch++
  13810. } else {
  13811. compver.prerelease.push(0)
  13812. }
  13813. compver.raw = compver.format()
  13814. /* fallthrough */
  13815. case '':
  13816. case '>=':
  13817. if (!minver || gt(minver, compver)) {
  13818. minver = compver
  13819. }
  13820. break
  13821. case '<':
  13822. case '<=':
  13823. /* Ignore maximum versions */
  13824. break
  13825. /* istanbul ignore next */
  13826. default:
  13827. throw new Error('Unexpected operation: ' + comparator.operator)
  13828. }
  13829. })
  13830. }
  13831. if (minver && range.test(minver)) {
  13832. return minver
  13833. }
  13834. return null
  13835. }
  13836. exports.validRange = validRange
  13837. function validRange (range, options) {
  13838. try {
  13839. // Return '*' instead of '' so that truthiness works.
  13840. // This will throw if it's invalid anyway
  13841. return new Range(range, options).range || '*'
  13842. } catch (er) {
  13843. return null
  13844. }
  13845. }
  13846. // Determine if version is less than all the versions possible in the range
  13847. exports.ltr = ltr
  13848. function ltr (version, range, options) {
  13849. return outside(version, range, '<', options)
  13850. }
  13851. // Determine if version is greater than all the versions possible in the range.
  13852. exports.gtr = gtr
  13853. function gtr (version, range, options) {
  13854. return outside(version, range, '>', options)
  13855. }
  13856. exports.outside = outside
  13857. function outside (version, range, hilo, options) {
  13858. version = new SemVer(version, options)
  13859. range = new Range(range, options)
  13860. var gtfn, ltefn, ltfn, comp, ecomp
  13861. switch (hilo) {
  13862. case '>':
  13863. gtfn = gt
  13864. ltefn = lte
  13865. ltfn = lt
  13866. comp = '>'
  13867. ecomp = '>='
  13868. break
  13869. case '<':
  13870. gtfn = lt
  13871. ltefn = gte
  13872. ltfn = gt
  13873. comp = '<'
  13874. ecomp = '<='
  13875. break
  13876. default:
  13877. throw new TypeError('Must provide a hilo val of "<" or ">"')
  13878. }
  13879. // If it satisifes the range it is not outside
  13880. if (satisfies(version, range, options)) {
  13881. return false
  13882. }
  13883. // From now on, variable terms are as if we're in "gtr" mode.
  13884. // but note that everything is flipped for the "ltr" function.
  13885. for (var i = 0; i < range.set.length; ++i) {
  13886. var comparators = range.set[i]
  13887. var high = null
  13888. var low = null
  13889. comparators.forEach(function (comparator) {
  13890. if (comparator.semver === ANY) {
  13891. comparator = new Comparator('>=0.0.0')
  13892. }
  13893. high = high || comparator
  13894. low = low || comparator
  13895. if (gtfn(comparator.semver, high.semver, options)) {
  13896. high = comparator
  13897. } else if (ltfn(comparator.semver, low.semver, options)) {
  13898. low = comparator
  13899. }
  13900. })
  13901. // If the edge version comparator has a operator then our version
  13902. // isn't outside it
  13903. if (high.operator === comp || high.operator === ecomp) {
  13904. return false
  13905. }
  13906. // If the lowest version comparator has an operator and our version
  13907. // is less than it then it isn't higher than the range
  13908. if ((!low.operator || low.operator === comp) &&
  13909. ltefn(version, low.semver)) {
  13910. return false
  13911. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  13912. return false
  13913. }
  13914. }
  13915. return true
  13916. }
  13917. exports.prerelease = prerelease
  13918. function prerelease (version, options) {
  13919. var parsed = parse(version, options)
  13920. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  13921. }
  13922. exports.intersects = intersects
  13923. function intersects (r1, r2, options) {
  13924. r1 = new Range(r1, options)
  13925. r2 = new Range(r2, options)
  13926. return r1.intersects(r2)
  13927. }
  13928. exports.coerce = coerce
  13929. function coerce (version, options) {
  13930. if (version instanceof SemVer) {
  13931. return version
  13932. }
  13933. if (typeof version === 'number') {
  13934. version = String(version)
  13935. }
  13936. if (typeof version !== 'string') {
  13937. return null
  13938. }
  13939. options = options || {}
  13940. var match = null
  13941. if (!options.rtl) {
  13942. match = version.match(re[t.COERCE])
  13943. } else {
  13944. // Find the right-most coercible string that does not share
  13945. // a terminus with a more left-ward coercible string.
  13946. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  13947. //
  13948. // Walk through the string checking with a /g regexp
  13949. // Manually set the index so as to pick up overlapping matches.
  13950. // Stop when we get a match that ends at the string end, since no
  13951. // coercible string can be more right-ward without the same terminus.
  13952. var next
  13953. while ((next = re[t.COERCERTL].exec(version)) &&
  13954. (!match || match.index + match[0].length !== version.length)
  13955. ) {
  13956. if (!match ||
  13957. next.index + next[0].length !== match.index + match[0].length) {
  13958. match = next
  13959. }
  13960. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  13961. }
  13962. // leave it in a clean state
  13963. re[t.COERCERTL].lastIndex = -1
  13964. }
  13965. if (match === null) {
  13966. return null
  13967. }
  13968. return parse(match[2] +
  13969. '.' + (match[3] || '0') +
  13970. '.' + (match[4] || '0'), options)
  13971. }
  13972. /***/ }),
  13973. /***/ 659:
  13974. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  13975. "use strict";
  13976. Object.defineProperty(exports, "__esModule", {
  13977. value: true
  13978. });
  13979. exports.default = void 0;
  13980. var _crypto = _interopRequireDefault(__webpack_require__(417));
  13981. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  13982. function md5(bytes) {
  13983. if (Array.isArray(bytes)) {
  13984. bytes = Buffer.from(bytes);
  13985. } else if (typeof bytes === 'string') {
  13986. bytes = Buffer.from(bytes, 'utf8');
  13987. }
  13988. return _crypto.default.createHash('md5').update(bytes).digest();
  13989. }
  13990. var _default = md5;
  13991. exports.default = _default;
  13992. /***/ }),
  13993. /***/ 665:
  13994. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  13995. "use strict";
  13996. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  13997. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  13998. return new (P || (P = Promise))(function (resolve, reject) {
  13999. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14000. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14001. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14002. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14003. });
  14004. };
  14005. Object.defineProperty(exports, "__esModule", { value: true });
  14006. exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
  14007. const os_1 = __webpack_require__(87);
  14008. const fs_1 = __webpack_require__(747);
  14009. const { access, appendFile, writeFile } = fs_1.promises;
  14010. exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
  14011. exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
  14012. class Summary {
  14013. constructor() {
  14014. this._buffer = '';
  14015. }
  14016. /**
  14017. * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
  14018. * Also checks r/w permissions.
  14019. *
  14020. * @returns step summary file path
  14021. */
  14022. filePath() {
  14023. return __awaiter(this, void 0, void 0, function* () {
  14024. if (this._filePath) {
  14025. return this._filePath;
  14026. }
  14027. const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
  14028. if (!pathFromEnv) {
  14029. throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
  14030. }
  14031. try {
  14032. yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
  14033. }
  14034. catch (_a) {
  14035. throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
  14036. }
  14037. this._filePath = pathFromEnv;
  14038. return this._filePath;
  14039. });
  14040. }
  14041. /**
  14042. * Wraps content in an HTML tag, adding any HTML attributes
  14043. *
  14044. * @param {string} tag HTML tag to wrap
  14045. * @param {string | null} content content within the tag
  14046. * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
  14047. *
  14048. * @returns {string} content wrapped in HTML element
  14049. */
  14050. wrap(tag, content, attrs = {}) {
  14051. const htmlAttrs = Object.entries(attrs)
  14052. .map(([key, value]) => ` ${key}="${value}"`)
  14053. .join('');
  14054. if (!content) {
  14055. return `<${tag}${htmlAttrs}>`;
  14056. }
  14057. return `<${tag}${htmlAttrs}>${content}</${tag}>`;
  14058. }
  14059. /**
  14060. * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
  14061. *
  14062. * @param {SummaryWriteOptions} [options] (optional) options for write operation
  14063. *
  14064. * @returns {Promise<Summary>} summary instance
  14065. */
  14066. write(options) {
  14067. return __awaiter(this, void 0, void 0, function* () {
  14068. const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
  14069. const filePath = yield this.filePath();
  14070. const writeFunc = overwrite ? writeFile : appendFile;
  14071. yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
  14072. return this.emptyBuffer();
  14073. });
  14074. }
  14075. /**
  14076. * Clears the summary buffer and wipes the summary file
  14077. *
  14078. * @returns {Summary} summary instance
  14079. */
  14080. clear() {
  14081. return __awaiter(this, void 0, void 0, function* () {
  14082. return this.emptyBuffer().write({ overwrite: true });
  14083. });
  14084. }
  14085. /**
  14086. * Returns the current summary buffer as a string
  14087. *
  14088. * @returns {string} string of summary buffer
  14089. */
  14090. stringify() {
  14091. return this._buffer;
  14092. }
  14093. /**
  14094. * If the summary buffer is empty
  14095. *
  14096. * @returns {boolen} true if the buffer is empty
  14097. */
  14098. isEmptyBuffer() {
  14099. return this._buffer.length === 0;
  14100. }
  14101. /**
  14102. * Resets the summary buffer without writing to summary file
  14103. *
  14104. * @returns {Summary} summary instance
  14105. */
  14106. emptyBuffer() {
  14107. this._buffer = '';
  14108. return this;
  14109. }
  14110. /**
  14111. * Adds raw text to the summary buffer
  14112. *
  14113. * @param {string} text content to add
  14114. * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
  14115. *
  14116. * @returns {Summary} summary instance
  14117. */
  14118. addRaw(text, addEOL = false) {
  14119. this._buffer += text;
  14120. return addEOL ? this.addEOL() : this;
  14121. }
  14122. /**
  14123. * Adds the operating system-specific end-of-line marker to the buffer
  14124. *
  14125. * @returns {Summary} summary instance
  14126. */
  14127. addEOL() {
  14128. return this.addRaw(os_1.EOL);
  14129. }
  14130. /**
  14131. * Adds an HTML codeblock to the summary buffer
  14132. *
  14133. * @param {string} code content to render within fenced code block
  14134. * @param {string} lang (optional) language to syntax highlight code
  14135. *
  14136. * @returns {Summary} summary instance
  14137. */
  14138. addCodeBlock(code, lang) {
  14139. const attrs = Object.assign({}, (lang && { lang }));
  14140. const element = this.wrap('pre', this.wrap('code', code), attrs);
  14141. return this.addRaw(element).addEOL();
  14142. }
  14143. /**
  14144. * Adds an HTML list to the summary buffer
  14145. *
  14146. * @param {string[]} items list of items to render
  14147. * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
  14148. *
  14149. * @returns {Summary} summary instance
  14150. */
  14151. addList(items, ordered = false) {
  14152. const tag = ordered ? 'ol' : 'ul';
  14153. const listItems = items.map(item => this.wrap('li', item)).join('');
  14154. const element = this.wrap(tag, listItems);
  14155. return this.addRaw(element).addEOL();
  14156. }
  14157. /**
  14158. * Adds an HTML table to the summary buffer
  14159. *
  14160. * @param {SummaryTableCell[]} rows table rows
  14161. *
  14162. * @returns {Summary} summary instance
  14163. */
  14164. addTable(rows) {
  14165. const tableBody = rows
  14166. .map(row => {
  14167. const cells = row
  14168. .map(cell => {
  14169. if (typeof cell === 'string') {
  14170. return this.wrap('td', cell);
  14171. }
  14172. const { header, data, colspan, rowspan } = cell;
  14173. const tag = header ? 'th' : 'td';
  14174. const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
  14175. return this.wrap(tag, data, attrs);
  14176. })
  14177. .join('');
  14178. return this.wrap('tr', cells);
  14179. })
  14180. .join('');
  14181. const element = this.wrap('table', tableBody);
  14182. return this.addRaw(element).addEOL();
  14183. }
  14184. /**
  14185. * Adds a collapsable HTML details element to the summary buffer
  14186. *
  14187. * @param {string} label text for the closed state
  14188. * @param {string} content collapsable content
  14189. *
  14190. * @returns {Summary} summary instance
  14191. */
  14192. addDetails(label, content) {
  14193. const element = this.wrap('details', this.wrap('summary', label) + content);
  14194. return this.addRaw(element).addEOL();
  14195. }
  14196. /**
  14197. * Adds an HTML image tag to the summary buffer
  14198. *
  14199. * @param {string} src path to the image you to embed
  14200. * @param {string} alt text description of the image
  14201. * @param {SummaryImageOptions} options (optional) addition image attributes
  14202. *
  14203. * @returns {Summary} summary instance
  14204. */
  14205. addImage(src, alt, options) {
  14206. const { width, height } = options || {};
  14207. const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
  14208. const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
  14209. return this.addRaw(element).addEOL();
  14210. }
  14211. /**
  14212. * Adds an HTML section heading element
  14213. *
  14214. * @param {string} text heading text
  14215. * @param {number | string} [level=1] (optional) the heading level, default: 1
  14216. *
  14217. * @returns {Summary} summary instance
  14218. */
  14219. addHeading(text, level) {
  14220. const tag = `h${level}`;
  14221. const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
  14222. ? tag
  14223. : 'h1';
  14224. const element = this.wrap(allowedTag, text);
  14225. return this.addRaw(element).addEOL();
  14226. }
  14227. /**
  14228. * Adds an HTML thematic break (<hr>) to the summary buffer
  14229. *
  14230. * @returns {Summary} summary instance
  14231. */
  14232. addSeparator() {
  14233. const element = this.wrap('hr', null);
  14234. return this.addRaw(element).addEOL();
  14235. }
  14236. /**
  14237. * Adds an HTML line break (<br>) to the summary buffer
  14238. *
  14239. * @returns {Summary} summary instance
  14240. */
  14241. addBreak() {
  14242. const element = this.wrap('br', null);
  14243. return this.addRaw(element).addEOL();
  14244. }
  14245. /**
  14246. * Adds an HTML blockquote to the summary buffer
  14247. *
  14248. * @param {string} text quote text
  14249. * @param {string} cite (optional) citation url
  14250. *
  14251. * @returns {Summary} summary instance
  14252. */
  14253. addQuote(text, cite) {
  14254. const attrs = Object.assign({}, (cite && { cite }));
  14255. const element = this.wrap('blockquote', text, attrs);
  14256. return this.addRaw(element).addEOL();
  14257. }
  14258. /**
  14259. * Adds an HTML anchor tag to the summary buffer
  14260. *
  14261. * @param {string} text link text/content
  14262. * @param {string} href hyperlink
  14263. *
  14264. * @returns {Summary} summary instance
  14265. */
  14266. addLink(text, href) {
  14267. const element = this.wrap('a', text, { href });
  14268. return this.addRaw(element).addEOL();
  14269. }
  14270. }
  14271. const _summary = new Summary();
  14272. /**
  14273. * @deprecated use `core.summary`
  14274. */
  14275. exports.markdownSummary = _summary;
  14276. exports.summary = _summary;
  14277. //# sourceMappingURL=summary.js.map
  14278. /***/ }),
  14279. /***/ 667:
  14280. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14281. "use strict";
  14282. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  14283. if (k2 === undefined) k2 = k;
  14284. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  14285. }) : (function(o, m, k, k2) {
  14286. if (k2 === undefined) k2 = k;
  14287. o[k2] = m[k];
  14288. }));
  14289. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14290. Object.defineProperty(o, "default", { enumerable: true, value: v });
  14291. }) : function(o, v) {
  14292. o["default"] = v;
  14293. });
  14294. var __importStar = (this && this.__importStar) || function (mod) {
  14295. if (mod && mod.__esModule) return mod;
  14296. var result = {};
  14297. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  14298. __setModuleDefault(result, mod);
  14299. return result;
  14300. };
  14301. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14302. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14303. return new (P || (P = Promise))(function (resolve, reject) {
  14304. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14305. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14306. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14307. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14308. });
  14309. };
  14310. Object.defineProperty(exports, "__esModule", { value: true });
  14311. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  14312. const assert_1 = __webpack_require__(357);
  14313. const childProcess = __importStar(__webpack_require__(129));
  14314. const path = __importStar(__webpack_require__(622));
  14315. const util_1 = __webpack_require__(669);
  14316. const ioUtil = __importStar(__webpack_require__(971));
  14317. const exec = util_1.promisify(childProcess.exec);
  14318. const execFile = util_1.promisify(childProcess.execFile);
  14319. /**
  14320. * Copies a file or folder.
  14321. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  14322. *
  14323. * @param source source path
  14324. * @param dest destination path
  14325. * @param options optional. See CopyOptions.
  14326. */
  14327. function cp(source, dest, options = {}) {
  14328. return __awaiter(this, void 0, void 0, function* () {
  14329. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  14330. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  14331. // Dest is an existing file, but not forcing
  14332. if (destStat && destStat.isFile() && !force) {
  14333. return;
  14334. }
  14335. // If dest is an existing directory, should copy inside.
  14336. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  14337. ? path.join(dest, path.basename(source))
  14338. : dest;
  14339. if (!(yield ioUtil.exists(source))) {
  14340. throw new Error(`no such file or directory: ${source}`);
  14341. }
  14342. const sourceStat = yield ioUtil.stat(source);
  14343. if (sourceStat.isDirectory()) {
  14344. if (!recursive) {
  14345. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  14346. }
  14347. else {
  14348. yield cpDirRecursive(source, newDest, 0, force);
  14349. }
  14350. }
  14351. else {
  14352. if (path.relative(source, newDest) === '') {
  14353. // a file cannot be copied to itself
  14354. throw new Error(`'${newDest}' and '${source}' are the same file`);
  14355. }
  14356. yield copyFile(source, newDest, force);
  14357. }
  14358. });
  14359. }
  14360. exports.cp = cp;
  14361. /**
  14362. * Moves a path.
  14363. *
  14364. * @param source source path
  14365. * @param dest destination path
  14366. * @param options optional. See MoveOptions.
  14367. */
  14368. function mv(source, dest, options = {}) {
  14369. return __awaiter(this, void 0, void 0, function* () {
  14370. if (yield ioUtil.exists(dest)) {
  14371. let destExists = true;
  14372. if (yield ioUtil.isDirectory(dest)) {
  14373. // If dest is directory copy src into dest
  14374. dest = path.join(dest, path.basename(source));
  14375. destExists = yield ioUtil.exists(dest);
  14376. }
  14377. if (destExists) {
  14378. if (options.force == null || options.force) {
  14379. yield rmRF(dest);
  14380. }
  14381. else {
  14382. throw new Error('Destination already exists');
  14383. }
  14384. }
  14385. }
  14386. yield mkdirP(path.dirname(dest));
  14387. yield ioUtil.rename(source, dest);
  14388. });
  14389. }
  14390. exports.mv = mv;
  14391. /**
  14392. * Remove a path recursively with force
  14393. *
  14394. * @param inputPath path to remove
  14395. */
  14396. function rmRF(inputPath) {
  14397. return __awaiter(this, void 0, void 0, function* () {
  14398. if (ioUtil.IS_WINDOWS) {
  14399. // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
  14400. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
  14401. // Check for invalid characters
  14402. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  14403. if (/[*"<>|]/.test(inputPath)) {
  14404. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  14405. }
  14406. try {
  14407. const cmdPath = ioUtil.getCmdPath();
  14408. if (yield ioUtil.isDirectory(inputPath, true)) {
  14409. yield exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
  14410. env: { inputPath }
  14411. });
  14412. }
  14413. else {
  14414. yield exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
  14415. env: { inputPath }
  14416. });
  14417. }
  14418. }
  14419. catch (err) {
  14420. // if you try to delete a file that doesn't exist, desired result is achieved
  14421. // other errors are valid
  14422. if (err.code !== 'ENOENT')
  14423. throw err;
  14424. }
  14425. // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
  14426. try {
  14427. yield ioUtil.unlink(inputPath);
  14428. }
  14429. catch (err) {
  14430. // if you try to delete a file that doesn't exist, desired result is achieved
  14431. // other errors are valid
  14432. if (err.code !== 'ENOENT')
  14433. throw err;
  14434. }
  14435. }
  14436. else {
  14437. let isDir = false;
  14438. try {
  14439. isDir = yield ioUtil.isDirectory(inputPath);
  14440. }
  14441. catch (err) {
  14442. // if you try to delete a file that doesn't exist, desired result is achieved
  14443. // other errors are valid
  14444. if (err.code !== 'ENOENT')
  14445. throw err;
  14446. return;
  14447. }
  14448. if (isDir) {
  14449. yield execFile(`rm`, [`-rf`, `${inputPath}`]);
  14450. }
  14451. else {
  14452. yield ioUtil.unlink(inputPath);
  14453. }
  14454. }
  14455. });
  14456. }
  14457. exports.rmRF = rmRF;
  14458. /**
  14459. * Make a directory. Creates the full path with folders in between
  14460. * Will throw if it fails
  14461. *
  14462. * @param fsPath path to create
  14463. * @returns Promise<void>
  14464. */
  14465. function mkdirP(fsPath) {
  14466. return __awaiter(this, void 0, void 0, function* () {
  14467. assert_1.ok(fsPath, 'a path argument must be provided');
  14468. yield ioUtil.mkdir(fsPath, { recursive: true });
  14469. });
  14470. }
  14471. exports.mkdirP = mkdirP;
  14472. /**
  14473. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  14474. * If you check and the tool does not exist, it will throw.
  14475. *
  14476. * @param tool name of the tool
  14477. * @param check whether to check if tool exists
  14478. * @returns Promise<string> path to tool
  14479. */
  14480. function which(tool, check) {
  14481. return __awaiter(this, void 0, void 0, function* () {
  14482. if (!tool) {
  14483. throw new Error("parameter 'tool' is required");
  14484. }
  14485. // recursive when check=true
  14486. if (check) {
  14487. const result = yield which(tool, false);
  14488. if (!result) {
  14489. if (ioUtil.IS_WINDOWS) {
  14490. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
  14491. }
  14492. else {
  14493. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
  14494. }
  14495. }
  14496. return result;
  14497. }
  14498. const matches = yield findInPath(tool);
  14499. if (matches && matches.length > 0) {
  14500. return matches[0];
  14501. }
  14502. return '';
  14503. });
  14504. }
  14505. exports.which = which;
  14506. /**
  14507. * Returns a list of all occurrences of the given tool on the system path.
  14508. *
  14509. * @returns Promise<string[]> the paths of the tool
  14510. */
  14511. function findInPath(tool) {
  14512. return __awaiter(this, void 0, void 0, function* () {
  14513. if (!tool) {
  14514. throw new Error("parameter 'tool' is required");
  14515. }
  14516. // build the list of extensions to try
  14517. const extensions = [];
  14518. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  14519. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  14520. if (extension) {
  14521. extensions.push(extension);
  14522. }
  14523. }
  14524. }
  14525. // if it's rooted, return it if exists. otherwise return empty.
  14526. if (ioUtil.isRooted(tool)) {
  14527. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  14528. if (filePath) {
  14529. return [filePath];
  14530. }
  14531. return [];
  14532. }
  14533. // if any path separators, return empty
  14534. if (tool.includes(path.sep)) {
  14535. return [];
  14536. }
  14537. // build the list of directories
  14538. //
  14539. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  14540. // it feels like we should not do this. Checking the current directory seems like more of a use
  14541. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  14542. // across platforms.
  14543. const directories = [];
  14544. if (process.env.PATH) {
  14545. for (const p of process.env.PATH.split(path.delimiter)) {
  14546. if (p) {
  14547. directories.push(p);
  14548. }
  14549. }
  14550. }
  14551. // find all matches
  14552. const matches = [];
  14553. for (const directory of directories) {
  14554. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  14555. if (filePath) {
  14556. matches.push(filePath);
  14557. }
  14558. }
  14559. return matches;
  14560. });
  14561. }
  14562. exports.findInPath = findInPath;
  14563. function readCopyOptions(options) {
  14564. const force = options.force == null ? true : options.force;
  14565. const recursive = Boolean(options.recursive);
  14566. const copySourceDirectory = options.copySourceDirectory == null
  14567. ? true
  14568. : Boolean(options.copySourceDirectory);
  14569. return { force, recursive, copySourceDirectory };
  14570. }
  14571. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  14572. return __awaiter(this, void 0, void 0, function* () {
  14573. // Ensure there is not a run away recursive copy
  14574. if (currentDepth >= 255)
  14575. return;
  14576. currentDepth++;
  14577. yield mkdirP(destDir);
  14578. const files = yield ioUtil.readdir(sourceDir);
  14579. for (const fileName of files) {
  14580. const srcFile = `${sourceDir}/${fileName}`;
  14581. const destFile = `${destDir}/${fileName}`;
  14582. const srcFileStat = yield ioUtil.lstat(srcFile);
  14583. if (srcFileStat.isDirectory()) {
  14584. // Recurse
  14585. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  14586. }
  14587. else {
  14588. yield copyFile(srcFile, destFile, force);
  14589. }
  14590. }
  14591. // Change the mode for the newly created directory
  14592. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  14593. });
  14594. }
  14595. // Buffered file copy
  14596. function copyFile(srcFile, destFile, force) {
  14597. return __awaiter(this, void 0, void 0, function* () {
  14598. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  14599. // unlink/re-link it
  14600. try {
  14601. yield ioUtil.lstat(destFile);
  14602. yield ioUtil.unlink(destFile);
  14603. }
  14604. catch (e) {
  14605. // Try to override file permission
  14606. if (e.code === 'EPERM') {
  14607. yield ioUtil.chmod(destFile, '0666');
  14608. yield ioUtil.unlink(destFile);
  14609. }
  14610. // other errors = it doesn't exist, no work to do
  14611. }
  14612. // Copy over symlink
  14613. const symlinkFull = yield ioUtil.readlink(srcFile);
  14614. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  14615. }
  14616. else if (!(yield ioUtil.exists(destFile)) || force) {
  14617. yield ioUtil.copyFile(srcFile, destFile);
  14618. }
  14619. });
  14620. }
  14621. //# sourceMappingURL=io.js.map
  14622. /***/ }),
  14623. /***/ 669:
  14624. /***/ (function(module) {
  14625. module.exports = require("util");
  14626. /***/ }),
  14627. /***/ 672:
  14628. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14629. "use strict";
  14630. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  14631. if (k2 === undefined) k2 = k;
  14632. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  14633. }) : (function(o, m, k, k2) {
  14634. if (k2 === undefined) k2 = k;
  14635. o[k2] = m[k];
  14636. }));
  14637. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14638. Object.defineProperty(o, "default", { enumerable: true, value: v });
  14639. }) : function(o, v) {
  14640. o["default"] = v;
  14641. });
  14642. var __importStar = (this && this.__importStar) || function (mod) {
  14643. if (mod && mod.__esModule) return mod;
  14644. var result = {};
  14645. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  14646. __setModuleDefault(result, mod);
  14647. return result;
  14648. };
  14649. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14650. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14651. return new (P || (P = Promise))(function (resolve, reject) {
  14652. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14653. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14654. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14655. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14656. });
  14657. };
  14658. var _a;
  14659. Object.defineProperty(exports, "__esModule", { value: true });
  14660. exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
  14661. const fs = __importStar(__webpack_require__(747));
  14662. const path = __importStar(__webpack_require__(622));
  14663. _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
  14664. exports.IS_WINDOWS = process.platform === 'win32';
  14665. function exists(fsPath) {
  14666. return __awaiter(this, void 0, void 0, function* () {
  14667. try {
  14668. yield exports.stat(fsPath);
  14669. }
  14670. catch (err) {
  14671. if (err.code === 'ENOENT') {
  14672. return false;
  14673. }
  14674. throw err;
  14675. }
  14676. return true;
  14677. });
  14678. }
  14679. exports.exists = exists;
  14680. function isDirectory(fsPath, useStat = false) {
  14681. return __awaiter(this, void 0, void 0, function* () {
  14682. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  14683. return stats.isDirectory();
  14684. });
  14685. }
  14686. exports.isDirectory = isDirectory;
  14687. /**
  14688. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  14689. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  14690. */
  14691. function isRooted(p) {
  14692. p = normalizeSeparators(p);
  14693. if (!p) {
  14694. throw new Error('isRooted() parameter "p" cannot be empty');
  14695. }
  14696. if (exports.IS_WINDOWS) {
  14697. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  14698. ); // e.g. C: or C:\hello
  14699. }
  14700. return p.startsWith('/');
  14701. }
  14702. exports.isRooted = isRooted;
  14703. /**
  14704. * Best effort attempt to determine whether a file exists and is executable.
  14705. * @param filePath file path to check
  14706. * @param extensions additional file extensions to try
  14707. * @return if file exists and is executable, returns the file path. otherwise empty string.
  14708. */
  14709. function tryGetExecutablePath(filePath, extensions) {
  14710. return __awaiter(this, void 0, void 0, function* () {
  14711. let stats = undefined;
  14712. try {
  14713. // test file exists
  14714. stats = yield exports.stat(filePath);
  14715. }
  14716. catch (err) {
  14717. if (err.code !== 'ENOENT') {
  14718. // eslint-disable-next-line no-console
  14719. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  14720. }
  14721. }
  14722. if (stats && stats.isFile()) {
  14723. if (exports.IS_WINDOWS) {
  14724. // on Windows, test for valid extension
  14725. const upperExt = path.extname(filePath).toUpperCase();
  14726. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  14727. return filePath;
  14728. }
  14729. }
  14730. else {
  14731. if (isUnixExecutable(stats)) {
  14732. return filePath;
  14733. }
  14734. }
  14735. }
  14736. // try each extension
  14737. const originalFilePath = filePath;
  14738. for (const extension of extensions) {
  14739. filePath = originalFilePath + extension;
  14740. stats = undefined;
  14741. try {
  14742. stats = yield exports.stat(filePath);
  14743. }
  14744. catch (err) {
  14745. if (err.code !== 'ENOENT') {
  14746. // eslint-disable-next-line no-console
  14747. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  14748. }
  14749. }
  14750. if (stats && stats.isFile()) {
  14751. if (exports.IS_WINDOWS) {
  14752. // preserve the case of the actual file (since an extension was appended)
  14753. try {
  14754. const directory = path.dirname(filePath);
  14755. const upperName = path.basename(filePath).toUpperCase();
  14756. for (const actualName of yield exports.readdir(directory)) {
  14757. if (upperName === actualName.toUpperCase()) {
  14758. filePath = path.join(directory, actualName);
  14759. break;
  14760. }
  14761. }
  14762. }
  14763. catch (err) {
  14764. // eslint-disable-next-line no-console
  14765. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  14766. }
  14767. return filePath;
  14768. }
  14769. else {
  14770. if (isUnixExecutable(stats)) {
  14771. return filePath;
  14772. }
  14773. }
  14774. }
  14775. }
  14776. return '';
  14777. });
  14778. }
  14779. exports.tryGetExecutablePath = tryGetExecutablePath;
  14780. function normalizeSeparators(p) {
  14781. p = p || '';
  14782. if (exports.IS_WINDOWS) {
  14783. // convert slashes on Windows
  14784. p = p.replace(/\//g, '\\');
  14785. // remove redundant slashes
  14786. return p.replace(/\\\\+/g, '\\');
  14787. }
  14788. // remove redundant slashes
  14789. return p.replace(/\/\/+/g, '/');
  14790. }
  14791. // on Mac/Linux, test the execute bit
  14792. // R W X R W X R W X
  14793. // 256 128 64 32 16 8 4 2 1
  14794. function isUnixExecutable(stats) {
  14795. return ((stats.mode & 1) > 0 ||
  14796. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  14797. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  14798. }
  14799. // Get the path of cmd.exe in windows
  14800. function getCmdPath() {
  14801. var _a;
  14802. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  14803. }
  14804. exports.getCmdPath = getCmdPath;
  14805. //# sourceMappingURL=io-util.js.map
  14806. /***/ }),
  14807. /***/ 674:
  14808. /***/ (function(module, __unusedexports, __webpack_require__) {
  14809. module.exports = authenticate;
  14810. const { Deprecation } = __webpack_require__(692);
  14811. const once = __webpack_require__(969);
  14812. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  14813. function authenticate(state, options) {
  14814. deprecateAuthenticate(
  14815. state.octokit.log,
  14816. new Deprecation(
  14817. '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
  14818. )
  14819. );
  14820. if (!options) {
  14821. state.auth = false;
  14822. return;
  14823. }
  14824. switch (options.type) {
  14825. case "basic":
  14826. if (!options.username || !options.password) {
  14827. throw new Error(
  14828. "Basic authentication requires both a username and password to be set"
  14829. );
  14830. }
  14831. break;
  14832. case "oauth":
  14833. if (!options.token && !(options.key && options.secret)) {
  14834. throw new Error(
  14835. "OAuth2 authentication requires a token or key & secret to be set"
  14836. );
  14837. }
  14838. break;
  14839. case "token":
  14840. case "app":
  14841. if (!options.token) {
  14842. throw new Error("Token authentication requires a token to be set");
  14843. }
  14844. break;
  14845. default:
  14846. throw new Error(
  14847. "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
  14848. );
  14849. }
  14850. state.auth = options;
  14851. }
  14852. /***/ }),
  14853. /***/ 675:
  14854. /***/ (function(module) {
  14855. module.exports = function btoa(str) {
  14856. return new Buffer(str).toString('base64')
  14857. }
  14858. /***/ }),
  14859. /***/ 692:
  14860. /***/ (function(__unusedmodule, exports) {
  14861. "use strict";
  14862. Object.defineProperty(exports, '__esModule', { value: true });
  14863. class Deprecation extends Error {
  14864. constructor(message) {
  14865. super(message); // Maintains proper stack trace (only available on V8)
  14866. /* istanbul ignore next */
  14867. if (Error.captureStackTrace) {
  14868. Error.captureStackTrace(this, this.constructor);
  14869. }
  14870. this.name = 'Deprecation';
  14871. }
  14872. }
  14873. exports.Deprecation = Deprecation;
  14874. /***/ }),
  14875. /***/ 696:
  14876. /***/ (function(module) {
  14877. "use strict";
  14878. /*!
  14879. * isobject <https://github.com/jonschlinkert/isobject>
  14880. *
  14881. * Copyright (c) 2014-2017, Jon Schlinkert.
  14882. * Released under the MIT License.
  14883. */
  14884. function isObject(val) {
  14885. return val != null && typeof val === 'object' && Array.isArray(val) === false;
  14886. }
  14887. /*!
  14888. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  14889. *
  14890. * Copyright (c) 2014-2017, Jon Schlinkert.
  14891. * Released under the MIT License.
  14892. */
  14893. function isObjectObject(o) {
  14894. return isObject(o) === true
  14895. && Object.prototype.toString.call(o) === '[object Object]';
  14896. }
  14897. function isPlainObject(o) {
  14898. var ctor,prot;
  14899. if (isObjectObject(o) === false) return false;
  14900. // If has modified constructor
  14901. ctor = o.constructor;
  14902. if (typeof ctor !== 'function') return false;
  14903. // If has modified prototype
  14904. prot = ctor.prototype;
  14905. if (isObjectObject(prot) === false) return false;
  14906. // If constructor does not have an Object-specific method
  14907. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  14908. return false;
  14909. }
  14910. // Most likely a plain Object
  14911. return true;
  14912. }
  14913. module.exports = isPlainObject;
  14914. /***/ }),
  14915. /***/ 697:
  14916. /***/ (function(module) {
  14917. "use strict";
  14918. module.exports = (promise, onFinally) => {
  14919. onFinally = onFinally || (() => {});
  14920. return promise.then(
  14921. val => new Promise(resolve => {
  14922. resolve(onFinally());
  14923. }).then(() => val),
  14924. err => new Promise(resolve => {
  14925. resolve(onFinally());
  14926. }).then(() => {
  14927. throw err;
  14928. })
  14929. );
  14930. };
  14931. /***/ }),
  14932. /***/ 701:
  14933. /***/ (function(module, __unusedexports, __webpack_require__) {
  14934. "use strict";
  14935. var GetIntrinsic = __webpack_require__(915);
  14936. var callBound = __webpack_require__(630);
  14937. var inspect = __webpack_require__(26);
  14938. var $TypeError = GetIntrinsic('%TypeError%');
  14939. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  14940. var $Map = GetIntrinsic('%Map%', true);
  14941. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  14942. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  14943. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  14944. var $mapGet = callBound('Map.prototype.get', true);
  14945. var $mapSet = callBound('Map.prototype.set', true);
  14946. var $mapHas = callBound('Map.prototype.has', true);
  14947. /*
  14948. * This function traverses the list returning the node corresponding to the
  14949. * given key.
  14950. *
  14951. * That node is also moved to the head of the list, so that if it's accessed
  14952. * again we don't need to traverse the whole list. By doing so, all the recently
  14953. * used nodes can be accessed relatively quickly.
  14954. */
  14955. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  14956. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  14957. if (curr.key === key) {
  14958. prev.next = curr.next;
  14959. curr.next = list.next;
  14960. list.next = curr; // eslint-disable-line no-param-reassign
  14961. return curr;
  14962. }
  14963. }
  14964. };
  14965. var listGet = function (objects, key) {
  14966. var node = listGetNode(objects, key);
  14967. return node && node.value;
  14968. };
  14969. var listSet = function (objects, key, value) {
  14970. var node = listGetNode(objects, key);
  14971. if (node) {
  14972. node.value = value;
  14973. } else {
  14974. // Prepend the new node to the beginning of the list
  14975. objects.next = { // eslint-disable-line no-param-reassign
  14976. key: key,
  14977. next: objects.next,
  14978. value: value
  14979. };
  14980. }
  14981. };
  14982. var listHas = function (objects, key) {
  14983. return !!listGetNode(objects, key);
  14984. };
  14985. module.exports = function getSideChannel() {
  14986. var $wm;
  14987. var $m;
  14988. var $o;
  14989. var channel = {
  14990. assert: function (key) {
  14991. if (!channel.has(key)) {
  14992. throw new $TypeError('Side channel does not contain ' + inspect(key));
  14993. }
  14994. },
  14995. get: function (key) { // eslint-disable-line consistent-return
  14996. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  14997. if ($wm) {
  14998. return $weakMapGet($wm, key);
  14999. }
  15000. } else if ($Map) {
  15001. if ($m) {
  15002. return $mapGet($m, key);
  15003. }
  15004. } else {
  15005. if ($o) { // eslint-disable-line no-lonely-if
  15006. return listGet($o, key);
  15007. }
  15008. }
  15009. },
  15010. has: function (key) {
  15011. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  15012. if ($wm) {
  15013. return $weakMapHas($wm, key);
  15014. }
  15015. } else if ($Map) {
  15016. if ($m) {
  15017. return $mapHas($m, key);
  15018. }
  15019. } else {
  15020. if ($o) { // eslint-disable-line no-lonely-if
  15021. return listHas($o, key);
  15022. }
  15023. }
  15024. return false;
  15025. },
  15026. set: function (key, value) {
  15027. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  15028. if (!$wm) {
  15029. $wm = new $WeakMap();
  15030. }
  15031. $weakMapSet($wm, key, value);
  15032. } else if ($Map) {
  15033. if (!$m) {
  15034. $m = new $Map();
  15035. }
  15036. $mapSet($m, key, value);
  15037. } else {
  15038. if (!$o) {
  15039. /*
  15040. * Initialize the linked list as an empty node, so that we don't have
  15041. * to special-case handling of the first node: we can always refer to
  15042. * it as (previous node).next, instead of something like (list).head
  15043. */
  15044. $o = { key: {}, next: null };
  15045. }
  15046. listSet($o, key, value);
  15047. }
  15048. }
  15049. };
  15050. return channel;
  15051. };
  15052. /***/ }),
  15053. /***/ 722:
  15054. /***/ (function(module) {
  15055. /**
  15056. * Convert array of 16 byte values to UUID string format of the form:
  15057. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  15058. */
  15059. var byteToHex = [];
  15060. for (var i = 0; i < 256; ++i) {
  15061. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  15062. }
  15063. function bytesToUuid(buf, offset) {
  15064. var i = offset || 0;
  15065. var bth = byteToHex;
  15066. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  15067. return ([bth[buf[i++]], bth[buf[i++]],
  15068. bth[buf[i++]], bth[buf[i++]], '-',
  15069. bth[buf[i++]], bth[buf[i++]], '-',
  15070. bth[buf[i++]], bth[buf[i++]], '-',
  15071. bth[buf[i++]], bth[buf[i++]], '-',
  15072. bth[buf[i++]], bth[buf[i++]],
  15073. bth[buf[i++]], bth[buf[i++]],
  15074. bth[buf[i++]], bth[buf[i++]]]).join('');
  15075. }
  15076. module.exports = bytesToUuid;
  15077. /***/ }),
  15078. /***/ 729:
  15079. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15080. "use strict";
  15081. // Copyright (c) Microsoft. All rights reserved.
  15082. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  15083. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  15084. return new (P || (P = Promise))(function (resolve, reject) {
  15085. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  15086. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  15087. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  15088. step((generator = generator.apply(thisArg, _arguments || [])).next());
  15089. });
  15090. };
  15091. Object.defineProperty(exports, "__esModule", { value: true });
  15092. const qs = __webpack_require__(386);
  15093. const url = __webpack_require__(835);
  15094. const path = __webpack_require__(622);
  15095. const zlib = __webpack_require__(761);
  15096. /**
  15097. * creates an url from a request url and optional base url (http://server:8080)
  15098. * @param {string} resource - a fully qualified url or relative path
  15099. * @param {string} baseUrl - an optional baseUrl (http://server:8080)
  15100. * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
  15101. * @return {string} - resultant url
  15102. */
  15103. function getUrl(resource, baseUrl, queryParams) {
  15104. const pathApi = path.posix || path;
  15105. let requestUrl = '';
  15106. if (!baseUrl) {
  15107. requestUrl = resource;
  15108. }
  15109. else if (!resource) {
  15110. requestUrl = baseUrl;
  15111. }
  15112. else {
  15113. const base = url.parse(baseUrl);
  15114. const resultantUrl = url.parse(resource);
  15115. // resource (specific per request) elements take priority
  15116. resultantUrl.protocol = resultantUrl.protocol || base.protocol;
  15117. resultantUrl.auth = resultantUrl.auth || base.auth;
  15118. resultantUrl.host = resultantUrl.host || base.host;
  15119. resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
  15120. if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
  15121. resultantUrl.pathname += '/';
  15122. }
  15123. requestUrl = url.format(resultantUrl);
  15124. }
  15125. return queryParams ?
  15126. getUrlWithParsedQueryParams(requestUrl, queryParams) :
  15127. requestUrl;
  15128. }
  15129. exports.getUrl = getUrl;
  15130. /**
  15131. *
  15132. * @param {string} requestUrl
  15133. * @param {IRequestQueryParams} queryParams
  15134. * @return {string} - Request's URL with Query Parameters appended/parsed.
  15135. */
  15136. function getUrlWithParsedQueryParams(requestUrl, queryParams) {
  15137. const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
  15138. const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
  15139. return `${url}${parsedQueryParams}`;
  15140. }
  15141. /**
  15142. * Build options for QueryParams Stringifying.
  15143. *
  15144. * @param {IRequestQueryParams} queryParams
  15145. * @return {object}
  15146. */
  15147. function buildParamsStringifyOptions(queryParams) {
  15148. let options = {
  15149. addQueryPrefix: true,
  15150. delimiter: (queryParams.options || {}).separator || '&',
  15151. allowDots: (queryParams.options || {}).shouldAllowDots || false,
  15152. arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
  15153. encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
  15154. };
  15155. return options;
  15156. }
  15157. /**
  15158. * Decompress/Decode gzip encoded JSON
  15159. * Using Node.js built-in zlib module
  15160. *
  15161. * @param {Buffer} buffer
  15162. * @param {string} charset? - optional; defaults to 'utf-8'
  15163. * @return {Promise<string>}
  15164. */
  15165. function decompressGzippedContent(buffer, charset) {
  15166. return __awaiter(this, void 0, void 0, function* () {
  15167. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  15168. zlib.gunzip(buffer, function (error, buffer) {
  15169. if (error) {
  15170. reject(error);
  15171. }
  15172. resolve(buffer.toString(charset || 'utf-8'));
  15173. });
  15174. }));
  15175. });
  15176. }
  15177. exports.decompressGzippedContent = decompressGzippedContent;
  15178. /**
  15179. * Builds a RegExp to test urls against for deciding
  15180. * wether to bypass proxy from an entry of the
  15181. * environment variable setting NO_PROXY
  15182. *
  15183. * @param {string} bypass
  15184. * @return {RegExp}
  15185. */
  15186. function buildProxyBypassRegexFromEnv(bypass) {
  15187. try {
  15188. // We need to keep this around for back-compat purposes
  15189. return new RegExp(bypass, 'i');
  15190. }
  15191. catch (err) {
  15192. if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
  15193. let wildcardEscaped = bypass.replace('*', '(.*)');
  15194. return new RegExp(wildcardEscaped, 'i');
  15195. }
  15196. throw err;
  15197. }
  15198. }
  15199. exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
  15200. /**
  15201. * Obtain Response's Content Charset.
  15202. * Through inspecting `content-type` response header.
  15203. * It Returns 'utf-8' if NO charset specified/matched.
  15204. *
  15205. * @param {IHttpClientResponse} response
  15206. * @return {string} - Content Encoding Charset; Default=utf-8
  15207. */
  15208. function obtainContentCharset(response) {
  15209. // Find the charset, if specified.
  15210. // Search for the `charset=CHARSET` string, not including `;,\r\n`
  15211. // Example: content-type: 'application/json;charset=utf-8'
  15212. // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
  15213. // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
  15214. // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
  15215. const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
  15216. const contentType = response.message.headers['content-type'] || '';
  15217. const matches = contentType.match(/charset=([^;,\r\n]+)/i);
  15218. return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
  15219. }
  15220. exports.obtainContentCharset = obtainContentCharset;
  15221. /***/ }),
  15222. /***/ 739:
  15223. /***/ (function(module, __unusedexports, __webpack_require__) {
  15224. "use strict";
  15225. var implementation = __webpack_require__(353);
  15226. module.exports = Function.prototype.bind || implementation;
  15227. /***/ }),
  15228. /***/ 742:
  15229. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15230. "use strict";
  15231. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  15232. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  15233. return new (P || (P = Promise))(function (resolve, reject) {
  15234. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  15235. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  15236. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  15237. step((generator = generator.apply(thisArg, _arguments || [])).next());
  15238. });
  15239. };
  15240. Object.defineProperty(exports, "__esModule", { value: true });
  15241. exports.OidcClient = void 0;
  15242. const http_client_1 = __webpack_require__(993);
  15243. const auth_1 = __webpack_require__(363);
  15244. const core_1 = __webpack_require__(470);
  15245. class OidcClient {
  15246. static createHttpClient(allowRetry = true, maxRetry = 10) {
  15247. const requestOptions = {
  15248. allowRetries: allowRetry,
  15249. maxRetries: maxRetry
  15250. };
  15251. return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
  15252. }
  15253. static getRequestToken() {
  15254. const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
  15255. if (!token) {
  15256. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
  15257. }
  15258. return token;
  15259. }
  15260. static getIDTokenUrl() {
  15261. const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
  15262. if (!runtimeUrl) {
  15263. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
  15264. }
  15265. return runtimeUrl;
  15266. }
  15267. static getCall(id_token_url) {
  15268. var _a;
  15269. return __awaiter(this, void 0, void 0, function* () {
  15270. const httpclient = OidcClient.createHttpClient();
  15271. const res = yield httpclient
  15272. .getJson(id_token_url)
  15273. .catch(error => {
  15274. throw new Error(`Failed to get ID Token. \n
  15275. Error Code : ${error.statusCode}\n
  15276. Error Message: ${error.result.message}`);
  15277. });
  15278. const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
  15279. if (!id_token) {
  15280. throw new Error('Response json body do not have ID Token field');
  15281. }
  15282. return id_token;
  15283. });
  15284. }
  15285. static getIDToken(audience) {
  15286. return __awaiter(this, void 0, void 0, function* () {
  15287. try {
  15288. // New ID Token is requested from action service
  15289. let id_token_url = OidcClient.getIDTokenUrl();
  15290. if (audience) {
  15291. const encodedAudience = encodeURIComponent(audience);
  15292. id_token_url = `${id_token_url}&audience=${encodedAudience}`;
  15293. }
  15294. core_1.debug(`ID token url is ${id_token_url}`);
  15295. const id_token = yield OidcClient.getCall(id_token_url);
  15296. core_1.setSecret(id_token);
  15297. return id_token;
  15298. }
  15299. catch (error) {
  15300. throw new Error(`Error message: ${error.message}`);
  15301. }
  15302. });
  15303. }
  15304. }
  15305. exports.OidcClient = OidcClient;
  15306. //# sourceMappingURL=oidc-utils.js.map
  15307. /***/ }),
  15308. /***/ 747:
  15309. /***/ (function(module) {
  15310. module.exports = require("fs");
  15311. /***/ }),
  15312. /***/ 749:
  15313. /***/ (function(module, __unusedexports, __webpack_require__) {
  15314. "use strict";
  15315. var bind = __webpack_require__(739);
  15316. var GetIntrinsic = __webpack_require__(915);
  15317. var $apply = GetIntrinsic('%Function.prototype.apply%');
  15318. var $call = GetIntrinsic('%Function.prototype.call%');
  15319. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  15320. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  15321. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  15322. var $max = GetIntrinsic('%Math.max%');
  15323. if ($defineProperty) {
  15324. try {
  15325. $defineProperty({}, 'a', { value: 1 });
  15326. } catch (e) {
  15327. // IE 8 has a broken defineProperty
  15328. $defineProperty = null;
  15329. }
  15330. }
  15331. module.exports = function callBind(originalFunction) {
  15332. var func = $reflectApply(bind, $call, arguments);
  15333. if ($gOPD && $defineProperty) {
  15334. var desc = $gOPD(func, 'length');
  15335. if (desc.configurable) {
  15336. // original length, plus the receiver, minus any additional arguments (after the receiver)
  15337. $defineProperty(
  15338. func,
  15339. 'length',
  15340. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  15341. );
  15342. }
  15343. }
  15344. return func;
  15345. };
  15346. var applyBind = function applyBind() {
  15347. return $reflectApply(bind, $apply, arguments);
  15348. };
  15349. if ($defineProperty) {
  15350. $defineProperty(module.exports, 'apply', { value: applyBind });
  15351. } else {
  15352. module.exports.apply = applyBind;
  15353. }
  15354. /***/ }),
  15355. /***/ 753:
  15356. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15357. "use strict";
  15358. Object.defineProperty(exports, '__esModule', { value: true });
  15359. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  15360. var endpoint = __webpack_require__(385);
  15361. var universalUserAgent = __webpack_require__(392);
  15362. var isPlainObject = _interopDefault(__webpack_require__(696));
  15363. var nodeFetch = _interopDefault(__webpack_require__(454));
  15364. var requestError = __webpack_require__(463);
  15365. const VERSION = "5.4.2";
  15366. function getBufferResponse(response) {
  15367. return response.arrayBuffer();
  15368. }
  15369. function fetchWrapper(requestOptions) {
  15370. if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
  15371. requestOptions.body = JSON.stringify(requestOptions.body);
  15372. }
  15373. let headers = {};
  15374. let status;
  15375. let url;
  15376. const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
  15377. return fetch(requestOptions.url, Object.assign({
  15378. method: requestOptions.method,
  15379. body: requestOptions.body,
  15380. headers: requestOptions.headers,
  15381. redirect: requestOptions.redirect
  15382. }, requestOptions.request)).then(response => {
  15383. url = response.url;
  15384. status = response.status;
  15385. for (const keyAndValue of response.headers) {
  15386. headers[keyAndValue[0]] = keyAndValue[1];
  15387. }
  15388. if (status === 204 || status === 205) {
  15389. return;
  15390. } // GitHub API returns 200 for HEAD requests
  15391. if (requestOptions.method === "HEAD") {
  15392. if (status < 400) {
  15393. return;
  15394. }
  15395. throw new requestError.RequestError(response.statusText, status, {
  15396. headers,
  15397. request: requestOptions
  15398. });
  15399. }
  15400. if (status === 304) {
  15401. throw new requestError.RequestError("Not modified", status, {
  15402. headers,
  15403. request: requestOptions
  15404. });
  15405. }
  15406. if (status >= 400) {
  15407. return response.text().then(message => {
  15408. const error = new requestError.RequestError(message, status, {
  15409. headers,
  15410. request: requestOptions
  15411. });
  15412. try {
  15413. let responseBody = JSON.parse(error.message);
  15414. Object.assign(error, responseBody);
  15415. let errors = responseBody.errors; // Assumption `errors` would always be in Array format
  15416. error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
  15417. } catch (e) {// ignore, see octokit/rest.js#684
  15418. }
  15419. throw error;
  15420. });
  15421. }
  15422. const contentType = response.headers.get("content-type");
  15423. if (/application\/json/.test(contentType)) {
  15424. return response.json();
  15425. }
  15426. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  15427. return response.text();
  15428. }
  15429. return getBufferResponse(response);
  15430. }).then(data => {
  15431. return {
  15432. status,
  15433. url,
  15434. headers,
  15435. data
  15436. };
  15437. }).catch(error => {
  15438. if (error instanceof requestError.RequestError) {
  15439. throw error;
  15440. }
  15441. throw new requestError.RequestError(error.message, 500, {
  15442. headers,
  15443. request: requestOptions
  15444. });
  15445. });
  15446. }
  15447. function withDefaults(oldEndpoint, newDefaults) {
  15448. const endpoint = oldEndpoint.defaults(newDefaults);
  15449. const newApi = function (route, parameters) {
  15450. const endpointOptions = endpoint.merge(route, parameters);
  15451. if (!endpointOptions.request || !endpointOptions.request.hook) {
  15452. return fetchWrapper(endpoint.parse(endpointOptions));
  15453. }
  15454. const request = (route, parameters) => {
  15455. return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
  15456. };
  15457. Object.assign(request, {
  15458. endpoint,
  15459. defaults: withDefaults.bind(null, endpoint)
  15460. });
  15461. return endpointOptions.request.hook(request, endpointOptions);
  15462. };
  15463. return Object.assign(newApi, {
  15464. endpoint,
  15465. defaults: withDefaults.bind(null, endpoint)
  15466. });
  15467. }
  15468. const request = withDefaults(endpoint.endpoint, {
  15469. headers: {
  15470. "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  15471. }
  15472. });
  15473. exports.request = request;
  15474. //# sourceMappingURL=index.js.map
  15475. /***/ }),
  15476. /***/ 755:
  15477. /***/ (function(module, __unusedexports, __webpack_require__) {
  15478. "use strict";
  15479. var utils = __webpack_require__(581);
  15480. var has = Object.prototype.hasOwnProperty;
  15481. var isArray = Array.isArray;
  15482. var defaults = {
  15483. allowDots: false,
  15484. allowPrototypes: false,
  15485. allowSparse: false,
  15486. arrayLimit: 20,
  15487. charset: 'utf-8',
  15488. charsetSentinel: false,
  15489. comma: false,
  15490. decoder: utils.decode,
  15491. delimiter: '&',
  15492. depth: 5,
  15493. ignoreQueryPrefix: false,
  15494. interpretNumericEntities: false,
  15495. parameterLimit: 1000,
  15496. parseArrays: true,
  15497. plainObjects: false,
  15498. strictNullHandling: false
  15499. };
  15500. var interpretNumericEntities = function (str) {
  15501. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  15502. return String.fromCharCode(parseInt(numberStr, 10));
  15503. });
  15504. };
  15505. var parseArrayValue = function (val, options) {
  15506. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  15507. return val.split(',');
  15508. }
  15509. return val;
  15510. };
  15511. // This is what browsers will submit when the ✓ character occurs in an
  15512. // application/x-www-form-urlencoded body and the encoding of the page containing
  15513. // the form is iso-8859-1, or when the submitted form has an accept-charset
  15514. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  15515. // the ✓ character, such as us-ascii.
  15516. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  15517. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  15518. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  15519. var parseValues = function parseQueryStringValues(str, options) {
  15520. var obj = {};
  15521. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  15522. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  15523. var parts = cleanStr.split(options.delimiter, limit);
  15524. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  15525. var i;
  15526. var charset = options.charset;
  15527. if (options.charsetSentinel) {
  15528. for (i = 0; i < parts.length; ++i) {
  15529. if (parts[i].indexOf('utf8=') === 0) {
  15530. if (parts[i] === charsetSentinel) {
  15531. charset = 'utf-8';
  15532. } else if (parts[i] === isoSentinel) {
  15533. charset = 'iso-8859-1';
  15534. }
  15535. skipIndex = i;
  15536. i = parts.length; // The eslint settings do not allow break;
  15537. }
  15538. }
  15539. }
  15540. for (i = 0; i < parts.length; ++i) {
  15541. if (i === skipIndex) {
  15542. continue;
  15543. }
  15544. var part = parts[i];
  15545. var bracketEqualsPos = part.indexOf(']=');
  15546. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  15547. var key, val;
  15548. if (pos === -1) {
  15549. key = options.decoder(part, defaults.decoder, charset, 'key');
  15550. val = options.strictNullHandling ? null : '';
  15551. } else {
  15552. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  15553. val = utils.maybeMap(
  15554. parseArrayValue(part.slice(pos + 1), options),
  15555. function (encodedVal) {
  15556. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  15557. }
  15558. );
  15559. }
  15560. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  15561. val = interpretNumericEntities(val);
  15562. }
  15563. if (part.indexOf('[]=') > -1) {
  15564. val = isArray(val) ? [val] : val;
  15565. }
  15566. if (has.call(obj, key)) {
  15567. obj[key] = utils.combine(obj[key], val);
  15568. } else {
  15569. obj[key] = val;
  15570. }
  15571. }
  15572. return obj;
  15573. };
  15574. var parseObject = function (chain, val, options, valuesParsed) {
  15575. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  15576. for (var i = chain.length - 1; i >= 0; --i) {
  15577. var obj;
  15578. var root = chain[i];
  15579. if (root === '[]' && options.parseArrays) {
  15580. obj = [].concat(leaf);
  15581. } else {
  15582. obj = options.plainObjects ? Object.create(null) : {};
  15583. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  15584. var index = parseInt(cleanRoot, 10);
  15585. if (!options.parseArrays && cleanRoot === '') {
  15586. obj = { 0: leaf };
  15587. } else if (
  15588. !isNaN(index)
  15589. && root !== cleanRoot
  15590. && String(index) === cleanRoot
  15591. && index >= 0
  15592. && (options.parseArrays && index <= options.arrayLimit)
  15593. ) {
  15594. obj = [];
  15595. obj[index] = leaf;
  15596. } else {
  15597. obj[cleanRoot] = leaf;
  15598. }
  15599. }
  15600. leaf = obj;
  15601. }
  15602. return leaf;
  15603. };
  15604. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  15605. if (!givenKey) {
  15606. return;
  15607. }
  15608. // Transform dot notation to bracket notation
  15609. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  15610. // The regex chunks
  15611. var brackets = /(\[[^[\]]*])/;
  15612. var child = /(\[[^[\]]*])/g;
  15613. // Get the parent
  15614. var segment = options.depth > 0 && brackets.exec(key);
  15615. var parent = segment ? key.slice(0, segment.index) : key;
  15616. // Stash the parent if it exists
  15617. var keys = [];
  15618. if (parent) {
  15619. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  15620. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  15621. if (!options.allowPrototypes) {
  15622. return;
  15623. }
  15624. }
  15625. keys.push(parent);
  15626. }
  15627. // Loop through children appending to the array until we hit depth
  15628. var i = 0;
  15629. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  15630. i += 1;
  15631. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  15632. if (!options.allowPrototypes) {
  15633. return;
  15634. }
  15635. }
  15636. keys.push(segment[1]);
  15637. }
  15638. // If there's a remainder, just add whatever is left
  15639. if (segment) {
  15640. keys.push('[' + key.slice(segment.index) + ']');
  15641. }
  15642. return parseObject(keys, val, options, valuesParsed);
  15643. };
  15644. var normalizeParseOptions = function normalizeParseOptions(opts) {
  15645. if (!opts) {
  15646. return defaults;
  15647. }
  15648. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  15649. throw new TypeError('Decoder has to be a function.');
  15650. }
  15651. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  15652. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  15653. }
  15654. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  15655. return {
  15656. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  15657. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  15658. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  15659. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  15660. charset: charset,
  15661. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  15662. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  15663. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  15664. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  15665. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  15666. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  15667. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  15668. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  15669. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  15670. parseArrays: opts.parseArrays !== false,
  15671. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  15672. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  15673. };
  15674. };
  15675. module.exports = function (str, opts) {
  15676. var options = normalizeParseOptions(opts);
  15677. if (str === '' || str === null || typeof str === 'undefined') {
  15678. return options.plainObjects ? Object.create(null) : {};
  15679. }
  15680. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  15681. var obj = options.plainObjects ? Object.create(null) : {};
  15682. // Iterate over the keys and setup the new object
  15683. var keys = Object.keys(tempObj);
  15684. for (var i = 0; i < keys.length; ++i) {
  15685. var key = keys[i];
  15686. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  15687. obj = utils.merge(obj, newObj, options);
  15688. }
  15689. if (options.allowSparse === true) {
  15690. return obj;
  15691. }
  15692. return utils.compact(obj);
  15693. };
  15694. /***/ }),
  15695. /***/ 761:
  15696. /***/ (function(module) {
  15697. module.exports = require("zlib");
  15698. /***/ }),
  15699. /***/ 763:
  15700. /***/ (function(module) {
  15701. module.exports = removeHook
  15702. function removeHook (state, name, method) {
  15703. if (!state.registry[name]) {
  15704. return
  15705. }
  15706. var index = state.registry[name]
  15707. .map(function (registered) { return registered.orig })
  15708. .indexOf(method)
  15709. if (index === -1) {
  15710. return
  15711. }
  15712. state.registry[name].splice(index, 1)
  15713. }
  15714. /***/ }),
  15715. /***/ 768:
  15716. /***/ (function(module) {
  15717. "use strict";
  15718. module.exports = function (x) {
  15719. var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
  15720. var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
  15721. if (x[x.length - 1] === lf) {
  15722. x = x.slice(0, x.length - 1);
  15723. }
  15724. if (x[x.length - 1] === cr) {
  15725. x = x.slice(0, x.length - 1);
  15726. }
  15727. return x;
  15728. };
  15729. /***/ }),
  15730. /***/ 777:
  15731. /***/ (function(module, __unusedexports, __webpack_require__) {
  15732. module.exports = getFirstPage
  15733. const getPage = __webpack_require__(265)
  15734. function getFirstPage (octokit, link, headers) {
  15735. return getPage(octokit, link, 'first', headers)
  15736. }
  15737. /***/ }),
  15738. /***/ 782:
  15739. /***/ (function(module, __unusedexports, __webpack_require__) {
  15740. "use strict";
  15741. const conversions = __webpack_require__(149);
  15742. const utils = __webpack_require__(649);
  15743. const Impl = __webpack_require__(256);
  15744. const impl = utils.implSymbol;
  15745. function URL(url) {
  15746. if (!this || this[impl] || !(this instanceof URL)) {
  15747. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  15748. }
  15749. if (arguments.length < 1) {
  15750. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  15751. }
  15752. const args = [];
  15753. for (let i = 0; i < arguments.length && i < 2; ++i) {
  15754. args[i] = arguments[i];
  15755. }
  15756. args[0] = conversions["USVString"](args[0]);
  15757. if (args[1] !== undefined) {
  15758. args[1] = conversions["USVString"](args[1]);
  15759. }
  15760. module.exports.setup(this, args);
  15761. }
  15762. URL.prototype.toJSON = function toJSON() {
  15763. if (!this || !module.exports.is(this)) {
  15764. throw new TypeError("Illegal invocation");
  15765. }
  15766. const args = [];
  15767. for (let i = 0; i < arguments.length && i < 0; ++i) {
  15768. args[i] = arguments[i];
  15769. }
  15770. return this[impl].toJSON.apply(this[impl], args);
  15771. };
  15772. Object.defineProperty(URL.prototype, "href", {
  15773. get() {
  15774. return this[impl].href;
  15775. },
  15776. set(V) {
  15777. V = conversions["USVString"](V);
  15778. this[impl].href = V;
  15779. },
  15780. enumerable: true,
  15781. configurable: true
  15782. });
  15783. URL.prototype.toString = function () {
  15784. if (!this || !module.exports.is(this)) {
  15785. throw new TypeError("Illegal invocation");
  15786. }
  15787. return this.href;
  15788. };
  15789. Object.defineProperty(URL.prototype, "origin", {
  15790. get() {
  15791. return this[impl].origin;
  15792. },
  15793. enumerable: true,
  15794. configurable: true
  15795. });
  15796. Object.defineProperty(URL.prototype, "protocol", {
  15797. get() {
  15798. return this[impl].protocol;
  15799. },
  15800. set(V) {
  15801. V = conversions["USVString"](V);
  15802. this[impl].protocol = V;
  15803. },
  15804. enumerable: true,
  15805. configurable: true
  15806. });
  15807. Object.defineProperty(URL.prototype, "username", {
  15808. get() {
  15809. return this[impl].username;
  15810. },
  15811. set(V) {
  15812. V = conversions["USVString"](V);
  15813. this[impl].username = V;
  15814. },
  15815. enumerable: true,
  15816. configurable: true
  15817. });
  15818. Object.defineProperty(URL.prototype, "password", {
  15819. get() {
  15820. return this[impl].password;
  15821. },
  15822. set(V) {
  15823. V = conversions["USVString"](V);
  15824. this[impl].password = V;
  15825. },
  15826. enumerable: true,
  15827. configurable: true
  15828. });
  15829. Object.defineProperty(URL.prototype, "host", {
  15830. get() {
  15831. return this[impl].host;
  15832. },
  15833. set(V) {
  15834. V = conversions["USVString"](V);
  15835. this[impl].host = V;
  15836. },
  15837. enumerable: true,
  15838. configurable: true
  15839. });
  15840. Object.defineProperty(URL.prototype, "hostname", {
  15841. get() {
  15842. return this[impl].hostname;
  15843. },
  15844. set(V) {
  15845. V = conversions["USVString"](V);
  15846. this[impl].hostname = V;
  15847. },
  15848. enumerable: true,
  15849. configurable: true
  15850. });
  15851. Object.defineProperty(URL.prototype, "port", {
  15852. get() {
  15853. return this[impl].port;
  15854. },
  15855. set(V) {
  15856. V = conversions["USVString"](V);
  15857. this[impl].port = V;
  15858. },
  15859. enumerable: true,
  15860. configurable: true
  15861. });
  15862. Object.defineProperty(URL.prototype, "pathname", {
  15863. get() {
  15864. return this[impl].pathname;
  15865. },
  15866. set(V) {
  15867. V = conversions["USVString"](V);
  15868. this[impl].pathname = V;
  15869. },
  15870. enumerable: true,
  15871. configurable: true
  15872. });
  15873. Object.defineProperty(URL.prototype, "search", {
  15874. get() {
  15875. return this[impl].search;
  15876. },
  15877. set(V) {
  15878. V = conversions["USVString"](V);
  15879. this[impl].search = V;
  15880. },
  15881. enumerable: true,
  15882. configurable: true
  15883. });
  15884. Object.defineProperty(URL.prototype, "hash", {
  15885. get() {
  15886. return this[impl].hash;
  15887. },
  15888. set(V) {
  15889. V = conversions["USVString"](V);
  15890. this[impl].hash = V;
  15891. },
  15892. enumerable: true,
  15893. configurable: true
  15894. });
  15895. module.exports = {
  15896. is(obj) {
  15897. return !!obj && obj[impl] instanceof Impl.implementation;
  15898. },
  15899. create(constructorArgs, privateData) {
  15900. let obj = Object.create(URL.prototype);
  15901. this.setup(obj, constructorArgs, privateData);
  15902. return obj;
  15903. },
  15904. setup(obj, constructorArgs, privateData) {
  15905. if (!privateData) privateData = {};
  15906. privateData.wrapper = obj;
  15907. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  15908. obj[impl][utils.wrapperSymbol] = obj;
  15909. },
  15910. interface: URL,
  15911. expose: {
  15912. Window: { URL: URL },
  15913. Worker: { URL: URL }
  15914. }
  15915. };
  15916. /***/ }),
  15917. /***/ 794:
  15918. /***/ (function(module) {
  15919. module.exports = require("stream");
  15920. /***/ }),
  15921. /***/ 796:
  15922. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15923. "use strict";
  15924. Object.defineProperty(exports, '__esModule', { value: true });
  15925. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  15926. var osName = _interopDefault(__webpack_require__(2));
  15927. function getUserAgent() {
  15928. try {
  15929. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  15930. } catch (error) {
  15931. if (/wmic os get Caption/.test(error.message)) {
  15932. return "Windows <version undetectable>";
  15933. }
  15934. throw error;
  15935. }
  15936. }
  15937. exports.getUserAgent = getUserAgent;
  15938. //# sourceMappingURL=index.js.map
  15939. /***/ }),
  15940. /***/ 810:
  15941. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15942. "use strict";
  15943. Object.defineProperty(exports, "__esModule", {
  15944. value: true
  15945. });
  15946. exports.default = void 0;
  15947. var _rng = _interopRequireDefault(__webpack_require__(506));
  15948. var _stringify = _interopRequireDefault(__webpack_require__(960));
  15949. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15950. // **`v1()` - Generate time-based UUID**
  15951. //
  15952. // Inspired by https://github.com/LiosK/UUID.js
  15953. // and http://docs.python.org/library/uuid.html
  15954. let _nodeId;
  15955. let _clockseq; // Previous uuid creation time
  15956. let _lastMSecs = 0;
  15957. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  15958. function v1(options, buf, offset) {
  15959. let i = buf && offset || 0;
  15960. const b = buf || new Array(16);
  15961. options = options || {};
  15962. let node = options.node || _nodeId;
  15963. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  15964. // specified. We do this lazily to minimize issues related to insufficient
  15965. // system entropy. See #189
  15966. if (node == null || clockseq == null) {
  15967. const seedBytes = options.random || (options.rng || _rng.default)();
  15968. if (node == null) {
  15969. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  15970. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  15971. }
  15972. if (clockseq == null) {
  15973. // Per 4.2.2, randomize (14 bit) clockseq
  15974. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  15975. }
  15976. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  15977. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  15978. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  15979. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  15980. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  15981. // cycle to simulate higher resolution clock
  15982. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  15983. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  15984. if (dt < 0 && options.clockseq === undefined) {
  15985. clockseq = clockseq + 1 & 0x3fff;
  15986. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  15987. // time interval
  15988. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  15989. nsecs = 0;
  15990. } // Per 4.2.1.2 Throw error if too many uuids are requested
  15991. if (nsecs >= 10000) {
  15992. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  15993. }
  15994. _lastMSecs = msecs;
  15995. _lastNSecs = nsecs;
  15996. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  15997. msecs += 12219292800000; // `time_low`
  15998. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  15999. b[i++] = tl >>> 24 & 0xff;
  16000. b[i++] = tl >>> 16 & 0xff;
  16001. b[i++] = tl >>> 8 & 0xff;
  16002. b[i++] = tl & 0xff; // `time_mid`
  16003. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  16004. b[i++] = tmh >>> 8 & 0xff;
  16005. b[i++] = tmh & 0xff; // `time_high_and_version`
  16006. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  16007. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  16008. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  16009. b[i++] = clockseq & 0xff; // `node`
  16010. for (let n = 0; n < 6; ++n) {
  16011. b[i + n] = node[n];
  16012. }
  16013. return buf || (0, _stringify.default)(b);
  16014. }
  16015. var _default = v1;
  16016. exports.default = _default;
  16017. /***/ }),
  16018. /***/ 813:
  16019. /***/ (function(module, __unusedexports, __webpack_require__) {
  16020. var fs = __webpack_require__(747)
  16021. var core
  16022. if (process.platform === 'win32' || global.TESTING_WINDOWS) {
  16023. core = __webpack_require__(818)
  16024. } else {
  16025. core = __webpack_require__(197)
  16026. }
  16027. module.exports = isexe
  16028. isexe.sync = sync
  16029. function isexe (path, options, cb) {
  16030. if (typeof options === 'function') {
  16031. cb = options
  16032. options = {}
  16033. }
  16034. if (!cb) {
  16035. if (typeof Promise !== 'function') {
  16036. throw new TypeError('callback not provided')
  16037. }
  16038. return new Promise(function (resolve, reject) {
  16039. isexe(path, options || {}, function (er, is) {
  16040. if (er) {
  16041. reject(er)
  16042. } else {
  16043. resolve(is)
  16044. }
  16045. })
  16046. })
  16047. }
  16048. core(path, options || {}, function (er, is) {
  16049. // ignore EACCES because that just means we aren't allowed to run it
  16050. if (er) {
  16051. if (er.code === 'EACCES' || options && options.ignoreErrors) {
  16052. er = null
  16053. is = false
  16054. }
  16055. }
  16056. cb(er, is)
  16057. })
  16058. }
  16059. function sync (path, options) {
  16060. // my kingdom for a filtered catch
  16061. try {
  16062. return core.sync(path, options || {})
  16063. } catch (er) {
  16064. if (options && options.ignoreErrors || er.code === 'EACCES') {
  16065. return false
  16066. } else {
  16067. throw er
  16068. }
  16069. }
  16070. }
  16071. /***/ }),
  16072. /***/ 814:
  16073. /***/ (function(module, __unusedexports, __webpack_require__) {
  16074. module.exports = which
  16075. which.sync = whichSync
  16076. var isWindows = process.platform === 'win32' ||
  16077. process.env.OSTYPE === 'cygwin' ||
  16078. process.env.OSTYPE === 'msys'
  16079. var path = __webpack_require__(622)
  16080. var COLON = isWindows ? ';' : ':'
  16081. var isexe = __webpack_require__(813)
  16082. function getNotFoundError (cmd) {
  16083. var er = new Error('not found: ' + cmd)
  16084. er.code = 'ENOENT'
  16085. return er
  16086. }
  16087. function getPathInfo (cmd, opt) {
  16088. var colon = opt.colon || COLON
  16089. var pathEnv = opt.path || process.env.PATH || ''
  16090. var pathExt = ['']
  16091. pathEnv = pathEnv.split(colon)
  16092. var pathExtExe = ''
  16093. if (isWindows) {
  16094. pathEnv.unshift(process.cwd())
  16095. pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
  16096. pathExt = pathExtExe.split(colon)
  16097. // Always test the cmd itself first. isexe will check to make sure
  16098. // it's found in the pathExt set.
  16099. if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
  16100. pathExt.unshift('')
  16101. }
  16102. // If it has a slash, then we don't bother searching the pathenv.
  16103. // just check the file itself, and that's it.
  16104. if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
  16105. pathEnv = ['']
  16106. return {
  16107. env: pathEnv,
  16108. ext: pathExt,
  16109. extExe: pathExtExe
  16110. }
  16111. }
  16112. function which (cmd, opt, cb) {
  16113. if (typeof opt === 'function') {
  16114. cb = opt
  16115. opt = {}
  16116. }
  16117. var info = getPathInfo(cmd, opt)
  16118. var pathEnv = info.env
  16119. var pathExt = info.ext
  16120. var pathExtExe = info.extExe
  16121. var found = []
  16122. ;(function F (i, l) {
  16123. if (i === l) {
  16124. if (opt.all && found.length)
  16125. return cb(null, found)
  16126. else
  16127. return cb(getNotFoundError(cmd))
  16128. }
  16129. var pathPart = pathEnv[i]
  16130. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  16131. pathPart = pathPart.slice(1, -1)
  16132. var p = path.join(pathPart, cmd)
  16133. if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
  16134. p = cmd.slice(0, 2) + p
  16135. }
  16136. ;(function E (ii, ll) {
  16137. if (ii === ll) return F(i + 1, l)
  16138. var ext = pathExt[ii]
  16139. isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
  16140. if (!er && is) {
  16141. if (opt.all)
  16142. found.push(p + ext)
  16143. else
  16144. return cb(null, p + ext)
  16145. }
  16146. return E(ii + 1, ll)
  16147. })
  16148. })(0, pathExt.length)
  16149. })(0, pathEnv.length)
  16150. }
  16151. function whichSync (cmd, opt) {
  16152. opt = opt || {}
  16153. var info = getPathInfo(cmd, opt)
  16154. var pathEnv = info.env
  16155. var pathExt = info.ext
  16156. var pathExtExe = info.extExe
  16157. var found = []
  16158. for (var i = 0, l = pathEnv.length; i < l; i ++) {
  16159. var pathPart = pathEnv[i]
  16160. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  16161. pathPart = pathPart.slice(1, -1)
  16162. var p = path.join(pathPart, cmd)
  16163. if (!pathPart && /^\.[\\\/]/.test(cmd)) {
  16164. p = cmd.slice(0, 2) + p
  16165. }
  16166. for (var j = 0, ll = pathExt.length; j < ll; j ++) {
  16167. var cur = p + pathExt[j]
  16168. var is
  16169. try {
  16170. is = isexe.sync(cur, { pathExt: pathExtExe })
  16171. if (is) {
  16172. if (opt.all)
  16173. found.push(cur)
  16174. else
  16175. return cur
  16176. }
  16177. } catch (ex) {}
  16178. }
  16179. }
  16180. if (opt.all && found.length)
  16181. return found
  16182. if (opt.nothrow)
  16183. return null
  16184. throw getNotFoundError(cmd)
  16185. }
  16186. /***/ }),
  16187. /***/ 816:
  16188. /***/ (function(module) {
  16189. "use strict";
  16190. module.exports = /^#!.*/;
  16191. /***/ }),
  16192. /***/ 818:
  16193. /***/ (function(module, __unusedexports, __webpack_require__) {
  16194. module.exports = isexe
  16195. isexe.sync = sync
  16196. var fs = __webpack_require__(747)
  16197. function checkPathExt (path, options) {
  16198. var pathext = options.pathExt !== undefined ?
  16199. options.pathExt : process.env.PATHEXT
  16200. if (!pathext) {
  16201. return true
  16202. }
  16203. pathext = pathext.split(';')
  16204. if (pathext.indexOf('') !== -1) {
  16205. return true
  16206. }
  16207. for (var i = 0; i < pathext.length; i++) {
  16208. var p = pathext[i].toLowerCase()
  16209. if (p && path.substr(-p.length).toLowerCase() === p) {
  16210. return true
  16211. }
  16212. }
  16213. return false
  16214. }
  16215. function checkStat (stat, path, options) {
  16216. if (!stat.isSymbolicLink() && !stat.isFile()) {
  16217. return false
  16218. }
  16219. return checkPathExt(path, options)
  16220. }
  16221. function isexe (path, options, cb) {
  16222. fs.stat(path, function (er, stat) {
  16223. cb(er, er ? false : checkStat(stat, path, options))
  16224. })
  16225. }
  16226. function sync (path, options) {
  16227. return checkStat(fs.statSync(path), path, options)
  16228. }
  16229. /***/ }),
  16230. /***/ 821:
  16231. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  16232. "use strict";
  16233. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  16234. if (k2 === undefined) k2 = k;
  16235. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  16236. }) : (function(o, m, k, k2) {
  16237. if (k2 === undefined) k2 = k;
  16238. o[k2] = m[k];
  16239. }));
  16240. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  16241. Object.defineProperty(o, "default", { enumerable: true, value: v });
  16242. }) : function(o, v) {
  16243. o["default"] = v;
  16244. });
  16245. var __importStar = (this && this.__importStar) || function (mod) {
  16246. if (mod && mod.__esModule) return mod;
  16247. var result = {};
  16248. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  16249. __setModuleDefault(result, mod);
  16250. return result;
  16251. };
  16252. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  16253. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  16254. return new (P || (P = Promise))(function (resolve, reject) {
  16255. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  16256. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  16257. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  16258. step((generator = generator.apply(thisArg, _arguments || [])).next());
  16259. });
  16260. };
  16261. Object.defineProperty(exports, "__esModule", { value: true });
  16262. exports.getInputs = void 0;
  16263. const core = __importStar(__webpack_require__(470));
  16264. const fsHelper = __importStar(__webpack_require__(618));
  16265. const github = __importStar(__webpack_require__(469));
  16266. const path = __importStar(__webpack_require__(622));
  16267. const workflowContextHelper = __importStar(__webpack_require__(642));
  16268. function getInputs() {
  16269. return __awaiter(this, void 0, void 0, function* () {
  16270. const result = {};
  16271. // GitHub workspace
  16272. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  16273. if (!githubWorkspacePath) {
  16274. throw new Error('GITHUB_WORKSPACE not defined');
  16275. }
  16276. githubWorkspacePath = path.resolve(githubWorkspacePath);
  16277. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  16278. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  16279. // Qualified repository
  16280. const qualifiedRepository = core.getInput('repository') ||
  16281. `${github.context.repo.owner}/${github.context.repo.repo}`;
  16282. core.debug(`qualified repository = '${qualifiedRepository}'`);
  16283. const splitRepository = qualifiedRepository.split('/');
  16284. if (splitRepository.length !== 2 ||
  16285. !splitRepository[0] ||
  16286. !splitRepository[1]) {
  16287. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  16288. }
  16289. result.repositoryOwner = splitRepository[0];
  16290. result.repositoryName = splitRepository[1];
  16291. // Repository path
  16292. result.repositoryPath = core.getInput('path') || '.';
  16293. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  16294. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  16295. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  16296. }
  16297. // Workflow repository?
  16298. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  16299. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  16300. // Source branch, source version
  16301. result.ref = core.getInput('ref');
  16302. if (!result.ref) {
  16303. if (isWorkflowRepository) {
  16304. result.ref = github.context.ref;
  16305. result.commit = github.context.sha;
  16306. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  16307. // the ref is unqualifed like "main" instead of "refs/heads/main".
  16308. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  16309. result.ref = `refs/heads/${result.ref}`;
  16310. }
  16311. }
  16312. }
  16313. // SHA?
  16314. else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
  16315. result.commit = result.ref;
  16316. result.ref = '';
  16317. }
  16318. core.debug(`ref = '${result.ref}'`);
  16319. core.debug(`commit = '${result.commit}'`);
  16320. // Clean
  16321. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  16322. core.debug(`clean = ${result.clean}`);
  16323. // Fetch depth
  16324. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  16325. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  16326. result.fetchDepth = 0;
  16327. }
  16328. core.debug(`fetch depth = ${result.fetchDepth}`);
  16329. // LFS
  16330. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  16331. core.debug(`lfs = ${result.lfs}`);
  16332. // Submodules
  16333. result.submodules = false;
  16334. result.nestedSubmodules = false;
  16335. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  16336. if (submodulesString == 'RECURSIVE') {
  16337. result.submodules = true;
  16338. result.nestedSubmodules = true;
  16339. }
  16340. else if (submodulesString == 'TRUE') {
  16341. result.submodules = true;
  16342. }
  16343. core.debug(`submodules = ${result.submodules}`);
  16344. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  16345. // Auth token
  16346. result.authToken = core.getInput('token', { required: true });
  16347. // SSH
  16348. result.sshKey = core.getInput('ssh-key');
  16349. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  16350. result.sshStrict =
  16351. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  16352. // Persist credentials
  16353. result.persistCredentials =
  16354. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  16355. // Workflow organization ID
  16356. result.workflowOrganizationId = yield workflowContextHelper.getOrganizationId();
  16357. // Set safe.directory in git global config.
  16358. result.setSafeDirectory =
  16359. (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE';
  16360. // Determine the GitHub URL that the repository is being hosted from
  16361. result.githubServerUrl = core.getInput('github-server-url');
  16362. core.debug(`GitHub Host URL = ${result.githubServerUrl}`);
  16363. return result;
  16364. });
  16365. }
  16366. exports.getInputs = getInputs;
  16367. /***/ }),
  16368. /***/ 826:
  16369. /***/ (function(module, __unusedexports, __webpack_require__) {
  16370. var rng = __webpack_require__(139);
  16371. var bytesToUuid = __webpack_require__(722);
  16372. function v4(options, buf, offset) {
  16373. var i = buf && offset || 0;
  16374. if (typeof(options) == 'string') {
  16375. buf = options === 'binary' ? new Array(16) : null;
  16376. options = null;
  16377. }
  16378. options = options || {};
  16379. var rnds = options.random || (options.rng || rng)();
  16380. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  16381. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  16382. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  16383. // Copy bytes to buffer, if provided
  16384. if (buf) {
  16385. for (var ii = 0; ii < 16; ++ii) {
  16386. buf[i + ii] = rnds[ii];
  16387. }
  16388. }
  16389. return buf || bytesToUuid(rnds);
  16390. }
  16391. module.exports = v4;
  16392. /***/ }),
  16393. /***/ 835:
  16394. /***/ (function(module) {
  16395. module.exports = require("url");
  16396. /***/ }),
  16397. /***/ 842:
  16398. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  16399. "use strict";
  16400. Object.defineProperty(exports, '__esModule', { value: true });
  16401. var deprecation = __webpack_require__(692);
  16402. var endpointsByScope = {
  16403. actions: {
  16404. cancelWorkflowRun: {
  16405. method: "POST",
  16406. params: {
  16407. owner: {
  16408. required: true,
  16409. type: "string"
  16410. },
  16411. repo: {
  16412. required: true,
  16413. type: "string"
  16414. },
  16415. run_id: {
  16416. required: true,
  16417. type: "integer"
  16418. }
  16419. },
  16420. url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
  16421. },
  16422. createOrUpdateSecretForRepo: {
  16423. method: "PUT",
  16424. params: {
  16425. encrypted_value: {
  16426. type: "string"
  16427. },
  16428. key_id: {
  16429. type: "string"
  16430. },
  16431. name: {
  16432. required: true,
  16433. type: "string"
  16434. },
  16435. owner: {
  16436. required: true,
  16437. type: "string"
  16438. },
  16439. repo: {
  16440. required: true,
  16441. type: "string"
  16442. }
  16443. },
  16444. url: "/repos/:owner/:repo/actions/secrets/:name"
  16445. },
  16446. createRegistrationToken: {
  16447. method: "POST",
  16448. params: {
  16449. owner: {
  16450. required: true,
  16451. type: "string"
  16452. },
  16453. repo: {
  16454. required: true,
  16455. type: "string"
  16456. }
  16457. },
  16458. url: "/repos/:owner/:repo/actions/runners/registration-token"
  16459. },
  16460. createRemoveToken: {
  16461. method: "POST",
  16462. params: {
  16463. owner: {
  16464. required: true,
  16465. type: "string"
  16466. },
  16467. repo: {
  16468. required: true,
  16469. type: "string"
  16470. }
  16471. },
  16472. url: "/repos/:owner/:repo/actions/runners/remove-token"
  16473. },
  16474. deleteArtifact: {
  16475. method: "DELETE",
  16476. params: {
  16477. artifact_id: {
  16478. required: true,
  16479. type: "integer"
  16480. },
  16481. owner: {
  16482. required: true,
  16483. type: "string"
  16484. },
  16485. repo: {
  16486. required: true,
  16487. type: "string"
  16488. }
  16489. },
  16490. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  16491. },
  16492. deleteSecretFromRepo: {
  16493. method: "DELETE",
  16494. params: {
  16495. name: {
  16496. required: true,
  16497. type: "string"
  16498. },
  16499. owner: {
  16500. required: true,
  16501. type: "string"
  16502. },
  16503. repo: {
  16504. required: true,
  16505. type: "string"
  16506. }
  16507. },
  16508. url: "/repos/:owner/:repo/actions/secrets/:name"
  16509. },
  16510. downloadArtifact: {
  16511. method: "GET",
  16512. params: {
  16513. archive_format: {
  16514. required: true,
  16515. type: "string"
  16516. },
  16517. artifact_id: {
  16518. required: true,
  16519. type: "integer"
  16520. },
  16521. owner: {
  16522. required: true,
  16523. type: "string"
  16524. },
  16525. repo: {
  16526. required: true,
  16527. type: "string"
  16528. }
  16529. },
  16530. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
  16531. },
  16532. getArtifact: {
  16533. method: "GET",
  16534. params: {
  16535. artifact_id: {
  16536. required: true,
  16537. type: "integer"
  16538. },
  16539. owner: {
  16540. required: true,
  16541. type: "string"
  16542. },
  16543. repo: {
  16544. required: true,
  16545. type: "string"
  16546. }
  16547. },
  16548. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  16549. },
  16550. getPublicKey: {
  16551. method: "GET",
  16552. params: {
  16553. owner: {
  16554. required: true,
  16555. type: "string"
  16556. },
  16557. repo: {
  16558. required: true,
  16559. type: "string"
  16560. }
  16561. },
  16562. url: "/repos/:owner/:repo/actions/secrets/public-key"
  16563. },
  16564. getSecret: {
  16565. method: "GET",
  16566. params: {
  16567. name: {
  16568. required: true,
  16569. type: "string"
  16570. },
  16571. owner: {
  16572. required: true,
  16573. type: "string"
  16574. },
  16575. page: {
  16576. type: "integer"
  16577. },
  16578. per_page: {
  16579. type: "integer"
  16580. },
  16581. repo: {
  16582. required: true,
  16583. type: "string"
  16584. }
  16585. },
  16586. url: "/repos/:owner/:repo/actions/secrets/:name"
  16587. },
  16588. getSelfHostedRunner: {
  16589. method: "GET",
  16590. params: {
  16591. owner: {
  16592. required: true,
  16593. type: "string"
  16594. },
  16595. repo: {
  16596. required: true,
  16597. type: "string"
  16598. },
  16599. runner_id: {
  16600. required: true,
  16601. type: "integer"
  16602. }
  16603. },
  16604. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  16605. },
  16606. getWorkflow: {
  16607. method: "GET",
  16608. params: {
  16609. owner: {
  16610. required: true,
  16611. type: "string"
  16612. },
  16613. repo: {
  16614. required: true,
  16615. type: "string"
  16616. },
  16617. workflow_id: {
  16618. required: true,
  16619. type: "integer"
  16620. }
  16621. },
  16622. url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
  16623. },
  16624. getWorkflowJob: {
  16625. method: "GET",
  16626. params: {
  16627. job_id: {
  16628. required: true,
  16629. type: "integer"
  16630. },
  16631. owner: {
  16632. required: true,
  16633. type: "string"
  16634. },
  16635. repo: {
  16636. required: true,
  16637. type: "string"
  16638. }
  16639. },
  16640. url: "/repos/:owner/:repo/actions/jobs/:job_id"
  16641. },
  16642. getWorkflowRun: {
  16643. method: "GET",
  16644. params: {
  16645. owner: {
  16646. required: true,
  16647. type: "string"
  16648. },
  16649. repo: {
  16650. required: true,
  16651. type: "string"
  16652. },
  16653. run_id: {
  16654. required: true,
  16655. type: "integer"
  16656. }
  16657. },
  16658. url: "/repos/:owner/:repo/actions/runs/:run_id"
  16659. },
  16660. listDownloadsForSelfHostedRunnerApplication: {
  16661. method: "GET",
  16662. params: {
  16663. owner: {
  16664. required: true,
  16665. type: "string"
  16666. },
  16667. repo: {
  16668. required: true,
  16669. type: "string"
  16670. }
  16671. },
  16672. url: "/repos/:owner/:repo/actions/runners/downloads"
  16673. },
  16674. listJobsForWorkflowRun: {
  16675. method: "GET",
  16676. params: {
  16677. owner: {
  16678. required: true,
  16679. type: "string"
  16680. },
  16681. page: {
  16682. type: "integer"
  16683. },
  16684. per_page: {
  16685. type: "integer"
  16686. },
  16687. repo: {
  16688. required: true,
  16689. type: "string"
  16690. },
  16691. run_id: {
  16692. required: true,
  16693. type: "integer"
  16694. }
  16695. },
  16696. url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
  16697. },
  16698. listRepoWorkflowRuns: {
  16699. method: "GET",
  16700. params: {
  16701. actor: {
  16702. type: "string"
  16703. },
  16704. branch: {
  16705. type: "string"
  16706. },
  16707. event: {
  16708. type: "string"
  16709. },
  16710. owner: {
  16711. required: true,
  16712. type: "string"
  16713. },
  16714. page: {
  16715. type: "integer"
  16716. },
  16717. per_page: {
  16718. type: "integer"
  16719. },
  16720. repo: {
  16721. required: true,
  16722. type: "string"
  16723. },
  16724. status: {
  16725. enum: ["completed", "status", "conclusion"],
  16726. type: "string"
  16727. }
  16728. },
  16729. url: "/repos/:owner/:repo/actions/runs"
  16730. },
  16731. listRepoWorkflows: {
  16732. method: "GET",
  16733. params: {
  16734. owner: {
  16735. required: true,
  16736. type: "string"
  16737. },
  16738. page: {
  16739. type: "integer"
  16740. },
  16741. per_page: {
  16742. type: "integer"
  16743. },
  16744. repo: {
  16745. required: true,
  16746. type: "string"
  16747. }
  16748. },
  16749. url: "/repos/:owner/:repo/actions/workflows"
  16750. },
  16751. listSecretsForRepo: {
  16752. method: "GET",
  16753. params: {
  16754. owner: {
  16755. required: true,
  16756. type: "string"
  16757. },
  16758. page: {
  16759. type: "integer"
  16760. },
  16761. per_page: {
  16762. type: "integer"
  16763. },
  16764. repo: {
  16765. required: true,
  16766. type: "string"
  16767. }
  16768. },
  16769. url: "/repos/:owner/:repo/actions/secrets"
  16770. },
  16771. listSelfHostedRunnersForRepo: {
  16772. method: "GET",
  16773. params: {
  16774. owner: {
  16775. required: true,
  16776. type: "string"
  16777. },
  16778. page: {
  16779. type: "integer"
  16780. },
  16781. per_page: {
  16782. type: "integer"
  16783. },
  16784. repo: {
  16785. required: true,
  16786. type: "string"
  16787. }
  16788. },
  16789. url: "/repos/:owner/:repo/actions/runners"
  16790. },
  16791. listWorkflowJobLogs: {
  16792. method: "GET",
  16793. params: {
  16794. job_id: {
  16795. required: true,
  16796. type: "integer"
  16797. },
  16798. owner: {
  16799. required: true,
  16800. type: "string"
  16801. },
  16802. page: {
  16803. type: "integer"
  16804. },
  16805. per_page: {
  16806. type: "integer"
  16807. },
  16808. repo: {
  16809. required: true,
  16810. type: "string"
  16811. }
  16812. },
  16813. url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
  16814. },
  16815. listWorkflowRunArtifacts: {
  16816. method: "GET",
  16817. params: {
  16818. owner: {
  16819. required: true,
  16820. type: "string"
  16821. },
  16822. page: {
  16823. type: "integer"
  16824. },
  16825. per_page: {
  16826. type: "integer"
  16827. },
  16828. repo: {
  16829. required: true,
  16830. type: "string"
  16831. },
  16832. run_id: {
  16833. required: true,
  16834. type: "integer"
  16835. }
  16836. },
  16837. url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
  16838. },
  16839. listWorkflowRunLogs: {
  16840. method: "GET",
  16841. params: {
  16842. owner: {
  16843. required: true,
  16844. type: "string"
  16845. },
  16846. page: {
  16847. type: "integer"
  16848. },
  16849. per_page: {
  16850. type: "integer"
  16851. },
  16852. repo: {
  16853. required: true,
  16854. type: "string"
  16855. },
  16856. run_id: {
  16857. required: true,
  16858. type: "integer"
  16859. }
  16860. },
  16861. url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
  16862. },
  16863. listWorkflowRuns: {
  16864. method: "GET",
  16865. params: {
  16866. actor: {
  16867. type: "string"
  16868. },
  16869. branch: {
  16870. type: "string"
  16871. },
  16872. event: {
  16873. type: "string"
  16874. },
  16875. owner: {
  16876. required: true,
  16877. type: "string"
  16878. },
  16879. page: {
  16880. type: "integer"
  16881. },
  16882. per_page: {
  16883. type: "integer"
  16884. },
  16885. repo: {
  16886. required: true,
  16887. type: "string"
  16888. },
  16889. status: {
  16890. enum: ["completed", "status", "conclusion"],
  16891. type: "string"
  16892. },
  16893. workflow_id: {
  16894. required: true,
  16895. type: "integer"
  16896. }
  16897. },
  16898. url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
  16899. },
  16900. reRunWorkflow: {
  16901. method: "POST",
  16902. params: {
  16903. owner: {
  16904. required: true,
  16905. type: "string"
  16906. },
  16907. repo: {
  16908. required: true,
  16909. type: "string"
  16910. },
  16911. run_id: {
  16912. required: true,
  16913. type: "integer"
  16914. }
  16915. },
  16916. url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
  16917. },
  16918. removeSelfHostedRunner: {
  16919. method: "DELETE",
  16920. params: {
  16921. owner: {
  16922. required: true,
  16923. type: "string"
  16924. },
  16925. repo: {
  16926. required: true,
  16927. type: "string"
  16928. },
  16929. runner_id: {
  16930. required: true,
  16931. type: "integer"
  16932. }
  16933. },
  16934. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  16935. }
  16936. },
  16937. activity: {
  16938. checkStarringRepo: {
  16939. method: "GET",
  16940. params: {
  16941. owner: {
  16942. required: true,
  16943. type: "string"
  16944. },
  16945. repo: {
  16946. required: true,
  16947. type: "string"
  16948. }
  16949. },
  16950. url: "/user/starred/:owner/:repo"
  16951. },
  16952. deleteRepoSubscription: {
  16953. method: "DELETE",
  16954. params: {
  16955. owner: {
  16956. required: true,
  16957. type: "string"
  16958. },
  16959. repo: {
  16960. required: true,
  16961. type: "string"
  16962. }
  16963. },
  16964. url: "/repos/:owner/:repo/subscription"
  16965. },
  16966. deleteThreadSubscription: {
  16967. method: "DELETE",
  16968. params: {
  16969. thread_id: {
  16970. required: true,
  16971. type: "integer"
  16972. }
  16973. },
  16974. url: "/notifications/threads/:thread_id/subscription"
  16975. },
  16976. getRepoSubscription: {
  16977. method: "GET",
  16978. params: {
  16979. owner: {
  16980. required: true,
  16981. type: "string"
  16982. },
  16983. repo: {
  16984. required: true,
  16985. type: "string"
  16986. }
  16987. },
  16988. url: "/repos/:owner/:repo/subscription"
  16989. },
  16990. getThread: {
  16991. method: "GET",
  16992. params: {
  16993. thread_id: {
  16994. required: true,
  16995. type: "integer"
  16996. }
  16997. },
  16998. url: "/notifications/threads/:thread_id"
  16999. },
  17000. getThreadSubscription: {
  17001. method: "GET",
  17002. params: {
  17003. thread_id: {
  17004. required: true,
  17005. type: "integer"
  17006. }
  17007. },
  17008. url: "/notifications/threads/:thread_id/subscription"
  17009. },
  17010. listEventsForOrg: {
  17011. method: "GET",
  17012. params: {
  17013. org: {
  17014. required: true,
  17015. type: "string"
  17016. },
  17017. page: {
  17018. type: "integer"
  17019. },
  17020. per_page: {
  17021. type: "integer"
  17022. },
  17023. username: {
  17024. required: true,
  17025. type: "string"
  17026. }
  17027. },
  17028. url: "/users/:username/events/orgs/:org"
  17029. },
  17030. listEventsForUser: {
  17031. method: "GET",
  17032. params: {
  17033. page: {
  17034. type: "integer"
  17035. },
  17036. per_page: {
  17037. type: "integer"
  17038. },
  17039. username: {
  17040. required: true,
  17041. type: "string"
  17042. }
  17043. },
  17044. url: "/users/:username/events"
  17045. },
  17046. listFeeds: {
  17047. method: "GET",
  17048. params: {},
  17049. url: "/feeds"
  17050. },
  17051. listNotifications: {
  17052. method: "GET",
  17053. params: {
  17054. all: {
  17055. type: "boolean"
  17056. },
  17057. before: {
  17058. type: "string"
  17059. },
  17060. page: {
  17061. type: "integer"
  17062. },
  17063. participating: {
  17064. type: "boolean"
  17065. },
  17066. per_page: {
  17067. type: "integer"
  17068. },
  17069. since: {
  17070. type: "string"
  17071. }
  17072. },
  17073. url: "/notifications"
  17074. },
  17075. listNotificationsForRepo: {
  17076. method: "GET",
  17077. params: {
  17078. all: {
  17079. type: "boolean"
  17080. },
  17081. before: {
  17082. type: "string"
  17083. },
  17084. owner: {
  17085. required: true,
  17086. type: "string"
  17087. },
  17088. page: {
  17089. type: "integer"
  17090. },
  17091. participating: {
  17092. type: "boolean"
  17093. },
  17094. per_page: {
  17095. type: "integer"
  17096. },
  17097. repo: {
  17098. required: true,
  17099. type: "string"
  17100. },
  17101. since: {
  17102. type: "string"
  17103. }
  17104. },
  17105. url: "/repos/:owner/:repo/notifications"
  17106. },
  17107. listPublicEvents: {
  17108. method: "GET",
  17109. params: {
  17110. page: {
  17111. type: "integer"
  17112. },
  17113. per_page: {
  17114. type: "integer"
  17115. }
  17116. },
  17117. url: "/events"
  17118. },
  17119. listPublicEventsForOrg: {
  17120. method: "GET",
  17121. params: {
  17122. org: {
  17123. required: true,
  17124. type: "string"
  17125. },
  17126. page: {
  17127. type: "integer"
  17128. },
  17129. per_page: {
  17130. type: "integer"
  17131. }
  17132. },
  17133. url: "/orgs/:org/events"
  17134. },
  17135. listPublicEventsForRepoNetwork: {
  17136. method: "GET",
  17137. params: {
  17138. owner: {
  17139. required: true,
  17140. type: "string"
  17141. },
  17142. page: {
  17143. type: "integer"
  17144. },
  17145. per_page: {
  17146. type: "integer"
  17147. },
  17148. repo: {
  17149. required: true,
  17150. type: "string"
  17151. }
  17152. },
  17153. url: "/networks/:owner/:repo/events"
  17154. },
  17155. listPublicEventsForUser: {
  17156. method: "GET",
  17157. params: {
  17158. page: {
  17159. type: "integer"
  17160. },
  17161. per_page: {
  17162. type: "integer"
  17163. },
  17164. username: {
  17165. required: true,
  17166. type: "string"
  17167. }
  17168. },
  17169. url: "/users/:username/events/public"
  17170. },
  17171. listReceivedEventsForUser: {
  17172. method: "GET",
  17173. params: {
  17174. page: {
  17175. type: "integer"
  17176. },
  17177. per_page: {
  17178. type: "integer"
  17179. },
  17180. username: {
  17181. required: true,
  17182. type: "string"
  17183. }
  17184. },
  17185. url: "/users/:username/received_events"
  17186. },
  17187. listReceivedPublicEventsForUser: {
  17188. method: "GET",
  17189. params: {
  17190. page: {
  17191. type: "integer"
  17192. },
  17193. per_page: {
  17194. type: "integer"
  17195. },
  17196. username: {
  17197. required: true,
  17198. type: "string"
  17199. }
  17200. },
  17201. url: "/users/:username/received_events/public"
  17202. },
  17203. listRepoEvents: {
  17204. method: "GET",
  17205. params: {
  17206. owner: {
  17207. required: true,
  17208. type: "string"
  17209. },
  17210. page: {
  17211. type: "integer"
  17212. },
  17213. per_page: {
  17214. type: "integer"
  17215. },
  17216. repo: {
  17217. required: true,
  17218. type: "string"
  17219. }
  17220. },
  17221. url: "/repos/:owner/:repo/events"
  17222. },
  17223. listReposStarredByAuthenticatedUser: {
  17224. method: "GET",
  17225. params: {
  17226. direction: {
  17227. enum: ["asc", "desc"],
  17228. type: "string"
  17229. },
  17230. page: {
  17231. type: "integer"
  17232. },
  17233. per_page: {
  17234. type: "integer"
  17235. },
  17236. sort: {
  17237. enum: ["created", "updated"],
  17238. type: "string"
  17239. }
  17240. },
  17241. url: "/user/starred"
  17242. },
  17243. listReposStarredByUser: {
  17244. method: "GET",
  17245. params: {
  17246. direction: {
  17247. enum: ["asc", "desc"],
  17248. type: "string"
  17249. },
  17250. page: {
  17251. type: "integer"
  17252. },
  17253. per_page: {
  17254. type: "integer"
  17255. },
  17256. sort: {
  17257. enum: ["created", "updated"],
  17258. type: "string"
  17259. },
  17260. username: {
  17261. required: true,
  17262. type: "string"
  17263. }
  17264. },
  17265. url: "/users/:username/starred"
  17266. },
  17267. listReposWatchedByUser: {
  17268. method: "GET",
  17269. params: {
  17270. page: {
  17271. type: "integer"
  17272. },
  17273. per_page: {
  17274. type: "integer"
  17275. },
  17276. username: {
  17277. required: true,
  17278. type: "string"
  17279. }
  17280. },
  17281. url: "/users/:username/subscriptions"
  17282. },
  17283. listStargazersForRepo: {
  17284. method: "GET",
  17285. params: {
  17286. owner: {
  17287. required: true,
  17288. type: "string"
  17289. },
  17290. page: {
  17291. type: "integer"
  17292. },
  17293. per_page: {
  17294. type: "integer"
  17295. },
  17296. repo: {
  17297. required: true,
  17298. type: "string"
  17299. }
  17300. },
  17301. url: "/repos/:owner/:repo/stargazers"
  17302. },
  17303. listWatchedReposForAuthenticatedUser: {
  17304. method: "GET",
  17305. params: {
  17306. page: {
  17307. type: "integer"
  17308. },
  17309. per_page: {
  17310. type: "integer"
  17311. }
  17312. },
  17313. url: "/user/subscriptions"
  17314. },
  17315. listWatchersForRepo: {
  17316. method: "GET",
  17317. params: {
  17318. owner: {
  17319. required: true,
  17320. type: "string"
  17321. },
  17322. page: {
  17323. type: "integer"
  17324. },
  17325. per_page: {
  17326. type: "integer"
  17327. },
  17328. repo: {
  17329. required: true,
  17330. type: "string"
  17331. }
  17332. },
  17333. url: "/repos/:owner/:repo/subscribers"
  17334. },
  17335. markAsRead: {
  17336. method: "PUT",
  17337. params: {
  17338. last_read_at: {
  17339. type: "string"
  17340. }
  17341. },
  17342. url: "/notifications"
  17343. },
  17344. markNotificationsAsReadForRepo: {
  17345. method: "PUT",
  17346. params: {
  17347. last_read_at: {
  17348. type: "string"
  17349. },
  17350. owner: {
  17351. required: true,
  17352. type: "string"
  17353. },
  17354. repo: {
  17355. required: true,
  17356. type: "string"
  17357. }
  17358. },
  17359. url: "/repos/:owner/:repo/notifications"
  17360. },
  17361. markThreadAsRead: {
  17362. method: "PATCH",
  17363. params: {
  17364. thread_id: {
  17365. required: true,
  17366. type: "integer"
  17367. }
  17368. },
  17369. url: "/notifications/threads/:thread_id"
  17370. },
  17371. setRepoSubscription: {
  17372. method: "PUT",
  17373. params: {
  17374. ignored: {
  17375. type: "boolean"
  17376. },
  17377. owner: {
  17378. required: true,
  17379. type: "string"
  17380. },
  17381. repo: {
  17382. required: true,
  17383. type: "string"
  17384. },
  17385. subscribed: {
  17386. type: "boolean"
  17387. }
  17388. },
  17389. url: "/repos/:owner/:repo/subscription"
  17390. },
  17391. setThreadSubscription: {
  17392. method: "PUT",
  17393. params: {
  17394. ignored: {
  17395. type: "boolean"
  17396. },
  17397. thread_id: {
  17398. required: true,
  17399. type: "integer"
  17400. }
  17401. },
  17402. url: "/notifications/threads/:thread_id/subscription"
  17403. },
  17404. starRepo: {
  17405. method: "PUT",
  17406. params: {
  17407. owner: {
  17408. required: true,
  17409. type: "string"
  17410. },
  17411. repo: {
  17412. required: true,
  17413. type: "string"
  17414. }
  17415. },
  17416. url: "/user/starred/:owner/:repo"
  17417. },
  17418. unstarRepo: {
  17419. method: "DELETE",
  17420. params: {
  17421. owner: {
  17422. required: true,
  17423. type: "string"
  17424. },
  17425. repo: {
  17426. required: true,
  17427. type: "string"
  17428. }
  17429. },
  17430. url: "/user/starred/:owner/:repo"
  17431. }
  17432. },
  17433. apps: {
  17434. addRepoToInstallation: {
  17435. headers: {
  17436. accept: "application/vnd.github.machine-man-preview+json"
  17437. },
  17438. method: "PUT",
  17439. params: {
  17440. installation_id: {
  17441. required: true,
  17442. type: "integer"
  17443. },
  17444. repository_id: {
  17445. required: true,
  17446. type: "integer"
  17447. }
  17448. },
  17449. url: "/user/installations/:installation_id/repositories/:repository_id"
  17450. },
  17451. checkAccountIsAssociatedWithAny: {
  17452. method: "GET",
  17453. params: {
  17454. account_id: {
  17455. required: true,
  17456. type: "integer"
  17457. }
  17458. },
  17459. url: "/marketplace_listing/accounts/:account_id"
  17460. },
  17461. checkAccountIsAssociatedWithAnyStubbed: {
  17462. method: "GET",
  17463. params: {
  17464. account_id: {
  17465. required: true,
  17466. type: "integer"
  17467. }
  17468. },
  17469. url: "/marketplace_listing/stubbed/accounts/:account_id"
  17470. },
  17471. checkAuthorization: {
  17472. deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
  17473. method: "GET",
  17474. params: {
  17475. access_token: {
  17476. required: true,
  17477. type: "string"
  17478. },
  17479. client_id: {
  17480. required: true,
  17481. type: "string"
  17482. }
  17483. },
  17484. url: "/applications/:client_id/tokens/:access_token"
  17485. },
  17486. checkToken: {
  17487. headers: {
  17488. accept: "application/vnd.github.doctor-strange-preview+json"
  17489. },
  17490. method: "POST",
  17491. params: {
  17492. access_token: {
  17493. type: "string"
  17494. },
  17495. client_id: {
  17496. required: true,
  17497. type: "string"
  17498. }
  17499. },
  17500. url: "/applications/:client_id/token"
  17501. },
  17502. createContentAttachment: {
  17503. headers: {
  17504. accept: "application/vnd.github.corsair-preview+json"
  17505. },
  17506. method: "POST",
  17507. params: {
  17508. body: {
  17509. required: true,
  17510. type: "string"
  17511. },
  17512. content_reference_id: {
  17513. required: true,
  17514. type: "integer"
  17515. },
  17516. title: {
  17517. required: true,
  17518. type: "string"
  17519. }
  17520. },
  17521. url: "/content_references/:content_reference_id/attachments"
  17522. },
  17523. createFromManifest: {
  17524. headers: {
  17525. accept: "application/vnd.github.fury-preview+json"
  17526. },
  17527. method: "POST",
  17528. params: {
  17529. code: {
  17530. required: true,
  17531. type: "string"
  17532. }
  17533. },
  17534. url: "/app-manifests/:code/conversions"
  17535. },
  17536. createInstallationToken: {
  17537. headers: {
  17538. accept: "application/vnd.github.machine-man-preview+json"
  17539. },
  17540. method: "POST",
  17541. params: {
  17542. installation_id: {
  17543. required: true,
  17544. type: "integer"
  17545. },
  17546. permissions: {
  17547. type: "object"
  17548. },
  17549. repository_ids: {
  17550. type: "integer[]"
  17551. }
  17552. },
  17553. url: "/app/installations/:installation_id/access_tokens"
  17554. },
  17555. deleteAuthorization: {
  17556. headers: {
  17557. accept: "application/vnd.github.doctor-strange-preview+json"
  17558. },
  17559. method: "DELETE",
  17560. params: {
  17561. access_token: {
  17562. type: "string"
  17563. },
  17564. client_id: {
  17565. required: true,
  17566. type: "string"
  17567. }
  17568. },
  17569. url: "/applications/:client_id/grant"
  17570. },
  17571. deleteInstallation: {
  17572. headers: {
  17573. accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
  17574. },
  17575. method: "DELETE",
  17576. params: {
  17577. installation_id: {
  17578. required: true,
  17579. type: "integer"
  17580. }
  17581. },
  17582. url: "/app/installations/:installation_id"
  17583. },
  17584. deleteToken: {
  17585. headers: {
  17586. accept: "application/vnd.github.doctor-strange-preview+json"
  17587. },
  17588. method: "DELETE",
  17589. params: {
  17590. access_token: {
  17591. type: "string"
  17592. },
  17593. client_id: {
  17594. required: true,
  17595. type: "string"
  17596. }
  17597. },
  17598. url: "/applications/:client_id/token"
  17599. },
  17600. findOrgInstallation: {
  17601. deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
  17602. headers: {
  17603. accept: "application/vnd.github.machine-man-preview+json"
  17604. },
  17605. method: "GET",
  17606. params: {
  17607. org: {
  17608. required: true,
  17609. type: "string"
  17610. }
  17611. },
  17612. url: "/orgs/:org/installation"
  17613. },
  17614. findRepoInstallation: {
  17615. deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
  17616. headers: {
  17617. accept: "application/vnd.github.machine-man-preview+json"
  17618. },
  17619. method: "GET",
  17620. params: {
  17621. owner: {
  17622. required: true,
  17623. type: "string"
  17624. },
  17625. repo: {
  17626. required: true,
  17627. type: "string"
  17628. }
  17629. },
  17630. url: "/repos/:owner/:repo/installation"
  17631. },
  17632. findUserInstallation: {
  17633. deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
  17634. headers: {
  17635. accept: "application/vnd.github.machine-man-preview+json"
  17636. },
  17637. method: "GET",
  17638. params: {
  17639. username: {
  17640. required: true,
  17641. type: "string"
  17642. }
  17643. },
  17644. url: "/users/:username/installation"
  17645. },
  17646. getAuthenticated: {
  17647. headers: {
  17648. accept: "application/vnd.github.machine-man-preview+json"
  17649. },
  17650. method: "GET",
  17651. params: {},
  17652. url: "/app"
  17653. },
  17654. getBySlug: {
  17655. headers: {
  17656. accept: "application/vnd.github.machine-man-preview+json"
  17657. },
  17658. method: "GET",
  17659. params: {
  17660. app_slug: {
  17661. required: true,
  17662. type: "string"
  17663. }
  17664. },
  17665. url: "/apps/:app_slug"
  17666. },
  17667. getInstallation: {
  17668. headers: {
  17669. accept: "application/vnd.github.machine-man-preview+json"
  17670. },
  17671. method: "GET",
  17672. params: {
  17673. installation_id: {
  17674. required: true,
  17675. type: "integer"
  17676. }
  17677. },
  17678. url: "/app/installations/:installation_id"
  17679. },
  17680. getOrgInstallation: {
  17681. headers: {
  17682. accept: "application/vnd.github.machine-man-preview+json"
  17683. },
  17684. method: "GET",
  17685. params: {
  17686. org: {
  17687. required: true,
  17688. type: "string"
  17689. }
  17690. },
  17691. url: "/orgs/:org/installation"
  17692. },
  17693. getRepoInstallation: {
  17694. headers: {
  17695. accept: "application/vnd.github.machine-man-preview+json"
  17696. },
  17697. method: "GET",
  17698. params: {
  17699. owner: {
  17700. required: true,
  17701. type: "string"
  17702. },
  17703. repo: {
  17704. required: true,
  17705. type: "string"
  17706. }
  17707. },
  17708. url: "/repos/:owner/:repo/installation"
  17709. },
  17710. getUserInstallation: {
  17711. headers: {
  17712. accept: "application/vnd.github.machine-man-preview+json"
  17713. },
  17714. method: "GET",
  17715. params: {
  17716. username: {
  17717. required: true,
  17718. type: "string"
  17719. }
  17720. },
  17721. url: "/users/:username/installation"
  17722. },
  17723. listAccountsUserOrOrgOnPlan: {
  17724. method: "GET",
  17725. params: {
  17726. direction: {
  17727. enum: ["asc", "desc"],
  17728. type: "string"
  17729. },
  17730. page: {
  17731. type: "integer"
  17732. },
  17733. per_page: {
  17734. type: "integer"
  17735. },
  17736. plan_id: {
  17737. required: true,
  17738. type: "integer"
  17739. },
  17740. sort: {
  17741. enum: ["created", "updated"],
  17742. type: "string"
  17743. }
  17744. },
  17745. url: "/marketplace_listing/plans/:plan_id/accounts"
  17746. },
  17747. listAccountsUserOrOrgOnPlanStubbed: {
  17748. method: "GET",
  17749. params: {
  17750. direction: {
  17751. enum: ["asc", "desc"],
  17752. type: "string"
  17753. },
  17754. page: {
  17755. type: "integer"
  17756. },
  17757. per_page: {
  17758. type: "integer"
  17759. },
  17760. plan_id: {
  17761. required: true,
  17762. type: "integer"
  17763. },
  17764. sort: {
  17765. enum: ["created", "updated"],
  17766. type: "string"
  17767. }
  17768. },
  17769. url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
  17770. },
  17771. listInstallationReposForAuthenticatedUser: {
  17772. headers: {
  17773. accept: "application/vnd.github.machine-man-preview+json"
  17774. },
  17775. method: "GET",
  17776. params: {
  17777. installation_id: {
  17778. required: true,
  17779. type: "integer"
  17780. },
  17781. page: {
  17782. type: "integer"
  17783. },
  17784. per_page: {
  17785. type: "integer"
  17786. }
  17787. },
  17788. url: "/user/installations/:installation_id/repositories"
  17789. },
  17790. listInstallations: {
  17791. headers: {
  17792. accept: "application/vnd.github.machine-man-preview+json"
  17793. },
  17794. method: "GET",
  17795. params: {
  17796. page: {
  17797. type: "integer"
  17798. },
  17799. per_page: {
  17800. type: "integer"
  17801. }
  17802. },
  17803. url: "/app/installations"
  17804. },
  17805. listInstallationsForAuthenticatedUser: {
  17806. headers: {
  17807. accept: "application/vnd.github.machine-man-preview+json"
  17808. },
  17809. method: "GET",
  17810. params: {
  17811. page: {
  17812. type: "integer"
  17813. },
  17814. per_page: {
  17815. type: "integer"
  17816. }
  17817. },
  17818. url: "/user/installations"
  17819. },
  17820. listMarketplacePurchasesForAuthenticatedUser: {
  17821. method: "GET",
  17822. params: {
  17823. page: {
  17824. type: "integer"
  17825. },
  17826. per_page: {
  17827. type: "integer"
  17828. }
  17829. },
  17830. url: "/user/marketplace_purchases"
  17831. },
  17832. listMarketplacePurchasesForAuthenticatedUserStubbed: {
  17833. method: "GET",
  17834. params: {
  17835. page: {
  17836. type: "integer"
  17837. },
  17838. per_page: {
  17839. type: "integer"
  17840. }
  17841. },
  17842. url: "/user/marketplace_purchases/stubbed"
  17843. },
  17844. listPlans: {
  17845. method: "GET",
  17846. params: {
  17847. page: {
  17848. type: "integer"
  17849. },
  17850. per_page: {
  17851. type: "integer"
  17852. }
  17853. },
  17854. url: "/marketplace_listing/plans"
  17855. },
  17856. listPlansStubbed: {
  17857. method: "GET",
  17858. params: {
  17859. page: {
  17860. type: "integer"
  17861. },
  17862. per_page: {
  17863. type: "integer"
  17864. }
  17865. },
  17866. url: "/marketplace_listing/stubbed/plans"
  17867. },
  17868. listRepos: {
  17869. headers: {
  17870. accept: "application/vnd.github.machine-man-preview+json"
  17871. },
  17872. method: "GET",
  17873. params: {
  17874. page: {
  17875. type: "integer"
  17876. },
  17877. per_page: {
  17878. type: "integer"
  17879. }
  17880. },
  17881. url: "/installation/repositories"
  17882. },
  17883. removeRepoFromInstallation: {
  17884. headers: {
  17885. accept: "application/vnd.github.machine-man-preview+json"
  17886. },
  17887. method: "DELETE",
  17888. params: {
  17889. installation_id: {
  17890. required: true,
  17891. type: "integer"
  17892. },
  17893. repository_id: {
  17894. required: true,
  17895. type: "integer"
  17896. }
  17897. },
  17898. url: "/user/installations/:installation_id/repositories/:repository_id"
  17899. },
  17900. resetAuthorization: {
  17901. deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
  17902. method: "POST",
  17903. params: {
  17904. access_token: {
  17905. required: true,
  17906. type: "string"
  17907. },
  17908. client_id: {
  17909. required: true,
  17910. type: "string"
  17911. }
  17912. },
  17913. url: "/applications/:client_id/tokens/:access_token"
  17914. },
  17915. resetToken: {
  17916. headers: {
  17917. accept: "application/vnd.github.doctor-strange-preview+json"
  17918. },
  17919. method: "PATCH",
  17920. params: {
  17921. access_token: {
  17922. type: "string"
  17923. },
  17924. client_id: {
  17925. required: true,
  17926. type: "string"
  17927. }
  17928. },
  17929. url: "/applications/:client_id/token"
  17930. },
  17931. revokeAuthorizationForApplication: {
  17932. deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
  17933. method: "DELETE",
  17934. params: {
  17935. access_token: {
  17936. required: true,
  17937. type: "string"
  17938. },
  17939. client_id: {
  17940. required: true,
  17941. type: "string"
  17942. }
  17943. },
  17944. url: "/applications/:client_id/tokens/:access_token"
  17945. },
  17946. revokeGrantForApplication: {
  17947. deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
  17948. method: "DELETE",
  17949. params: {
  17950. access_token: {
  17951. required: true,
  17952. type: "string"
  17953. },
  17954. client_id: {
  17955. required: true,
  17956. type: "string"
  17957. }
  17958. },
  17959. url: "/applications/:client_id/grants/:access_token"
  17960. },
  17961. revokeInstallationToken: {
  17962. headers: {
  17963. accept: "application/vnd.github.gambit-preview+json"
  17964. },
  17965. method: "DELETE",
  17966. params: {},
  17967. url: "/installation/token"
  17968. }
  17969. },
  17970. checks: {
  17971. create: {
  17972. headers: {
  17973. accept: "application/vnd.github.antiope-preview+json"
  17974. },
  17975. method: "POST",
  17976. params: {
  17977. actions: {
  17978. type: "object[]"
  17979. },
  17980. "actions[].description": {
  17981. required: true,
  17982. type: "string"
  17983. },
  17984. "actions[].identifier": {
  17985. required: true,
  17986. type: "string"
  17987. },
  17988. "actions[].label": {
  17989. required: true,
  17990. type: "string"
  17991. },
  17992. completed_at: {
  17993. type: "string"
  17994. },
  17995. conclusion: {
  17996. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  17997. type: "string"
  17998. },
  17999. details_url: {
  18000. type: "string"
  18001. },
  18002. external_id: {
  18003. type: "string"
  18004. },
  18005. head_sha: {
  18006. required: true,
  18007. type: "string"
  18008. },
  18009. name: {
  18010. required: true,
  18011. type: "string"
  18012. },
  18013. output: {
  18014. type: "object"
  18015. },
  18016. "output.annotations": {
  18017. type: "object[]"
  18018. },
  18019. "output.annotations[].annotation_level": {
  18020. enum: ["notice", "warning", "failure"],
  18021. required: true,
  18022. type: "string"
  18023. },
  18024. "output.annotations[].end_column": {
  18025. type: "integer"
  18026. },
  18027. "output.annotations[].end_line": {
  18028. required: true,
  18029. type: "integer"
  18030. },
  18031. "output.annotations[].message": {
  18032. required: true,
  18033. type: "string"
  18034. },
  18035. "output.annotations[].path": {
  18036. required: true,
  18037. type: "string"
  18038. },
  18039. "output.annotations[].raw_details": {
  18040. type: "string"
  18041. },
  18042. "output.annotations[].start_column": {
  18043. type: "integer"
  18044. },
  18045. "output.annotations[].start_line": {
  18046. required: true,
  18047. type: "integer"
  18048. },
  18049. "output.annotations[].title": {
  18050. type: "string"
  18051. },
  18052. "output.images": {
  18053. type: "object[]"
  18054. },
  18055. "output.images[].alt": {
  18056. required: true,
  18057. type: "string"
  18058. },
  18059. "output.images[].caption": {
  18060. type: "string"
  18061. },
  18062. "output.images[].image_url": {
  18063. required: true,
  18064. type: "string"
  18065. },
  18066. "output.summary": {
  18067. required: true,
  18068. type: "string"
  18069. },
  18070. "output.text": {
  18071. type: "string"
  18072. },
  18073. "output.title": {
  18074. required: true,
  18075. type: "string"
  18076. },
  18077. owner: {
  18078. required: true,
  18079. type: "string"
  18080. },
  18081. repo: {
  18082. required: true,
  18083. type: "string"
  18084. },
  18085. started_at: {
  18086. type: "string"
  18087. },
  18088. status: {
  18089. enum: ["queued", "in_progress", "completed"],
  18090. type: "string"
  18091. }
  18092. },
  18093. url: "/repos/:owner/:repo/check-runs"
  18094. },
  18095. createSuite: {
  18096. headers: {
  18097. accept: "application/vnd.github.antiope-preview+json"
  18098. },
  18099. method: "POST",
  18100. params: {
  18101. head_sha: {
  18102. required: true,
  18103. type: "string"
  18104. },
  18105. owner: {
  18106. required: true,
  18107. type: "string"
  18108. },
  18109. repo: {
  18110. required: true,
  18111. type: "string"
  18112. }
  18113. },
  18114. url: "/repos/:owner/:repo/check-suites"
  18115. },
  18116. get: {
  18117. headers: {
  18118. accept: "application/vnd.github.antiope-preview+json"
  18119. },
  18120. method: "GET",
  18121. params: {
  18122. check_run_id: {
  18123. required: true,
  18124. type: "integer"
  18125. },
  18126. owner: {
  18127. required: true,
  18128. type: "string"
  18129. },
  18130. repo: {
  18131. required: true,
  18132. type: "string"
  18133. }
  18134. },
  18135. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  18136. },
  18137. getSuite: {
  18138. headers: {
  18139. accept: "application/vnd.github.antiope-preview+json"
  18140. },
  18141. method: "GET",
  18142. params: {
  18143. check_suite_id: {
  18144. required: true,
  18145. type: "integer"
  18146. },
  18147. owner: {
  18148. required: true,
  18149. type: "string"
  18150. },
  18151. repo: {
  18152. required: true,
  18153. type: "string"
  18154. }
  18155. },
  18156. url: "/repos/:owner/:repo/check-suites/:check_suite_id"
  18157. },
  18158. listAnnotations: {
  18159. headers: {
  18160. accept: "application/vnd.github.antiope-preview+json"
  18161. },
  18162. method: "GET",
  18163. params: {
  18164. check_run_id: {
  18165. required: true,
  18166. type: "integer"
  18167. },
  18168. owner: {
  18169. required: true,
  18170. type: "string"
  18171. },
  18172. page: {
  18173. type: "integer"
  18174. },
  18175. per_page: {
  18176. type: "integer"
  18177. },
  18178. repo: {
  18179. required: true,
  18180. type: "string"
  18181. }
  18182. },
  18183. url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
  18184. },
  18185. listForRef: {
  18186. headers: {
  18187. accept: "application/vnd.github.antiope-preview+json"
  18188. },
  18189. method: "GET",
  18190. params: {
  18191. check_name: {
  18192. type: "string"
  18193. },
  18194. filter: {
  18195. enum: ["latest", "all"],
  18196. type: "string"
  18197. },
  18198. owner: {
  18199. required: true,
  18200. type: "string"
  18201. },
  18202. page: {
  18203. type: "integer"
  18204. },
  18205. per_page: {
  18206. type: "integer"
  18207. },
  18208. ref: {
  18209. required: true,
  18210. type: "string"
  18211. },
  18212. repo: {
  18213. required: true,
  18214. type: "string"
  18215. },
  18216. status: {
  18217. enum: ["queued", "in_progress", "completed"],
  18218. type: "string"
  18219. }
  18220. },
  18221. url: "/repos/:owner/:repo/commits/:ref/check-runs"
  18222. },
  18223. listForSuite: {
  18224. headers: {
  18225. accept: "application/vnd.github.antiope-preview+json"
  18226. },
  18227. method: "GET",
  18228. params: {
  18229. check_name: {
  18230. type: "string"
  18231. },
  18232. check_suite_id: {
  18233. required: true,
  18234. type: "integer"
  18235. },
  18236. filter: {
  18237. enum: ["latest", "all"],
  18238. type: "string"
  18239. },
  18240. owner: {
  18241. required: true,
  18242. type: "string"
  18243. },
  18244. page: {
  18245. type: "integer"
  18246. },
  18247. per_page: {
  18248. type: "integer"
  18249. },
  18250. repo: {
  18251. required: true,
  18252. type: "string"
  18253. },
  18254. status: {
  18255. enum: ["queued", "in_progress", "completed"],
  18256. type: "string"
  18257. }
  18258. },
  18259. url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
  18260. },
  18261. listSuitesForRef: {
  18262. headers: {
  18263. accept: "application/vnd.github.antiope-preview+json"
  18264. },
  18265. method: "GET",
  18266. params: {
  18267. app_id: {
  18268. type: "integer"
  18269. },
  18270. check_name: {
  18271. type: "string"
  18272. },
  18273. owner: {
  18274. required: true,
  18275. type: "string"
  18276. },
  18277. page: {
  18278. type: "integer"
  18279. },
  18280. per_page: {
  18281. type: "integer"
  18282. },
  18283. ref: {
  18284. required: true,
  18285. type: "string"
  18286. },
  18287. repo: {
  18288. required: true,
  18289. type: "string"
  18290. }
  18291. },
  18292. url: "/repos/:owner/:repo/commits/:ref/check-suites"
  18293. },
  18294. rerequestSuite: {
  18295. headers: {
  18296. accept: "application/vnd.github.antiope-preview+json"
  18297. },
  18298. method: "POST",
  18299. params: {
  18300. check_suite_id: {
  18301. required: true,
  18302. type: "integer"
  18303. },
  18304. owner: {
  18305. required: true,
  18306. type: "string"
  18307. },
  18308. repo: {
  18309. required: true,
  18310. type: "string"
  18311. }
  18312. },
  18313. url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
  18314. },
  18315. setSuitesPreferences: {
  18316. headers: {
  18317. accept: "application/vnd.github.antiope-preview+json"
  18318. },
  18319. method: "PATCH",
  18320. params: {
  18321. auto_trigger_checks: {
  18322. type: "object[]"
  18323. },
  18324. "auto_trigger_checks[].app_id": {
  18325. required: true,
  18326. type: "integer"
  18327. },
  18328. "auto_trigger_checks[].setting": {
  18329. required: true,
  18330. type: "boolean"
  18331. },
  18332. owner: {
  18333. required: true,
  18334. type: "string"
  18335. },
  18336. repo: {
  18337. required: true,
  18338. type: "string"
  18339. }
  18340. },
  18341. url: "/repos/:owner/:repo/check-suites/preferences"
  18342. },
  18343. update: {
  18344. headers: {
  18345. accept: "application/vnd.github.antiope-preview+json"
  18346. },
  18347. method: "PATCH",
  18348. params: {
  18349. actions: {
  18350. type: "object[]"
  18351. },
  18352. "actions[].description": {
  18353. required: true,
  18354. type: "string"
  18355. },
  18356. "actions[].identifier": {
  18357. required: true,
  18358. type: "string"
  18359. },
  18360. "actions[].label": {
  18361. required: true,
  18362. type: "string"
  18363. },
  18364. check_run_id: {
  18365. required: true,
  18366. type: "integer"
  18367. },
  18368. completed_at: {
  18369. type: "string"
  18370. },
  18371. conclusion: {
  18372. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  18373. type: "string"
  18374. },
  18375. details_url: {
  18376. type: "string"
  18377. },
  18378. external_id: {
  18379. type: "string"
  18380. },
  18381. name: {
  18382. type: "string"
  18383. },
  18384. output: {
  18385. type: "object"
  18386. },
  18387. "output.annotations": {
  18388. type: "object[]"
  18389. },
  18390. "output.annotations[].annotation_level": {
  18391. enum: ["notice", "warning", "failure"],
  18392. required: true,
  18393. type: "string"
  18394. },
  18395. "output.annotations[].end_column": {
  18396. type: "integer"
  18397. },
  18398. "output.annotations[].end_line": {
  18399. required: true,
  18400. type: "integer"
  18401. },
  18402. "output.annotations[].message": {
  18403. required: true,
  18404. type: "string"
  18405. },
  18406. "output.annotations[].path": {
  18407. required: true,
  18408. type: "string"
  18409. },
  18410. "output.annotations[].raw_details": {
  18411. type: "string"
  18412. },
  18413. "output.annotations[].start_column": {
  18414. type: "integer"
  18415. },
  18416. "output.annotations[].start_line": {
  18417. required: true,
  18418. type: "integer"
  18419. },
  18420. "output.annotations[].title": {
  18421. type: "string"
  18422. },
  18423. "output.images": {
  18424. type: "object[]"
  18425. },
  18426. "output.images[].alt": {
  18427. required: true,
  18428. type: "string"
  18429. },
  18430. "output.images[].caption": {
  18431. type: "string"
  18432. },
  18433. "output.images[].image_url": {
  18434. required: true,
  18435. type: "string"
  18436. },
  18437. "output.summary": {
  18438. required: true,
  18439. type: "string"
  18440. },
  18441. "output.text": {
  18442. type: "string"
  18443. },
  18444. "output.title": {
  18445. type: "string"
  18446. },
  18447. owner: {
  18448. required: true,
  18449. type: "string"
  18450. },
  18451. repo: {
  18452. required: true,
  18453. type: "string"
  18454. },
  18455. started_at: {
  18456. type: "string"
  18457. },
  18458. status: {
  18459. enum: ["queued", "in_progress", "completed"],
  18460. type: "string"
  18461. }
  18462. },
  18463. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  18464. }
  18465. },
  18466. codesOfConduct: {
  18467. getConductCode: {
  18468. headers: {
  18469. accept: "application/vnd.github.scarlet-witch-preview+json"
  18470. },
  18471. method: "GET",
  18472. params: {
  18473. key: {
  18474. required: true,
  18475. type: "string"
  18476. }
  18477. },
  18478. url: "/codes_of_conduct/:key"
  18479. },
  18480. getForRepo: {
  18481. headers: {
  18482. accept: "application/vnd.github.scarlet-witch-preview+json"
  18483. },
  18484. method: "GET",
  18485. params: {
  18486. owner: {
  18487. required: true,
  18488. type: "string"
  18489. },
  18490. repo: {
  18491. required: true,
  18492. type: "string"
  18493. }
  18494. },
  18495. url: "/repos/:owner/:repo/community/code_of_conduct"
  18496. },
  18497. listConductCodes: {
  18498. headers: {
  18499. accept: "application/vnd.github.scarlet-witch-preview+json"
  18500. },
  18501. method: "GET",
  18502. params: {},
  18503. url: "/codes_of_conduct"
  18504. }
  18505. },
  18506. emojis: {
  18507. get: {
  18508. method: "GET",
  18509. params: {},
  18510. url: "/emojis"
  18511. }
  18512. },
  18513. gists: {
  18514. checkIsStarred: {
  18515. method: "GET",
  18516. params: {
  18517. gist_id: {
  18518. required: true,
  18519. type: "string"
  18520. }
  18521. },
  18522. url: "/gists/:gist_id/star"
  18523. },
  18524. create: {
  18525. method: "POST",
  18526. params: {
  18527. description: {
  18528. type: "string"
  18529. },
  18530. files: {
  18531. required: true,
  18532. type: "object"
  18533. },
  18534. "files.content": {
  18535. type: "string"
  18536. },
  18537. public: {
  18538. type: "boolean"
  18539. }
  18540. },
  18541. url: "/gists"
  18542. },
  18543. createComment: {
  18544. method: "POST",
  18545. params: {
  18546. body: {
  18547. required: true,
  18548. type: "string"
  18549. },
  18550. gist_id: {
  18551. required: true,
  18552. type: "string"
  18553. }
  18554. },
  18555. url: "/gists/:gist_id/comments"
  18556. },
  18557. delete: {
  18558. method: "DELETE",
  18559. params: {
  18560. gist_id: {
  18561. required: true,
  18562. type: "string"
  18563. }
  18564. },
  18565. url: "/gists/:gist_id"
  18566. },
  18567. deleteComment: {
  18568. method: "DELETE",
  18569. params: {
  18570. comment_id: {
  18571. required: true,
  18572. type: "integer"
  18573. },
  18574. gist_id: {
  18575. required: true,
  18576. type: "string"
  18577. }
  18578. },
  18579. url: "/gists/:gist_id/comments/:comment_id"
  18580. },
  18581. fork: {
  18582. method: "POST",
  18583. params: {
  18584. gist_id: {
  18585. required: true,
  18586. type: "string"
  18587. }
  18588. },
  18589. url: "/gists/:gist_id/forks"
  18590. },
  18591. get: {
  18592. method: "GET",
  18593. params: {
  18594. gist_id: {
  18595. required: true,
  18596. type: "string"
  18597. }
  18598. },
  18599. url: "/gists/:gist_id"
  18600. },
  18601. getComment: {
  18602. method: "GET",
  18603. params: {
  18604. comment_id: {
  18605. required: true,
  18606. type: "integer"
  18607. },
  18608. gist_id: {
  18609. required: true,
  18610. type: "string"
  18611. }
  18612. },
  18613. url: "/gists/:gist_id/comments/:comment_id"
  18614. },
  18615. getRevision: {
  18616. method: "GET",
  18617. params: {
  18618. gist_id: {
  18619. required: true,
  18620. type: "string"
  18621. },
  18622. sha: {
  18623. required: true,
  18624. type: "string"
  18625. }
  18626. },
  18627. url: "/gists/:gist_id/:sha"
  18628. },
  18629. list: {
  18630. method: "GET",
  18631. params: {
  18632. page: {
  18633. type: "integer"
  18634. },
  18635. per_page: {
  18636. type: "integer"
  18637. },
  18638. since: {
  18639. type: "string"
  18640. }
  18641. },
  18642. url: "/gists"
  18643. },
  18644. listComments: {
  18645. method: "GET",
  18646. params: {
  18647. gist_id: {
  18648. required: true,
  18649. type: "string"
  18650. },
  18651. page: {
  18652. type: "integer"
  18653. },
  18654. per_page: {
  18655. type: "integer"
  18656. }
  18657. },
  18658. url: "/gists/:gist_id/comments"
  18659. },
  18660. listCommits: {
  18661. method: "GET",
  18662. params: {
  18663. gist_id: {
  18664. required: true,
  18665. type: "string"
  18666. },
  18667. page: {
  18668. type: "integer"
  18669. },
  18670. per_page: {
  18671. type: "integer"
  18672. }
  18673. },
  18674. url: "/gists/:gist_id/commits"
  18675. },
  18676. listForks: {
  18677. method: "GET",
  18678. params: {
  18679. gist_id: {
  18680. required: true,
  18681. type: "string"
  18682. },
  18683. page: {
  18684. type: "integer"
  18685. },
  18686. per_page: {
  18687. type: "integer"
  18688. }
  18689. },
  18690. url: "/gists/:gist_id/forks"
  18691. },
  18692. listPublic: {
  18693. method: "GET",
  18694. params: {
  18695. page: {
  18696. type: "integer"
  18697. },
  18698. per_page: {
  18699. type: "integer"
  18700. },
  18701. since: {
  18702. type: "string"
  18703. }
  18704. },
  18705. url: "/gists/public"
  18706. },
  18707. listPublicForUser: {
  18708. method: "GET",
  18709. params: {
  18710. page: {
  18711. type: "integer"
  18712. },
  18713. per_page: {
  18714. type: "integer"
  18715. },
  18716. since: {
  18717. type: "string"
  18718. },
  18719. username: {
  18720. required: true,
  18721. type: "string"
  18722. }
  18723. },
  18724. url: "/users/:username/gists"
  18725. },
  18726. listStarred: {
  18727. method: "GET",
  18728. params: {
  18729. page: {
  18730. type: "integer"
  18731. },
  18732. per_page: {
  18733. type: "integer"
  18734. },
  18735. since: {
  18736. type: "string"
  18737. }
  18738. },
  18739. url: "/gists/starred"
  18740. },
  18741. star: {
  18742. method: "PUT",
  18743. params: {
  18744. gist_id: {
  18745. required: true,
  18746. type: "string"
  18747. }
  18748. },
  18749. url: "/gists/:gist_id/star"
  18750. },
  18751. unstar: {
  18752. method: "DELETE",
  18753. params: {
  18754. gist_id: {
  18755. required: true,
  18756. type: "string"
  18757. }
  18758. },
  18759. url: "/gists/:gist_id/star"
  18760. },
  18761. update: {
  18762. method: "PATCH",
  18763. params: {
  18764. description: {
  18765. type: "string"
  18766. },
  18767. files: {
  18768. type: "object"
  18769. },
  18770. "files.content": {
  18771. type: "string"
  18772. },
  18773. "files.filename": {
  18774. type: "string"
  18775. },
  18776. gist_id: {
  18777. required: true,
  18778. type: "string"
  18779. }
  18780. },
  18781. url: "/gists/:gist_id"
  18782. },
  18783. updateComment: {
  18784. method: "PATCH",
  18785. params: {
  18786. body: {
  18787. required: true,
  18788. type: "string"
  18789. },
  18790. comment_id: {
  18791. required: true,
  18792. type: "integer"
  18793. },
  18794. gist_id: {
  18795. required: true,
  18796. type: "string"
  18797. }
  18798. },
  18799. url: "/gists/:gist_id/comments/:comment_id"
  18800. }
  18801. },
  18802. git: {
  18803. createBlob: {
  18804. method: "POST",
  18805. params: {
  18806. content: {
  18807. required: true,
  18808. type: "string"
  18809. },
  18810. encoding: {
  18811. type: "string"
  18812. },
  18813. owner: {
  18814. required: true,
  18815. type: "string"
  18816. },
  18817. repo: {
  18818. required: true,
  18819. type: "string"
  18820. }
  18821. },
  18822. url: "/repos/:owner/:repo/git/blobs"
  18823. },
  18824. createCommit: {
  18825. method: "POST",
  18826. params: {
  18827. author: {
  18828. type: "object"
  18829. },
  18830. "author.date": {
  18831. type: "string"
  18832. },
  18833. "author.email": {
  18834. type: "string"
  18835. },
  18836. "author.name": {
  18837. type: "string"
  18838. },
  18839. committer: {
  18840. type: "object"
  18841. },
  18842. "committer.date": {
  18843. type: "string"
  18844. },
  18845. "committer.email": {
  18846. type: "string"
  18847. },
  18848. "committer.name": {
  18849. type: "string"
  18850. },
  18851. message: {
  18852. required: true,
  18853. type: "string"
  18854. },
  18855. owner: {
  18856. required: true,
  18857. type: "string"
  18858. },
  18859. parents: {
  18860. required: true,
  18861. type: "string[]"
  18862. },
  18863. repo: {
  18864. required: true,
  18865. type: "string"
  18866. },
  18867. signature: {
  18868. type: "string"
  18869. },
  18870. tree: {
  18871. required: true,
  18872. type: "string"
  18873. }
  18874. },
  18875. url: "/repos/:owner/:repo/git/commits"
  18876. },
  18877. createRef: {
  18878. method: "POST",
  18879. params: {
  18880. owner: {
  18881. required: true,
  18882. type: "string"
  18883. },
  18884. ref: {
  18885. required: true,
  18886. type: "string"
  18887. },
  18888. repo: {
  18889. required: true,
  18890. type: "string"
  18891. },
  18892. sha: {
  18893. required: true,
  18894. type: "string"
  18895. }
  18896. },
  18897. url: "/repos/:owner/:repo/git/refs"
  18898. },
  18899. createTag: {
  18900. method: "POST",
  18901. params: {
  18902. message: {
  18903. required: true,
  18904. type: "string"
  18905. },
  18906. object: {
  18907. required: true,
  18908. type: "string"
  18909. },
  18910. owner: {
  18911. required: true,
  18912. type: "string"
  18913. },
  18914. repo: {
  18915. required: true,
  18916. type: "string"
  18917. },
  18918. tag: {
  18919. required: true,
  18920. type: "string"
  18921. },
  18922. tagger: {
  18923. type: "object"
  18924. },
  18925. "tagger.date": {
  18926. type: "string"
  18927. },
  18928. "tagger.email": {
  18929. type: "string"
  18930. },
  18931. "tagger.name": {
  18932. type: "string"
  18933. },
  18934. type: {
  18935. enum: ["commit", "tree", "blob"],
  18936. required: true,
  18937. type: "string"
  18938. }
  18939. },
  18940. url: "/repos/:owner/:repo/git/tags"
  18941. },
  18942. createTree: {
  18943. method: "POST",
  18944. params: {
  18945. base_tree: {
  18946. type: "string"
  18947. },
  18948. owner: {
  18949. required: true,
  18950. type: "string"
  18951. },
  18952. repo: {
  18953. required: true,
  18954. type: "string"
  18955. },
  18956. tree: {
  18957. required: true,
  18958. type: "object[]"
  18959. },
  18960. "tree[].content": {
  18961. type: "string"
  18962. },
  18963. "tree[].mode": {
  18964. enum: ["100644", "100755", "040000", "160000", "120000"],
  18965. type: "string"
  18966. },
  18967. "tree[].path": {
  18968. type: "string"
  18969. },
  18970. "tree[].sha": {
  18971. allowNull: true,
  18972. type: "string"
  18973. },
  18974. "tree[].type": {
  18975. enum: ["blob", "tree", "commit"],
  18976. type: "string"
  18977. }
  18978. },
  18979. url: "/repos/:owner/:repo/git/trees"
  18980. },
  18981. deleteRef: {
  18982. method: "DELETE",
  18983. params: {
  18984. owner: {
  18985. required: true,
  18986. type: "string"
  18987. },
  18988. ref: {
  18989. required: true,
  18990. type: "string"
  18991. },
  18992. repo: {
  18993. required: true,
  18994. type: "string"
  18995. }
  18996. },
  18997. url: "/repos/:owner/:repo/git/refs/:ref"
  18998. },
  18999. getBlob: {
  19000. method: "GET",
  19001. params: {
  19002. file_sha: {
  19003. required: true,
  19004. type: "string"
  19005. },
  19006. owner: {
  19007. required: true,
  19008. type: "string"
  19009. },
  19010. repo: {
  19011. required: true,
  19012. type: "string"
  19013. }
  19014. },
  19015. url: "/repos/:owner/:repo/git/blobs/:file_sha"
  19016. },
  19017. getCommit: {
  19018. method: "GET",
  19019. params: {
  19020. commit_sha: {
  19021. required: true,
  19022. type: "string"
  19023. },
  19024. owner: {
  19025. required: true,
  19026. type: "string"
  19027. },
  19028. repo: {
  19029. required: true,
  19030. type: "string"
  19031. }
  19032. },
  19033. url: "/repos/:owner/:repo/git/commits/:commit_sha"
  19034. },
  19035. getRef: {
  19036. method: "GET",
  19037. params: {
  19038. owner: {
  19039. required: true,
  19040. type: "string"
  19041. },
  19042. ref: {
  19043. required: true,
  19044. type: "string"
  19045. },
  19046. repo: {
  19047. required: true,
  19048. type: "string"
  19049. }
  19050. },
  19051. url: "/repos/:owner/:repo/git/ref/:ref"
  19052. },
  19053. getTag: {
  19054. method: "GET",
  19055. params: {
  19056. owner: {
  19057. required: true,
  19058. type: "string"
  19059. },
  19060. repo: {
  19061. required: true,
  19062. type: "string"
  19063. },
  19064. tag_sha: {
  19065. required: true,
  19066. type: "string"
  19067. }
  19068. },
  19069. url: "/repos/:owner/:repo/git/tags/:tag_sha"
  19070. },
  19071. getTree: {
  19072. method: "GET",
  19073. params: {
  19074. owner: {
  19075. required: true,
  19076. type: "string"
  19077. },
  19078. recursive: {
  19079. enum: ["1"],
  19080. type: "integer"
  19081. },
  19082. repo: {
  19083. required: true,
  19084. type: "string"
  19085. },
  19086. tree_sha: {
  19087. required: true,
  19088. type: "string"
  19089. }
  19090. },
  19091. url: "/repos/:owner/:repo/git/trees/:tree_sha"
  19092. },
  19093. listMatchingRefs: {
  19094. method: "GET",
  19095. params: {
  19096. owner: {
  19097. required: true,
  19098. type: "string"
  19099. },
  19100. page: {
  19101. type: "integer"
  19102. },
  19103. per_page: {
  19104. type: "integer"
  19105. },
  19106. ref: {
  19107. required: true,
  19108. type: "string"
  19109. },
  19110. repo: {
  19111. required: true,
  19112. type: "string"
  19113. }
  19114. },
  19115. url: "/repos/:owner/:repo/git/matching-refs/:ref"
  19116. },
  19117. listRefs: {
  19118. method: "GET",
  19119. params: {
  19120. namespace: {
  19121. type: "string"
  19122. },
  19123. owner: {
  19124. required: true,
  19125. type: "string"
  19126. },
  19127. page: {
  19128. type: "integer"
  19129. },
  19130. per_page: {
  19131. type: "integer"
  19132. },
  19133. repo: {
  19134. required: true,
  19135. type: "string"
  19136. }
  19137. },
  19138. url: "/repos/:owner/:repo/git/refs/:namespace"
  19139. },
  19140. updateRef: {
  19141. method: "PATCH",
  19142. params: {
  19143. force: {
  19144. type: "boolean"
  19145. },
  19146. owner: {
  19147. required: true,
  19148. type: "string"
  19149. },
  19150. ref: {
  19151. required: true,
  19152. type: "string"
  19153. },
  19154. repo: {
  19155. required: true,
  19156. type: "string"
  19157. },
  19158. sha: {
  19159. required: true,
  19160. type: "string"
  19161. }
  19162. },
  19163. url: "/repos/:owner/:repo/git/refs/:ref"
  19164. }
  19165. },
  19166. gitignore: {
  19167. getTemplate: {
  19168. method: "GET",
  19169. params: {
  19170. name: {
  19171. required: true,
  19172. type: "string"
  19173. }
  19174. },
  19175. url: "/gitignore/templates/:name"
  19176. },
  19177. listTemplates: {
  19178. method: "GET",
  19179. params: {},
  19180. url: "/gitignore/templates"
  19181. }
  19182. },
  19183. interactions: {
  19184. addOrUpdateRestrictionsForOrg: {
  19185. headers: {
  19186. accept: "application/vnd.github.sombra-preview+json"
  19187. },
  19188. method: "PUT",
  19189. params: {
  19190. limit: {
  19191. enum: ["existing_users", "contributors_only", "collaborators_only"],
  19192. required: true,
  19193. type: "string"
  19194. },
  19195. org: {
  19196. required: true,
  19197. type: "string"
  19198. }
  19199. },
  19200. url: "/orgs/:org/interaction-limits"
  19201. },
  19202. addOrUpdateRestrictionsForRepo: {
  19203. headers: {
  19204. accept: "application/vnd.github.sombra-preview+json"
  19205. },
  19206. method: "PUT",
  19207. params: {
  19208. limit: {
  19209. enum: ["existing_users", "contributors_only", "collaborators_only"],
  19210. required: true,
  19211. type: "string"
  19212. },
  19213. owner: {
  19214. required: true,
  19215. type: "string"
  19216. },
  19217. repo: {
  19218. required: true,
  19219. type: "string"
  19220. }
  19221. },
  19222. url: "/repos/:owner/:repo/interaction-limits"
  19223. },
  19224. getRestrictionsForOrg: {
  19225. headers: {
  19226. accept: "application/vnd.github.sombra-preview+json"
  19227. },
  19228. method: "GET",
  19229. params: {
  19230. org: {
  19231. required: true,
  19232. type: "string"
  19233. }
  19234. },
  19235. url: "/orgs/:org/interaction-limits"
  19236. },
  19237. getRestrictionsForRepo: {
  19238. headers: {
  19239. accept: "application/vnd.github.sombra-preview+json"
  19240. },
  19241. method: "GET",
  19242. params: {
  19243. owner: {
  19244. required: true,
  19245. type: "string"
  19246. },
  19247. repo: {
  19248. required: true,
  19249. type: "string"
  19250. }
  19251. },
  19252. url: "/repos/:owner/:repo/interaction-limits"
  19253. },
  19254. removeRestrictionsForOrg: {
  19255. headers: {
  19256. accept: "application/vnd.github.sombra-preview+json"
  19257. },
  19258. method: "DELETE",
  19259. params: {
  19260. org: {
  19261. required: true,
  19262. type: "string"
  19263. }
  19264. },
  19265. url: "/orgs/:org/interaction-limits"
  19266. },
  19267. removeRestrictionsForRepo: {
  19268. headers: {
  19269. accept: "application/vnd.github.sombra-preview+json"
  19270. },
  19271. method: "DELETE",
  19272. params: {
  19273. owner: {
  19274. required: true,
  19275. type: "string"
  19276. },
  19277. repo: {
  19278. required: true,
  19279. type: "string"
  19280. }
  19281. },
  19282. url: "/repos/:owner/:repo/interaction-limits"
  19283. }
  19284. },
  19285. issues: {
  19286. addAssignees: {
  19287. method: "POST",
  19288. params: {
  19289. assignees: {
  19290. type: "string[]"
  19291. },
  19292. issue_number: {
  19293. required: true,
  19294. type: "integer"
  19295. },
  19296. number: {
  19297. alias: "issue_number",
  19298. deprecated: true,
  19299. type: "integer"
  19300. },
  19301. owner: {
  19302. required: true,
  19303. type: "string"
  19304. },
  19305. repo: {
  19306. required: true,
  19307. type: "string"
  19308. }
  19309. },
  19310. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  19311. },
  19312. addLabels: {
  19313. method: "POST",
  19314. params: {
  19315. issue_number: {
  19316. required: true,
  19317. type: "integer"
  19318. },
  19319. labels: {
  19320. required: true,
  19321. type: "string[]"
  19322. },
  19323. number: {
  19324. alias: "issue_number",
  19325. deprecated: true,
  19326. type: "integer"
  19327. },
  19328. owner: {
  19329. required: true,
  19330. type: "string"
  19331. },
  19332. repo: {
  19333. required: true,
  19334. type: "string"
  19335. }
  19336. },
  19337. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  19338. },
  19339. checkAssignee: {
  19340. method: "GET",
  19341. params: {
  19342. assignee: {
  19343. required: true,
  19344. type: "string"
  19345. },
  19346. owner: {
  19347. required: true,
  19348. type: "string"
  19349. },
  19350. repo: {
  19351. required: true,
  19352. type: "string"
  19353. }
  19354. },
  19355. url: "/repos/:owner/:repo/assignees/:assignee"
  19356. },
  19357. create: {
  19358. method: "POST",
  19359. params: {
  19360. assignee: {
  19361. type: "string"
  19362. },
  19363. assignees: {
  19364. type: "string[]"
  19365. },
  19366. body: {
  19367. type: "string"
  19368. },
  19369. labels: {
  19370. type: "string[]"
  19371. },
  19372. milestone: {
  19373. type: "integer"
  19374. },
  19375. owner: {
  19376. required: true,
  19377. type: "string"
  19378. },
  19379. repo: {
  19380. required: true,
  19381. type: "string"
  19382. },
  19383. title: {
  19384. required: true,
  19385. type: "string"
  19386. }
  19387. },
  19388. url: "/repos/:owner/:repo/issues"
  19389. },
  19390. createComment: {
  19391. method: "POST",
  19392. params: {
  19393. body: {
  19394. required: true,
  19395. type: "string"
  19396. },
  19397. issue_number: {
  19398. required: true,
  19399. type: "integer"
  19400. },
  19401. number: {
  19402. alias: "issue_number",
  19403. deprecated: true,
  19404. type: "integer"
  19405. },
  19406. owner: {
  19407. required: true,
  19408. type: "string"
  19409. },
  19410. repo: {
  19411. required: true,
  19412. type: "string"
  19413. }
  19414. },
  19415. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  19416. },
  19417. createLabel: {
  19418. method: "POST",
  19419. params: {
  19420. color: {
  19421. required: true,
  19422. type: "string"
  19423. },
  19424. description: {
  19425. type: "string"
  19426. },
  19427. name: {
  19428. required: true,
  19429. type: "string"
  19430. },
  19431. owner: {
  19432. required: true,
  19433. type: "string"
  19434. },
  19435. repo: {
  19436. required: true,
  19437. type: "string"
  19438. }
  19439. },
  19440. url: "/repos/:owner/:repo/labels"
  19441. },
  19442. createMilestone: {
  19443. method: "POST",
  19444. params: {
  19445. description: {
  19446. type: "string"
  19447. },
  19448. due_on: {
  19449. type: "string"
  19450. },
  19451. owner: {
  19452. required: true,
  19453. type: "string"
  19454. },
  19455. repo: {
  19456. required: true,
  19457. type: "string"
  19458. },
  19459. state: {
  19460. enum: ["open", "closed"],
  19461. type: "string"
  19462. },
  19463. title: {
  19464. required: true,
  19465. type: "string"
  19466. }
  19467. },
  19468. url: "/repos/:owner/:repo/milestones"
  19469. },
  19470. deleteComment: {
  19471. method: "DELETE",
  19472. params: {
  19473. comment_id: {
  19474. required: true,
  19475. type: "integer"
  19476. },
  19477. owner: {
  19478. required: true,
  19479. type: "string"
  19480. },
  19481. repo: {
  19482. required: true,
  19483. type: "string"
  19484. }
  19485. },
  19486. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  19487. },
  19488. deleteLabel: {
  19489. method: "DELETE",
  19490. params: {
  19491. name: {
  19492. required: true,
  19493. type: "string"
  19494. },
  19495. owner: {
  19496. required: true,
  19497. type: "string"
  19498. },
  19499. repo: {
  19500. required: true,
  19501. type: "string"
  19502. }
  19503. },
  19504. url: "/repos/:owner/:repo/labels/:name"
  19505. },
  19506. deleteMilestone: {
  19507. method: "DELETE",
  19508. params: {
  19509. milestone_number: {
  19510. required: true,
  19511. type: "integer"
  19512. },
  19513. number: {
  19514. alias: "milestone_number",
  19515. deprecated: true,
  19516. type: "integer"
  19517. },
  19518. owner: {
  19519. required: true,
  19520. type: "string"
  19521. },
  19522. repo: {
  19523. required: true,
  19524. type: "string"
  19525. }
  19526. },
  19527. url: "/repos/:owner/:repo/milestones/:milestone_number"
  19528. },
  19529. get: {
  19530. method: "GET",
  19531. params: {
  19532. issue_number: {
  19533. required: true,
  19534. type: "integer"
  19535. },
  19536. number: {
  19537. alias: "issue_number",
  19538. deprecated: true,
  19539. type: "integer"
  19540. },
  19541. owner: {
  19542. required: true,
  19543. type: "string"
  19544. },
  19545. repo: {
  19546. required: true,
  19547. type: "string"
  19548. }
  19549. },
  19550. url: "/repos/:owner/:repo/issues/:issue_number"
  19551. },
  19552. getComment: {
  19553. method: "GET",
  19554. params: {
  19555. comment_id: {
  19556. required: true,
  19557. type: "integer"
  19558. },
  19559. owner: {
  19560. required: true,
  19561. type: "string"
  19562. },
  19563. repo: {
  19564. required: true,
  19565. type: "string"
  19566. }
  19567. },
  19568. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  19569. },
  19570. getEvent: {
  19571. method: "GET",
  19572. params: {
  19573. event_id: {
  19574. required: true,
  19575. type: "integer"
  19576. },
  19577. owner: {
  19578. required: true,
  19579. type: "string"
  19580. },
  19581. repo: {
  19582. required: true,
  19583. type: "string"
  19584. }
  19585. },
  19586. url: "/repos/:owner/:repo/issues/events/:event_id"
  19587. },
  19588. getLabel: {
  19589. method: "GET",
  19590. params: {
  19591. name: {
  19592. required: true,
  19593. type: "string"
  19594. },
  19595. owner: {
  19596. required: true,
  19597. type: "string"
  19598. },
  19599. repo: {
  19600. required: true,
  19601. type: "string"
  19602. }
  19603. },
  19604. url: "/repos/:owner/:repo/labels/:name"
  19605. },
  19606. getMilestone: {
  19607. method: "GET",
  19608. params: {
  19609. milestone_number: {
  19610. required: true,
  19611. type: "integer"
  19612. },
  19613. number: {
  19614. alias: "milestone_number",
  19615. deprecated: true,
  19616. type: "integer"
  19617. },
  19618. owner: {
  19619. required: true,
  19620. type: "string"
  19621. },
  19622. repo: {
  19623. required: true,
  19624. type: "string"
  19625. }
  19626. },
  19627. url: "/repos/:owner/:repo/milestones/:milestone_number"
  19628. },
  19629. list: {
  19630. method: "GET",
  19631. params: {
  19632. direction: {
  19633. enum: ["asc", "desc"],
  19634. type: "string"
  19635. },
  19636. filter: {
  19637. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19638. type: "string"
  19639. },
  19640. labels: {
  19641. type: "string"
  19642. },
  19643. page: {
  19644. type: "integer"
  19645. },
  19646. per_page: {
  19647. type: "integer"
  19648. },
  19649. since: {
  19650. type: "string"
  19651. },
  19652. sort: {
  19653. enum: ["created", "updated", "comments"],
  19654. type: "string"
  19655. },
  19656. state: {
  19657. enum: ["open", "closed", "all"],
  19658. type: "string"
  19659. }
  19660. },
  19661. url: "/issues"
  19662. },
  19663. listAssignees: {
  19664. method: "GET",
  19665. params: {
  19666. owner: {
  19667. required: true,
  19668. type: "string"
  19669. },
  19670. page: {
  19671. type: "integer"
  19672. },
  19673. per_page: {
  19674. type: "integer"
  19675. },
  19676. repo: {
  19677. required: true,
  19678. type: "string"
  19679. }
  19680. },
  19681. url: "/repos/:owner/:repo/assignees"
  19682. },
  19683. listComments: {
  19684. method: "GET",
  19685. params: {
  19686. issue_number: {
  19687. required: true,
  19688. type: "integer"
  19689. },
  19690. number: {
  19691. alias: "issue_number",
  19692. deprecated: true,
  19693. type: "integer"
  19694. },
  19695. owner: {
  19696. required: true,
  19697. type: "string"
  19698. },
  19699. page: {
  19700. type: "integer"
  19701. },
  19702. per_page: {
  19703. type: "integer"
  19704. },
  19705. repo: {
  19706. required: true,
  19707. type: "string"
  19708. },
  19709. since: {
  19710. type: "string"
  19711. }
  19712. },
  19713. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  19714. },
  19715. listCommentsForRepo: {
  19716. method: "GET",
  19717. params: {
  19718. direction: {
  19719. enum: ["asc", "desc"],
  19720. type: "string"
  19721. },
  19722. owner: {
  19723. required: true,
  19724. type: "string"
  19725. },
  19726. repo: {
  19727. required: true,
  19728. type: "string"
  19729. },
  19730. since: {
  19731. type: "string"
  19732. },
  19733. sort: {
  19734. enum: ["created", "updated"],
  19735. type: "string"
  19736. }
  19737. },
  19738. url: "/repos/:owner/:repo/issues/comments"
  19739. },
  19740. listEvents: {
  19741. method: "GET",
  19742. params: {
  19743. issue_number: {
  19744. required: true,
  19745. type: "integer"
  19746. },
  19747. number: {
  19748. alias: "issue_number",
  19749. deprecated: true,
  19750. type: "integer"
  19751. },
  19752. owner: {
  19753. required: true,
  19754. type: "string"
  19755. },
  19756. page: {
  19757. type: "integer"
  19758. },
  19759. per_page: {
  19760. type: "integer"
  19761. },
  19762. repo: {
  19763. required: true,
  19764. type: "string"
  19765. }
  19766. },
  19767. url: "/repos/:owner/:repo/issues/:issue_number/events"
  19768. },
  19769. listEventsForRepo: {
  19770. method: "GET",
  19771. params: {
  19772. owner: {
  19773. required: true,
  19774. type: "string"
  19775. },
  19776. page: {
  19777. type: "integer"
  19778. },
  19779. per_page: {
  19780. type: "integer"
  19781. },
  19782. repo: {
  19783. required: true,
  19784. type: "string"
  19785. }
  19786. },
  19787. url: "/repos/:owner/:repo/issues/events"
  19788. },
  19789. listEventsForTimeline: {
  19790. headers: {
  19791. accept: "application/vnd.github.mockingbird-preview+json"
  19792. },
  19793. method: "GET",
  19794. params: {
  19795. issue_number: {
  19796. required: true,
  19797. type: "integer"
  19798. },
  19799. number: {
  19800. alias: "issue_number",
  19801. deprecated: true,
  19802. type: "integer"
  19803. },
  19804. owner: {
  19805. required: true,
  19806. type: "string"
  19807. },
  19808. page: {
  19809. type: "integer"
  19810. },
  19811. per_page: {
  19812. type: "integer"
  19813. },
  19814. repo: {
  19815. required: true,
  19816. type: "string"
  19817. }
  19818. },
  19819. url: "/repos/:owner/:repo/issues/:issue_number/timeline"
  19820. },
  19821. listForAuthenticatedUser: {
  19822. method: "GET",
  19823. params: {
  19824. direction: {
  19825. enum: ["asc", "desc"],
  19826. type: "string"
  19827. },
  19828. filter: {
  19829. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19830. type: "string"
  19831. },
  19832. labels: {
  19833. type: "string"
  19834. },
  19835. page: {
  19836. type: "integer"
  19837. },
  19838. per_page: {
  19839. type: "integer"
  19840. },
  19841. since: {
  19842. type: "string"
  19843. },
  19844. sort: {
  19845. enum: ["created", "updated", "comments"],
  19846. type: "string"
  19847. },
  19848. state: {
  19849. enum: ["open", "closed", "all"],
  19850. type: "string"
  19851. }
  19852. },
  19853. url: "/user/issues"
  19854. },
  19855. listForOrg: {
  19856. method: "GET",
  19857. params: {
  19858. direction: {
  19859. enum: ["asc", "desc"],
  19860. type: "string"
  19861. },
  19862. filter: {
  19863. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19864. type: "string"
  19865. },
  19866. labels: {
  19867. type: "string"
  19868. },
  19869. org: {
  19870. required: true,
  19871. type: "string"
  19872. },
  19873. page: {
  19874. type: "integer"
  19875. },
  19876. per_page: {
  19877. type: "integer"
  19878. },
  19879. since: {
  19880. type: "string"
  19881. },
  19882. sort: {
  19883. enum: ["created", "updated", "comments"],
  19884. type: "string"
  19885. },
  19886. state: {
  19887. enum: ["open", "closed", "all"],
  19888. type: "string"
  19889. }
  19890. },
  19891. url: "/orgs/:org/issues"
  19892. },
  19893. listForRepo: {
  19894. method: "GET",
  19895. params: {
  19896. assignee: {
  19897. type: "string"
  19898. },
  19899. creator: {
  19900. type: "string"
  19901. },
  19902. direction: {
  19903. enum: ["asc", "desc"],
  19904. type: "string"
  19905. },
  19906. labels: {
  19907. type: "string"
  19908. },
  19909. mentioned: {
  19910. type: "string"
  19911. },
  19912. milestone: {
  19913. type: "string"
  19914. },
  19915. owner: {
  19916. required: true,
  19917. type: "string"
  19918. },
  19919. page: {
  19920. type: "integer"
  19921. },
  19922. per_page: {
  19923. type: "integer"
  19924. },
  19925. repo: {
  19926. required: true,
  19927. type: "string"
  19928. },
  19929. since: {
  19930. type: "string"
  19931. },
  19932. sort: {
  19933. enum: ["created", "updated", "comments"],
  19934. type: "string"
  19935. },
  19936. state: {
  19937. enum: ["open", "closed", "all"],
  19938. type: "string"
  19939. }
  19940. },
  19941. url: "/repos/:owner/:repo/issues"
  19942. },
  19943. listLabelsForMilestone: {
  19944. method: "GET",
  19945. params: {
  19946. milestone_number: {
  19947. required: true,
  19948. type: "integer"
  19949. },
  19950. number: {
  19951. alias: "milestone_number",
  19952. deprecated: true,
  19953. type: "integer"
  19954. },
  19955. owner: {
  19956. required: true,
  19957. type: "string"
  19958. },
  19959. page: {
  19960. type: "integer"
  19961. },
  19962. per_page: {
  19963. type: "integer"
  19964. },
  19965. repo: {
  19966. required: true,
  19967. type: "string"
  19968. }
  19969. },
  19970. url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
  19971. },
  19972. listLabelsForRepo: {
  19973. method: "GET",
  19974. params: {
  19975. owner: {
  19976. required: true,
  19977. type: "string"
  19978. },
  19979. page: {
  19980. type: "integer"
  19981. },
  19982. per_page: {
  19983. type: "integer"
  19984. },
  19985. repo: {
  19986. required: true,
  19987. type: "string"
  19988. }
  19989. },
  19990. url: "/repos/:owner/:repo/labels"
  19991. },
  19992. listLabelsOnIssue: {
  19993. method: "GET",
  19994. params: {
  19995. issue_number: {
  19996. required: true,
  19997. type: "integer"
  19998. },
  19999. number: {
  20000. alias: "issue_number",
  20001. deprecated: true,
  20002. type: "integer"
  20003. },
  20004. owner: {
  20005. required: true,
  20006. type: "string"
  20007. },
  20008. page: {
  20009. type: "integer"
  20010. },
  20011. per_page: {
  20012. type: "integer"
  20013. },
  20014. repo: {
  20015. required: true,
  20016. type: "string"
  20017. }
  20018. },
  20019. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  20020. },
  20021. listMilestonesForRepo: {
  20022. method: "GET",
  20023. params: {
  20024. direction: {
  20025. enum: ["asc", "desc"],
  20026. type: "string"
  20027. },
  20028. owner: {
  20029. required: true,
  20030. type: "string"
  20031. },
  20032. page: {
  20033. type: "integer"
  20034. },
  20035. per_page: {
  20036. type: "integer"
  20037. },
  20038. repo: {
  20039. required: true,
  20040. type: "string"
  20041. },
  20042. sort: {
  20043. enum: ["due_on", "completeness"],
  20044. type: "string"
  20045. },
  20046. state: {
  20047. enum: ["open", "closed", "all"],
  20048. type: "string"
  20049. }
  20050. },
  20051. url: "/repos/:owner/:repo/milestones"
  20052. },
  20053. lock: {
  20054. method: "PUT",
  20055. params: {
  20056. issue_number: {
  20057. required: true,
  20058. type: "integer"
  20059. },
  20060. lock_reason: {
  20061. enum: ["off-topic", "too heated", "resolved", "spam"],
  20062. type: "string"
  20063. },
  20064. number: {
  20065. alias: "issue_number",
  20066. deprecated: true,
  20067. type: "integer"
  20068. },
  20069. owner: {
  20070. required: true,
  20071. type: "string"
  20072. },
  20073. repo: {
  20074. required: true,
  20075. type: "string"
  20076. }
  20077. },
  20078. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  20079. },
  20080. removeAssignees: {
  20081. method: "DELETE",
  20082. params: {
  20083. assignees: {
  20084. type: "string[]"
  20085. },
  20086. issue_number: {
  20087. required: true,
  20088. type: "integer"
  20089. },
  20090. number: {
  20091. alias: "issue_number",
  20092. deprecated: true,
  20093. type: "integer"
  20094. },
  20095. owner: {
  20096. required: true,
  20097. type: "string"
  20098. },
  20099. repo: {
  20100. required: true,
  20101. type: "string"
  20102. }
  20103. },
  20104. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  20105. },
  20106. removeLabel: {
  20107. method: "DELETE",
  20108. params: {
  20109. issue_number: {
  20110. required: true,
  20111. type: "integer"
  20112. },
  20113. name: {
  20114. required: true,
  20115. type: "string"
  20116. },
  20117. number: {
  20118. alias: "issue_number",
  20119. deprecated: true,
  20120. type: "integer"
  20121. },
  20122. owner: {
  20123. required: true,
  20124. type: "string"
  20125. },
  20126. repo: {
  20127. required: true,
  20128. type: "string"
  20129. }
  20130. },
  20131. url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
  20132. },
  20133. removeLabels: {
  20134. method: "DELETE",
  20135. params: {
  20136. issue_number: {
  20137. required: true,
  20138. type: "integer"
  20139. },
  20140. number: {
  20141. alias: "issue_number",
  20142. deprecated: true,
  20143. type: "integer"
  20144. },
  20145. owner: {
  20146. required: true,
  20147. type: "string"
  20148. },
  20149. repo: {
  20150. required: true,
  20151. type: "string"
  20152. }
  20153. },
  20154. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  20155. },
  20156. replaceLabels: {
  20157. method: "PUT",
  20158. params: {
  20159. issue_number: {
  20160. required: true,
  20161. type: "integer"
  20162. },
  20163. labels: {
  20164. type: "string[]"
  20165. },
  20166. number: {
  20167. alias: "issue_number",
  20168. deprecated: true,
  20169. type: "integer"
  20170. },
  20171. owner: {
  20172. required: true,
  20173. type: "string"
  20174. },
  20175. repo: {
  20176. required: true,
  20177. type: "string"
  20178. }
  20179. },
  20180. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  20181. },
  20182. unlock: {
  20183. method: "DELETE",
  20184. params: {
  20185. issue_number: {
  20186. required: true,
  20187. type: "integer"
  20188. },
  20189. number: {
  20190. alias: "issue_number",
  20191. deprecated: true,
  20192. type: "integer"
  20193. },
  20194. owner: {
  20195. required: true,
  20196. type: "string"
  20197. },
  20198. repo: {
  20199. required: true,
  20200. type: "string"
  20201. }
  20202. },
  20203. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  20204. },
  20205. update: {
  20206. method: "PATCH",
  20207. params: {
  20208. assignee: {
  20209. type: "string"
  20210. },
  20211. assignees: {
  20212. type: "string[]"
  20213. },
  20214. body: {
  20215. type: "string"
  20216. },
  20217. issue_number: {
  20218. required: true,
  20219. type: "integer"
  20220. },
  20221. labels: {
  20222. type: "string[]"
  20223. },
  20224. milestone: {
  20225. allowNull: true,
  20226. type: "integer"
  20227. },
  20228. number: {
  20229. alias: "issue_number",
  20230. deprecated: true,
  20231. type: "integer"
  20232. },
  20233. owner: {
  20234. required: true,
  20235. type: "string"
  20236. },
  20237. repo: {
  20238. required: true,
  20239. type: "string"
  20240. },
  20241. state: {
  20242. enum: ["open", "closed"],
  20243. type: "string"
  20244. },
  20245. title: {
  20246. type: "string"
  20247. }
  20248. },
  20249. url: "/repos/:owner/:repo/issues/:issue_number"
  20250. },
  20251. updateComment: {
  20252. method: "PATCH",
  20253. params: {
  20254. body: {
  20255. required: true,
  20256. type: "string"
  20257. },
  20258. comment_id: {
  20259. required: true,
  20260. type: "integer"
  20261. },
  20262. owner: {
  20263. required: true,
  20264. type: "string"
  20265. },
  20266. repo: {
  20267. required: true,
  20268. type: "string"
  20269. }
  20270. },
  20271. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  20272. },
  20273. updateLabel: {
  20274. method: "PATCH",
  20275. params: {
  20276. color: {
  20277. type: "string"
  20278. },
  20279. current_name: {
  20280. required: true,
  20281. type: "string"
  20282. },
  20283. description: {
  20284. type: "string"
  20285. },
  20286. name: {
  20287. type: "string"
  20288. },
  20289. owner: {
  20290. required: true,
  20291. type: "string"
  20292. },
  20293. repo: {
  20294. required: true,
  20295. type: "string"
  20296. }
  20297. },
  20298. url: "/repos/:owner/:repo/labels/:current_name"
  20299. },
  20300. updateMilestone: {
  20301. method: "PATCH",
  20302. params: {
  20303. description: {
  20304. type: "string"
  20305. },
  20306. due_on: {
  20307. type: "string"
  20308. },
  20309. milestone_number: {
  20310. required: true,
  20311. type: "integer"
  20312. },
  20313. number: {
  20314. alias: "milestone_number",
  20315. deprecated: true,
  20316. type: "integer"
  20317. },
  20318. owner: {
  20319. required: true,
  20320. type: "string"
  20321. },
  20322. repo: {
  20323. required: true,
  20324. type: "string"
  20325. },
  20326. state: {
  20327. enum: ["open", "closed"],
  20328. type: "string"
  20329. },
  20330. title: {
  20331. type: "string"
  20332. }
  20333. },
  20334. url: "/repos/:owner/:repo/milestones/:milestone_number"
  20335. }
  20336. },
  20337. licenses: {
  20338. get: {
  20339. method: "GET",
  20340. params: {
  20341. license: {
  20342. required: true,
  20343. type: "string"
  20344. }
  20345. },
  20346. url: "/licenses/:license"
  20347. },
  20348. getForRepo: {
  20349. method: "GET",
  20350. params: {
  20351. owner: {
  20352. required: true,
  20353. type: "string"
  20354. },
  20355. repo: {
  20356. required: true,
  20357. type: "string"
  20358. }
  20359. },
  20360. url: "/repos/:owner/:repo/license"
  20361. },
  20362. list: {
  20363. deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
  20364. method: "GET",
  20365. params: {},
  20366. url: "/licenses"
  20367. },
  20368. listCommonlyUsed: {
  20369. method: "GET",
  20370. params: {},
  20371. url: "/licenses"
  20372. }
  20373. },
  20374. markdown: {
  20375. render: {
  20376. method: "POST",
  20377. params: {
  20378. context: {
  20379. type: "string"
  20380. },
  20381. mode: {
  20382. enum: ["markdown", "gfm"],
  20383. type: "string"
  20384. },
  20385. text: {
  20386. required: true,
  20387. type: "string"
  20388. }
  20389. },
  20390. url: "/markdown"
  20391. },
  20392. renderRaw: {
  20393. headers: {
  20394. "content-type": "text/plain; charset=utf-8"
  20395. },
  20396. method: "POST",
  20397. params: {
  20398. data: {
  20399. mapTo: "data",
  20400. required: true,
  20401. type: "string"
  20402. }
  20403. },
  20404. url: "/markdown/raw"
  20405. }
  20406. },
  20407. meta: {
  20408. get: {
  20409. method: "GET",
  20410. params: {},
  20411. url: "/meta"
  20412. }
  20413. },
  20414. migrations: {
  20415. cancelImport: {
  20416. method: "DELETE",
  20417. params: {
  20418. owner: {
  20419. required: true,
  20420. type: "string"
  20421. },
  20422. repo: {
  20423. required: true,
  20424. type: "string"
  20425. }
  20426. },
  20427. url: "/repos/:owner/:repo/import"
  20428. },
  20429. deleteArchiveForAuthenticatedUser: {
  20430. headers: {
  20431. accept: "application/vnd.github.wyandotte-preview+json"
  20432. },
  20433. method: "DELETE",
  20434. params: {
  20435. migration_id: {
  20436. required: true,
  20437. type: "integer"
  20438. }
  20439. },
  20440. url: "/user/migrations/:migration_id/archive"
  20441. },
  20442. deleteArchiveForOrg: {
  20443. headers: {
  20444. accept: "application/vnd.github.wyandotte-preview+json"
  20445. },
  20446. method: "DELETE",
  20447. params: {
  20448. migration_id: {
  20449. required: true,
  20450. type: "integer"
  20451. },
  20452. org: {
  20453. required: true,
  20454. type: "string"
  20455. }
  20456. },
  20457. url: "/orgs/:org/migrations/:migration_id/archive"
  20458. },
  20459. downloadArchiveForOrg: {
  20460. headers: {
  20461. accept: "application/vnd.github.wyandotte-preview+json"
  20462. },
  20463. method: "GET",
  20464. params: {
  20465. migration_id: {
  20466. required: true,
  20467. type: "integer"
  20468. },
  20469. org: {
  20470. required: true,
  20471. type: "string"
  20472. }
  20473. },
  20474. url: "/orgs/:org/migrations/:migration_id/archive"
  20475. },
  20476. getArchiveForAuthenticatedUser: {
  20477. headers: {
  20478. accept: "application/vnd.github.wyandotte-preview+json"
  20479. },
  20480. method: "GET",
  20481. params: {
  20482. migration_id: {
  20483. required: true,
  20484. type: "integer"
  20485. }
  20486. },
  20487. url: "/user/migrations/:migration_id/archive"
  20488. },
  20489. getArchiveForOrg: {
  20490. deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
  20491. headers: {
  20492. accept: "application/vnd.github.wyandotte-preview+json"
  20493. },
  20494. method: "GET",
  20495. params: {
  20496. migration_id: {
  20497. required: true,
  20498. type: "integer"
  20499. },
  20500. org: {
  20501. required: true,
  20502. type: "string"
  20503. }
  20504. },
  20505. url: "/orgs/:org/migrations/:migration_id/archive"
  20506. },
  20507. getCommitAuthors: {
  20508. method: "GET",
  20509. params: {
  20510. owner: {
  20511. required: true,
  20512. type: "string"
  20513. },
  20514. repo: {
  20515. required: true,
  20516. type: "string"
  20517. },
  20518. since: {
  20519. type: "string"
  20520. }
  20521. },
  20522. url: "/repos/:owner/:repo/import/authors"
  20523. },
  20524. getImportProgress: {
  20525. method: "GET",
  20526. params: {
  20527. owner: {
  20528. required: true,
  20529. type: "string"
  20530. },
  20531. repo: {
  20532. required: true,
  20533. type: "string"
  20534. }
  20535. },
  20536. url: "/repos/:owner/:repo/import"
  20537. },
  20538. getLargeFiles: {
  20539. method: "GET",
  20540. params: {
  20541. owner: {
  20542. required: true,
  20543. type: "string"
  20544. },
  20545. repo: {
  20546. required: true,
  20547. type: "string"
  20548. }
  20549. },
  20550. url: "/repos/:owner/:repo/import/large_files"
  20551. },
  20552. getStatusForAuthenticatedUser: {
  20553. headers: {
  20554. accept: "application/vnd.github.wyandotte-preview+json"
  20555. },
  20556. method: "GET",
  20557. params: {
  20558. migration_id: {
  20559. required: true,
  20560. type: "integer"
  20561. }
  20562. },
  20563. url: "/user/migrations/:migration_id"
  20564. },
  20565. getStatusForOrg: {
  20566. headers: {
  20567. accept: "application/vnd.github.wyandotte-preview+json"
  20568. },
  20569. method: "GET",
  20570. params: {
  20571. migration_id: {
  20572. required: true,
  20573. type: "integer"
  20574. },
  20575. org: {
  20576. required: true,
  20577. type: "string"
  20578. }
  20579. },
  20580. url: "/orgs/:org/migrations/:migration_id"
  20581. },
  20582. listForAuthenticatedUser: {
  20583. headers: {
  20584. accept: "application/vnd.github.wyandotte-preview+json"
  20585. },
  20586. method: "GET",
  20587. params: {
  20588. page: {
  20589. type: "integer"
  20590. },
  20591. per_page: {
  20592. type: "integer"
  20593. }
  20594. },
  20595. url: "/user/migrations"
  20596. },
  20597. listForOrg: {
  20598. headers: {
  20599. accept: "application/vnd.github.wyandotte-preview+json"
  20600. },
  20601. method: "GET",
  20602. params: {
  20603. org: {
  20604. required: true,
  20605. type: "string"
  20606. },
  20607. page: {
  20608. type: "integer"
  20609. },
  20610. per_page: {
  20611. type: "integer"
  20612. }
  20613. },
  20614. url: "/orgs/:org/migrations"
  20615. },
  20616. listReposForOrg: {
  20617. headers: {
  20618. accept: "application/vnd.github.wyandotte-preview+json"
  20619. },
  20620. method: "GET",
  20621. params: {
  20622. migration_id: {
  20623. required: true,
  20624. type: "integer"
  20625. },
  20626. org: {
  20627. required: true,
  20628. type: "string"
  20629. },
  20630. page: {
  20631. type: "integer"
  20632. },
  20633. per_page: {
  20634. type: "integer"
  20635. }
  20636. },
  20637. url: "/orgs/:org/migrations/:migration_id/repositories"
  20638. },
  20639. listReposForUser: {
  20640. headers: {
  20641. accept: "application/vnd.github.wyandotte-preview+json"
  20642. },
  20643. method: "GET",
  20644. params: {
  20645. migration_id: {
  20646. required: true,
  20647. type: "integer"
  20648. },
  20649. page: {
  20650. type: "integer"
  20651. },
  20652. per_page: {
  20653. type: "integer"
  20654. }
  20655. },
  20656. url: "/user/:migration_id/repositories"
  20657. },
  20658. mapCommitAuthor: {
  20659. method: "PATCH",
  20660. params: {
  20661. author_id: {
  20662. required: true,
  20663. type: "integer"
  20664. },
  20665. email: {
  20666. type: "string"
  20667. },
  20668. name: {
  20669. type: "string"
  20670. },
  20671. owner: {
  20672. required: true,
  20673. type: "string"
  20674. },
  20675. repo: {
  20676. required: true,
  20677. type: "string"
  20678. }
  20679. },
  20680. url: "/repos/:owner/:repo/import/authors/:author_id"
  20681. },
  20682. setLfsPreference: {
  20683. method: "PATCH",
  20684. params: {
  20685. owner: {
  20686. required: true,
  20687. type: "string"
  20688. },
  20689. repo: {
  20690. required: true,
  20691. type: "string"
  20692. },
  20693. use_lfs: {
  20694. enum: ["opt_in", "opt_out"],
  20695. required: true,
  20696. type: "string"
  20697. }
  20698. },
  20699. url: "/repos/:owner/:repo/import/lfs"
  20700. },
  20701. startForAuthenticatedUser: {
  20702. method: "POST",
  20703. params: {
  20704. exclude_attachments: {
  20705. type: "boolean"
  20706. },
  20707. lock_repositories: {
  20708. type: "boolean"
  20709. },
  20710. repositories: {
  20711. required: true,
  20712. type: "string[]"
  20713. }
  20714. },
  20715. url: "/user/migrations"
  20716. },
  20717. startForOrg: {
  20718. method: "POST",
  20719. params: {
  20720. exclude_attachments: {
  20721. type: "boolean"
  20722. },
  20723. lock_repositories: {
  20724. type: "boolean"
  20725. },
  20726. org: {
  20727. required: true,
  20728. type: "string"
  20729. },
  20730. repositories: {
  20731. required: true,
  20732. type: "string[]"
  20733. }
  20734. },
  20735. url: "/orgs/:org/migrations"
  20736. },
  20737. startImport: {
  20738. method: "PUT",
  20739. params: {
  20740. owner: {
  20741. required: true,
  20742. type: "string"
  20743. },
  20744. repo: {
  20745. required: true,
  20746. type: "string"
  20747. },
  20748. tfvc_project: {
  20749. type: "string"
  20750. },
  20751. vcs: {
  20752. enum: ["subversion", "git", "mercurial", "tfvc"],
  20753. type: "string"
  20754. },
  20755. vcs_password: {
  20756. type: "string"
  20757. },
  20758. vcs_url: {
  20759. required: true,
  20760. type: "string"
  20761. },
  20762. vcs_username: {
  20763. type: "string"
  20764. }
  20765. },
  20766. url: "/repos/:owner/:repo/import"
  20767. },
  20768. unlockRepoForAuthenticatedUser: {
  20769. headers: {
  20770. accept: "application/vnd.github.wyandotte-preview+json"
  20771. },
  20772. method: "DELETE",
  20773. params: {
  20774. migration_id: {
  20775. required: true,
  20776. type: "integer"
  20777. },
  20778. repo_name: {
  20779. required: true,
  20780. type: "string"
  20781. }
  20782. },
  20783. url: "/user/migrations/:migration_id/repos/:repo_name/lock"
  20784. },
  20785. unlockRepoForOrg: {
  20786. headers: {
  20787. accept: "application/vnd.github.wyandotte-preview+json"
  20788. },
  20789. method: "DELETE",
  20790. params: {
  20791. migration_id: {
  20792. required: true,
  20793. type: "integer"
  20794. },
  20795. org: {
  20796. required: true,
  20797. type: "string"
  20798. },
  20799. repo_name: {
  20800. required: true,
  20801. type: "string"
  20802. }
  20803. },
  20804. url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
  20805. },
  20806. updateImport: {
  20807. method: "PATCH",
  20808. params: {
  20809. owner: {
  20810. required: true,
  20811. type: "string"
  20812. },
  20813. repo: {
  20814. required: true,
  20815. type: "string"
  20816. },
  20817. vcs_password: {
  20818. type: "string"
  20819. },
  20820. vcs_username: {
  20821. type: "string"
  20822. }
  20823. },
  20824. url: "/repos/:owner/:repo/import"
  20825. }
  20826. },
  20827. oauthAuthorizations: {
  20828. checkAuthorization: {
  20829. deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
  20830. method: "GET",
  20831. params: {
  20832. access_token: {
  20833. required: true,
  20834. type: "string"
  20835. },
  20836. client_id: {
  20837. required: true,
  20838. type: "string"
  20839. }
  20840. },
  20841. url: "/applications/:client_id/tokens/:access_token"
  20842. },
  20843. createAuthorization: {
  20844. deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
  20845. method: "POST",
  20846. params: {
  20847. client_id: {
  20848. type: "string"
  20849. },
  20850. client_secret: {
  20851. type: "string"
  20852. },
  20853. fingerprint: {
  20854. type: "string"
  20855. },
  20856. note: {
  20857. required: true,
  20858. type: "string"
  20859. },
  20860. note_url: {
  20861. type: "string"
  20862. },
  20863. scopes: {
  20864. type: "string[]"
  20865. }
  20866. },
  20867. url: "/authorizations"
  20868. },
  20869. deleteAuthorization: {
  20870. deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
  20871. method: "DELETE",
  20872. params: {
  20873. authorization_id: {
  20874. required: true,
  20875. type: "integer"
  20876. }
  20877. },
  20878. url: "/authorizations/:authorization_id"
  20879. },
  20880. deleteGrant: {
  20881. deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
  20882. method: "DELETE",
  20883. params: {
  20884. grant_id: {
  20885. required: true,
  20886. type: "integer"
  20887. }
  20888. },
  20889. url: "/applications/grants/:grant_id"
  20890. },
  20891. getAuthorization: {
  20892. deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
  20893. method: "GET",
  20894. params: {
  20895. authorization_id: {
  20896. required: true,
  20897. type: "integer"
  20898. }
  20899. },
  20900. url: "/authorizations/:authorization_id"
  20901. },
  20902. getGrant: {
  20903. deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
  20904. method: "GET",
  20905. params: {
  20906. grant_id: {
  20907. required: true,
  20908. type: "integer"
  20909. }
  20910. },
  20911. url: "/applications/grants/:grant_id"
  20912. },
  20913. getOrCreateAuthorizationForApp: {
  20914. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
  20915. method: "PUT",
  20916. params: {
  20917. client_id: {
  20918. required: true,
  20919. type: "string"
  20920. },
  20921. client_secret: {
  20922. required: true,
  20923. type: "string"
  20924. },
  20925. fingerprint: {
  20926. type: "string"
  20927. },
  20928. note: {
  20929. type: "string"
  20930. },
  20931. note_url: {
  20932. type: "string"
  20933. },
  20934. scopes: {
  20935. type: "string[]"
  20936. }
  20937. },
  20938. url: "/authorizations/clients/:client_id"
  20939. },
  20940. getOrCreateAuthorizationForAppAndFingerprint: {
  20941. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
  20942. method: "PUT",
  20943. params: {
  20944. client_id: {
  20945. required: true,
  20946. type: "string"
  20947. },
  20948. client_secret: {
  20949. required: true,
  20950. type: "string"
  20951. },
  20952. fingerprint: {
  20953. required: true,
  20954. type: "string"
  20955. },
  20956. note: {
  20957. type: "string"
  20958. },
  20959. note_url: {
  20960. type: "string"
  20961. },
  20962. scopes: {
  20963. type: "string[]"
  20964. }
  20965. },
  20966. url: "/authorizations/clients/:client_id/:fingerprint"
  20967. },
  20968. getOrCreateAuthorizationForAppFingerprint: {
  20969. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
  20970. method: "PUT",
  20971. params: {
  20972. client_id: {
  20973. required: true,
  20974. type: "string"
  20975. },
  20976. client_secret: {
  20977. required: true,
  20978. type: "string"
  20979. },
  20980. fingerprint: {
  20981. required: true,
  20982. type: "string"
  20983. },
  20984. note: {
  20985. type: "string"
  20986. },
  20987. note_url: {
  20988. type: "string"
  20989. },
  20990. scopes: {
  20991. type: "string[]"
  20992. }
  20993. },
  20994. url: "/authorizations/clients/:client_id/:fingerprint"
  20995. },
  20996. listAuthorizations: {
  20997. deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
  20998. method: "GET",
  20999. params: {
  21000. page: {
  21001. type: "integer"
  21002. },
  21003. per_page: {
  21004. type: "integer"
  21005. }
  21006. },
  21007. url: "/authorizations"
  21008. },
  21009. listGrants: {
  21010. deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
  21011. method: "GET",
  21012. params: {
  21013. page: {
  21014. type: "integer"
  21015. },
  21016. per_page: {
  21017. type: "integer"
  21018. }
  21019. },
  21020. url: "/applications/grants"
  21021. },
  21022. resetAuthorization: {
  21023. deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
  21024. method: "POST",
  21025. params: {
  21026. access_token: {
  21027. required: true,
  21028. type: "string"
  21029. },
  21030. client_id: {
  21031. required: true,
  21032. type: "string"
  21033. }
  21034. },
  21035. url: "/applications/:client_id/tokens/:access_token"
  21036. },
  21037. revokeAuthorizationForApplication: {
  21038. deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
  21039. method: "DELETE",
  21040. params: {
  21041. access_token: {
  21042. required: true,
  21043. type: "string"
  21044. },
  21045. client_id: {
  21046. required: true,
  21047. type: "string"
  21048. }
  21049. },
  21050. url: "/applications/:client_id/tokens/:access_token"
  21051. },
  21052. revokeGrantForApplication: {
  21053. deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
  21054. method: "DELETE",
  21055. params: {
  21056. access_token: {
  21057. required: true,
  21058. type: "string"
  21059. },
  21060. client_id: {
  21061. required: true,
  21062. type: "string"
  21063. }
  21064. },
  21065. url: "/applications/:client_id/grants/:access_token"
  21066. },
  21067. updateAuthorization: {
  21068. deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
  21069. method: "PATCH",
  21070. params: {
  21071. add_scopes: {
  21072. type: "string[]"
  21073. },
  21074. authorization_id: {
  21075. required: true,
  21076. type: "integer"
  21077. },
  21078. fingerprint: {
  21079. type: "string"
  21080. },
  21081. note: {
  21082. type: "string"
  21083. },
  21084. note_url: {
  21085. type: "string"
  21086. },
  21087. remove_scopes: {
  21088. type: "string[]"
  21089. },
  21090. scopes: {
  21091. type: "string[]"
  21092. }
  21093. },
  21094. url: "/authorizations/:authorization_id"
  21095. }
  21096. },
  21097. orgs: {
  21098. addOrUpdateMembership: {
  21099. method: "PUT",
  21100. params: {
  21101. org: {
  21102. required: true,
  21103. type: "string"
  21104. },
  21105. role: {
  21106. enum: ["admin", "member"],
  21107. type: "string"
  21108. },
  21109. username: {
  21110. required: true,
  21111. type: "string"
  21112. }
  21113. },
  21114. url: "/orgs/:org/memberships/:username"
  21115. },
  21116. blockUser: {
  21117. method: "PUT",
  21118. params: {
  21119. org: {
  21120. required: true,
  21121. type: "string"
  21122. },
  21123. username: {
  21124. required: true,
  21125. type: "string"
  21126. }
  21127. },
  21128. url: "/orgs/:org/blocks/:username"
  21129. },
  21130. checkBlockedUser: {
  21131. method: "GET",
  21132. params: {
  21133. org: {
  21134. required: true,
  21135. type: "string"
  21136. },
  21137. username: {
  21138. required: true,
  21139. type: "string"
  21140. }
  21141. },
  21142. url: "/orgs/:org/blocks/:username"
  21143. },
  21144. checkMembership: {
  21145. method: "GET",
  21146. params: {
  21147. org: {
  21148. required: true,
  21149. type: "string"
  21150. },
  21151. username: {
  21152. required: true,
  21153. type: "string"
  21154. }
  21155. },
  21156. url: "/orgs/:org/members/:username"
  21157. },
  21158. checkPublicMembership: {
  21159. method: "GET",
  21160. params: {
  21161. org: {
  21162. required: true,
  21163. type: "string"
  21164. },
  21165. username: {
  21166. required: true,
  21167. type: "string"
  21168. }
  21169. },
  21170. url: "/orgs/:org/public_members/:username"
  21171. },
  21172. concealMembership: {
  21173. method: "DELETE",
  21174. params: {
  21175. org: {
  21176. required: true,
  21177. type: "string"
  21178. },
  21179. username: {
  21180. required: true,
  21181. type: "string"
  21182. }
  21183. },
  21184. url: "/orgs/:org/public_members/:username"
  21185. },
  21186. convertMemberToOutsideCollaborator: {
  21187. method: "PUT",
  21188. params: {
  21189. org: {
  21190. required: true,
  21191. type: "string"
  21192. },
  21193. username: {
  21194. required: true,
  21195. type: "string"
  21196. }
  21197. },
  21198. url: "/orgs/:org/outside_collaborators/:username"
  21199. },
  21200. createHook: {
  21201. method: "POST",
  21202. params: {
  21203. active: {
  21204. type: "boolean"
  21205. },
  21206. config: {
  21207. required: true,
  21208. type: "object"
  21209. },
  21210. "config.content_type": {
  21211. type: "string"
  21212. },
  21213. "config.insecure_ssl": {
  21214. type: "string"
  21215. },
  21216. "config.secret": {
  21217. type: "string"
  21218. },
  21219. "config.url": {
  21220. required: true,
  21221. type: "string"
  21222. },
  21223. events: {
  21224. type: "string[]"
  21225. },
  21226. name: {
  21227. required: true,
  21228. type: "string"
  21229. },
  21230. org: {
  21231. required: true,
  21232. type: "string"
  21233. }
  21234. },
  21235. url: "/orgs/:org/hooks"
  21236. },
  21237. createInvitation: {
  21238. method: "POST",
  21239. params: {
  21240. email: {
  21241. type: "string"
  21242. },
  21243. invitee_id: {
  21244. type: "integer"
  21245. },
  21246. org: {
  21247. required: true,
  21248. type: "string"
  21249. },
  21250. role: {
  21251. enum: ["admin", "direct_member", "billing_manager"],
  21252. type: "string"
  21253. },
  21254. team_ids: {
  21255. type: "integer[]"
  21256. }
  21257. },
  21258. url: "/orgs/:org/invitations"
  21259. },
  21260. deleteHook: {
  21261. method: "DELETE",
  21262. params: {
  21263. hook_id: {
  21264. required: true,
  21265. type: "integer"
  21266. },
  21267. org: {
  21268. required: true,
  21269. type: "string"
  21270. }
  21271. },
  21272. url: "/orgs/:org/hooks/:hook_id"
  21273. },
  21274. get: {
  21275. method: "GET",
  21276. params: {
  21277. org: {
  21278. required: true,
  21279. type: "string"
  21280. }
  21281. },
  21282. url: "/orgs/:org"
  21283. },
  21284. getHook: {
  21285. method: "GET",
  21286. params: {
  21287. hook_id: {
  21288. required: true,
  21289. type: "integer"
  21290. },
  21291. org: {
  21292. required: true,
  21293. type: "string"
  21294. }
  21295. },
  21296. url: "/orgs/:org/hooks/:hook_id"
  21297. },
  21298. getMembership: {
  21299. method: "GET",
  21300. params: {
  21301. org: {
  21302. required: true,
  21303. type: "string"
  21304. },
  21305. username: {
  21306. required: true,
  21307. type: "string"
  21308. }
  21309. },
  21310. url: "/orgs/:org/memberships/:username"
  21311. },
  21312. getMembershipForAuthenticatedUser: {
  21313. method: "GET",
  21314. params: {
  21315. org: {
  21316. required: true,
  21317. type: "string"
  21318. }
  21319. },
  21320. url: "/user/memberships/orgs/:org"
  21321. },
  21322. list: {
  21323. method: "GET",
  21324. params: {
  21325. page: {
  21326. type: "integer"
  21327. },
  21328. per_page: {
  21329. type: "integer"
  21330. },
  21331. since: {
  21332. type: "integer"
  21333. }
  21334. },
  21335. url: "/organizations"
  21336. },
  21337. listBlockedUsers: {
  21338. method: "GET",
  21339. params: {
  21340. org: {
  21341. required: true,
  21342. type: "string"
  21343. }
  21344. },
  21345. url: "/orgs/:org/blocks"
  21346. },
  21347. listForAuthenticatedUser: {
  21348. method: "GET",
  21349. params: {
  21350. page: {
  21351. type: "integer"
  21352. },
  21353. per_page: {
  21354. type: "integer"
  21355. }
  21356. },
  21357. url: "/user/orgs"
  21358. },
  21359. listForUser: {
  21360. method: "GET",
  21361. params: {
  21362. page: {
  21363. type: "integer"
  21364. },
  21365. per_page: {
  21366. type: "integer"
  21367. },
  21368. username: {
  21369. required: true,
  21370. type: "string"
  21371. }
  21372. },
  21373. url: "/users/:username/orgs"
  21374. },
  21375. listHooks: {
  21376. method: "GET",
  21377. params: {
  21378. org: {
  21379. required: true,
  21380. type: "string"
  21381. },
  21382. page: {
  21383. type: "integer"
  21384. },
  21385. per_page: {
  21386. type: "integer"
  21387. }
  21388. },
  21389. url: "/orgs/:org/hooks"
  21390. },
  21391. listInstallations: {
  21392. headers: {
  21393. accept: "application/vnd.github.machine-man-preview+json"
  21394. },
  21395. method: "GET",
  21396. params: {
  21397. org: {
  21398. required: true,
  21399. type: "string"
  21400. },
  21401. page: {
  21402. type: "integer"
  21403. },
  21404. per_page: {
  21405. type: "integer"
  21406. }
  21407. },
  21408. url: "/orgs/:org/installations"
  21409. },
  21410. listInvitationTeams: {
  21411. method: "GET",
  21412. params: {
  21413. invitation_id: {
  21414. required: true,
  21415. type: "integer"
  21416. },
  21417. org: {
  21418. required: true,
  21419. type: "string"
  21420. },
  21421. page: {
  21422. type: "integer"
  21423. },
  21424. per_page: {
  21425. type: "integer"
  21426. }
  21427. },
  21428. url: "/orgs/:org/invitations/:invitation_id/teams"
  21429. },
  21430. listMembers: {
  21431. method: "GET",
  21432. params: {
  21433. filter: {
  21434. enum: ["2fa_disabled", "all"],
  21435. type: "string"
  21436. },
  21437. org: {
  21438. required: true,
  21439. type: "string"
  21440. },
  21441. page: {
  21442. type: "integer"
  21443. },
  21444. per_page: {
  21445. type: "integer"
  21446. },
  21447. role: {
  21448. enum: ["all", "admin", "member"],
  21449. type: "string"
  21450. }
  21451. },
  21452. url: "/orgs/:org/members"
  21453. },
  21454. listMemberships: {
  21455. method: "GET",
  21456. params: {
  21457. page: {
  21458. type: "integer"
  21459. },
  21460. per_page: {
  21461. type: "integer"
  21462. },
  21463. state: {
  21464. enum: ["active", "pending"],
  21465. type: "string"
  21466. }
  21467. },
  21468. url: "/user/memberships/orgs"
  21469. },
  21470. listOutsideCollaborators: {
  21471. method: "GET",
  21472. params: {
  21473. filter: {
  21474. enum: ["2fa_disabled", "all"],
  21475. type: "string"
  21476. },
  21477. org: {
  21478. required: true,
  21479. type: "string"
  21480. },
  21481. page: {
  21482. type: "integer"
  21483. },
  21484. per_page: {
  21485. type: "integer"
  21486. }
  21487. },
  21488. url: "/orgs/:org/outside_collaborators"
  21489. },
  21490. listPendingInvitations: {
  21491. method: "GET",
  21492. params: {
  21493. org: {
  21494. required: true,
  21495. type: "string"
  21496. },
  21497. page: {
  21498. type: "integer"
  21499. },
  21500. per_page: {
  21501. type: "integer"
  21502. }
  21503. },
  21504. url: "/orgs/:org/invitations"
  21505. },
  21506. listPublicMembers: {
  21507. method: "GET",
  21508. params: {
  21509. org: {
  21510. required: true,
  21511. type: "string"
  21512. },
  21513. page: {
  21514. type: "integer"
  21515. },
  21516. per_page: {
  21517. type: "integer"
  21518. }
  21519. },
  21520. url: "/orgs/:org/public_members"
  21521. },
  21522. pingHook: {
  21523. method: "POST",
  21524. params: {
  21525. hook_id: {
  21526. required: true,
  21527. type: "integer"
  21528. },
  21529. org: {
  21530. required: true,
  21531. type: "string"
  21532. }
  21533. },
  21534. url: "/orgs/:org/hooks/:hook_id/pings"
  21535. },
  21536. publicizeMembership: {
  21537. method: "PUT",
  21538. params: {
  21539. org: {
  21540. required: true,
  21541. type: "string"
  21542. },
  21543. username: {
  21544. required: true,
  21545. type: "string"
  21546. }
  21547. },
  21548. url: "/orgs/:org/public_members/:username"
  21549. },
  21550. removeMember: {
  21551. method: "DELETE",
  21552. params: {
  21553. org: {
  21554. required: true,
  21555. type: "string"
  21556. },
  21557. username: {
  21558. required: true,
  21559. type: "string"
  21560. }
  21561. },
  21562. url: "/orgs/:org/members/:username"
  21563. },
  21564. removeMembership: {
  21565. method: "DELETE",
  21566. params: {
  21567. org: {
  21568. required: true,
  21569. type: "string"
  21570. },
  21571. username: {
  21572. required: true,
  21573. type: "string"
  21574. }
  21575. },
  21576. url: "/orgs/:org/memberships/:username"
  21577. },
  21578. removeOutsideCollaborator: {
  21579. method: "DELETE",
  21580. params: {
  21581. org: {
  21582. required: true,
  21583. type: "string"
  21584. },
  21585. username: {
  21586. required: true,
  21587. type: "string"
  21588. }
  21589. },
  21590. url: "/orgs/:org/outside_collaborators/:username"
  21591. },
  21592. unblockUser: {
  21593. method: "DELETE",
  21594. params: {
  21595. org: {
  21596. required: true,
  21597. type: "string"
  21598. },
  21599. username: {
  21600. required: true,
  21601. type: "string"
  21602. }
  21603. },
  21604. url: "/orgs/:org/blocks/:username"
  21605. },
  21606. update: {
  21607. method: "PATCH",
  21608. params: {
  21609. billing_email: {
  21610. type: "string"
  21611. },
  21612. company: {
  21613. type: "string"
  21614. },
  21615. default_repository_permission: {
  21616. enum: ["read", "write", "admin", "none"],
  21617. type: "string"
  21618. },
  21619. description: {
  21620. type: "string"
  21621. },
  21622. email: {
  21623. type: "string"
  21624. },
  21625. has_organization_projects: {
  21626. type: "boolean"
  21627. },
  21628. has_repository_projects: {
  21629. type: "boolean"
  21630. },
  21631. location: {
  21632. type: "string"
  21633. },
  21634. members_allowed_repository_creation_type: {
  21635. enum: ["all", "private", "none"],
  21636. type: "string"
  21637. },
  21638. members_can_create_internal_repositories: {
  21639. type: "boolean"
  21640. },
  21641. members_can_create_private_repositories: {
  21642. type: "boolean"
  21643. },
  21644. members_can_create_public_repositories: {
  21645. type: "boolean"
  21646. },
  21647. members_can_create_repositories: {
  21648. type: "boolean"
  21649. },
  21650. name: {
  21651. type: "string"
  21652. },
  21653. org: {
  21654. required: true,
  21655. type: "string"
  21656. }
  21657. },
  21658. url: "/orgs/:org"
  21659. },
  21660. updateHook: {
  21661. method: "PATCH",
  21662. params: {
  21663. active: {
  21664. type: "boolean"
  21665. },
  21666. config: {
  21667. type: "object"
  21668. },
  21669. "config.content_type": {
  21670. type: "string"
  21671. },
  21672. "config.insecure_ssl": {
  21673. type: "string"
  21674. },
  21675. "config.secret": {
  21676. type: "string"
  21677. },
  21678. "config.url": {
  21679. required: true,
  21680. type: "string"
  21681. },
  21682. events: {
  21683. type: "string[]"
  21684. },
  21685. hook_id: {
  21686. required: true,
  21687. type: "integer"
  21688. },
  21689. org: {
  21690. required: true,
  21691. type: "string"
  21692. }
  21693. },
  21694. url: "/orgs/:org/hooks/:hook_id"
  21695. },
  21696. updateMembership: {
  21697. method: "PATCH",
  21698. params: {
  21699. org: {
  21700. required: true,
  21701. type: "string"
  21702. },
  21703. state: {
  21704. enum: ["active"],
  21705. required: true,
  21706. type: "string"
  21707. }
  21708. },
  21709. url: "/user/memberships/orgs/:org"
  21710. }
  21711. },
  21712. projects: {
  21713. addCollaborator: {
  21714. headers: {
  21715. accept: "application/vnd.github.inertia-preview+json"
  21716. },
  21717. method: "PUT",
  21718. params: {
  21719. permission: {
  21720. enum: ["read", "write", "admin"],
  21721. type: "string"
  21722. },
  21723. project_id: {
  21724. required: true,
  21725. type: "integer"
  21726. },
  21727. username: {
  21728. required: true,
  21729. type: "string"
  21730. }
  21731. },
  21732. url: "/projects/:project_id/collaborators/:username"
  21733. },
  21734. createCard: {
  21735. headers: {
  21736. accept: "application/vnd.github.inertia-preview+json"
  21737. },
  21738. method: "POST",
  21739. params: {
  21740. column_id: {
  21741. required: true,
  21742. type: "integer"
  21743. },
  21744. content_id: {
  21745. type: "integer"
  21746. },
  21747. content_type: {
  21748. type: "string"
  21749. },
  21750. note: {
  21751. type: "string"
  21752. }
  21753. },
  21754. url: "/projects/columns/:column_id/cards"
  21755. },
  21756. createColumn: {
  21757. headers: {
  21758. accept: "application/vnd.github.inertia-preview+json"
  21759. },
  21760. method: "POST",
  21761. params: {
  21762. name: {
  21763. required: true,
  21764. type: "string"
  21765. },
  21766. project_id: {
  21767. required: true,
  21768. type: "integer"
  21769. }
  21770. },
  21771. url: "/projects/:project_id/columns"
  21772. },
  21773. createForAuthenticatedUser: {
  21774. headers: {
  21775. accept: "application/vnd.github.inertia-preview+json"
  21776. },
  21777. method: "POST",
  21778. params: {
  21779. body: {
  21780. type: "string"
  21781. },
  21782. name: {
  21783. required: true,
  21784. type: "string"
  21785. }
  21786. },
  21787. url: "/user/projects"
  21788. },
  21789. createForOrg: {
  21790. headers: {
  21791. accept: "application/vnd.github.inertia-preview+json"
  21792. },
  21793. method: "POST",
  21794. params: {
  21795. body: {
  21796. type: "string"
  21797. },
  21798. name: {
  21799. required: true,
  21800. type: "string"
  21801. },
  21802. org: {
  21803. required: true,
  21804. type: "string"
  21805. }
  21806. },
  21807. url: "/orgs/:org/projects"
  21808. },
  21809. createForRepo: {
  21810. headers: {
  21811. accept: "application/vnd.github.inertia-preview+json"
  21812. },
  21813. method: "POST",
  21814. params: {
  21815. body: {
  21816. type: "string"
  21817. },
  21818. name: {
  21819. required: true,
  21820. type: "string"
  21821. },
  21822. owner: {
  21823. required: true,
  21824. type: "string"
  21825. },
  21826. repo: {
  21827. required: true,
  21828. type: "string"
  21829. }
  21830. },
  21831. url: "/repos/:owner/:repo/projects"
  21832. },
  21833. delete: {
  21834. headers: {
  21835. accept: "application/vnd.github.inertia-preview+json"
  21836. },
  21837. method: "DELETE",
  21838. params: {
  21839. project_id: {
  21840. required: true,
  21841. type: "integer"
  21842. }
  21843. },
  21844. url: "/projects/:project_id"
  21845. },
  21846. deleteCard: {
  21847. headers: {
  21848. accept: "application/vnd.github.inertia-preview+json"
  21849. },
  21850. method: "DELETE",
  21851. params: {
  21852. card_id: {
  21853. required: true,
  21854. type: "integer"
  21855. }
  21856. },
  21857. url: "/projects/columns/cards/:card_id"
  21858. },
  21859. deleteColumn: {
  21860. headers: {
  21861. accept: "application/vnd.github.inertia-preview+json"
  21862. },
  21863. method: "DELETE",
  21864. params: {
  21865. column_id: {
  21866. required: true,
  21867. type: "integer"
  21868. }
  21869. },
  21870. url: "/projects/columns/:column_id"
  21871. },
  21872. get: {
  21873. headers: {
  21874. accept: "application/vnd.github.inertia-preview+json"
  21875. },
  21876. method: "GET",
  21877. params: {
  21878. project_id: {
  21879. required: true,
  21880. type: "integer"
  21881. }
  21882. },
  21883. url: "/projects/:project_id"
  21884. },
  21885. getCard: {
  21886. headers: {
  21887. accept: "application/vnd.github.inertia-preview+json"
  21888. },
  21889. method: "GET",
  21890. params: {
  21891. card_id: {
  21892. required: true,
  21893. type: "integer"
  21894. }
  21895. },
  21896. url: "/projects/columns/cards/:card_id"
  21897. },
  21898. getColumn: {
  21899. headers: {
  21900. accept: "application/vnd.github.inertia-preview+json"
  21901. },
  21902. method: "GET",
  21903. params: {
  21904. column_id: {
  21905. required: true,
  21906. type: "integer"
  21907. }
  21908. },
  21909. url: "/projects/columns/:column_id"
  21910. },
  21911. listCards: {
  21912. headers: {
  21913. accept: "application/vnd.github.inertia-preview+json"
  21914. },
  21915. method: "GET",
  21916. params: {
  21917. archived_state: {
  21918. enum: ["all", "archived", "not_archived"],
  21919. type: "string"
  21920. },
  21921. column_id: {
  21922. required: true,
  21923. type: "integer"
  21924. },
  21925. page: {
  21926. type: "integer"
  21927. },
  21928. per_page: {
  21929. type: "integer"
  21930. }
  21931. },
  21932. url: "/projects/columns/:column_id/cards"
  21933. },
  21934. listCollaborators: {
  21935. headers: {
  21936. accept: "application/vnd.github.inertia-preview+json"
  21937. },
  21938. method: "GET",
  21939. params: {
  21940. affiliation: {
  21941. enum: ["outside", "direct", "all"],
  21942. type: "string"
  21943. },
  21944. page: {
  21945. type: "integer"
  21946. },
  21947. per_page: {
  21948. type: "integer"
  21949. },
  21950. project_id: {
  21951. required: true,
  21952. type: "integer"
  21953. }
  21954. },
  21955. url: "/projects/:project_id/collaborators"
  21956. },
  21957. listColumns: {
  21958. headers: {
  21959. accept: "application/vnd.github.inertia-preview+json"
  21960. },
  21961. method: "GET",
  21962. params: {
  21963. page: {
  21964. type: "integer"
  21965. },
  21966. per_page: {
  21967. type: "integer"
  21968. },
  21969. project_id: {
  21970. required: true,
  21971. type: "integer"
  21972. }
  21973. },
  21974. url: "/projects/:project_id/columns"
  21975. },
  21976. listForOrg: {
  21977. headers: {
  21978. accept: "application/vnd.github.inertia-preview+json"
  21979. },
  21980. method: "GET",
  21981. params: {
  21982. org: {
  21983. required: true,
  21984. type: "string"
  21985. },
  21986. page: {
  21987. type: "integer"
  21988. },
  21989. per_page: {
  21990. type: "integer"
  21991. },
  21992. state: {
  21993. enum: ["open", "closed", "all"],
  21994. type: "string"
  21995. }
  21996. },
  21997. url: "/orgs/:org/projects"
  21998. },
  21999. listForRepo: {
  22000. headers: {
  22001. accept: "application/vnd.github.inertia-preview+json"
  22002. },
  22003. method: "GET",
  22004. params: {
  22005. owner: {
  22006. required: true,
  22007. type: "string"
  22008. },
  22009. page: {
  22010. type: "integer"
  22011. },
  22012. per_page: {
  22013. type: "integer"
  22014. },
  22015. repo: {
  22016. required: true,
  22017. type: "string"
  22018. },
  22019. state: {
  22020. enum: ["open", "closed", "all"],
  22021. type: "string"
  22022. }
  22023. },
  22024. url: "/repos/:owner/:repo/projects"
  22025. },
  22026. listForUser: {
  22027. headers: {
  22028. accept: "application/vnd.github.inertia-preview+json"
  22029. },
  22030. method: "GET",
  22031. params: {
  22032. page: {
  22033. type: "integer"
  22034. },
  22035. per_page: {
  22036. type: "integer"
  22037. },
  22038. state: {
  22039. enum: ["open", "closed", "all"],
  22040. type: "string"
  22041. },
  22042. username: {
  22043. required: true,
  22044. type: "string"
  22045. }
  22046. },
  22047. url: "/users/:username/projects"
  22048. },
  22049. moveCard: {
  22050. headers: {
  22051. accept: "application/vnd.github.inertia-preview+json"
  22052. },
  22053. method: "POST",
  22054. params: {
  22055. card_id: {
  22056. required: true,
  22057. type: "integer"
  22058. },
  22059. column_id: {
  22060. type: "integer"
  22061. },
  22062. position: {
  22063. required: true,
  22064. type: "string",
  22065. validation: "^(top|bottom|after:\\d+)$"
  22066. }
  22067. },
  22068. url: "/projects/columns/cards/:card_id/moves"
  22069. },
  22070. moveColumn: {
  22071. headers: {
  22072. accept: "application/vnd.github.inertia-preview+json"
  22073. },
  22074. method: "POST",
  22075. params: {
  22076. column_id: {
  22077. required: true,
  22078. type: "integer"
  22079. },
  22080. position: {
  22081. required: true,
  22082. type: "string",
  22083. validation: "^(first|last|after:\\d+)$"
  22084. }
  22085. },
  22086. url: "/projects/columns/:column_id/moves"
  22087. },
  22088. removeCollaborator: {
  22089. headers: {
  22090. accept: "application/vnd.github.inertia-preview+json"
  22091. },
  22092. method: "DELETE",
  22093. params: {
  22094. project_id: {
  22095. required: true,
  22096. type: "integer"
  22097. },
  22098. username: {
  22099. required: true,
  22100. type: "string"
  22101. }
  22102. },
  22103. url: "/projects/:project_id/collaborators/:username"
  22104. },
  22105. reviewUserPermissionLevel: {
  22106. headers: {
  22107. accept: "application/vnd.github.inertia-preview+json"
  22108. },
  22109. method: "GET",
  22110. params: {
  22111. project_id: {
  22112. required: true,
  22113. type: "integer"
  22114. },
  22115. username: {
  22116. required: true,
  22117. type: "string"
  22118. }
  22119. },
  22120. url: "/projects/:project_id/collaborators/:username/permission"
  22121. },
  22122. update: {
  22123. headers: {
  22124. accept: "application/vnd.github.inertia-preview+json"
  22125. },
  22126. method: "PATCH",
  22127. params: {
  22128. body: {
  22129. type: "string"
  22130. },
  22131. name: {
  22132. type: "string"
  22133. },
  22134. organization_permission: {
  22135. type: "string"
  22136. },
  22137. private: {
  22138. type: "boolean"
  22139. },
  22140. project_id: {
  22141. required: true,
  22142. type: "integer"
  22143. },
  22144. state: {
  22145. enum: ["open", "closed"],
  22146. type: "string"
  22147. }
  22148. },
  22149. url: "/projects/:project_id"
  22150. },
  22151. updateCard: {
  22152. headers: {
  22153. accept: "application/vnd.github.inertia-preview+json"
  22154. },
  22155. method: "PATCH",
  22156. params: {
  22157. archived: {
  22158. type: "boolean"
  22159. },
  22160. card_id: {
  22161. required: true,
  22162. type: "integer"
  22163. },
  22164. note: {
  22165. type: "string"
  22166. }
  22167. },
  22168. url: "/projects/columns/cards/:card_id"
  22169. },
  22170. updateColumn: {
  22171. headers: {
  22172. accept: "application/vnd.github.inertia-preview+json"
  22173. },
  22174. method: "PATCH",
  22175. params: {
  22176. column_id: {
  22177. required: true,
  22178. type: "integer"
  22179. },
  22180. name: {
  22181. required: true,
  22182. type: "string"
  22183. }
  22184. },
  22185. url: "/projects/columns/:column_id"
  22186. }
  22187. },
  22188. pulls: {
  22189. checkIfMerged: {
  22190. method: "GET",
  22191. params: {
  22192. number: {
  22193. alias: "pull_number",
  22194. deprecated: true,
  22195. type: "integer"
  22196. },
  22197. owner: {
  22198. required: true,
  22199. type: "string"
  22200. },
  22201. pull_number: {
  22202. required: true,
  22203. type: "integer"
  22204. },
  22205. repo: {
  22206. required: true,
  22207. type: "string"
  22208. }
  22209. },
  22210. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  22211. },
  22212. create: {
  22213. method: "POST",
  22214. params: {
  22215. base: {
  22216. required: true,
  22217. type: "string"
  22218. },
  22219. body: {
  22220. type: "string"
  22221. },
  22222. draft: {
  22223. type: "boolean"
  22224. },
  22225. head: {
  22226. required: true,
  22227. type: "string"
  22228. },
  22229. maintainer_can_modify: {
  22230. type: "boolean"
  22231. },
  22232. owner: {
  22233. required: true,
  22234. type: "string"
  22235. },
  22236. repo: {
  22237. required: true,
  22238. type: "string"
  22239. },
  22240. title: {
  22241. required: true,
  22242. type: "string"
  22243. }
  22244. },
  22245. url: "/repos/:owner/:repo/pulls"
  22246. },
  22247. createComment: {
  22248. method: "POST",
  22249. params: {
  22250. body: {
  22251. required: true,
  22252. type: "string"
  22253. },
  22254. commit_id: {
  22255. required: true,
  22256. type: "string"
  22257. },
  22258. in_reply_to: {
  22259. deprecated: true,
  22260. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  22261. type: "integer"
  22262. },
  22263. line: {
  22264. type: "integer"
  22265. },
  22266. number: {
  22267. alias: "pull_number",
  22268. deprecated: true,
  22269. type: "integer"
  22270. },
  22271. owner: {
  22272. required: true,
  22273. type: "string"
  22274. },
  22275. path: {
  22276. required: true,
  22277. type: "string"
  22278. },
  22279. position: {
  22280. type: "integer"
  22281. },
  22282. pull_number: {
  22283. required: true,
  22284. type: "integer"
  22285. },
  22286. repo: {
  22287. required: true,
  22288. type: "string"
  22289. },
  22290. side: {
  22291. enum: ["LEFT", "RIGHT"],
  22292. type: "string"
  22293. },
  22294. start_line: {
  22295. type: "integer"
  22296. },
  22297. start_side: {
  22298. enum: ["LEFT", "RIGHT", "side"],
  22299. type: "string"
  22300. }
  22301. },
  22302. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22303. },
  22304. createCommentReply: {
  22305. deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
  22306. method: "POST",
  22307. params: {
  22308. body: {
  22309. required: true,
  22310. type: "string"
  22311. },
  22312. commit_id: {
  22313. required: true,
  22314. type: "string"
  22315. },
  22316. in_reply_to: {
  22317. deprecated: true,
  22318. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  22319. type: "integer"
  22320. },
  22321. line: {
  22322. type: "integer"
  22323. },
  22324. number: {
  22325. alias: "pull_number",
  22326. deprecated: true,
  22327. type: "integer"
  22328. },
  22329. owner: {
  22330. required: true,
  22331. type: "string"
  22332. },
  22333. path: {
  22334. required: true,
  22335. type: "string"
  22336. },
  22337. position: {
  22338. type: "integer"
  22339. },
  22340. pull_number: {
  22341. required: true,
  22342. type: "integer"
  22343. },
  22344. repo: {
  22345. required: true,
  22346. type: "string"
  22347. },
  22348. side: {
  22349. enum: ["LEFT", "RIGHT"],
  22350. type: "string"
  22351. },
  22352. start_line: {
  22353. type: "integer"
  22354. },
  22355. start_side: {
  22356. enum: ["LEFT", "RIGHT", "side"],
  22357. type: "string"
  22358. }
  22359. },
  22360. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22361. },
  22362. createFromIssue: {
  22363. deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
  22364. method: "POST",
  22365. params: {
  22366. base: {
  22367. required: true,
  22368. type: "string"
  22369. },
  22370. draft: {
  22371. type: "boolean"
  22372. },
  22373. head: {
  22374. required: true,
  22375. type: "string"
  22376. },
  22377. issue: {
  22378. required: true,
  22379. type: "integer"
  22380. },
  22381. maintainer_can_modify: {
  22382. type: "boolean"
  22383. },
  22384. owner: {
  22385. required: true,
  22386. type: "string"
  22387. },
  22388. repo: {
  22389. required: true,
  22390. type: "string"
  22391. }
  22392. },
  22393. url: "/repos/:owner/:repo/pulls"
  22394. },
  22395. createReview: {
  22396. method: "POST",
  22397. params: {
  22398. body: {
  22399. type: "string"
  22400. },
  22401. comments: {
  22402. type: "object[]"
  22403. },
  22404. "comments[].body": {
  22405. required: true,
  22406. type: "string"
  22407. },
  22408. "comments[].path": {
  22409. required: true,
  22410. type: "string"
  22411. },
  22412. "comments[].position": {
  22413. required: true,
  22414. type: "integer"
  22415. },
  22416. commit_id: {
  22417. type: "string"
  22418. },
  22419. event: {
  22420. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  22421. type: "string"
  22422. },
  22423. number: {
  22424. alias: "pull_number",
  22425. deprecated: true,
  22426. type: "integer"
  22427. },
  22428. owner: {
  22429. required: true,
  22430. type: "string"
  22431. },
  22432. pull_number: {
  22433. required: true,
  22434. type: "integer"
  22435. },
  22436. repo: {
  22437. required: true,
  22438. type: "string"
  22439. }
  22440. },
  22441. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  22442. },
  22443. createReviewCommentReply: {
  22444. method: "POST",
  22445. params: {
  22446. body: {
  22447. required: true,
  22448. type: "string"
  22449. },
  22450. comment_id: {
  22451. required: true,
  22452. type: "integer"
  22453. },
  22454. owner: {
  22455. required: true,
  22456. type: "string"
  22457. },
  22458. pull_number: {
  22459. required: true,
  22460. type: "integer"
  22461. },
  22462. repo: {
  22463. required: true,
  22464. type: "string"
  22465. }
  22466. },
  22467. url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
  22468. },
  22469. createReviewRequest: {
  22470. method: "POST",
  22471. params: {
  22472. number: {
  22473. alias: "pull_number",
  22474. deprecated: true,
  22475. type: "integer"
  22476. },
  22477. owner: {
  22478. required: true,
  22479. type: "string"
  22480. },
  22481. pull_number: {
  22482. required: true,
  22483. type: "integer"
  22484. },
  22485. repo: {
  22486. required: true,
  22487. type: "string"
  22488. },
  22489. reviewers: {
  22490. type: "string[]"
  22491. },
  22492. team_reviewers: {
  22493. type: "string[]"
  22494. }
  22495. },
  22496. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22497. },
  22498. deleteComment: {
  22499. method: "DELETE",
  22500. params: {
  22501. comment_id: {
  22502. required: true,
  22503. type: "integer"
  22504. },
  22505. owner: {
  22506. required: true,
  22507. type: "string"
  22508. },
  22509. repo: {
  22510. required: true,
  22511. type: "string"
  22512. }
  22513. },
  22514. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  22515. },
  22516. deletePendingReview: {
  22517. method: "DELETE",
  22518. params: {
  22519. number: {
  22520. alias: "pull_number",
  22521. deprecated: true,
  22522. type: "integer"
  22523. },
  22524. owner: {
  22525. required: true,
  22526. type: "string"
  22527. },
  22528. pull_number: {
  22529. required: true,
  22530. type: "integer"
  22531. },
  22532. repo: {
  22533. required: true,
  22534. type: "string"
  22535. },
  22536. review_id: {
  22537. required: true,
  22538. type: "integer"
  22539. }
  22540. },
  22541. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  22542. },
  22543. deleteReviewRequest: {
  22544. method: "DELETE",
  22545. params: {
  22546. number: {
  22547. alias: "pull_number",
  22548. deprecated: true,
  22549. type: "integer"
  22550. },
  22551. owner: {
  22552. required: true,
  22553. type: "string"
  22554. },
  22555. pull_number: {
  22556. required: true,
  22557. type: "integer"
  22558. },
  22559. repo: {
  22560. required: true,
  22561. type: "string"
  22562. },
  22563. reviewers: {
  22564. type: "string[]"
  22565. },
  22566. team_reviewers: {
  22567. type: "string[]"
  22568. }
  22569. },
  22570. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22571. },
  22572. dismissReview: {
  22573. method: "PUT",
  22574. params: {
  22575. message: {
  22576. required: true,
  22577. type: "string"
  22578. },
  22579. number: {
  22580. alias: "pull_number",
  22581. deprecated: true,
  22582. type: "integer"
  22583. },
  22584. owner: {
  22585. required: true,
  22586. type: "string"
  22587. },
  22588. pull_number: {
  22589. required: true,
  22590. type: "integer"
  22591. },
  22592. repo: {
  22593. required: true,
  22594. type: "string"
  22595. },
  22596. review_id: {
  22597. required: true,
  22598. type: "integer"
  22599. }
  22600. },
  22601. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
  22602. },
  22603. get: {
  22604. method: "GET",
  22605. params: {
  22606. number: {
  22607. alias: "pull_number",
  22608. deprecated: true,
  22609. type: "integer"
  22610. },
  22611. owner: {
  22612. required: true,
  22613. type: "string"
  22614. },
  22615. pull_number: {
  22616. required: true,
  22617. type: "integer"
  22618. },
  22619. repo: {
  22620. required: true,
  22621. type: "string"
  22622. }
  22623. },
  22624. url: "/repos/:owner/:repo/pulls/:pull_number"
  22625. },
  22626. getComment: {
  22627. method: "GET",
  22628. params: {
  22629. comment_id: {
  22630. required: true,
  22631. type: "integer"
  22632. },
  22633. owner: {
  22634. required: true,
  22635. type: "string"
  22636. },
  22637. repo: {
  22638. required: true,
  22639. type: "string"
  22640. }
  22641. },
  22642. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  22643. },
  22644. getCommentsForReview: {
  22645. method: "GET",
  22646. params: {
  22647. number: {
  22648. alias: "pull_number",
  22649. deprecated: true,
  22650. type: "integer"
  22651. },
  22652. owner: {
  22653. required: true,
  22654. type: "string"
  22655. },
  22656. page: {
  22657. type: "integer"
  22658. },
  22659. per_page: {
  22660. type: "integer"
  22661. },
  22662. pull_number: {
  22663. required: true,
  22664. type: "integer"
  22665. },
  22666. repo: {
  22667. required: true,
  22668. type: "string"
  22669. },
  22670. review_id: {
  22671. required: true,
  22672. type: "integer"
  22673. }
  22674. },
  22675. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
  22676. },
  22677. getReview: {
  22678. method: "GET",
  22679. params: {
  22680. number: {
  22681. alias: "pull_number",
  22682. deprecated: true,
  22683. type: "integer"
  22684. },
  22685. owner: {
  22686. required: true,
  22687. type: "string"
  22688. },
  22689. pull_number: {
  22690. required: true,
  22691. type: "integer"
  22692. },
  22693. repo: {
  22694. required: true,
  22695. type: "string"
  22696. },
  22697. review_id: {
  22698. required: true,
  22699. type: "integer"
  22700. }
  22701. },
  22702. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  22703. },
  22704. list: {
  22705. method: "GET",
  22706. params: {
  22707. base: {
  22708. type: "string"
  22709. },
  22710. direction: {
  22711. enum: ["asc", "desc"],
  22712. type: "string"
  22713. },
  22714. head: {
  22715. type: "string"
  22716. },
  22717. owner: {
  22718. required: true,
  22719. type: "string"
  22720. },
  22721. page: {
  22722. type: "integer"
  22723. },
  22724. per_page: {
  22725. type: "integer"
  22726. },
  22727. repo: {
  22728. required: true,
  22729. type: "string"
  22730. },
  22731. sort: {
  22732. enum: ["created", "updated", "popularity", "long-running"],
  22733. type: "string"
  22734. },
  22735. state: {
  22736. enum: ["open", "closed", "all"],
  22737. type: "string"
  22738. }
  22739. },
  22740. url: "/repos/:owner/:repo/pulls"
  22741. },
  22742. listComments: {
  22743. method: "GET",
  22744. params: {
  22745. direction: {
  22746. enum: ["asc", "desc"],
  22747. type: "string"
  22748. },
  22749. number: {
  22750. alias: "pull_number",
  22751. deprecated: true,
  22752. type: "integer"
  22753. },
  22754. owner: {
  22755. required: true,
  22756. type: "string"
  22757. },
  22758. page: {
  22759. type: "integer"
  22760. },
  22761. per_page: {
  22762. type: "integer"
  22763. },
  22764. pull_number: {
  22765. required: true,
  22766. type: "integer"
  22767. },
  22768. repo: {
  22769. required: true,
  22770. type: "string"
  22771. },
  22772. since: {
  22773. type: "string"
  22774. },
  22775. sort: {
  22776. enum: ["created", "updated"],
  22777. type: "string"
  22778. }
  22779. },
  22780. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22781. },
  22782. listCommentsForRepo: {
  22783. method: "GET",
  22784. params: {
  22785. direction: {
  22786. enum: ["asc", "desc"],
  22787. type: "string"
  22788. },
  22789. owner: {
  22790. required: true,
  22791. type: "string"
  22792. },
  22793. page: {
  22794. type: "integer"
  22795. },
  22796. per_page: {
  22797. type: "integer"
  22798. },
  22799. repo: {
  22800. required: true,
  22801. type: "string"
  22802. },
  22803. since: {
  22804. type: "string"
  22805. },
  22806. sort: {
  22807. enum: ["created", "updated"],
  22808. type: "string"
  22809. }
  22810. },
  22811. url: "/repos/:owner/:repo/pulls/comments"
  22812. },
  22813. listCommits: {
  22814. method: "GET",
  22815. params: {
  22816. number: {
  22817. alias: "pull_number",
  22818. deprecated: true,
  22819. type: "integer"
  22820. },
  22821. owner: {
  22822. required: true,
  22823. type: "string"
  22824. },
  22825. page: {
  22826. type: "integer"
  22827. },
  22828. per_page: {
  22829. type: "integer"
  22830. },
  22831. pull_number: {
  22832. required: true,
  22833. type: "integer"
  22834. },
  22835. repo: {
  22836. required: true,
  22837. type: "string"
  22838. }
  22839. },
  22840. url: "/repos/:owner/:repo/pulls/:pull_number/commits"
  22841. },
  22842. listFiles: {
  22843. method: "GET",
  22844. params: {
  22845. number: {
  22846. alias: "pull_number",
  22847. deprecated: true,
  22848. type: "integer"
  22849. },
  22850. owner: {
  22851. required: true,
  22852. type: "string"
  22853. },
  22854. page: {
  22855. type: "integer"
  22856. },
  22857. per_page: {
  22858. type: "integer"
  22859. },
  22860. pull_number: {
  22861. required: true,
  22862. type: "integer"
  22863. },
  22864. repo: {
  22865. required: true,
  22866. type: "string"
  22867. }
  22868. },
  22869. url: "/repos/:owner/:repo/pulls/:pull_number/files"
  22870. },
  22871. listReviewRequests: {
  22872. method: "GET",
  22873. params: {
  22874. number: {
  22875. alias: "pull_number",
  22876. deprecated: true,
  22877. type: "integer"
  22878. },
  22879. owner: {
  22880. required: true,
  22881. type: "string"
  22882. },
  22883. page: {
  22884. type: "integer"
  22885. },
  22886. per_page: {
  22887. type: "integer"
  22888. },
  22889. pull_number: {
  22890. required: true,
  22891. type: "integer"
  22892. },
  22893. repo: {
  22894. required: true,
  22895. type: "string"
  22896. }
  22897. },
  22898. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22899. },
  22900. listReviews: {
  22901. method: "GET",
  22902. params: {
  22903. number: {
  22904. alias: "pull_number",
  22905. deprecated: true,
  22906. type: "integer"
  22907. },
  22908. owner: {
  22909. required: true,
  22910. type: "string"
  22911. },
  22912. page: {
  22913. type: "integer"
  22914. },
  22915. per_page: {
  22916. type: "integer"
  22917. },
  22918. pull_number: {
  22919. required: true,
  22920. type: "integer"
  22921. },
  22922. repo: {
  22923. required: true,
  22924. type: "string"
  22925. }
  22926. },
  22927. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  22928. },
  22929. merge: {
  22930. method: "PUT",
  22931. params: {
  22932. commit_message: {
  22933. type: "string"
  22934. },
  22935. commit_title: {
  22936. type: "string"
  22937. },
  22938. merge_method: {
  22939. enum: ["merge", "squash", "rebase"],
  22940. type: "string"
  22941. },
  22942. number: {
  22943. alias: "pull_number",
  22944. deprecated: true,
  22945. type: "integer"
  22946. },
  22947. owner: {
  22948. required: true,
  22949. type: "string"
  22950. },
  22951. pull_number: {
  22952. required: true,
  22953. type: "integer"
  22954. },
  22955. repo: {
  22956. required: true,
  22957. type: "string"
  22958. },
  22959. sha: {
  22960. type: "string"
  22961. }
  22962. },
  22963. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  22964. },
  22965. submitReview: {
  22966. method: "POST",
  22967. params: {
  22968. body: {
  22969. type: "string"
  22970. },
  22971. event: {
  22972. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  22973. required: true,
  22974. type: "string"
  22975. },
  22976. number: {
  22977. alias: "pull_number",
  22978. deprecated: true,
  22979. type: "integer"
  22980. },
  22981. owner: {
  22982. required: true,
  22983. type: "string"
  22984. },
  22985. pull_number: {
  22986. required: true,
  22987. type: "integer"
  22988. },
  22989. repo: {
  22990. required: true,
  22991. type: "string"
  22992. },
  22993. review_id: {
  22994. required: true,
  22995. type: "integer"
  22996. }
  22997. },
  22998. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
  22999. },
  23000. update: {
  23001. method: "PATCH",
  23002. params: {
  23003. base: {
  23004. type: "string"
  23005. },
  23006. body: {
  23007. type: "string"
  23008. },
  23009. maintainer_can_modify: {
  23010. type: "boolean"
  23011. },
  23012. number: {
  23013. alias: "pull_number",
  23014. deprecated: true,
  23015. type: "integer"
  23016. },
  23017. owner: {
  23018. required: true,
  23019. type: "string"
  23020. },
  23021. pull_number: {
  23022. required: true,
  23023. type: "integer"
  23024. },
  23025. repo: {
  23026. required: true,
  23027. type: "string"
  23028. },
  23029. state: {
  23030. enum: ["open", "closed"],
  23031. type: "string"
  23032. },
  23033. title: {
  23034. type: "string"
  23035. }
  23036. },
  23037. url: "/repos/:owner/:repo/pulls/:pull_number"
  23038. },
  23039. updateBranch: {
  23040. headers: {
  23041. accept: "application/vnd.github.lydian-preview+json"
  23042. },
  23043. method: "PUT",
  23044. params: {
  23045. expected_head_sha: {
  23046. type: "string"
  23047. },
  23048. owner: {
  23049. required: true,
  23050. type: "string"
  23051. },
  23052. pull_number: {
  23053. required: true,
  23054. type: "integer"
  23055. },
  23056. repo: {
  23057. required: true,
  23058. type: "string"
  23059. }
  23060. },
  23061. url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
  23062. },
  23063. updateComment: {
  23064. method: "PATCH",
  23065. params: {
  23066. body: {
  23067. required: true,
  23068. type: "string"
  23069. },
  23070. comment_id: {
  23071. required: true,
  23072. type: "integer"
  23073. },
  23074. owner: {
  23075. required: true,
  23076. type: "string"
  23077. },
  23078. repo: {
  23079. required: true,
  23080. type: "string"
  23081. }
  23082. },
  23083. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  23084. },
  23085. updateReview: {
  23086. method: "PUT",
  23087. params: {
  23088. body: {
  23089. required: true,
  23090. type: "string"
  23091. },
  23092. number: {
  23093. alias: "pull_number",
  23094. deprecated: true,
  23095. type: "integer"
  23096. },
  23097. owner: {
  23098. required: true,
  23099. type: "string"
  23100. },
  23101. pull_number: {
  23102. required: true,
  23103. type: "integer"
  23104. },
  23105. repo: {
  23106. required: true,
  23107. type: "string"
  23108. },
  23109. review_id: {
  23110. required: true,
  23111. type: "integer"
  23112. }
  23113. },
  23114. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  23115. }
  23116. },
  23117. rateLimit: {
  23118. get: {
  23119. method: "GET",
  23120. params: {},
  23121. url: "/rate_limit"
  23122. }
  23123. },
  23124. reactions: {
  23125. createForCommitComment: {
  23126. headers: {
  23127. accept: "application/vnd.github.squirrel-girl-preview+json"
  23128. },
  23129. method: "POST",
  23130. params: {
  23131. comment_id: {
  23132. required: true,
  23133. type: "integer"
  23134. },
  23135. content: {
  23136. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23137. required: true,
  23138. type: "string"
  23139. },
  23140. owner: {
  23141. required: true,
  23142. type: "string"
  23143. },
  23144. repo: {
  23145. required: true,
  23146. type: "string"
  23147. }
  23148. },
  23149. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  23150. },
  23151. createForIssue: {
  23152. headers: {
  23153. accept: "application/vnd.github.squirrel-girl-preview+json"
  23154. },
  23155. method: "POST",
  23156. params: {
  23157. content: {
  23158. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23159. required: true,
  23160. type: "string"
  23161. },
  23162. issue_number: {
  23163. required: true,
  23164. type: "integer"
  23165. },
  23166. number: {
  23167. alias: "issue_number",
  23168. deprecated: true,
  23169. type: "integer"
  23170. },
  23171. owner: {
  23172. required: true,
  23173. type: "string"
  23174. },
  23175. repo: {
  23176. required: true,
  23177. type: "string"
  23178. }
  23179. },
  23180. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  23181. },
  23182. createForIssueComment: {
  23183. headers: {
  23184. accept: "application/vnd.github.squirrel-girl-preview+json"
  23185. },
  23186. method: "POST",
  23187. params: {
  23188. comment_id: {
  23189. required: true,
  23190. type: "integer"
  23191. },
  23192. content: {
  23193. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23194. required: true,
  23195. type: "string"
  23196. },
  23197. owner: {
  23198. required: true,
  23199. type: "string"
  23200. },
  23201. repo: {
  23202. required: true,
  23203. type: "string"
  23204. }
  23205. },
  23206. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  23207. },
  23208. createForPullRequestReviewComment: {
  23209. headers: {
  23210. accept: "application/vnd.github.squirrel-girl-preview+json"
  23211. },
  23212. method: "POST",
  23213. params: {
  23214. comment_id: {
  23215. required: true,
  23216. type: "integer"
  23217. },
  23218. content: {
  23219. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23220. required: true,
  23221. type: "string"
  23222. },
  23223. owner: {
  23224. required: true,
  23225. type: "string"
  23226. },
  23227. repo: {
  23228. required: true,
  23229. type: "string"
  23230. }
  23231. },
  23232. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  23233. },
  23234. createForTeamDiscussion: {
  23235. deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
  23236. headers: {
  23237. accept: "application/vnd.github.squirrel-girl-preview+json"
  23238. },
  23239. method: "POST",
  23240. params: {
  23241. content: {
  23242. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23243. required: true,
  23244. type: "string"
  23245. },
  23246. discussion_number: {
  23247. required: true,
  23248. type: "integer"
  23249. },
  23250. team_id: {
  23251. required: true,
  23252. type: "integer"
  23253. }
  23254. },
  23255. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23256. },
  23257. createForTeamDiscussionComment: {
  23258. deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
  23259. headers: {
  23260. accept: "application/vnd.github.squirrel-girl-preview+json"
  23261. },
  23262. method: "POST",
  23263. params: {
  23264. comment_number: {
  23265. required: true,
  23266. type: "integer"
  23267. },
  23268. content: {
  23269. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23270. required: true,
  23271. type: "string"
  23272. },
  23273. discussion_number: {
  23274. required: true,
  23275. type: "integer"
  23276. },
  23277. team_id: {
  23278. required: true,
  23279. type: "integer"
  23280. }
  23281. },
  23282. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23283. },
  23284. createForTeamDiscussionCommentInOrg: {
  23285. headers: {
  23286. accept: "application/vnd.github.squirrel-girl-preview+json"
  23287. },
  23288. method: "POST",
  23289. params: {
  23290. comment_number: {
  23291. required: true,
  23292. type: "integer"
  23293. },
  23294. content: {
  23295. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23296. required: true,
  23297. type: "string"
  23298. },
  23299. discussion_number: {
  23300. required: true,
  23301. type: "integer"
  23302. },
  23303. org: {
  23304. required: true,
  23305. type: "string"
  23306. },
  23307. team_slug: {
  23308. required: true,
  23309. type: "string"
  23310. }
  23311. },
  23312. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  23313. },
  23314. createForTeamDiscussionCommentLegacy: {
  23315. deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
  23316. headers: {
  23317. accept: "application/vnd.github.squirrel-girl-preview+json"
  23318. },
  23319. method: "POST",
  23320. params: {
  23321. comment_number: {
  23322. required: true,
  23323. type: "integer"
  23324. },
  23325. content: {
  23326. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23327. required: true,
  23328. type: "string"
  23329. },
  23330. discussion_number: {
  23331. required: true,
  23332. type: "integer"
  23333. },
  23334. team_id: {
  23335. required: true,
  23336. type: "integer"
  23337. }
  23338. },
  23339. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23340. },
  23341. createForTeamDiscussionInOrg: {
  23342. headers: {
  23343. accept: "application/vnd.github.squirrel-girl-preview+json"
  23344. },
  23345. method: "POST",
  23346. params: {
  23347. content: {
  23348. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23349. required: true,
  23350. type: "string"
  23351. },
  23352. discussion_number: {
  23353. required: true,
  23354. type: "integer"
  23355. },
  23356. org: {
  23357. required: true,
  23358. type: "string"
  23359. },
  23360. team_slug: {
  23361. required: true,
  23362. type: "string"
  23363. }
  23364. },
  23365. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  23366. },
  23367. createForTeamDiscussionLegacy: {
  23368. deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
  23369. headers: {
  23370. accept: "application/vnd.github.squirrel-girl-preview+json"
  23371. },
  23372. method: "POST",
  23373. params: {
  23374. content: {
  23375. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23376. required: true,
  23377. type: "string"
  23378. },
  23379. discussion_number: {
  23380. required: true,
  23381. type: "integer"
  23382. },
  23383. team_id: {
  23384. required: true,
  23385. type: "integer"
  23386. }
  23387. },
  23388. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23389. },
  23390. delete: {
  23391. headers: {
  23392. accept: "application/vnd.github.squirrel-girl-preview+json"
  23393. },
  23394. method: "DELETE",
  23395. params: {
  23396. reaction_id: {
  23397. required: true,
  23398. type: "integer"
  23399. }
  23400. },
  23401. url: "/reactions/:reaction_id"
  23402. },
  23403. listForCommitComment: {
  23404. headers: {
  23405. accept: "application/vnd.github.squirrel-girl-preview+json"
  23406. },
  23407. method: "GET",
  23408. params: {
  23409. comment_id: {
  23410. required: true,
  23411. type: "integer"
  23412. },
  23413. content: {
  23414. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23415. type: "string"
  23416. },
  23417. owner: {
  23418. required: true,
  23419. type: "string"
  23420. },
  23421. page: {
  23422. type: "integer"
  23423. },
  23424. per_page: {
  23425. type: "integer"
  23426. },
  23427. repo: {
  23428. required: true,
  23429. type: "string"
  23430. }
  23431. },
  23432. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  23433. },
  23434. listForIssue: {
  23435. headers: {
  23436. accept: "application/vnd.github.squirrel-girl-preview+json"
  23437. },
  23438. method: "GET",
  23439. params: {
  23440. content: {
  23441. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23442. type: "string"
  23443. },
  23444. issue_number: {
  23445. required: true,
  23446. type: "integer"
  23447. },
  23448. number: {
  23449. alias: "issue_number",
  23450. deprecated: true,
  23451. type: "integer"
  23452. },
  23453. owner: {
  23454. required: true,
  23455. type: "string"
  23456. },
  23457. page: {
  23458. type: "integer"
  23459. },
  23460. per_page: {
  23461. type: "integer"
  23462. },
  23463. repo: {
  23464. required: true,
  23465. type: "string"
  23466. }
  23467. },
  23468. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  23469. },
  23470. listForIssueComment: {
  23471. headers: {
  23472. accept: "application/vnd.github.squirrel-girl-preview+json"
  23473. },
  23474. method: "GET",
  23475. params: {
  23476. comment_id: {
  23477. required: true,
  23478. type: "integer"
  23479. },
  23480. content: {
  23481. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23482. type: "string"
  23483. },
  23484. owner: {
  23485. required: true,
  23486. type: "string"
  23487. },
  23488. page: {
  23489. type: "integer"
  23490. },
  23491. per_page: {
  23492. type: "integer"
  23493. },
  23494. repo: {
  23495. required: true,
  23496. type: "string"
  23497. }
  23498. },
  23499. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  23500. },
  23501. listForPullRequestReviewComment: {
  23502. headers: {
  23503. accept: "application/vnd.github.squirrel-girl-preview+json"
  23504. },
  23505. method: "GET",
  23506. params: {
  23507. comment_id: {
  23508. required: true,
  23509. type: "integer"
  23510. },
  23511. content: {
  23512. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23513. type: "string"
  23514. },
  23515. owner: {
  23516. required: true,
  23517. type: "string"
  23518. },
  23519. page: {
  23520. type: "integer"
  23521. },
  23522. per_page: {
  23523. type: "integer"
  23524. },
  23525. repo: {
  23526. required: true,
  23527. type: "string"
  23528. }
  23529. },
  23530. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  23531. },
  23532. listForTeamDiscussion: {
  23533. deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
  23534. headers: {
  23535. accept: "application/vnd.github.squirrel-girl-preview+json"
  23536. },
  23537. method: "GET",
  23538. params: {
  23539. content: {
  23540. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23541. type: "string"
  23542. },
  23543. discussion_number: {
  23544. required: true,
  23545. type: "integer"
  23546. },
  23547. page: {
  23548. type: "integer"
  23549. },
  23550. per_page: {
  23551. type: "integer"
  23552. },
  23553. team_id: {
  23554. required: true,
  23555. type: "integer"
  23556. }
  23557. },
  23558. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23559. },
  23560. listForTeamDiscussionComment: {
  23561. deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
  23562. headers: {
  23563. accept: "application/vnd.github.squirrel-girl-preview+json"
  23564. },
  23565. method: "GET",
  23566. params: {
  23567. comment_number: {
  23568. required: true,
  23569. type: "integer"
  23570. },
  23571. content: {
  23572. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23573. type: "string"
  23574. },
  23575. discussion_number: {
  23576. required: true,
  23577. type: "integer"
  23578. },
  23579. page: {
  23580. type: "integer"
  23581. },
  23582. per_page: {
  23583. type: "integer"
  23584. },
  23585. team_id: {
  23586. required: true,
  23587. type: "integer"
  23588. }
  23589. },
  23590. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23591. },
  23592. listForTeamDiscussionCommentInOrg: {
  23593. headers: {
  23594. accept: "application/vnd.github.squirrel-girl-preview+json"
  23595. },
  23596. method: "GET",
  23597. params: {
  23598. comment_number: {
  23599. required: true,
  23600. type: "integer"
  23601. },
  23602. content: {
  23603. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23604. type: "string"
  23605. },
  23606. discussion_number: {
  23607. required: true,
  23608. type: "integer"
  23609. },
  23610. org: {
  23611. required: true,
  23612. type: "string"
  23613. },
  23614. page: {
  23615. type: "integer"
  23616. },
  23617. per_page: {
  23618. type: "integer"
  23619. },
  23620. team_slug: {
  23621. required: true,
  23622. type: "string"
  23623. }
  23624. },
  23625. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  23626. },
  23627. listForTeamDiscussionCommentLegacy: {
  23628. deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
  23629. headers: {
  23630. accept: "application/vnd.github.squirrel-girl-preview+json"
  23631. },
  23632. method: "GET",
  23633. params: {
  23634. comment_number: {
  23635. required: true,
  23636. type: "integer"
  23637. },
  23638. content: {
  23639. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23640. type: "string"
  23641. },
  23642. discussion_number: {
  23643. required: true,
  23644. type: "integer"
  23645. },
  23646. page: {
  23647. type: "integer"
  23648. },
  23649. per_page: {
  23650. type: "integer"
  23651. },
  23652. team_id: {
  23653. required: true,
  23654. type: "integer"
  23655. }
  23656. },
  23657. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23658. },
  23659. listForTeamDiscussionInOrg: {
  23660. headers: {
  23661. accept: "application/vnd.github.squirrel-girl-preview+json"
  23662. },
  23663. method: "GET",
  23664. params: {
  23665. content: {
  23666. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23667. type: "string"
  23668. },
  23669. discussion_number: {
  23670. required: true,
  23671. type: "integer"
  23672. },
  23673. org: {
  23674. required: true,
  23675. type: "string"
  23676. },
  23677. page: {
  23678. type: "integer"
  23679. },
  23680. per_page: {
  23681. type: "integer"
  23682. },
  23683. team_slug: {
  23684. required: true,
  23685. type: "string"
  23686. }
  23687. },
  23688. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  23689. },
  23690. listForTeamDiscussionLegacy: {
  23691. deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
  23692. headers: {
  23693. accept: "application/vnd.github.squirrel-girl-preview+json"
  23694. },
  23695. method: "GET",
  23696. params: {
  23697. content: {
  23698. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23699. type: "string"
  23700. },
  23701. discussion_number: {
  23702. required: true,
  23703. type: "integer"
  23704. },
  23705. page: {
  23706. type: "integer"
  23707. },
  23708. per_page: {
  23709. type: "integer"
  23710. },
  23711. team_id: {
  23712. required: true,
  23713. type: "integer"
  23714. }
  23715. },
  23716. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23717. }
  23718. },
  23719. repos: {
  23720. acceptInvitation: {
  23721. method: "PATCH",
  23722. params: {
  23723. invitation_id: {
  23724. required: true,
  23725. type: "integer"
  23726. }
  23727. },
  23728. url: "/user/repository_invitations/:invitation_id"
  23729. },
  23730. addCollaborator: {
  23731. method: "PUT",
  23732. params: {
  23733. owner: {
  23734. required: true,
  23735. type: "string"
  23736. },
  23737. permission: {
  23738. enum: ["pull", "push", "admin"],
  23739. type: "string"
  23740. },
  23741. repo: {
  23742. required: true,
  23743. type: "string"
  23744. },
  23745. username: {
  23746. required: true,
  23747. type: "string"
  23748. }
  23749. },
  23750. url: "/repos/:owner/:repo/collaborators/:username"
  23751. },
  23752. addDeployKey: {
  23753. method: "POST",
  23754. params: {
  23755. key: {
  23756. required: true,
  23757. type: "string"
  23758. },
  23759. owner: {
  23760. required: true,
  23761. type: "string"
  23762. },
  23763. read_only: {
  23764. type: "boolean"
  23765. },
  23766. repo: {
  23767. required: true,
  23768. type: "string"
  23769. },
  23770. title: {
  23771. type: "string"
  23772. }
  23773. },
  23774. url: "/repos/:owner/:repo/keys"
  23775. },
  23776. addProtectedBranchAdminEnforcement: {
  23777. method: "POST",
  23778. params: {
  23779. branch: {
  23780. required: true,
  23781. type: "string"
  23782. },
  23783. owner: {
  23784. required: true,
  23785. type: "string"
  23786. },
  23787. repo: {
  23788. required: true,
  23789. type: "string"
  23790. }
  23791. },
  23792. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  23793. },
  23794. addProtectedBranchAppRestrictions: {
  23795. method: "POST",
  23796. params: {
  23797. apps: {
  23798. mapTo: "data",
  23799. required: true,
  23800. type: "string[]"
  23801. },
  23802. branch: {
  23803. required: true,
  23804. type: "string"
  23805. },
  23806. owner: {
  23807. required: true,
  23808. type: "string"
  23809. },
  23810. repo: {
  23811. required: true,
  23812. type: "string"
  23813. }
  23814. },
  23815. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  23816. },
  23817. addProtectedBranchRequiredSignatures: {
  23818. headers: {
  23819. accept: "application/vnd.github.zzzax-preview+json"
  23820. },
  23821. method: "POST",
  23822. params: {
  23823. branch: {
  23824. required: true,
  23825. type: "string"
  23826. },
  23827. owner: {
  23828. required: true,
  23829. type: "string"
  23830. },
  23831. repo: {
  23832. required: true,
  23833. type: "string"
  23834. }
  23835. },
  23836. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  23837. },
  23838. addProtectedBranchRequiredStatusChecksContexts: {
  23839. method: "POST",
  23840. params: {
  23841. branch: {
  23842. required: true,
  23843. type: "string"
  23844. },
  23845. contexts: {
  23846. mapTo: "data",
  23847. required: true,
  23848. type: "string[]"
  23849. },
  23850. owner: {
  23851. required: true,
  23852. type: "string"
  23853. },
  23854. repo: {
  23855. required: true,
  23856. type: "string"
  23857. }
  23858. },
  23859. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  23860. },
  23861. addProtectedBranchTeamRestrictions: {
  23862. method: "POST",
  23863. params: {
  23864. branch: {
  23865. required: true,
  23866. type: "string"
  23867. },
  23868. owner: {
  23869. required: true,
  23870. type: "string"
  23871. },
  23872. repo: {
  23873. required: true,
  23874. type: "string"
  23875. },
  23876. teams: {
  23877. mapTo: "data",
  23878. required: true,
  23879. type: "string[]"
  23880. }
  23881. },
  23882. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  23883. },
  23884. addProtectedBranchUserRestrictions: {
  23885. method: "POST",
  23886. params: {
  23887. branch: {
  23888. required: true,
  23889. type: "string"
  23890. },
  23891. owner: {
  23892. required: true,
  23893. type: "string"
  23894. },
  23895. repo: {
  23896. required: true,
  23897. type: "string"
  23898. },
  23899. users: {
  23900. mapTo: "data",
  23901. required: true,
  23902. type: "string[]"
  23903. }
  23904. },
  23905. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  23906. },
  23907. checkCollaborator: {
  23908. method: "GET",
  23909. params: {
  23910. owner: {
  23911. required: true,
  23912. type: "string"
  23913. },
  23914. repo: {
  23915. required: true,
  23916. type: "string"
  23917. },
  23918. username: {
  23919. required: true,
  23920. type: "string"
  23921. }
  23922. },
  23923. url: "/repos/:owner/:repo/collaborators/:username"
  23924. },
  23925. checkVulnerabilityAlerts: {
  23926. headers: {
  23927. accept: "application/vnd.github.dorian-preview+json"
  23928. },
  23929. method: "GET",
  23930. params: {
  23931. owner: {
  23932. required: true,
  23933. type: "string"
  23934. },
  23935. repo: {
  23936. required: true,
  23937. type: "string"
  23938. }
  23939. },
  23940. url: "/repos/:owner/:repo/vulnerability-alerts"
  23941. },
  23942. compareCommits: {
  23943. method: "GET",
  23944. params: {
  23945. base: {
  23946. required: true,
  23947. type: "string"
  23948. },
  23949. head: {
  23950. required: true,
  23951. type: "string"
  23952. },
  23953. owner: {
  23954. required: true,
  23955. type: "string"
  23956. },
  23957. repo: {
  23958. required: true,
  23959. type: "string"
  23960. }
  23961. },
  23962. url: "/repos/:owner/:repo/compare/:base...:head"
  23963. },
  23964. createCommitComment: {
  23965. method: "POST",
  23966. params: {
  23967. body: {
  23968. required: true,
  23969. type: "string"
  23970. },
  23971. commit_sha: {
  23972. required: true,
  23973. type: "string"
  23974. },
  23975. line: {
  23976. type: "integer"
  23977. },
  23978. owner: {
  23979. required: true,
  23980. type: "string"
  23981. },
  23982. path: {
  23983. type: "string"
  23984. },
  23985. position: {
  23986. type: "integer"
  23987. },
  23988. repo: {
  23989. required: true,
  23990. type: "string"
  23991. },
  23992. sha: {
  23993. alias: "commit_sha",
  23994. deprecated: true,
  23995. type: "string"
  23996. }
  23997. },
  23998. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  23999. },
  24000. createDeployment: {
  24001. method: "POST",
  24002. params: {
  24003. auto_merge: {
  24004. type: "boolean"
  24005. },
  24006. description: {
  24007. type: "string"
  24008. },
  24009. environment: {
  24010. type: "string"
  24011. },
  24012. owner: {
  24013. required: true,
  24014. type: "string"
  24015. },
  24016. payload: {
  24017. type: "string"
  24018. },
  24019. production_environment: {
  24020. type: "boolean"
  24021. },
  24022. ref: {
  24023. required: true,
  24024. type: "string"
  24025. },
  24026. repo: {
  24027. required: true,
  24028. type: "string"
  24029. },
  24030. required_contexts: {
  24031. type: "string[]"
  24032. },
  24033. task: {
  24034. type: "string"
  24035. },
  24036. transient_environment: {
  24037. type: "boolean"
  24038. }
  24039. },
  24040. url: "/repos/:owner/:repo/deployments"
  24041. },
  24042. createDeploymentStatus: {
  24043. method: "POST",
  24044. params: {
  24045. auto_inactive: {
  24046. type: "boolean"
  24047. },
  24048. deployment_id: {
  24049. required: true,
  24050. type: "integer"
  24051. },
  24052. description: {
  24053. type: "string"
  24054. },
  24055. environment: {
  24056. enum: ["production", "staging", "qa"],
  24057. type: "string"
  24058. },
  24059. environment_url: {
  24060. type: "string"
  24061. },
  24062. log_url: {
  24063. type: "string"
  24064. },
  24065. owner: {
  24066. required: true,
  24067. type: "string"
  24068. },
  24069. repo: {
  24070. required: true,
  24071. type: "string"
  24072. },
  24073. state: {
  24074. enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
  24075. required: true,
  24076. type: "string"
  24077. },
  24078. target_url: {
  24079. type: "string"
  24080. }
  24081. },
  24082. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  24083. },
  24084. createDispatchEvent: {
  24085. method: "POST",
  24086. params: {
  24087. client_payload: {
  24088. type: "object"
  24089. },
  24090. event_type: {
  24091. type: "string"
  24092. },
  24093. owner: {
  24094. required: true,
  24095. type: "string"
  24096. },
  24097. repo: {
  24098. required: true,
  24099. type: "string"
  24100. }
  24101. },
  24102. url: "/repos/:owner/:repo/dispatches"
  24103. },
  24104. createFile: {
  24105. deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  24106. method: "PUT",
  24107. params: {
  24108. author: {
  24109. type: "object"
  24110. },
  24111. "author.email": {
  24112. required: true,
  24113. type: "string"
  24114. },
  24115. "author.name": {
  24116. required: true,
  24117. type: "string"
  24118. },
  24119. branch: {
  24120. type: "string"
  24121. },
  24122. committer: {
  24123. type: "object"
  24124. },
  24125. "committer.email": {
  24126. required: true,
  24127. type: "string"
  24128. },
  24129. "committer.name": {
  24130. required: true,
  24131. type: "string"
  24132. },
  24133. content: {
  24134. required: true,
  24135. type: "string"
  24136. },
  24137. message: {
  24138. required: true,
  24139. type: "string"
  24140. },
  24141. owner: {
  24142. required: true,
  24143. type: "string"
  24144. },
  24145. path: {
  24146. required: true,
  24147. type: "string"
  24148. },
  24149. repo: {
  24150. required: true,
  24151. type: "string"
  24152. },
  24153. sha: {
  24154. type: "string"
  24155. }
  24156. },
  24157. url: "/repos/:owner/:repo/contents/:path"
  24158. },
  24159. createForAuthenticatedUser: {
  24160. method: "POST",
  24161. params: {
  24162. allow_merge_commit: {
  24163. type: "boolean"
  24164. },
  24165. allow_rebase_merge: {
  24166. type: "boolean"
  24167. },
  24168. allow_squash_merge: {
  24169. type: "boolean"
  24170. },
  24171. auto_init: {
  24172. type: "boolean"
  24173. },
  24174. delete_branch_on_merge: {
  24175. type: "boolean"
  24176. },
  24177. description: {
  24178. type: "string"
  24179. },
  24180. gitignore_template: {
  24181. type: "string"
  24182. },
  24183. has_issues: {
  24184. type: "boolean"
  24185. },
  24186. has_projects: {
  24187. type: "boolean"
  24188. },
  24189. has_wiki: {
  24190. type: "boolean"
  24191. },
  24192. homepage: {
  24193. type: "string"
  24194. },
  24195. is_template: {
  24196. type: "boolean"
  24197. },
  24198. license_template: {
  24199. type: "string"
  24200. },
  24201. name: {
  24202. required: true,
  24203. type: "string"
  24204. },
  24205. private: {
  24206. type: "boolean"
  24207. },
  24208. team_id: {
  24209. type: "integer"
  24210. },
  24211. visibility: {
  24212. enum: ["public", "private", "visibility", "internal"],
  24213. type: "string"
  24214. }
  24215. },
  24216. url: "/user/repos"
  24217. },
  24218. createFork: {
  24219. method: "POST",
  24220. params: {
  24221. organization: {
  24222. type: "string"
  24223. },
  24224. owner: {
  24225. required: true,
  24226. type: "string"
  24227. },
  24228. repo: {
  24229. required: true,
  24230. type: "string"
  24231. }
  24232. },
  24233. url: "/repos/:owner/:repo/forks"
  24234. },
  24235. createHook: {
  24236. method: "POST",
  24237. params: {
  24238. active: {
  24239. type: "boolean"
  24240. },
  24241. config: {
  24242. required: true,
  24243. type: "object"
  24244. },
  24245. "config.content_type": {
  24246. type: "string"
  24247. },
  24248. "config.insecure_ssl": {
  24249. type: "string"
  24250. },
  24251. "config.secret": {
  24252. type: "string"
  24253. },
  24254. "config.url": {
  24255. required: true,
  24256. type: "string"
  24257. },
  24258. events: {
  24259. type: "string[]"
  24260. },
  24261. name: {
  24262. type: "string"
  24263. },
  24264. owner: {
  24265. required: true,
  24266. type: "string"
  24267. },
  24268. repo: {
  24269. required: true,
  24270. type: "string"
  24271. }
  24272. },
  24273. url: "/repos/:owner/:repo/hooks"
  24274. },
  24275. createInOrg: {
  24276. method: "POST",
  24277. params: {
  24278. allow_merge_commit: {
  24279. type: "boolean"
  24280. },
  24281. allow_rebase_merge: {
  24282. type: "boolean"
  24283. },
  24284. allow_squash_merge: {
  24285. type: "boolean"
  24286. },
  24287. auto_init: {
  24288. type: "boolean"
  24289. },
  24290. delete_branch_on_merge: {
  24291. type: "boolean"
  24292. },
  24293. description: {
  24294. type: "string"
  24295. },
  24296. gitignore_template: {
  24297. type: "string"
  24298. },
  24299. has_issues: {
  24300. type: "boolean"
  24301. },
  24302. has_projects: {
  24303. type: "boolean"
  24304. },
  24305. has_wiki: {
  24306. type: "boolean"
  24307. },
  24308. homepage: {
  24309. type: "string"
  24310. },
  24311. is_template: {
  24312. type: "boolean"
  24313. },
  24314. license_template: {
  24315. type: "string"
  24316. },
  24317. name: {
  24318. required: true,
  24319. type: "string"
  24320. },
  24321. org: {
  24322. required: true,
  24323. type: "string"
  24324. },
  24325. private: {
  24326. type: "boolean"
  24327. },
  24328. team_id: {
  24329. type: "integer"
  24330. },
  24331. visibility: {
  24332. enum: ["public", "private", "visibility", "internal"],
  24333. type: "string"
  24334. }
  24335. },
  24336. url: "/orgs/:org/repos"
  24337. },
  24338. createOrUpdateFile: {
  24339. method: "PUT",
  24340. params: {
  24341. author: {
  24342. type: "object"
  24343. },
  24344. "author.email": {
  24345. required: true,
  24346. type: "string"
  24347. },
  24348. "author.name": {
  24349. required: true,
  24350. type: "string"
  24351. },
  24352. branch: {
  24353. type: "string"
  24354. },
  24355. committer: {
  24356. type: "object"
  24357. },
  24358. "committer.email": {
  24359. required: true,
  24360. type: "string"
  24361. },
  24362. "committer.name": {
  24363. required: true,
  24364. type: "string"
  24365. },
  24366. content: {
  24367. required: true,
  24368. type: "string"
  24369. },
  24370. message: {
  24371. required: true,
  24372. type: "string"
  24373. },
  24374. owner: {
  24375. required: true,
  24376. type: "string"
  24377. },
  24378. path: {
  24379. required: true,
  24380. type: "string"
  24381. },
  24382. repo: {
  24383. required: true,
  24384. type: "string"
  24385. },
  24386. sha: {
  24387. type: "string"
  24388. }
  24389. },
  24390. url: "/repos/:owner/:repo/contents/:path"
  24391. },
  24392. createRelease: {
  24393. method: "POST",
  24394. params: {
  24395. body: {
  24396. type: "string"
  24397. },
  24398. draft: {
  24399. type: "boolean"
  24400. },
  24401. name: {
  24402. type: "string"
  24403. },
  24404. owner: {
  24405. required: true,
  24406. type: "string"
  24407. },
  24408. prerelease: {
  24409. type: "boolean"
  24410. },
  24411. repo: {
  24412. required: true,
  24413. type: "string"
  24414. },
  24415. tag_name: {
  24416. required: true,
  24417. type: "string"
  24418. },
  24419. target_commitish: {
  24420. type: "string"
  24421. }
  24422. },
  24423. url: "/repos/:owner/:repo/releases"
  24424. },
  24425. createStatus: {
  24426. method: "POST",
  24427. params: {
  24428. context: {
  24429. type: "string"
  24430. },
  24431. description: {
  24432. type: "string"
  24433. },
  24434. owner: {
  24435. required: true,
  24436. type: "string"
  24437. },
  24438. repo: {
  24439. required: true,
  24440. type: "string"
  24441. },
  24442. sha: {
  24443. required: true,
  24444. type: "string"
  24445. },
  24446. state: {
  24447. enum: ["error", "failure", "pending", "success"],
  24448. required: true,
  24449. type: "string"
  24450. },
  24451. target_url: {
  24452. type: "string"
  24453. }
  24454. },
  24455. url: "/repos/:owner/:repo/statuses/:sha"
  24456. },
  24457. createUsingTemplate: {
  24458. headers: {
  24459. accept: "application/vnd.github.baptiste-preview+json"
  24460. },
  24461. method: "POST",
  24462. params: {
  24463. description: {
  24464. type: "string"
  24465. },
  24466. name: {
  24467. required: true,
  24468. type: "string"
  24469. },
  24470. owner: {
  24471. type: "string"
  24472. },
  24473. private: {
  24474. type: "boolean"
  24475. },
  24476. template_owner: {
  24477. required: true,
  24478. type: "string"
  24479. },
  24480. template_repo: {
  24481. required: true,
  24482. type: "string"
  24483. }
  24484. },
  24485. url: "/repos/:template_owner/:template_repo/generate"
  24486. },
  24487. declineInvitation: {
  24488. method: "DELETE",
  24489. params: {
  24490. invitation_id: {
  24491. required: true,
  24492. type: "integer"
  24493. }
  24494. },
  24495. url: "/user/repository_invitations/:invitation_id"
  24496. },
  24497. delete: {
  24498. method: "DELETE",
  24499. params: {
  24500. owner: {
  24501. required: true,
  24502. type: "string"
  24503. },
  24504. repo: {
  24505. required: true,
  24506. type: "string"
  24507. }
  24508. },
  24509. url: "/repos/:owner/:repo"
  24510. },
  24511. deleteCommitComment: {
  24512. method: "DELETE",
  24513. params: {
  24514. comment_id: {
  24515. required: true,
  24516. type: "integer"
  24517. },
  24518. owner: {
  24519. required: true,
  24520. type: "string"
  24521. },
  24522. repo: {
  24523. required: true,
  24524. type: "string"
  24525. }
  24526. },
  24527. url: "/repos/:owner/:repo/comments/:comment_id"
  24528. },
  24529. deleteDownload: {
  24530. method: "DELETE",
  24531. params: {
  24532. download_id: {
  24533. required: true,
  24534. type: "integer"
  24535. },
  24536. owner: {
  24537. required: true,
  24538. type: "string"
  24539. },
  24540. repo: {
  24541. required: true,
  24542. type: "string"
  24543. }
  24544. },
  24545. url: "/repos/:owner/:repo/downloads/:download_id"
  24546. },
  24547. deleteFile: {
  24548. method: "DELETE",
  24549. params: {
  24550. author: {
  24551. type: "object"
  24552. },
  24553. "author.email": {
  24554. type: "string"
  24555. },
  24556. "author.name": {
  24557. type: "string"
  24558. },
  24559. branch: {
  24560. type: "string"
  24561. },
  24562. committer: {
  24563. type: "object"
  24564. },
  24565. "committer.email": {
  24566. type: "string"
  24567. },
  24568. "committer.name": {
  24569. type: "string"
  24570. },
  24571. message: {
  24572. required: true,
  24573. type: "string"
  24574. },
  24575. owner: {
  24576. required: true,
  24577. type: "string"
  24578. },
  24579. path: {
  24580. required: true,
  24581. type: "string"
  24582. },
  24583. repo: {
  24584. required: true,
  24585. type: "string"
  24586. },
  24587. sha: {
  24588. required: true,
  24589. type: "string"
  24590. }
  24591. },
  24592. url: "/repos/:owner/:repo/contents/:path"
  24593. },
  24594. deleteHook: {
  24595. method: "DELETE",
  24596. params: {
  24597. hook_id: {
  24598. required: true,
  24599. type: "integer"
  24600. },
  24601. owner: {
  24602. required: true,
  24603. type: "string"
  24604. },
  24605. repo: {
  24606. required: true,
  24607. type: "string"
  24608. }
  24609. },
  24610. url: "/repos/:owner/:repo/hooks/:hook_id"
  24611. },
  24612. deleteInvitation: {
  24613. method: "DELETE",
  24614. params: {
  24615. invitation_id: {
  24616. required: true,
  24617. type: "integer"
  24618. },
  24619. owner: {
  24620. required: true,
  24621. type: "string"
  24622. },
  24623. repo: {
  24624. required: true,
  24625. type: "string"
  24626. }
  24627. },
  24628. url: "/repos/:owner/:repo/invitations/:invitation_id"
  24629. },
  24630. deleteRelease: {
  24631. method: "DELETE",
  24632. params: {
  24633. owner: {
  24634. required: true,
  24635. type: "string"
  24636. },
  24637. release_id: {
  24638. required: true,
  24639. type: "integer"
  24640. },
  24641. repo: {
  24642. required: true,
  24643. type: "string"
  24644. }
  24645. },
  24646. url: "/repos/:owner/:repo/releases/:release_id"
  24647. },
  24648. deleteReleaseAsset: {
  24649. method: "DELETE",
  24650. params: {
  24651. asset_id: {
  24652. required: true,
  24653. type: "integer"
  24654. },
  24655. owner: {
  24656. required: true,
  24657. type: "string"
  24658. },
  24659. repo: {
  24660. required: true,
  24661. type: "string"
  24662. }
  24663. },
  24664. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  24665. },
  24666. disableAutomatedSecurityFixes: {
  24667. headers: {
  24668. accept: "application/vnd.github.london-preview+json"
  24669. },
  24670. method: "DELETE",
  24671. params: {
  24672. owner: {
  24673. required: true,
  24674. type: "string"
  24675. },
  24676. repo: {
  24677. required: true,
  24678. type: "string"
  24679. }
  24680. },
  24681. url: "/repos/:owner/:repo/automated-security-fixes"
  24682. },
  24683. disablePagesSite: {
  24684. headers: {
  24685. accept: "application/vnd.github.switcheroo-preview+json"
  24686. },
  24687. method: "DELETE",
  24688. params: {
  24689. owner: {
  24690. required: true,
  24691. type: "string"
  24692. },
  24693. repo: {
  24694. required: true,
  24695. type: "string"
  24696. }
  24697. },
  24698. url: "/repos/:owner/:repo/pages"
  24699. },
  24700. disableVulnerabilityAlerts: {
  24701. headers: {
  24702. accept: "application/vnd.github.dorian-preview+json"
  24703. },
  24704. method: "DELETE",
  24705. params: {
  24706. owner: {
  24707. required: true,
  24708. type: "string"
  24709. },
  24710. repo: {
  24711. required: true,
  24712. type: "string"
  24713. }
  24714. },
  24715. url: "/repos/:owner/:repo/vulnerability-alerts"
  24716. },
  24717. enableAutomatedSecurityFixes: {
  24718. headers: {
  24719. accept: "application/vnd.github.london-preview+json"
  24720. },
  24721. method: "PUT",
  24722. params: {
  24723. owner: {
  24724. required: true,
  24725. type: "string"
  24726. },
  24727. repo: {
  24728. required: true,
  24729. type: "string"
  24730. }
  24731. },
  24732. url: "/repos/:owner/:repo/automated-security-fixes"
  24733. },
  24734. enablePagesSite: {
  24735. headers: {
  24736. accept: "application/vnd.github.switcheroo-preview+json"
  24737. },
  24738. method: "POST",
  24739. params: {
  24740. owner: {
  24741. required: true,
  24742. type: "string"
  24743. },
  24744. repo: {
  24745. required: true,
  24746. type: "string"
  24747. },
  24748. source: {
  24749. type: "object"
  24750. },
  24751. "source.branch": {
  24752. enum: ["master", "gh-pages"],
  24753. type: "string"
  24754. },
  24755. "source.path": {
  24756. type: "string"
  24757. }
  24758. },
  24759. url: "/repos/:owner/:repo/pages"
  24760. },
  24761. enableVulnerabilityAlerts: {
  24762. headers: {
  24763. accept: "application/vnd.github.dorian-preview+json"
  24764. },
  24765. method: "PUT",
  24766. params: {
  24767. owner: {
  24768. required: true,
  24769. type: "string"
  24770. },
  24771. repo: {
  24772. required: true,
  24773. type: "string"
  24774. }
  24775. },
  24776. url: "/repos/:owner/:repo/vulnerability-alerts"
  24777. },
  24778. get: {
  24779. method: "GET",
  24780. params: {
  24781. owner: {
  24782. required: true,
  24783. type: "string"
  24784. },
  24785. repo: {
  24786. required: true,
  24787. type: "string"
  24788. }
  24789. },
  24790. url: "/repos/:owner/:repo"
  24791. },
  24792. getAppsWithAccessToProtectedBranch: {
  24793. method: "GET",
  24794. params: {
  24795. branch: {
  24796. required: true,
  24797. type: "string"
  24798. },
  24799. owner: {
  24800. required: true,
  24801. type: "string"
  24802. },
  24803. repo: {
  24804. required: true,
  24805. type: "string"
  24806. }
  24807. },
  24808. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  24809. },
  24810. getArchiveLink: {
  24811. method: "GET",
  24812. params: {
  24813. archive_format: {
  24814. required: true,
  24815. type: "string"
  24816. },
  24817. owner: {
  24818. required: true,
  24819. type: "string"
  24820. },
  24821. ref: {
  24822. required: true,
  24823. type: "string"
  24824. },
  24825. repo: {
  24826. required: true,
  24827. type: "string"
  24828. }
  24829. },
  24830. url: "/repos/:owner/:repo/:archive_format/:ref"
  24831. },
  24832. getBranch: {
  24833. method: "GET",
  24834. params: {
  24835. branch: {
  24836. required: true,
  24837. type: "string"
  24838. },
  24839. owner: {
  24840. required: true,
  24841. type: "string"
  24842. },
  24843. repo: {
  24844. required: true,
  24845. type: "string"
  24846. }
  24847. },
  24848. url: "/repos/:owner/:repo/branches/:branch"
  24849. },
  24850. getBranchProtection: {
  24851. method: "GET",
  24852. params: {
  24853. branch: {
  24854. required: true,
  24855. type: "string"
  24856. },
  24857. owner: {
  24858. required: true,
  24859. type: "string"
  24860. },
  24861. repo: {
  24862. required: true,
  24863. type: "string"
  24864. }
  24865. },
  24866. url: "/repos/:owner/:repo/branches/:branch/protection"
  24867. },
  24868. getClones: {
  24869. method: "GET",
  24870. params: {
  24871. owner: {
  24872. required: true,
  24873. type: "string"
  24874. },
  24875. per: {
  24876. enum: ["day", "week"],
  24877. type: "string"
  24878. },
  24879. repo: {
  24880. required: true,
  24881. type: "string"
  24882. }
  24883. },
  24884. url: "/repos/:owner/:repo/traffic/clones"
  24885. },
  24886. getCodeFrequencyStats: {
  24887. method: "GET",
  24888. params: {
  24889. owner: {
  24890. required: true,
  24891. type: "string"
  24892. },
  24893. repo: {
  24894. required: true,
  24895. type: "string"
  24896. }
  24897. },
  24898. url: "/repos/:owner/:repo/stats/code_frequency"
  24899. },
  24900. getCollaboratorPermissionLevel: {
  24901. method: "GET",
  24902. params: {
  24903. owner: {
  24904. required: true,
  24905. type: "string"
  24906. },
  24907. repo: {
  24908. required: true,
  24909. type: "string"
  24910. },
  24911. username: {
  24912. required: true,
  24913. type: "string"
  24914. }
  24915. },
  24916. url: "/repos/:owner/:repo/collaborators/:username/permission"
  24917. },
  24918. getCombinedStatusForRef: {
  24919. method: "GET",
  24920. params: {
  24921. owner: {
  24922. required: true,
  24923. type: "string"
  24924. },
  24925. ref: {
  24926. required: true,
  24927. type: "string"
  24928. },
  24929. repo: {
  24930. required: true,
  24931. type: "string"
  24932. }
  24933. },
  24934. url: "/repos/:owner/:repo/commits/:ref/status"
  24935. },
  24936. getCommit: {
  24937. method: "GET",
  24938. params: {
  24939. commit_sha: {
  24940. alias: "ref",
  24941. deprecated: true,
  24942. type: "string"
  24943. },
  24944. owner: {
  24945. required: true,
  24946. type: "string"
  24947. },
  24948. ref: {
  24949. required: true,
  24950. type: "string"
  24951. },
  24952. repo: {
  24953. required: true,
  24954. type: "string"
  24955. },
  24956. sha: {
  24957. alias: "ref",
  24958. deprecated: true,
  24959. type: "string"
  24960. }
  24961. },
  24962. url: "/repos/:owner/:repo/commits/:ref"
  24963. },
  24964. getCommitActivityStats: {
  24965. method: "GET",
  24966. params: {
  24967. owner: {
  24968. required: true,
  24969. type: "string"
  24970. },
  24971. repo: {
  24972. required: true,
  24973. type: "string"
  24974. }
  24975. },
  24976. url: "/repos/:owner/:repo/stats/commit_activity"
  24977. },
  24978. getCommitComment: {
  24979. method: "GET",
  24980. params: {
  24981. comment_id: {
  24982. required: true,
  24983. type: "integer"
  24984. },
  24985. owner: {
  24986. required: true,
  24987. type: "string"
  24988. },
  24989. repo: {
  24990. required: true,
  24991. type: "string"
  24992. }
  24993. },
  24994. url: "/repos/:owner/:repo/comments/:comment_id"
  24995. },
  24996. getCommitRefSha: {
  24997. deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
  24998. headers: {
  24999. accept: "application/vnd.github.v3.sha"
  25000. },
  25001. method: "GET",
  25002. params: {
  25003. owner: {
  25004. required: true,
  25005. type: "string"
  25006. },
  25007. ref: {
  25008. required: true,
  25009. type: "string"
  25010. },
  25011. repo: {
  25012. required: true,
  25013. type: "string"
  25014. }
  25015. },
  25016. url: "/repos/:owner/:repo/commits/:ref"
  25017. },
  25018. getContents: {
  25019. method: "GET",
  25020. params: {
  25021. owner: {
  25022. required: true,
  25023. type: "string"
  25024. },
  25025. path: {
  25026. required: true,
  25027. type: "string"
  25028. },
  25029. ref: {
  25030. type: "string"
  25031. },
  25032. repo: {
  25033. required: true,
  25034. type: "string"
  25035. }
  25036. },
  25037. url: "/repos/:owner/:repo/contents/:path"
  25038. },
  25039. getContributorsStats: {
  25040. method: "GET",
  25041. params: {
  25042. owner: {
  25043. required: true,
  25044. type: "string"
  25045. },
  25046. repo: {
  25047. required: true,
  25048. type: "string"
  25049. }
  25050. },
  25051. url: "/repos/:owner/:repo/stats/contributors"
  25052. },
  25053. getDeployKey: {
  25054. method: "GET",
  25055. params: {
  25056. key_id: {
  25057. required: true,
  25058. type: "integer"
  25059. },
  25060. owner: {
  25061. required: true,
  25062. type: "string"
  25063. },
  25064. repo: {
  25065. required: true,
  25066. type: "string"
  25067. }
  25068. },
  25069. url: "/repos/:owner/:repo/keys/:key_id"
  25070. },
  25071. getDeployment: {
  25072. method: "GET",
  25073. params: {
  25074. deployment_id: {
  25075. required: true,
  25076. type: "integer"
  25077. },
  25078. owner: {
  25079. required: true,
  25080. type: "string"
  25081. },
  25082. repo: {
  25083. required: true,
  25084. type: "string"
  25085. }
  25086. },
  25087. url: "/repos/:owner/:repo/deployments/:deployment_id"
  25088. },
  25089. getDeploymentStatus: {
  25090. method: "GET",
  25091. params: {
  25092. deployment_id: {
  25093. required: true,
  25094. type: "integer"
  25095. },
  25096. owner: {
  25097. required: true,
  25098. type: "string"
  25099. },
  25100. repo: {
  25101. required: true,
  25102. type: "string"
  25103. },
  25104. status_id: {
  25105. required: true,
  25106. type: "integer"
  25107. }
  25108. },
  25109. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
  25110. },
  25111. getDownload: {
  25112. method: "GET",
  25113. params: {
  25114. download_id: {
  25115. required: true,
  25116. type: "integer"
  25117. },
  25118. owner: {
  25119. required: true,
  25120. type: "string"
  25121. },
  25122. repo: {
  25123. required: true,
  25124. type: "string"
  25125. }
  25126. },
  25127. url: "/repos/:owner/:repo/downloads/:download_id"
  25128. },
  25129. getHook: {
  25130. method: "GET",
  25131. params: {
  25132. hook_id: {
  25133. required: true,
  25134. type: "integer"
  25135. },
  25136. owner: {
  25137. required: true,
  25138. type: "string"
  25139. },
  25140. repo: {
  25141. required: true,
  25142. type: "string"
  25143. }
  25144. },
  25145. url: "/repos/:owner/:repo/hooks/:hook_id"
  25146. },
  25147. getLatestPagesBuild: {
  25148. method: "GET",
  25149. params: {
  25150. owner: {
  25151. required: true,
  25152. type: "string"
  25153. },
  25154. repo: {
  25155. required: true,
  25156. type: "string"
  25157. }
  25158. },
  25159. url: "/repos/:owner/:repo/pages/builds/latest"
  25160. },
  25161. getLatestRelease: {
  25162. method: "GET",
  25163. params: {
  25164. owner: {
  25165. required: true,
  25166. type: "string"
  25167. },
  25168. repo: {
  25169. required: true,
  25170. type: "string"
  25171. }
  25172. },
  25173. url: "/repos/:owner/:repo/releases/latest"
  25174. },
  25175. getPages: {
  25176. method: "GET",
  25177. params: {
  25178. owner: {
  25179. required: true,
  25180. type: "string"
  25181. },
  25182. repo: {
  25183. required: true,
  25184. type: "string"
  25185. }
  25186. },
  25187. url: "/repos/:owner/:repo/pages"
  25188. },
  25189. getPagesBuild: {
  25190. method: "GET",
  25191. params: {
  25192. build_id: {
  25193. required: true,
  25194. type: "integer"
  25195. },
  25196. owner: {
  25197. required: true,
  25198. type: "string"
  25199. },
  25200. repo: {
  25201. required: true,
  25202. type: "string"
  25203. }
  25204. },
  25205. url: "/repos/:owner/:repo/pages/builds/:build_id"
  25206. },
  25207. getParticipationStats: {
  25208. method: "GET",
  25209. params: {
  25210. owner: {
  25211. required: true,
  25212. type: "string"
  25213. },
  25214. repo: {
  25215. required: true,
  25216. type: "string"
  25217. }
  25218. },
  25219. url: "/repos/:owner/:repo/stats/participation"
  25220. },
  25221. getProtectedBranchAdminEnforcement: {
  25222. method: "GET",
  25223. params: {
  25224. branch: {
  25225. required: true,
  25226. type: "string"
  25227. },
  25228. owner: {
  25229. required: true,
  25230. type: "string"
  25231. },
  25232. repo: {
  25233. required: true,
  25234. type: "string"
  25235. }
  25236. },
  25237. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  25238. },
  25239. getProtectedBranchPullRequestReviewEnforcement: {
  25240. method: "GET",
  25241. params: {
  25242. branch: {
  25243. required: true,
  25244. type: "string"
  25245. },
  25246. owner: {
  25247. required: true,
  25248. type: "string"
  25249. },
  25250. repo: {
  25251. required: true,
  25252. type: "string"
  25253. }
  25254. },
  25255. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  25256. },
  25257. getProtectedBranchRequiredSignatures: {
  25258. headers: {
  25259. accept: "application/vnd.github.zzzax-preview+json"
  25260. },
  25261. method: "GET",
  25262. params: {
  25263. branch: {
  25264. required: true,
  25265. type: "string"
  25266. },
  25267. owner: {
  25268. required: true,
  25269. type: "string"
  25270. },
  25271. repo: {
  25272. required: true,
  25273. type: "string"
  25274. }
  25275. },
  25276. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  25277. },
  25278. getProtectedBranchRequiredStatusChecks: {
  25279. method: "GET",
  25280. params: {
  25281. branch: {
  25282. required: true,
  25283. type: "string"
  25284. },
  25285. owner: {
  25286. required: true,
  25287. type: "string"
  25288. },
  25289. repo: {
  25290. required: true,
  25291. type: "string"
  25292. }
  25293. },
  25294. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  25295. },
  25296. getProtectedBranchRestrictions: {
  25297. method: "GET",
  25298. params: {
  25299. branch: {
  25300. required: true,
  25301. type: "string"
  25302. },
  25303. owner: {
  25304. required: true,
  25305. type: "string"
  25306. },
  25307. repo: {
  25308. required: true,
  25309. type: "string"
  25310. }
  25311. },
  25312. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  25313. },
  25314. getPunchCardStats: {
  25315. method: "GET",
  25316. params: {
  25317. owner: {
  25318. required: true,
  25319. type: "string"
  25320. },
  25321. repo: {
  25322. required: true,
  25323. type: "string"
  25324. }
  25325. },
  25326. url: "/repos/:owner/:repo/stats/punch_card"
  25327. },
  25328. getReadme: {
  25329. method: "GET",
  25330. params: {
  25331. owner: {
  25332. required: true,
  25333. type: "string"
  25334. },
  25335. ref: {
  25336. type: "string"
  25337. },
  25338. repo: {
  25339. required: true,
  25340. type: "string"
  25341. }
  25342. },
  25343. url: "/repos/:owner/:repo/readme"
  25344. },
  25345. getRelease: {
  25346. method: "GET",
  25347. params: {
  25348. owner: {
  25349. required: true,
  25350. type: "string"
  25351. },
  25352. release_id: {
  25353. required: true,
  25354. type: "integer"
  25355. },
  25356. repo: {
  25357. required: true,
  25358. type: "string"
  25359. }
  25360. },
  25361. url: "/repos/:owner/:repo/releases/:release_id"
  25362. },
  25363. getReleaseAsset: {
  25364. method: "GET",
  25365. params: {
  25366. asset_id: {
  25367. required: true,
  25368. type: "integer"
  25369. },
  25370. owner: {
  25371. required: true,
  25372. type: "string"
  25373. },
  25374. repo: {
  25375. required: true,
  25376. type: "string"
  25377. }
  25378. },
  25379. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  25380. },
  25381. getReleaseByTag: {
  25382. method: "GET",
  25383. params: {
  25384. owner: {
  25385. required: true,
  25386. type: "string"
  25387. },
  25388. repo: {
  25389. required: true,
  25390. type: "string"
  25391. },
  25392. tag: {
  25393. required: true,
  25394. type: "string"
  25395. }
  25396. },
  25397. url: "/repos/:owner/:repo/releases/tags/:tag"
  25398. },
  25399. getTeamsWithAccessToProtectedBranch: {
  25400. method: "GET",
  25401. params: {
  25402. branch: {
  25403. required: true,
  25404. type: "string"
  25405. },
  25406. owner: {
  25407. required: true,
  25408. type: "string"
  25409. },
  25410. repo: {
  25411. required: true,
  25412. type: "string"
  25413. }
  25414. },
  25415. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25416. },
  25417. getTopPaths: {
  25418. method: "GET",
  25419. params: {
  25420. owner: {
  25421. required: true,
  25422. type: "string"
  25423. },
  25424. repo: {
  25425. required: true,
  25426. type: "string"
  25427. }
  25428. },
  25429. url: "/repos/:owner/:repo/traffic/popular/paths"
  25430. },
  25431. getTopReferrers: {
  25432. method: "GET",
  25433. params: {
  25434. owner: {
  25435. required: true,
  25436. type: "string"
  25437. },
  25438. repo: {
  25439. required: true,
  25440. type: "string"
  25441. }
  25442. },
  25443. url: "/repos/:owner/:repo/traffic/popular/referrers"
  25444. },
  25445. getUsersWithAccessToProtectedBranch: {
  25446. method: "GET",
  25447. params: {
  25448. branch: {
  25449. required: true,
  25450. type: "string"
  25451. },
  25452. owner: {
  25453. required: true,
  25454. type: "string"
  25455. },
  25456. repo: {
  25457. required: true,
  25458. type: "string"
  25459. }
  25460. },
  25461. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25462. },
  25463. getViews: {
  25464. method: "GET",
  25465. params: {
  25466. owner: {
  25467. required: true,
  25468. type: "string"
  25469. },
  25470. per: {
  25471. enum: ["day", "week"],
  25472. type: "string"
  25473. },
  25474. repo: {
  25475. required: true,
  25476. type: "string"
  25477. }
  25478. },
  25479. url: "/repos/:owner/:repo/traffic/views"
  25480. },
  25481. list: {
  25482. method: "GET",
  25483. params: {
  25484. affiliation: {
  25485. type: "string"
  25486. },
  25487. direction: {
  25488. enum: ["asc", "desc"],
  25489. type: "string"
  25490. },
  25491. page: {
  25492. type: "integer"
  25493. },
  25494. per_page: {
  25495. type: "integer"
  25496. },
  25497. sort: {
  25498. enum: ["created", "updated", "pushed", "full_name"],
  25499. type: "string"
  25500. },
  25501. type: {
  25502. enum: ["all", "owner", "public", "private", "member"],
  25503. type: "string"
  25504. },
  25505. visibility: {
  25506. enum: ["all", "public", "private"],
  25507. type: "string"
  25508. }
  25509. },
  25510. url: "/user/repos"
  25511. },
  25512. listAppsWithAccessToProtectedBranch: {
  25513. deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
  25514. method: "GET",
  25515. params: {
  25516. branch: {
  25517. required: true,
  25518. type: "string"
  25519. },
  25520. owner: {
  25521. required: true,
  25522. type: "string"
  25523. },
  25524. repo: {
  25525. required: true,
  25526. type: "string"
  25527. }
  25528. },
  25529. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  25530. },
  25531. listAssetsForRelease: {
  25532. method: "GET",
  25533. params: {
  25534. owner: {
  25535. required: true,
  25536. type: "string"
  25537. },
  25538. page: {
  25539. type: "integer"
  25540. },
  25541. per_page: {
  25542. type: "integer"
  25543. },
  25544. release_id: {
  25545. required: true,
  25546. type: "integer"
  25547. },
  25548. repo: {
  25549. required: true,
  25550. type: "string"
  25551. }
  25552. },
  25553. url: "/repos/:owner/:repo/releases/:release_id/assets"
  25554. },
  25555. listBranches: {
  25556. method: "GET",
  25557. params: {
  25558. owner: {
  25559. required: true,
  25560. type: "string"
  25561. },
  25562. page: {
  25563. type: "integer"
  25564. },
  25565. per_page: {
  25566. type: "integer"
  25567. },
  25568. protected: {
  25569. type: "boolean"
  25570. },
  25571. repo: {
  25572. required: true,
  25573. type: "string"
  25574. }
  25575. },
  25576. url: "/repos/:owner/:repo/branches"
  25577. },
  25578. listBranchesForHeadCommit: {
  25579. headers: {
  25580. accept: "application/vnd.github.groot-preview+json"
  25581. },
  25582. method: "GET",
  25583. params: {
  25584. commit_sha: {
  25585. required: true,
  25586. type: "string"
  25587. },
  25588. owner: {
  25589. required: true,
  25590. type: "string"
  25591. },
  25592. repo: {
  25593. required: true,
  25594. type: "string"
  25595. }
  25596. },
  25597. url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
  25598. },
  25599. listCollaborators: {
  25600. method: "GET",
  25601. params: {
  25602. affiliation: {
  25603. enum: ["outside", "direct", "all"],
  25604. type: "string"
  25605. },
  25606. owner: {
  25607. required: true,
  25608. type: "string"
  25609. },
  25610. page: {
  25611. type: "integer"
  25612. },
  25613. per_page: {
  25614. type: "integer"
  25615. },
  25616. repo: {
  25617. required: true,
  25618. type: "string"
  25619. }
  25620. },
  25621. url: "/repos/:owner/:repo/collaborators"
  25622. },
  25623. listCommentsForCommit: {
  25624. method: "GET",
  25625. params: {
  25626. commit_sha: {
  25627. required: true,
  25628. type: "string"
  25629. },
  25630. owner: {
  25631. required: true,
  25632. type: "string"
  25633. },
  25634. page: {
  25635. type: "integer"
  25636. },
  25637. per_page: {
  25638. type: "integer"
  25639. },
  25640. ref: {
  25641. alias: "commit_sha",
  25642. deprecated: true,
  25643. type: "string"
  25644. },
  25645. repo: {
  25646. required: true,
  25647. type: "string"
  25648. }
  25649. },
  25650. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  25651. },
  25652. listCommitComments: {
  25653. method: "GET",
  25654. params: {
  25655. owner: {
  25656. required: true,
  25657. type: "string"
  25658. },
  25659. page: {
  25660. type: "integer"
  25661. },
  25662. per_page: {
  25663. type: "integer"
  25664. },
  25665. repo: {
  25666. required: true,
  25667. type: "string"
  25668. }
  25669. },
  25670. url: "/repos/:owner/:repo/comments"
  25671. },
  25672. listCommits: {
  25673. method: "GET",
  25674. params: {
  25675. author: {
  25676. type: "string"
  25677. },
  25678. owner: {
  25679. required: true,
  25680. type: "string"
  25681. },
  25682. page: {
  25683. type: "integer"
  25684. },
  25685. path: {
  25686. type: "string"
  25687. },
  25688. per_page: {
  25689. type: "integer"
  25690. },
  25691. repo: {
  25692. required: true,
  25693. type: "string"
  25694. },
  25695. sha: {
  25696. type: "string"
  25697. },
  25698. since: {
  25699. type: "string"
  25700. },
  25701. until: {
  25702. type: "string"
  25703. }
  25704. },
  25705. url: "/repos/:owner/:repo/commits"
  25706. },
  25707. listContributors: {
  25708. method: "GET",
  25709. params: {
  25710. anon: {
  25711. type: "string"
  25712. },
  25713. owner: {
  25714. required: true,
  25715. type: "string"
  25716. },
  25717. page: {
  25718. type: "integer"
  25719. },
  25720. per_page: {
  25721. type: "integer"
  25722. },
  25723. repo: {
  25724. required: true,
  25725. type: "string"
  25726. }
  25727. },
  25728. url: "/repos/:owner/:repo/contributors"
  25729. },
  25730. listDeployKeys: {
  25731. method: "GET",
  25732. params: {
  25733. owner: {
  25734. required: true,
  25735. type: "string"
  25736. },
  25737. page: {
  25738. type: "integer"
  25739. },
  25740. per_page: {
  25741. type: "integer"
  25742. },
  25743. repo: {
  25744. required: true,
  25745. type: "string"
  25746. }
  25747. },
  25748. url: "/repos/:owner/:repo/keys"
  25749. },
  25750. listDeploymentStatuses: {
  25751. method: "GET",
  25752. params: {
  25753. deployment_id: {
  25754. required: true,
  25755. type: "integer"
  25756. },
  25757. owner: {
  25758. required: true,
  25759. type: "string"
  25760. },
  25761. page: {
  25762. type: "integer"
  25763. },
  25764. per_page: {
  25765. type: "integer"
  25766. },
  25767. repo: {
  25768. required: true,
  25769. type: "string"
  25770. }
  25771. },
  25772. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  25773. },
  25774. listDeployments: {
  25775. method: "GET",
  25776. params: {
  25777. environment: {
  25778. type: "string"
  25779. },
  25780. owner: {
  25781. required: true,
  25782. type: "string"
  25783. },
  25784. page: {
  25785. type: "integer"
  25786. },
  25787. per_page: {
  25788. type: "integer"
  25789. },
  25790. ref: {
  25791. type: "string"
  25792. },
  25793. repo: {
  25794. required: true,
  25795. type: "string"
  25796. },
  25797. sha: {
  25798. type: "string"
  25799. },
  25800. task: {
  25801. type: "string"
  25802. }
  25803. },
  25804. url: "/repos/:owner/:repo/deployments"
  25805. },
  25806. listDownloads: {
  25807. method: "GET",
  25808. params: {
  25809. owner: {
  25810. required: true,
  25811. type: "string"
  25812. },
  25813. page: {
  25814. type: "integer"
  25815. },
  25816. per_page: {
  25817. type: "integer"
  25818. },
  25819. repo: {
  25820. required: true,
  25821. type: "string"
  25822. }
  25823. },
  25824. url: "/repos/:owner/:repo/downloads"
  25825. },
  25826. listForOrg: {
  25827. method: "GET",
  25828. params: {
  25829. direction: {
  25830. enum: ["asc", "desc"],
  25831. type: "string"
  25832. },
  25833. org: {
  25834. required: true,
  25835. type: "string"
  25836. },
  25837. page: {
  25838. type: "integer"
  25839. },
  25840. per_page: {
  25841. type: "integer"
  25842. },
  25843. sort: {
  25844. enum: ["created", "updated", "pushed", "full_name"],
  25845. type: "string"
  25846. },
  25847. type: {
  25848. enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
  25849. type: "string"
  25850. }
  25851. },
  25852. url: "/orgs/:org/repos"
  25853. },
  25854. listForUser: {
  25855. method: "GET",
  25856. params: {
  25857. direction: {
  25858. enum: ["asc", "desc"],
  25859. type: "string"
  25860. },
  25861. page: {
  25862. type: "integer"
  25863. },
  25864. per_page: {
  25865. type: "integer"
  25866. },
  25867. sort: {
  25868. enum: ["created", "updated", "pushed", "full_name"],
  25869. type: "string"
  25870. },
  25871. type: {
  25872. enum: ["all", "owner", "member"],
  25873. type: "string"
  25874. },
  25875. username: {
  25876. required: true,
  25877. type: "string"
  25878. }
  25879. },
  25880. url: "/users/:username/repos"
  25881. },
  25882. listForks: {
  25883. method: "GET",
  25884. params: {
  25885. owner: {
  25886. required: true,
  25887. type: "string"
  25888. },
  25889. page: {
  25890. type: "integer"
  25891. },
  25892. per_page: {
  25893. type: "integer"
  25894. },
  25895. repo: {
  25896. required: true,
  25897. type: "string"
  25898. },
  25899. sort: {
  25900. enum: ["newest", "oldest", "stargazers"],
  25901. type: "string"
  25902. }
  25903. },
  25904. url: "/repos/:owner/:repo/forks"
  25905. },
  25906. listHooks: {
  25907. method: "GET",
  25908. params: {
  25909. owner: {
  25910. required: true,
  25911. type: "string"
  25912. },
  25913. page: {
  25914. type: "integer"
  25915. },
  25916. per_page: {
  25917. type: "integer"
  25918. },
  25919. repo: {
  25920. required: true,
  25921. type: "string"
  25922. }
  25923. },
  25924. url: "/repos/:owner/:repo/hooks"
  25925. },
  25926. listInvitations: {
  25927. method: "GET",
  25928. params: {
  25929. owner: {
  25930. required: true,
  25931. type: "string"
  25932. },
  25933. page: {
  25934. type: "integer"
  25935. },
  25936. per_page: {
  25937. type: "integer"
  25938. },
  25939. repo: {
  25940. required: true,
  25941. type: "string"
  25942. }
  25943. },
  25944. url: "/repos/:owner/:repo/invitations"
  25945. },
  25946. listInvitationsForAuthenticatedUser: {
  25947. method: "GET",
  25948. params: {
  25949. page: {
  25950. type: "integer"
  25951. },
  25952. per_page: {
  25953. type: "integer"
  25954. }
  25955. },
  25956. url: "/user/repository_invitations"
  25957. },
  25958. listLanguages: {
  25959. method: "GET",
  25960. params: {
  25961. owner: {
  25962. required: true,
  25963. type: "string"
  25964. },
  25965. repo: {
  25966. required: true,
  25967. type: "string"
  25968. }
  25969. },
  25970. url: "/repos/:owner/:repo/languages"
  25971. },
  25972. listPagesBuilds: {
  25973. method: "GET",
  25974. params: {
  25975. owner: {
  25976. required: true,
  25977. type: "string"
  25978. },
  25979. page: {
  25980. type: "integer"
  25981. },
  25982. per_page: {
  25983. type: "integer"
  25984. },
  25985. repo: {
  25986. required: true,
  25987. type: "string"
  25988. }
  25989. },
  25990. url: "/repos/:owner/:repo/pages/builds"
  25991. },
  25992. listProtectedBranchRequiredStatusChecksContexts: {
  25993. method: "GET",
  25994. params: {
  25995. branch: {
  25996. required: true,
  25997. type: "string"
  25998. },
  25999. owner: {
  26000. required: true,
  26001. type: "string"
  26002. },
  26003. repo: {
  26004. required: true,
  26005. type: "string"
  26006. }
  26007. },
  26008. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  26009. },
  26010. listProtectedBranchTeamRestrictions: {
  26011. deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
  26012. method: "GET",
  26013. params: {
  26014. branch: {
  26015. required: true,
  26016. type: "string"
  26017. },
  26018. owner: {
  26019. required: true,
  26020. type: "string"
  26021. },
  26022. repo: {
  26023. required: true,
  26024. type: "string"
  26025. }
  26026. },
  26027. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26028. },
  26029. listProtectedBranchUserRestrictions: {
  26030. deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
  26031. method: "GET",
  26032. params: {
  26033. branch: {
  26034. required: true,
  26035. type: "string"
  26036. },
  26037. owner: {
  26038. required: true,
  26039. type: "string"
  26040. },
  26041. repo: {
  26042. required: true,
  26043. type: "string"
  26044. }
  26045. },
  26046. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26047. },
  26048. listPublic: {
  26049. method: "GET",
  26050. params: {
  26051. page: {
  26052. type: "integer"
  26053. },
  26054. per_page: {
  26055. type: "integer"
  26056. },
  26057. since: {
  26058. type: "integer"
  26059. }
  26060. },
  26061. url: "/repositories"
  26062. },
  26063. listPullRequestsAssociatedWithCommit: {
  26064. headers: {
  26065. accept: "application/vnd.github.groot-preview+json"
  26066. },
  26067. method: "GET",
  26068. params: {
  26069. commit_sha: {
  26070. required: true,
  26071. type: "string"
  26072. },
  26073. owner: {
  26074. required: true,
  26075. type: "string"
  26076. },
  26077. page: {
  26078. type: "integer"
  26079. },
  26080. per_page: {
  26081. type: "integer"
  26082. },
  26083. repo: {
  26084. required: true,
  26085. type: "string"
  26086. }
  26087. },
  26088. url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
  26089. },
  26090. listReleases: {
  26091. method: "GET",
  26092. params: {
  26093. owner: {
  26094. required: true,
  26095. type: "string"
  26096. },
  26097. page: {
  26098. type: "integer"
  26099. },
  26100. per_page: {
  26101. type: "integer"
  26102. },
  26103. repo: {
  26104. required: true,
  26105. type: "string"
  26106. }
  26107. },
  26108. url: "/repos/:owner/:repo/releases"
  26109. },
  26110. listStatusesForRef: {
  26111. method: "GET",
  26112. params: {
  26113. owner: {
  26114. required: true,
  26115. type: "string"
  26116. },
  26117. page: {
  26118. type: "integer"
  26119. },
  26120. per_page: {
  26121. type: "integer"
  26122. },
  26123. ref: {
  26124. required: true,
  26125. type: "string"
  26126. },
  26127. repo: {
  26128. required: true,
  26129. type: "string"
  26130. }
  26131. },
  26132. url: "/repos/:owner/:repo/commits/:ref/statuses"
  26133. },
  26134. listTags: {
  26135. method: "GET",
  26136. params: {
  26137. owner: {
  26138. required: true,
  26139. type: "string"
  26140. },
  26141. page: {
  26142. type: "integer"
  26143. },
  26144. per_page: {
  26145. type: "integer"
  26146. },
  26147. repo: {
  26148. required: true,
  26149. type: "string"
  26150. }
  26151. },
  26152. url: "/repos/:owner/:repo/tags"
  26153. },
  26154. listTeams: {
  26155. method: "GET",
  26156. params: {
  26157. owner: {
  26158. required: true,
  26159. type: "string"
  26160. },
  26161. page: {
  26162. type: "integer"
  26163. },
  26164. per_page: {
  26165. type: "integer"
  26166. },
  26167. repo: {
  26168. required: true,
  26169. type: "string"
  26170. }
  26171. },
  26172. url: "/repos/:owner/:repo/teams"
  26173. },
  26174. listTeamsWithAccessToProtectedBranch: {
  26175. deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
  26176. method: "GET",
  26177. params: {
  26178. branch: {
  26179. required: true,
  26180. type: "string"
  26181. },
  26182. owner: {
  26183. required: true,
  26184. type: "string"
  26185. },
  26186. repo: {
  26187. required: true,
  26188. type: "string"
  26189. }
  26190. },
  26191. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26192. },
  26193. listTopics: {
  26194. headers: {
  26195. accept: "application/vnd.github.mercy-preview+json"
  26196. },
  26197. method: "GET",
  26198. params: {
  26199. owner: {
  26200. required: true,
  26201. type: "string"
  26202. },
  26203. repo: {
  26204. required: true,
  26205. type: "string"
  26206. }
  26207. },
  26208. url: "/repos/:owner/:repo/topics"
  26209. },
  26210. listUsersWithAccessToProtectedBranch: {
  26211. deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
  26212. method: "GET",
  26213. params: {
  26214. branch: {
  26215. required: true,
  26216. type: "string"
  26217. },
  26218. owner: {
  26219. required: true,
  26220. type: "string"
  26221. },
  26222. repo: {
  26223. required: true,
  26224. type: "string"
  26225. }
  26226. },
  26227. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26228. },
  26229. merge: {
  26230. method: "POST",
  26231. params: {
  26232. base: {
  26233. required: true,
  26234. type: "string"
  26235. },
  26236. commit_message: {
  26237. type: "string"
  26238. },
  26239. head: {
  26240. required: true,
  26241. type: "string"
  26242. },
  26243. owner: {
  26244. required: true,
  26245. type: "string"
  26246. },
  26247. repo: {
  26248. required: true,
  26249. type: "string"
  26250. }
  26251. },
  26252. url: "/repos/:owner/:repo/merges"
  26253. },
  26254. pingHook: {
  26255. method: "POST",
  26256. params: {
  26257. hook_id: {
  26258. required: true,
  26259. type: "integer"
  26260. },
  26261. owner: {
  26262. required: true,
  26263. type: "string"
  26264. },
  26265. repo: {
  26266. required: true,
  26267. type: "string"
  26268. }
  26269. },
  26270. url: "/repos/:owner/:repo/hooks/:hook_id/pings"
  26271. },
  26272. removeBranchProtection: {
  26273. method: "DELETE",
  26274. params: {
  26275. branch: {
  26276. required: true,
  26277. type: "string"
  26278. },
  26279. owner: {
  26280. required: true,
  26281. type: "string"
  26282. },
  26283. repo: {
  26284. required: true,
  26285. type: "string"
  26286. }
  26287. },
  26288. url: "/repos/:owner/:repo/branches/:branch/protection"
  26289. },
  26290. removeCollaborator: {
  26291. method: "DELETE",
  26292. params: {
  26293. owner: {
  26294. required: true,
  26295. type: "string"
  26296. },
  26297. repo: {
  26298. required: true,
  26299. type: "string"
  26300. },
  26301. username: {
  26302. required: true,
  26303. type: "string"
  26304. }
  26305. },
  26306. url: "/repos/:owner/:repo/collaborators/:username"
  26307. },
  26308. removeDeployKey: {
  26309. method: "DELETE",
  26310. params: {
  26311. key_id: {
  26312. required: true,
  26313. type: "integer"
  26314. },
  26315. owner: {
  26316. required: true,
  26317. type: "string"
  26318. },
  26319. repo: {
  26320. required: true,
  26321. type: "string"
  26322. }
  26323. },
  26324. url: "/repos/:owner/:repo/keys/:key_id"
  26325. },
  26326. removeProtectedBranchAdminEnforcement: {
  26327. method: "DELETE",
  26328. params: {
  26329. branch: {
  26330. required: true,
  26331. type: "string"
  26332. },
  26333. owner: {
  26334. required: true,
  26335. type: "string"
  26336. },
  26337. repo: {
  26338. required: true,
  26339. type: "string"
  26340. }
  26341. },
  26342. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  26343. },
  26344. removeProtectedBranchAppRestrictions: {
  26345. method: "DELETE",
  26346. params: {
  26347. apps: {
  26348. mapTo: "data",
  26349. required: true,
  26350. type: "string[]"
  26351. },
  26352. branch: {
  26353. required: true,
  26354. type: "string"
  26355. },
  26356. owner: {
  26357. required: true,
  26358. type: "string"
  26359. },
  26360. repo: {
  26361. required: true,
  26362. type: "string"
  26363. }
  26364. },
  26365. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  26366. },
  26367. removeProtectedBranchPullRequestReviewEnforcement: {
  26368. method: "DELETE",
  26369. params: {
  26370. branch: {
  26371. required: true,
  26372. type: "string"
  26373. },
  26374. owner: {
  26375. required: true,
  26376. type: "string"
  26377. },
  26378. repo: {
  26379. required: true,
  26380. type: "string"
  26381. }
  26382. },
  26383. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  26384. },
  26385. removeProtectedBranchRequiredSignatures: {
  26386. headers: {
  26387. accept: "application/vnd.github.zzzax-preview+json"
  26388. },
  26389. method: "DELETE",
  26390. params: {
  26391. branch: {
  26392. required: true,
  26393. type: "string"
  26394. },
  26395. owner: {
  26396. required: true,
  26397. type: "string"
  26398. },
  26399. repo: {
  26400. required: true,
  26401. type: "string"
  26402. }
  26403. },
  26404. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  26405. },
  26406. removeProtectedBranchRequiredStatusChecks: {
  26407. method: "DELETE",
  26408. params: {
  26409. branch: {
  26410. required: true,
  26411. type: "string"
  26412. },
  26413. owner: {
  26414. required: true,
  26415. type: "string"
  26416. },
  26417. repo: {
  26418. required: true,
  26419. type: "string"
  26420. }
  26421. },
  26422. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  26423. },
  26424. removeProtectedBranchRequiredStatusChecksContexts: {
  26425. method: "DELETE",
  26426. params: {
  26427. branch: {
  26428. required: true,
  26429. type: "string"
  26430. },
  26431. contexts: {
  26432. mapTo: "data",
  26433. required: true,
  26434. type: "string[]"
  26435. },
  26436. owner: {
  26437. required: true,
  26438. type: "string"
  26439. },
  26440. repo: {
  26441. required: true,
  26442. type: "string"
  26443. }
  26444. },
  26445. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  26446. },
  26447. removeProtectedBranchRestrictions: {
  26448. method: "DELETE",
  26449. params: {
  26450. branch: {
  26451. required: true,
  26452. type: "string"
  26453. },
  26454. owner: {
  26455. required: true,
  26456. type: "string"
  26457. },
  26458. repo: {
  26459. required: true,
  26460. type: "string"
  26461. }
  26462. },
  26463. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  26464. },
  26465. removeProtectedBranchTeamRestrictions: {
  26466. method: "DELETE",
  26467. params: {
  26468. branch: {
  26469. required: true,
  26470. type: "string"
  26471. },
  26472. owner: {
  26473. required: true,
  26474. type: "string"
  26475. },
  26476. repo: {
  26477. required: true,
  26478. type: "string"
  26479. },
  26480. teams: {
  26481. mapTo: "data",
  26482. required: true,
  26483. type: "string[]"
  26484. }
  26485. },
  26486. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26487. },
  26488. removeProtectedBranchUserRestrictions: {
  26489. method: "DELETE",
  26490. params: {
  26491. branch: {
  26492. required: true,
  26493. type: "string"
  26494. },
  26495. owner: {
  26496. required: true,
  26497. type: "string"
  26498. },
  26499. repo: {
  26500. required: true,
  26501. type: "string"
  26502. },
  26503. users: {
  26504. mapTo: "data",
  26505. required: true,
  26506. type: "string[]"
  26507. }
  26508. },
  26509. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26510. },
  26511. replaceProtectedBranchAppRestrictions: {
  26512. method: "PUT",
  26513. params: {
  26514. apps: {
  26515. mapTo: "data",
  26516. required: true,
  26517. type: "string[]"
  26518. },
  26519. branch: {
  26520. required: true,
  26521. type: "string"
  26522. },
  26523. owner: {
  26524. required: true,
  26525. type: "string"
  26526. },
  26527. repo: {
  26528. required: true,
  26529. type: "string"
  26530. }
  26531. },
  26532. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  26533. },
  26534. replaceProtectedBranchRequiredStatusChecksContexts: {
  26535. method: "PUT",
  26536. params: {
  26537. branch: {
  26538. required: true,
  26539. type: "string"
  26540. },
  26541. contexts: {
  26542. mapTo: "data",
  26543. required: true,
  26544. type: "string[]"
  26545. },
  26546. owner: {
  26547. required: true,
  26548. type: "string"
  26549. },
  26550. repo: {
  26551. required: true,
  26552. type: "string"
  26553. }
  26554. },
  26555. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  26556. },
  26557. replaceProtectedBranchTeamRestrictions: {
  26558. method: "PUT",
  26559. params: {
  26560. branch: {
  26561. required: true,
  26562. type: "string"
  26563. },
  26564. owner: {
  26565. required: true,
  26566. type: "string"
  26567. },
  26568. repo: {
  26569. required: true,
  26570. type: "string"
  26571. },
  26572. teams: {
  26573. mapTo: "data",
  26574. required: true,
  26575. type: "string[]"
  26576. }
  26577. },
  26578. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26579. },
  26580. replaceProtectedBranchUserRestrictions: {
  26581. method: "PUT",
  26582. params: {
  26583. branch: {
  26584. required: true,
  26585. type: "string"
  26586. },
  26587. owner: {
  26588. required: true,
  26589. type: "string"
  26590. },
  26591. repo: {
  26592. required: true,
  26593. type: "string"
  26594. },
  26595. users: {
  26596. mapTo: "data",
  26597. required: true,
  26598. type: "string[]"
  26599. }
  26600. },
  26601. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26602. },
  26603. replaceTopics: {
  26604. headers: {
  26605. accept: "application/vnd.github.mercy-preview+json"
  26606. },
  26607. method: "PUT",
  26608. params: {
  26609. names: {
  26610. required: true,
  26611. type: "string[]"
  26612. },
  26613. owner: {
  26614. required: true,
  26615. type: "string"
  26616. },
  26617. repo: {
  26618. required: true,
  26619. type: "string"
  26620. }
  26621. },
  26622. url: "/repos/:owner/:repo/topics"
  26623. },
  26624. requestPageBuild: {
  26625. method: "POST",
  26626. params: {
  26627. owner: {
  26628. required: true,
  26629. type: "string"
  26630. },
  26631. repo: {
  26632. required: true,
  26633. type: "string"
  26634. }
  26635. },
  26636. url: "/repos/:owner/:repo/pages/builds"
  26637. },
  26638. retrieveCommunityProfileMetrics: {
  26639. method: "GET",
  26640. params: {
  26641. owner: {
  26642. required: true,
  26643. type: "string"
  26644. },
  26645. repo: {
  26646. required: true,
  26647. type: "string"
  26648. }
  26649. },
  26650. url: "/repos/:owner/:repo/community/profile"
  26651. },
  26652. testPushHook: {
  26653. method: "POST",
  26654. params: {
  26655. hook_id: {
  26656. required: true,
  26657. type: "integer"
  26658. },
  26659. owner: {
  26660. required: true,
  26661. type: "string"
  26662. },
  26663. repo: {
  26664. required: true,
  26665. type: "string"
  26666. }
  26667. },
  26668. url: "/repos/:owner/:repo/hooks/:hook_id/tests"
  26669. },
  26670. transfer: {
  26671. method: "POST",
  26672. params: {
  26673. new_owner: {
  26674. type: "string"
  26675. },
  26676. owner: {
  26677. required: true,
  26678. type: "string"
  26679. },
  26680. repo: {
  26681. required: true,
  26682. type: "string"
  26683. },
  26684. team_ids: {
  26685. type: "integer[]"
  26686. }
  26687. },
  26688. url: "/repos/:owner/:repo/transfer"
  26689. },
  26690. update: {
  26691. method: "PATCH",
  26692. params: {
  26693. allow_merge_commit: {
  26694. type: "boolean"
  26695. },
  26696. allow_rebase_merge: {
  26697. type: "boolean"
  26698. },
  26699. allow_squash_merge: {
  26700. type: "boolean"
  26701. },
  26702. archived: {
  26703. type: "boolean"
  26704. },
  26705. default_branch: {
  26706. type: "string"
  26707. },
  26708. delete_branch_on_merge: {
  26709. type: "boolean"
  26710. },
  26711. description: {
  26712. type: "string"
  26713. },
  26714. has_issues: {
  26715. type: "boolean"
  26716. },
  26717. has_projects: {
  26718. type: "boolean"
  26719. },
  26720. has_wiki: {
  26721. type: "boolean"
  26722. },
  26723. homepage: {
  26724. type: "string"
  26725. },
  26726. is_template: {
  26727. type: "boolean"
  26728. },
  26729. name: {
  26730. type: "string"
  26731. },
  26732. owner: {
  26733. required: true,
  26734. type: "string"
  26735. },
  26736. private: {
  26737. type: "boolean"
  26738. },
  26739. repo: {
  26740. required: true,
  26741. type: "string"
  26742. },
  26743. visibility: {
  26744. enum: ["public", "private", "visibility", "internal"],
  26745. type: "string"
  26746. }
  26747. },
  26748. url: "/repos/:owner/:repo"
  26749. },
  26750. updateBranchProtection: {
  26751. method: "PUT",
  26752. params: {
  26753. allow_deletions: {
  26754. type: "boolean"
  26755. },
  26756. allow_force_pushes: {
  26757. allowNull: true,
  26758. type: "boolean"
  26759. },
  26760. branch: {
  26761. required: true,
  26762. type: "string"
  26763. },
  26764. enforce_admins: {
  26765. allowNull: true,
  26766. required: true,
  26767. type: "boolean"
  26768. },
  26769. owner: {
  26770. required: true,
  26771. type: "string"
  26772. },
  26773. repo: {
  26774. required: true,
  26775. type: "string"
  26776. },
  26777. required_linear_history: {
  26778. type: "boolean"
  26779. },
  26780. required_pull_request_reviews: {
  26781. allowNull: true,
  26782. required: true,
  26783. type: "object"
  26784. },
  26785. "required_pull_request_reviews.dismiss_stale_reviews": {
  26786. type: "boolean"
  26787. },
  26788. "required_pull_request_reviews.dismissal_restrictions": {
  26789. type: "object"
  26790. },
  26791. "required_pull_request_reviews.dismissal_restrictions.teams": {
  26792. type: "string[]"
  26793. },
  26794. "required_pull_request_reviews.dismissal_restrictions.users": {
  26795. type: "string[]"
  26796. },
  26797. "required_pull_request_reviews.require_code_owner_reviews": {
  26798. type: "boolean"
  26799. },
  26800. "required_pull_request_reviews.required_approving_review_count": {
  26801. type: "integer"
  26802. },
  26803. required_status_checks: {
  26804. allowNull: true,
  26805. required: true,
  26806. type: "object"
  26807. },
  26808. "required_status_checks.contexts": {
  26809. required: true,
  26810. type: "string[]"
  26811. },
  26812. "required_status_checks.strict": {
  26813. required: true,
  26814. type: "boolean"
  26815. },
  26816. restrictions: {
  26817. allowNull: true,
  26818. required: true,
  26819. type: "object"
  26820. },
  26821. "restrictions.apps": {
  26822. type: "string[]"
  26823. },
  26824. "restrictions.teams": {
  26825. required: true,
  26826. type: "string[]"
  26827. },
  26828. "restrictions.users": {
  26829. required: true,
  26830. type: "string[]"
  26831. }
  26832. },
  26833. url: "/repos/:owner/:repo/branches/:branch/protection"
  26834. },
  26835. updateCommitComment: {
  26836. method: "PATCH",
  26837. params: {
  26838. body: {
  26839. required: true,
  26840. type: "string"
  26841. },
  26842. comment_id: {
  26843. required: true,
  26844. type: "integer"
  26845. },
  26846. owner: {
  26847. required: true,
  26848. type: "string"
  26849. },
  26850. repo: {
  26851. required: true,
  26852. type: "string"
  26853. }
  26854. },
  26855. url: "/repos/:owner/:repo/comments/:comment_id"
  26856. },
  26857. updateFile: {
  26858. deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  26859. method: "PUT",
  26860. params: {
  26861. author: {
  26862. type: "object"
  26863. },
  26864. "author.email": {
  26865. required: true,
  26866. type: "string"
  26867. },
  26868. "author.name": {
  26869. required: true,
  26870. type: "string"
  26871. },
  26872. branch: {
  26873. type: "string"
  26874. },
  26875. committer: {
  26876. type: "object"
  26877. },
  26878. "committer.email": {
  26879. required: true,
  26880. type: "string"
  26881. },
  26882. "committer.name": {
  26883. required: true,
  26884. type: "string"
  26885. },
  26886. content: {
  26887. required: true,
  26888. type: "string"
  26889. },
  26890. message: {
  26891. required: true,
  26892. type: "string"
  26893. },
  26894. owner: {
  26895. required: true,
  26896. type: "string"
  26897. },
  26898. path: {
  26899. required: true,
  26900. type: "string"
  26901. },
  26902. repo: {
  26903. required: true,
  26904. type: "string"
  26905. },
  26906. sha: {
  26907. type: "string"
  26908. }
  26909. },
  26910. url: "/repos/:owner/:repo/contents/:path"
  26911. },
  26912. updateHook: {
  26913. method: "PATCH",
  26914. params: {
  26915. active: {
  26916. type: "boolean"
  26917. },
  26918. add_events: {
  26919. type: "string[]"
  26920. },
  26921. config: {
  26922. type: "object"
  26923. },
  26924. "config.content_type": {
  26925. type: "string"
  26926. },
  26927. "config.insecure_ssl": {
  26928. type: "string"
  26929. },
  26930. "config.secret": {
  26931. type: "string"
  26932. },
  26933. "config.url": {
  26934. required: true,
  26935. type: "string"
  26936. },
  26937. events: {
  26938. type: "string[]"
  26939. },
  26940. hook_id: {
  26941. required: true,
  26942. type: "integer"
  26943. },
  26944. owner: {
  26945. required: true,
  26946. type: "string"
  26947. },
  26948. remove_events: {
  26949. type: "string[]"
  26950. },
  26951. repo: {
  26952. required: true,
  26953. type: "string"
  26954. }
  26955. },
  26956. url: "/repos/:owner/:repo/hooks/:hook_id"
  26957. },
  26958. updateInformationAboutPagesSite: {
  26959. method: "PUT",
  26960. params: {
  26961. cname: {
  26962. type: "string"
  26963. },
  26964. owner: {
  26965. required: true,
  26966. type: "string"
  26967. },
  26968. repo: {
  26969. required: true,
  26970. type: "string"
  26971. },
  26972. source: {
  26973. enum: ['"gh-pages"', '"master"', '"master /docs"'],
  26974. type: "string"
  26975. }
  26976. },
  26977. url: "/repos/:owner/:repo/pages"
  26978. },
  26979. updateInvitation: {
  26980. method: "PATCH",
  26981. params: {
  26982. invitation_id: {
  26983. required: true,
  26984. type: "integer"
  26985. },
  26986. owner: {
  26987. required: true,
  26988. type: "string"
  26989. },
  26990. permissions: {
  26991. enum: ["read", "write", "admin"],
  26992. type: "string"
  26993. },
  26994. repo: {
  26995. required: true,
  26996. type: "string"
  26997. }
  26998. },
  26999. url: "/repos/:owner/:repo/invitations/:invitation_id"
  27000. },
  27001. updateProtectedBranchPullRequestReviewEnforcement: {
  27002. method: "PATCH",
  27003. params: {
  27004. branch: {
  27005. required: true,
  27006. type: "string"
  27007. },
  27008. dismiss_stale_reviews: {
  27009. type: "boolean"
  27010. },
  27011. dismissal_restrictions: {
  27012. type: "object"
  27013. },
  27014. "dismissal_restrictions.teams": {
  27015. type: "string[]"
  27016. },
  27017. "dismissal_restrictions.users": {
  27018. type: "string[]"
  27019. },
  27020. owner: {
  27021. required: true,
  27022. type: "string"
  27023. },
  27024. repo: {
  27025. required: true,
  27026. type: "string"
  27027. },
  27028. require_code_owner_reviews: {
  27029. type: "boolean"
  27030. },
  27031. required_approving_review_count: {
  27032. type: "integer"
  27033. }
  27034. },
  27035. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  27036. },
  27037. updateProtectedBranchRequiredStatusChecks: {
  27038. method: "PATCH",
  27039. params: {
  27040. branch: {
  27041. required: true,
  27042. type: "string"
  27043. },
  27044. contexts: {
  27045. type: "string[]"
  27046. },
  27047. owner: {
  27048. required: true,
  27049. type: "string"
  27050. },
  27051. repo: {
  27052. required: true,
  27053. type: "string"
  27054. },
  27055. strict: {
  27056. type: "boolean"
  27057. }
  27058. },
  27059. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  27060. },
  27061. updateRelease: {
  27062. method: "PATCH",
  27063. params: {
  27064. body: {
  27065. type: "string"
  27066. },
  27067. draft: {
  27068. type: "boolean"
  27069. },
  27070. name: {
  27071. type: "string"
  27072. },
  27073. owner: {
  27074. required: true,
  27075. type: "string"
  27076. },
  27077. prerelease: {
  27078. type: "boolean"
  27079. },
  27080. release_id: {
  27081. required: true,
  27082. type: "integer"
  27083. },
  27084. repo: {
  27085. required: true,
  27086. type: "string"
  27087. },
  27088. tag_name: {
  27089. type: "string"
  27090. },
  27091. target_commitish: {
  27092. type: "string"
  27093. }
  27094. },
  27095. url: "/repos/:owner/:repo/releases/:release_id"
  27096. },
  27097. updateReleaseAsset: {
  27098. method: "PATCH",
  27099. params: {
  27100. asset_id: {
  27101. required: true,
  27102. type: "integer"
  27103. },
  27104. label: {
  27105. type: "string"
  27106. },
  27107. name: {
  27108. type: "string"
  27109. },
  27110. owner: {
  27111. required: true,
  27112. type: "string"
  27113. },
  27114. repo: {
  27115. required: true,
  27116. type: "string"
  27117. }
  27118. },
  27119. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  27120. },
  27121. uploadReleaseAsset: {
  27122. method: "POST",
  27123. params: {
  27124. data: {
  27125. mapTo: "data",
  27126. required: true,
  27127. type: "string | object"
  27128. },
  27129. file: {
  27130. alias: "data",
  27131. deprecated: true,
  27132. type: "string | object"
  27133. },
  27134. headers: {
  27135. required: true,
  27136. type: "object"
  27137. },
  27138. "headers.content-length": {
  27139. required: true,
  27140. type: "integer"
  27141. },
  27142. "headers.content-type": {
  27143. required: true,
  27144. type: "string"
  27145. },
  27146. label: {
  27147. type: "string"
  27148. },
  27149. name: {
  27150. required: true,
  27151. type: "string"
  27152. },
  27153. url: {
  27154. required: true,
  27155. type: "string"
  27156. }
  27157. },
  27158. url: ":url"
  27159. }
  27160. },
  27161. search: {
  27162. code: {
  27163. method: "GET",
  27164. params: {
  27165. order: {
  27166. enum: ["desc", "asc"],
  27167. type: "string"
  27168. },
  27169. page: {
  27170. type: "integer"
  27171. },
  27172. per_page: {
  27173. type: "integer"
  27174. },
  27175. q: {
  27176. required: true,
  27177. type: "string"
  27178. },
  27179. sort: {
  27180. enum: ["indexed"],
  27181. type: "string"
  27182. }
  27183. },
  27184. url: "/search/code"
  27185. },
  27186. commits: {
  27187. headers: {
  27188. accept: "application/vnd.github.cloak-preview+json"
  27189. },
  27190. method: "GET",
  27191. params: {
  27192. order: {
  27193. enum: ["desc", "asc"],
  27194. type: "string"
  27195. },
  27196. page: {
  27197. type: "integer"
  27198. },
  27199. per_page: {
  27200. type: "integer"
  27201. },
  27202. q: {
  27203. required: true,
  27204. type: "string"
  27205. },
  27206. sort: {
  27207. enum: ["author-date", "committer-date"],
  27208. type: "string"
  27209. }
  27210. },
  27211. url: "/search/commits"
  27212. },
  27213. issues: {
  27214. deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
  27215. method: "GET",
  27216. params: {
  27217. order: {
  27218. enum: ["desc", "asc"],
  27219. type: "string"
  27220. },
  27221. page: {
  27222. type: "integer"
  27223. },
  27224. per_page: {
  27225. type: "integer"
  27226. },
  27227. q: {
  27228. required: true,
  27229. type: "string"
  27230. },
  27231. sort: {
  27232. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  27233. type: "string"
  27234. }
  27235. },
  27236. url: "/search/issues"
  27237. },
  27238. issuesAndPullRequests: {
  27239. method: "GET",
  27240. params: {
  27241. order: {
  27242. enum: ["desc", "asc"],
  27243. type: "string"
  27244. },
  27245. page: {
  27246. type: "integer"
  27247. },
  27248. per_page: {
  27249. type: "integer"
  27250. },
  27251. q: {
  27252. required: true,
  27253. type: "string"
  27254. },
  27255. sort: {
  27256. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  27257. type: "string"
  27258. }
  27259. },
  27260. url: "/search/issues"
  27261. },
  27262. labels: {
  27263. method: "GET",
  27264. params: {
  27265. order: {
  27266. enum: ["desc", "asc"],
  27267. type: "string"
  27268. },
  27269. q: {
  27270. required: true,
  27271. type: "string"
  27272. },
  27273. repository_id: {
  27274. required: true,
  27275. type: "integer"
  27276. },
  27277. sort: {
  27278. enum: ["created", "updated"],
  27279. type: "string"
  27280. }
  27281. },
  27282. url: "/search/labels"
  27283. },
  27284. repos: {
  27285. method: "GET",
  27286. params: {
  27287. order: {
  27288. enum: ["desc", "asc"],
  27289. type: "string"
  27290. },
  27291. page: {
  27292. type: "integer"
  27293. },
  27294. per_page: {
  27295. type: "integer"
  27296. },
  27297. q: {
  27298. required: true,
  27299. type: "string"
  27300. },
  27301. sort: {
  27302. enum: ["stars", "forks", "help-wanted-issues", "updated"],
  27303. type: "string"
  27304. }
  27305. },
  27306. url: "/search/repositories"
  27307. },
  27308. topics: {
  27309. method: "GET",
  27310. params: {
  27311. q: {
  27312. required: true,
  27313. type: "string"
  27314. }
  27315. },
  27316. url: "/search/topics"
  27317. },
  27318. users: {
  27319. method: "GET",
  27320. params: {
  27321. order: {
  27322. enum: ["desc", "asc"],
  27323. type: "string"
  27324. },
  27325. page: {
  27326. type: "integer"
  27327. },
  27328. per_page: {
  27329. type: "integer"
  27330. },
  27331. q: {
  27332. required: true,
  27333. type: "string"
  27334. },
  27335. sort: {
  27336. enum: ["followers", "repositories", "joined"],
  27337. type: "string"
  27338. }
  27339. },
  27340. url: "/search/users"
  27341. }
  27342. },
  27343. teams: {
  27344. addMember: {
  27345. deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
  27346. method: "PUT",
  27347. params: {
  27348. team_id: {
  27349. required: true,
  27350. type: "integer"
  27351. },
  27352. username: {
  27353. required: true,
  27354. type: "string"
  27355. }
  27356. },
  27357. url: "/teams/:team_id/members/:username"
  27358. },
  27359. addMemberLegacy: {
  27360. deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
  27361. method: "PUT",
  27362. params: {
  27363. team_id: {
  27364. required: true,
  27365. type: "integer"
  27366. },
  27367. username: {
  27368. required: true,
  27369. type: "string"
  27370. }
  27371. },
  27372. url: "/teams/:team_id/members/:username"
  27373. },
  27374. addOrUpdateMembership: {
  27375. deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
  27376. method: "PUT",
  27377. params: {
  27378. role: {
  27379. enum: ["member", "maintainer"],
  27380. type: "string"
  27381. },
  27382. team_id: {
  27383. required: true,
  27384. type: "integer"
  27385. },
  27386. username: {
  27387. required: true,
  27388. type: "string"
  27389. }
  27390. },
  27391. url: "/teams/:team_id/memberships/:username"
  27392. },
  27393. addOrUpdateMembershipInOrg: {
  27394. method: "PUT",
  27395. params: {
  27396. org: {
  27397. required: true,
  27398. type: "string"
  27399. },
  27400. role: {
  27401. enum: ["member", "maintainer"],
  27402. type: "string"
  27403. },
  27404. team_slug: {
  27405. required: true,
  27406. type: "string"
  27407. },
  27408. username: {
  27409. required: true,
  27410. type: "string"
  27411. }
  27412. },
  27413. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  27414. },
  27415. addOrUpdateMembershipLegacy: {
  27416. deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
  27417. method: "PUT",
  27418. params: {
  27419. role: {
  27420. enum: ["member", "maintainer"],
  27421. type: "string"
  27422. },
  27423. team_id: {
  27424. required: true,
  27425. type: "integer"
  27426. },
  27427. username: {
  27428. required: true,
  27429. type: "string"
  27430. }
  27431. },
  27432. url: "/teams/:team_id/memberships/:username"
  27433. },
  27434. addOrUpdateProject: {
  27435. deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
  27436. headers: {
  27437. accept: "application/vnd.github.inertia-preview+json"
  27438. },
  27439. method: "PUT",
  27440. params: {
  27441. permission: {
  27442. enum: ["read", "write", "admin"],
  27443. type: "string"
  27444. },
  27445. project_id: {
  27446. required: true,
  27447. type: "integer"
  27448. },
  27449. team_id: {
  27450. required: true,
  27451. type: "integer"
  27452. }
  27453. },
  27454. url: "/teams/:team_id/projects/:project_id"
  27455. },
  27456. addOrUpdateProjectInOrg: {
  27457. headers: {
  27458. accept: "application/vnd.github.inertia-preview+json"
  27459. },
  27460. method: "PUT",
  27461. params: {
  27462. org: {
  27463. required: true,
  27464. type: "string"
  27465. },
  27466. permission: {
  27467. enum: ["read", "write", "admin"],
  27468. type: "string"
  27469. },
  27470. project_id: {
  27471. required: true,
  27472. type: "integer"
  27473. },
  27474. team_slug: {
  27475. required: true,
  27476. type: "string"
  27477. }
  27478. },
  27479. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  27480. },
  27481. addOrUpdateProjectLegacy: {
  27482. deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
  27483. headers: {
  27484. accept: "application/vnd.github.inertia-preview+json"
  27485. },
  27486. method: "PUT",
  27487. params: {
  27488. permission: {
  27489. enum: ["read", "write", "admin"],
  27490. type: "string"
  27491. },
  27492. project_id: {
  27493. required: true,
  27494. type: "integer"
  27495. },
  27496. team_id: {
  27497. required: true,
  27498. type: "integer"
  27499. }
  27500. },
  27501. url: "/teams/:team_id/projects/:project_id"
  27502. },
  27503. addOrUpdateRepo: {
  27504. deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
  27505. method: "PUT",
  27506. params: {
  27507. owner: {
  27508. required: true,
  27509. type: "string"
  27510. },
  27511. permission: {
  27512. enum: ["pull", "push", "admin"],
  27513. type: "string"
  27514. },
  27515. repo: {
  27516. required: true,
  27517. type: "string"
  27518. },
  27519. team_id: {
  27520. required: true,
  27521. type: "integer"
  27522. }
  27523. },
  27524. url: "/teams/:team_id/repos/:owner/:repo"
  27525. },
  27526. addOrUpdateRepoInOrg: {
  27527. method: "PUT",
  27528. params: {
  27529. org: {
  27530. required: true,
  27531. type: "string"
  27532. },
  27533. owner: {
  27534. required: true,
  27535. type: "string"
  27536. },
  27537. permission: {
  27538. enum: ["pull", "push", "admin"],
  27539. type: "string"
  27540. },
  27541. repo: {
  27542. required: true,
  27543. type: "string"
  27544. },
  27545. team_slug: {
  27546. required: true,
  27547. type: "string"
  27548. }
  27549. },
  27550. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  27551. },
  27552. addOrUpdateRepoLegacy: {
  27553. deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
  27554. method: "PUT",
  27555. params: {
  27556. owner: {
  27557. required: true,
  27558. type: "string"
  27559. },
  27560. permission: {
  27561. enum: ["pull", "push", "admin"],
  27562. type: "string"
  27563. },
  27564. repo: {
  27565. required: true,
  27566. type: "string"
  27567. },
  27568. team_id: {
  27569. required: true,
  27570. type: "integer"
  27571. }
  27572. },
  27573. url: "/teams/:team_id/repos/:owner/:repo"
  27574. },
  27575. checkManagesRepo: {
  27576. deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
  27577. method: "GET",
  27578. params: {
  27579. owner: {
  27580. required: true,
  27581. type: "string"
  27582. },
  27583. repo: {
  27584. required: true,
  27585. type: "string"
  27586. },
  27587. team_id: {
  27588. required: true,
  27589. type: "integer"
  27590. }
  27591. },
  27592. url: "/teams/:team_id/repos/:owner/:repo"
  27593. },
  27594. checkManagesRepoInOrg: {
  27595. method: "GET",
  27596. params: {
  27597. org: {
  27598. required: true,
  27599. type: "string"
  27600. },
  27601. owner: {
  27602. required: true,
  27603. type: "string"
  27604. },
  27605. repo: {
  27606. required: true,
  27607. type: "string"
  27608. },
  27609. team_slug: {
  27610. required: true,
  27611. type: "string"
  27612. }
  27613. },
  27614. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  27615. },
  27616. checkManagesRepoLegacy: {
  27617. deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
  27618. method: "GET",
  27619. params: {
  27620. owner: {
  27621. required: true,
  27622. type: "string"
  27623. },
  27624. repo: {
  27625. required: true,
  27626. type: "string"
  27627. },
  27628. team_id: {
  27629. required: true,
  27630. type: "integer"
  27631. }
  27632. },
  27633. url: "/teams/:team_id/repos/:owner/:repo"
  27634. },
  27635. create: {
  27636. method: "POST",
  27637. params: {
  27638. description: {
  27639. type: "string"
  27640. },
  27641. maintainers: {
  27642. type: "string[]"
  27643. },
  27644. name: {
  27645. required: true,
  27646. type: "string"
  27647. },
  27648. org: {
  27649. required: true,
  27650. type: "string"
  27651. },
  27652. parent_team_id: {
  27653. type: "integer"
  27654. },
  27655. permission: {
  27656. enum: ["pull", "push", "admin"],
  27657. type: "string"
  27658. },
  27659. privacy: {
  27660. enum: ["secret", "closed"],
  27661. type: "string"
  27662. },
  27663. repo_names: {
  27664. type: "string[]"
  27665. }
  27666. },
  27667. url: "/orgs/:org/teams"
  27668. },
  27669. createDiscussion: {
  27670. deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
  27671. method: "POST",
  27672. params: {
  27673. body: {
  27674. required: true,
  27675. type: "string"
  27676. },
  27677. private: {
  27678. type: "boolean"
  27679. },
  27680. team_id: {
  27681. required: true,
  27682. type: "integer"
  27683. },
  27684. title: {
  27685. required: true,
  27686. type: "string"
  27687. }
  27688. },
  27689. url: "/teams/:team_id/discussions"
  27690. },
  27691. createDiscussionComment: {
  27692. deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
  27693. method: "POST",
  27694. params: {
  27695. body: {
  27696. required: true,
  27697. type: "string"
  27698. },
  27699. discussion_number: {
  27700. required: true,
  27701. type: "integer"
  27702. },
  27703. team_id: {
  27704. required: true,
  27705. type: "integer"
  27706. }
  27707. },
  27708. url: "/teams/:team_id/discussions/:discussion_number/comments"
  27709. },
  27710. createDiscussionCommentInOrg: {
  27711. method: "POST",
  27712. params: {
  27713. body: {
  27714. required: true,
  27715. type: "string"
  27716. },
  27717. discussion_number: {
  27718. required: true,
  27719. type: "integer"
  27720. },
  27721. org: {
  27722. required: true,
  27723. type: "string"
  27724. },
  27725. team_slug: {
  27726. required: true,
  27727. type: "string"
  27728. }
  27729. },
  27730. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  27731. },
  27732. createDiscussionCommentLegacy: {
  27733. deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
  27734. method: "POST",
  27735. params: {
  27736. body: {
  27737. required: true,
  27738. type: "string"
  27739. },
  27740. discussion_number: {
  27741. required: true,
  27742. type: "integer"
  27743. },
  27744. team_id: {
  27745. required: true,
  27746. type: "integer"
  27747. }
  27748. },
  27749. url: "/teams/:team_id/discussions/:discussion_number/comments"
  27750. },
  27751. createDiscussionInOrg: {
  27752. method: "POST",
  27753. params: {
  27754. body: {
  27755. required: true,
  27756. type: "string"
  27757. },
  27758. org: {
  27759. required: true,
  27760. type: "string"
  27761. },
  27762. private: {
  27763. type: "boolean"
  27764. },
  27765. team_slug: {
  27766. required: true,
  27767. type: "string"
  27768. },
  27769. title: {
  27770. required: true,
  27771. type: "string"
  27772. }
  27773. },
  27774. url: "/orgs/:org/teams/:team_slug/discussions"
  27775. },
  27776. createDiscussionLegacy: {
  27777. deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
  27778. method: "POST",
  27779. params: {
  27780. body: {
  27781. required: true,
  27782. type: "string"
  27783. },
  27784. private: {
  27785. type: "boolean"
  27786. },
  27787. team_id: {
  27788. required: true,
  27789. type: "integer"
  27790. },
  27791. title: {
  27792. required: true,
  27793. type: "string"
  27794. }
  27795. },
  27796. url: "/teams/:team_id/discussions"
  27797. },
  27798. delete: {
  27799. deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
  27800. method: "DELETE",
  27801. params: {
  27802. team_id: {
  27803. required: true,
  27804. type: "integer"
  27805. }
  27806. },
  27807. url: "/teams/:team_id"
  27808. },
  27809. deleteDiscussion: {
  27810. deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
  27811. method: "DELETE",
  27812. params: {
  27813. discussion_number: {
  27814. required: true,
  27815. type: "integer"
  27816. },
  27817. team_id: {
  27818. required: true,
  27819. type: "integer"
  27820. }
  27821. },
  27822. url: "/teams/:team_id/discussions/:discussion_number"
  27823. },
  27824. deleteDiscussionComment: {
  27825. deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
  27826. method: "DELETE",
  27827. params: {
  27828. comment_number: {
  27829. required: true,
  27830. type: "integer"
  27831. },
  27832. discussion_number: {
  27833. required: true,
  27834. type: "integer"
  27835. },
  27836. team_id: {
  27837. required: true,
  27838. type: "integer"
  27839. }
  27840. },
  27841. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27842. },
  27843. deleteDiscussionCommentInOrg: {
  27844. method: "DELETE",
  27845. params: {
  27846. comment_number: {
  27847. required: true,
  27848. type: "integer"
  27849. },
  27850. discussion_number: {
  27851. required: true,
  27852. type: "integer"
  27853. },
  27854. org: {
  27855. required: true,
  27856. type: "string"
  27857. },
  27858. team_slug: {
  27859. required: true,
  27860. type: "string"
  27861. }
  27862. },
  27863. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  27864. },
  27865. deleteDiscussionCommentLegacy: {
  27866. deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
  27867. method: "DELETE",
  27868. params: {
  27869. comment_number: {
  27870. required: true,
  27871. type: "integer"
  27872. },
  27873. discussion_number: {
  27874. required: true,
  27875. type: "integer"
  27876. },
  27877. team_id: {
  27878. required: true,
  27879. type: "integer"
  27880. }
  27881. },
  27882. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27883. },
  27884. deleteDiscussionInOrg: {
  27885. method: "DELETE",
  27886. params: {
  27887. discussion_number: {
  27888. required: true,
  27889. type: "integer"
  27890. },
  27891. org: {
  27892. required: true,
  27893. type: "string"
  27894. },
  27895. team_slug: {
  27896. required: true,
  27897. type: "string"
  27898. }
  27899. },
  27900. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  27901. },
  27902. deleteDiscussionLegacy: {
  27903. deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
  27904. method: "DELETE",
  27905. params: {
  27906. discussion_number: {
  27907. required: true,
  27908. type: "integer"
  27909. },
  27910. team_id: {
  27911. required: true,
  27912. type: "integer"
  27913. }
  27914. },
  27915. url: "/teams/:team_id/discussions/:discussion_number"
  27916. },
  27917. deleteInOrg: {
  27918. method: "DELETE",
  27919. params: {
  27920. org: {
  27921. required: true,
  27922. type: "string"
  27923. },
  27924. team_slug: {
  27925. required: true,
  27926. type: "string"
  27927. }
  27928. },
  27929. url: "/orgs/:org/teams/:team_slug"
  27930. },
  27931. deleteLegacy: {
  27932. deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
  27933. method: "DELETE",
  27934. params: {
  27935. team_id: {
  27936. required: true,
  27937. type: "integer"
  27938. }
  27939. },
  27940. url: "/teams/:team_id"
  27941. },
  27942. get: {
  27943. deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
  27944. method: "GET",
  27945. params: {
  27946. team_id: {
  27947. required: true,
  27948. type: "integer"
  27949. }
  27950. },
  27951. url: "/teams/:team_id"
  27952. },
  27953. getByName: {
  27954. method: "GET",
  27955. params: {
  27956. org: {
  27957. required: true,
  27958. type: "string"
  27959. },
  27960. team_slug: {
  27961. required: true,
  27962. type: "string"
  27963. }
  27964. },
  27965. url: "/orgs/:org/teams/:team_slug"
  27966. },
  27967. getDiscussion: {
  27968. deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
  27969. method: "GET",
  27970. params: {
  27971. discussion_number: {
  27972. required: true,
  27973. type: "integer"
  27974. },
  27975. team_id: {
  27976. required: true,
  27977. type: "integer"
  27978. }
  27979. },
  27980. url: "/teams/:team_id/discussions/:discussion_number"
  27981. },
  27982. getDiscussionComment: {
  27983. deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
  27984. method: "GET",
  27985. params: {
  27986. comment_number: {
  27987. required: true,
  27988. type: "integer"
  27989. },
  27990. discussion_number: {
  27991. required: true,
  27992. type: "integer"
  27993. },
  27994. team_id: {
  27995. required: true,
  27996. type: "integer"
  27997. }
  27998. },
  27999. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28000. },
  28001. getDiscussionCommentInOrg: {
  28002. method: "GET",
  28003. params: {
  28004. comment_number: {
  28005. required: true,
  28006. type: "integer"
  28007. },
  28008. discussion_number: {
  28009. required: true,
  28010. type: "integer"
  28011. },
  28012. org: {
  28013. required: true,
  28014. type: "string"
  28015. },
  28016. team_slug: {
  28017. required: true,
  28018. type: "string"
  28019. }
  28020. },
  28021. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  28022. },
  28023. getDiscussionCommentLegacy: {
  28024. deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
  28025. method: "GET",
  28026. params: {
  28027. comment_number: {
  28028. required: true,
  28029. type: "integer"
  28030. },
  28031. discussion_number: {
  28032. required: true,
  28033. type: "integer"
  28034. },
  28035. team_id: {
  28036. required: true,
  28037. type: "integer"
  28038. }
  28039. },
  28040. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28041. },
  28042. getDiscussionInOrg: {
  28043. method: "GET",
  28044. params: {
  28045. discussion_number: {
  28046. required: true,
  28047. type: "integer"
  28048. },
  28049. org: {
  28050. required: true,
  28051. type: "string"
  28052. },
  28053. team_slug: {
  28054. required: true,
  28055. type: "string"
  28056. }
  28057. },
  28058. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  28059. },
  28060. getDiscussionLegacy: {
  28061. deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
  28062. method: "GET",
  28063. params: {
  28064. discussion_number: {
  28065. required: true,
  28066. type: "integer"
  28067. },
  28068. team_id: {
  28069. required: true,
  28070. type: "integer"
  28071. }
  28072. },
  28073. url: "/teams/:team_id/discussions/:discussion_number"
  28074. },
  28075. getLegacy: {
  28076. deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
  28077. method: "GET",
  28078. params: {
  28079. team_id: {
  28080. required: true,
  28081. type: "integer"
  28082. }
  28083. },
  28084. url: "/teams/:team_id"
  28085. },
  28086. getMember: {
  28087. deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
  28088. method: "GET",
  28089. params: {
  28090. team_id: {
  28091. required: true,
  28092. type: "integer"
  28093. },
  28094. username: {
  28095. required: true,
  28096. type: "string"
  28097. }
  28098. },
  28099. url: "/teams/:team_id/members/:username"
  28100. },
  28101. getMemberLegacy: {
  28102. deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
  28103. method: "GET",
  28104. params: {
  28105. team_id: {
  28106. required: true,
  28107. type: "integer"
  28108. },
  28109. username: {
  28110. required: true,
  28111. type: "string"
  28112. }
  28113. },
  28114. url: "/teams/:team_id/members/:username"
  28115. },
  28116. getMembership: {
  28117. deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
  28118. method: "GET",
  28119. params: {
  28120. team_id: {
  28121. required: true,
  28122. type: "integer"
  28123. },
  28124. username: {
  28125. required: true,
  28126. type: "string"
  28127. }
  28128. },
  28129. url: "/teams/:team_id/memberships/:username"
  28130. },
  28131. getMembershipInOrg: {
  28132. method: "GET",
  28133. params: {
  28134. org: {
  28135. required: true,
  28136. type: "string"
  28137. },
  28138. team_slug: {
  28139. required: true,
  28140. type: "string"
  28141. },
  28142. username: {
  28143. required: true,
  28144. type: "string"
  28145. }
  28146. },
  28147. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  28148. },
  28149. getMembershipLegacy: {
  28150. deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
  28151. method: "GET",
  28152. params: {
  28153. team_id: {
  28154. required: true,
  28155. type: "integer"
  28156. },
  28157. username: {
  28158. required: true,
  28159. type: "string"
  28160. }
  28161. },
  28162. url: "/teams/:team_id/memberships/:username"
  28163. },
  28164. list: {
  28165. method: "GET",
  28166. params: {
  28167. org: {
  28168. required: true,
  28169. type: "string"
  28170. },
  28171. page: {
  28172. type: "integer"
  28173. },
  28174. per_page: {
  28175. type: "integer"
  28176. }
  28177. },
  28178. url: "/orgs/:org/teams"
  28179. },
  28180. listChild: {
  28181. deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
  28182. method: "GET",
  28183. params: {
  28184. page: {
  28185. type: "integer"
  28186. },
  28187. per_page: {
  28188. type: "integer"
  28189. },
  28190. team_id: {
  28191. required: true,
  28192. type: "integer"
  28193. }
  28194. },
  28195. url: "/teams/:team_id/teams"
  28196. },
  28197. listChildInOrg: {
  28198. method: "GET",
  28199. params: {
  28200. org: {
  28201. required: true,
  28202. type: "string"
  28203. },
  28204. page: {
  28205. type: "integer"
  28206. },
  28207. per_page: {
  28208. type: "integer"
  28209. },
  28210. team_slug: {
  28211. required: true,
  28212. type: "string"
  28213. }
  28214. },
  28215. url: "/orgs/:org/teams/:team_slug/teams"
  28216. },
  28217. listChildLegacy: {
  28218. deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
  28219. method: "GET",
  28220. params: {
  28221. page: {
  28222. type: "integer"
  28223. },
  28224. per_page: {
  28225. type: "integer"
  28226. },
  28227. team_id: {
  28228. required: true,
  28229. type: "integer"
  28230. }
  28231. },
  28232. url: "/teams/:team_id/teams"
  28233. },
  28234. listDiscussionComments: {
  28235. deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
  28236. method: "GET",
  28237. params: {
  28238. direction: {
  28239. enum: ["asc", "desc"],
  28240. type: "string"
  28241. },
  28242. discussion_number: {
  28243. required: true,
  28244. type: "integer"
  28245. },
  28246. page: {
  28247. type: "integer"
  28248. },
  28249. per_page: {
  28250. type: "integer"
  28251. },
  28252. team_id: {
  28253. required: true,
  28254. type: "integer"
  28255. }
  28256. },
  28257. url: "/teams/:team_id/discussions/:discussion_number/comments"
  28258. },
  28259. listDiscussionCommentsInOrg: {
  28260. method: "GET",
  28261. params: {
  28262. direction: {
  28263. enum: ["asc", "desc"],
  28264. type: "string"
  28265. },
  28266. discussion_number: {
  28267. required: true,
  28268. type: "integer"
  28269. },
  28270. org: {
  28271. required: true,
  28272. type: "string"
  28273. },
  28274. page: {
  28275. type: "integer"
  28276. },
  28277. per_page: {
  28278. type: "integer"
  28279. },
  28280. team_slug: {
  28281. required: true,
  28282. type: "string"
  28283. }
  28284. },
  28285. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  28286. },
  28287. listDiscussionCommentsLegacy: {
  28288. deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
  28289. method: "GET",
  28290. params: {
  28291. direction: {
  28292. enum: ["asc", "desc"],
  28293. type: "string"
  28294. },
  28295. discussion_number: {
  28296. required: true,
  28297. type: "integer"
  28298. },
  28299. page: {
  28300. type: "integer"
  28301. },
  28302. per_page: {
  28303. type: "integer"
  28304. },
  28305. team_id: {
  28306. required: true,
  28307. type: "integer"
  28308. }
  28309. },
  28310. url: "/teams/:team_id/discussions/:discussion_number/comments"
  28311. },
  28312. listDiscussions: {
  28313. deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
  28314. method: "GET",
  28315. params: {
  28316. direction: {
  28317. enum: ["asc", "desc"],
  28318. type: "string"
  28319. },
  28320. page: {
  28321. type: "integer"
  28322. },
  28323. per_page: {
  28324. type: "integer"
  28325. },
  28326. team_id: {
  28327. required: true,
  28328. type: "integer"
  28329. }
  28330. },
  28331. url: "/teams/:team_id/discussions"
  28332. },
  28333. listDiscussionsInOrg: {
  28334. method: "GET",
  28335. params: {
  28336. direction: {
  28337. enum: ["asc", "desc"],
  28338. type: "string"
  28339. },
  28340. org: {
  28341. required: true,
  28342. type: "string"
  28343. },
  28344. page: {
  28345. type: "integer"
  28346. },
  28347. per_page: {
  28348. type: "integer"
  28349. },
  28350. team_slug: {
  28351. required: true,
  28352. type: "string"
  28353. }
  28354. },
  28355. url: "/orgs/:org/teams/:team_slug/discussions"
  28356. },
  28357. listDiscussionsLegacy: {
  28358. deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
  28359. method: "GET",
  28360. params: {
  28361. direction: {
  28362. enum: ["asc", "desc"],
  28363. type: "string"
  28364. },
  28365. page: {
  28366. type: "integer"
  28367. },
  28368. per_page: {
  28369. type: "integer"
  28370. },
  28371. team_id: {
  28372. required: true,
  28373. type: "integer"
  28374. }
  28375. },
  28376. url: "/teams/:team_id/discussions"
  28377. },
  28378. listForAuthenticatedUser: {
  28379. method: "GET",
  28380. params: {
  28381. page: {
  28382. type: "integer"
  28383. },
  28384. per_page: {
  28385. type: "integer"
  28386. }
  28387. },
  28388. url: "/user/teams"
  28389. },
  28390. listMembers: {
  28391. deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
  28392. method: "GET",
  28393. params: {
  28394. page: {
  28395. type: "integer"
  28396. },
  28397. per_page: {
  28398. type: "integer"
  28399. },
  28400. role: {
  28401. enum: ["member", "maintainer", "all"],
  28402. type: "string"
  28403. },
  28404. team_id: {
  28405. required: true,
  28406. type: "integer"
  28407. }
  28408. },
  28409. url: "/teams/:team_id/members"
  28410. },
  28411. listMembersInOrg: {
  28412. method: "GET",
  28413. params: {
  28414. org: {
  28415. required: true,
  28416. type: "string"
  28417. },
  28418. page: {
  28419. type: "integer"
  28420. },
  28421. per_page: {
  28422. type: "integer"
  28423. },
  28424. role: {
  28425. enum: ["member", "maintainer", "all"],
  28426. type: "string"
  28427. },
  28428. team_slug: {
  28429. required: true,
  28430. type: "string"
  28431. }
  28432. },
  28433. url: "/orgs/:org/teams/:team_slug/members"
  28434. },
  28435. listMembersLegacy: {
  28436. deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
  28437. method: "GET",
  28438. params: {
  28439. page: {
  28440. type: "integer"
  28441. },
  28442. per_page: {
  28443. type: "integer"
  28444. },
  28445. role: {
  28446. enum: ["member", "maintainer", "all"],
  28447. type: "string"
  28448. },
  28449. team_id: {
  28450. required: true,
  28451. type: "integer"
  28452. }
  28453. },
  28454. url: "/teams/:team_id/members"
  28455. },
  28456. listPendingInvitations: {
  28457. deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
  28458. method: "GET",
  28459. params: {
  28460. page: {
  28461. type: "integer"
  28462. },
  28463. per_page: {
  28464. type: "integer"
  28465. },
  28466. team_id: {
  28467. required: true,
  28468. type: "integer"
  28469. }
  28470. },
  28471. url: "/teams/:team_id/invitations"
  28472. },
  28473. listPendingInvitationsInOrg: {
  28474. method: "GET",
  28475. params: {
  28476. org: {
  28477. required: true,
  28478. type: "string"
  28479. },
  28480. page: {
  28481. type: "integer"
  28482. },
  28483. per_page: {
  28484. type: "integer"
  28485. },
  28486. team_slug: {
  28487. required: true,
  28488. type: "string"
  28489. }
  28490. },
  28491. url: "/orgs/:org/teams/:team_slug/invitations"
  28492. },
  28493. listPendingInvitationsLegacy: {
  28494. deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
  28495. method: "GET",
  28496. params: {
  28497. page: {
  28498. type: "integer"
  28499. },
  28500. per_page: {
  28501. type: "integer"
  28502. },
  28503. team_id: {
  28504. required: true,
  28505. type: "integer"
  28506. }
  28507. },
  28508. url: "/teams/:team_id/invitations"
  28509. },
  28510. listProjects: {
  28511. deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
  28512. headers: {
  28513. accept: "application/vnd.github.inertia-preview+json"
  28514. },
  28515. method: "GET",
  28516. params: {
  28517. page: {
  28518. type: "integer"
  28519. },
  28520. per_page: {
  28521. type: "integer"
  28522. },
  28523. team_id: {
  28524. required: true,
  28525. type: "integer"
  28526. }
  28527. },
  28528. url: "/teams/:team_id/projects"
  28529. },
  28530. listProjectsInOrg: {
  28531. headers: {
  28532. accept: "application/vnd.github.inertia-preview+json"
  28533. },
  28534. method: "GET",
  28535. params: {
  28536. org: {
  28537. required: true,
  28538. type: "string"
  28539. },
  28540. page: {
  28541. type: "integer"
  28542. },
  28543. per_page: {
  28544. type: "integer"
  28545. },
  28546. team_slug: {
  28547. required: true,
  28548. type: "string"
  28549. }
  28550. },
  28551. url: "/orgs/:org/teams/:team_slug/projects"
  28552. },
  28553. listProjectsLegacy: {
  28554. deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
  28555. headers: {
  28556. accept: "application/vnd.github.inertia-preview+json"
  28557. },
  28558. method: "GET",
  28559. params: {
  28560. page: {
  28561. type: "integer"
  28562. },
  28563. per_page: {
  28564. type: "integer"
  28565. },
  28566. team_id: {
  28567. required: true,
  28568. type: "integer"
  28569. }
  28570. },
  28571. url: "/teams/:team_id/projects"
  28572. },
  28573. listRepos: {
  28574. deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
  28575. method: "GET",
  28576. params: {
  28577. page: {
  28578. type: "integer"
  28579. },
  28580. per_page: {
  28581. type: "integer"
  28582. },
  28583. team_id: {
  28584. required: true,
  28585. type: "integer"
  28586. }
  28587. },
  28588. url: "/teams/:team_id/repos"
  28589. },
  28590. listReposInOrg: {
  28591. method: "GET",
  28592. params: {
  28593. org: {
  28594. required: true,
  28595. type: "string"
  28596. },
  28597. page: {
  28598. type: "integer"
  28599. },
  28600. per_page: {
  28601. type: "integer"
  28602. },
  28603. team_slug: {
  28604. required: true,
  28605. type: "string"
  28606. }
  28607. },
  28608. url: "/orgs/:org/teams/:team_slug/repos"
  28609. },
  28610. listReposLegacy: {
  28611. deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
  28612. method: "GET",
  28613. params: {
  28614. page: {
  28615. type: "integer"
  28616. },
  28617. per_page: {
  28618. type: "integer"
  28619. },
  28620. team_id: {
  28621. required: true,
  28622. type: "integer"
  28623. }
  28624. },
  28625. url: "/teams/:team_id/repos"
  28626. },
  28627. removeMember: {
  28628. deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
  28629. method: "DELETE",
  28630. params: {
  28631. team_id: {
  28632. required: true,
  28633. type: "integer"
  28634. },
  28635. username: {
  28636. required: true,
  28637. type: "string"
  28638. }
  28639. },
  28640. url: "/teams/:team_id/members/:username"
  28641. },
  28642. removeMemberLegacy: {
  28643. deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
  28644. method: "DELETE",
  28645. params: {
  28646. team_id: {
  28647. required: true,
  28648. type: "integer"
  28649. },
  28650. username: {
  28651. required: true,
  28652. type: "string"
  28653. }
  28654. },
  28655. url: "/teams/:team_id/members/:username"
  28656. },
  28657. removeMembership: {
  28658. deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
  28659. method: "DELETE",
  28660. params: {
  28661. team_id: {
  28662. required: true,
  28663. type: "integer"
  28664. },
  28665. username: {
  28666. required: true,
  28667. type: "string"
  28668. }
  28669. },
  28670. url: "/teams/:team_id/memberships/:username"
  28671. },
  28672. removeMembershipInOrg: {
  28673. method: "DELETE",
  28674. params: {
  28675. org: {
  28676. required: true,
  28677. type: "string"
  28678. },
  28679. team_slug: {
  28680. required: true,
  28681. type: "string"
  28682. },
  28683. username: {
  28684. required: true,
  28685. type: "string"
  28686. }
  28687. },
  28688. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  28689. },
  28690. removeMembershipLegacy: {
  28691. deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
  28692. method: "DELETE",
  28693. params: {
  28694. team_id: {
  28695. required: true,
  28696. type: "integer"
  28697. },
  28698. username: {
  28699. required: true,
  28700. type: "string"
  28701. }
  28702. },
  28703. url: "/teams/:team_id/memberships/:username"
  28704. },
  28705. removeProject: {
  28706. deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
  28707. method: "DELETE",
  28708. params: {
  28709. project_id: {
  28710. required: true,
  28711. type: "integer"
  28712. },
  28713. team_id: {
  28714. required: true,
  28715. type: "integer"
  28716. }
  28717. },
  28718. url: "/teams/:team_id/projects/:project_id"
  28719. },
  28720. removeProjectInOrg: {
  28721. method: "DELETE",
  28722. params: {
  28723. org: {
  28724. required: true,
  28725. type: "string"
  28726. },
  28727. project_id: {
  28728. required: true,
  28729. type: "integer"
  28730. },
  28731. team_slug: {
  28732. required: true,
  28733. type: "string"
  28734. }
  28735. },
  28736. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  28737. },
  28738. removeProjectLegacy: {
  28739. deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
  28740. method: "DELETE",
  28741. params: {
  28742. project_id: {
  28743. required: true,
  28744. type: "integer"
  28745. },
  28746. team_id: {
  28747. required: true,
  28748. type: "integer"
  28749. }
  28750. },
  28751. url: "/teams/:team_id/projects/:project_id"
  28752. },
  28753. removeRepo: {
  28754. deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
  28755. method: "DELETE",
  28756. params: {
  28757. owner: {
  28758. required: true,
  28759. type: "string"
  28760. },
  28761. repo: {
  28762. required: true,
  28763. type: "string"
  28764. },
  28765. team_id: {
  28766. required: true,
  28767. type: "integer"
  28768. }
  28769. },
  28770. url: "/teams/:team_id/repos/:owner/:repo"
  28771. },
  28772. removeRepoInOrg: {
  28773. method: "DELETE",
  28774. params: {
  28775. org: {
  28776. required: true,
  28777. type: "string"
  28778. },
  28779. owner: {
  28780. required: true,
  28781. type: "string"
  28782. },
  28783. repo: {
  28784. required: true,
  28785. type: "string"
  28786. },
  28787. team_slug: {
  28788. required: true,
  28789. type: "string"
  28790. }
  28791. },
  28792. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  28793. },
  28794. removeRepoLegacy: {
  28795. deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
  28796. method: "DELETE",
  28797. params: {
  28798. owner: {
  28799. required: true,
  28800. type: "string"
  28801. },
  28802. repo: {
  28803. required: true,
  28804. type: "string"
  28805. },
  28806. team_id: {
  28807. required: true,
  28808. type: "integer"
  28809. }
  28810. },
  28811. url: "/teams/:team_id/repos/:owner/:repo"
  28812. },
  28813. reviewProject: {
  28814. deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
  28815. headers: {
  28816. accept: "application/vnd.github.inertia-preview+json"
  28817. },
  28818. method: "GET",
  28819. params: {
  28820. project_id: {
  28821. required: true,
  28822. type: "integer"
  28823. },
  28824. team_id: {
  28825. required: true,
  28826. type: "integer"
  28827. }
  28828. },
  28829. url: "/teams/:team_id/projects/:project_id"
  28830. },
  28831. reviewProjectInOrg: {
  28832. headers: {
  28833. accept: "application/vnd.github.inertia-preview+json"
  28834. },
  28835. method: "GET",
  28836. params: {
  28837. org: {
  28838. required: true,
  28839. type: "string"
  28840. },
  28841. project_id: {
  28842. required: true,
  28843. type: "integer"
  28844. },
  28845. team_slug: {
  28846. required: true,
  28847. type: "string"
  28848. }
  28849. },
  28850. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  28851. },
  28852. reviewProjectLegacy: {
  28853. deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
  28854. headers: {
  28855. accept: "application/vnd.github.inertia-preview+json"
  28856. },
  28857. method: "GET",
  28858. params: {
  28859. project_id: {
  28860. required: true,
  28861. type: "integer"
  28862. },
  28863. team_id: {
  28864. required: true,
  28865. type: "integer"
  28866. }
  28867. },
  28868. url: "/teams/:team_id/projects/:project_id"
  28869. },
  28870. update: {
  28871. deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
  28872. method: "PATCH",
  28873. params: {
  28874. description: {
  28875. type: "string"
  28876. },
  28877. name: {
  28878. required: true,
  28879. type: "string"
  28880. },
  28881. parent_team_id: {
  28882. type: "integer"
  28883. },
  28884. permission: {
  28885. enum: ["pull", "push", "admin"],
  28886. type: "string"
  28887. },
  28888. privacy: {
  28889. enum: ["secret", "closed"],
  28890. type: "string"
  28891. },
  28892. team_id: {
  28893. required: true,
  28894. type: "integer"
  28895. }
  28896. },
  28897. url: "/teams/:team_id"
  28898. },
  28899. updateDiscussion: {
  28900. deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
  28901. method: "PATCH",
  28902. params: {
  28903. body: {
  28904. type: "string"
  28905. },
  28906. discussion_number: {
  28907. required: true,
  28908. type: "integer"
  28909. },
  28910. team_id: {
  28911. required: true,
  28912. type: "integer"
  28913. },
  28914. title: {
  28915. type: "string"
  28916. }
  28917. },
  28918. url: "/teams/:team_id/discussions/:discussion_number"
  28919. },
  28920. updateDiscussionComment: {
  28921. deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
  28922. method: "PATCH",
  28923. params: {
  28924. body: {
  28925. required: true,
  28926. type: "string"
  28927. },
  28928. comment_number: {
  28929. required: true,
  28930. type: "integer"
  28931. },
  28932. discussion_number: {
  28933. required: true,
  28934. type: "integer"
  28935. },
  28936. team_id: {
  28937. required: true,
  28938. type: "integer"
  28939. }
  28940. },
  28941. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28942. },
  28943. updateDiscussionCommentInOrg: {
  28944. method: "PATCH",
  28945. params: {
  28946. body: {
  28947. required: true,
  28948. type: "string"
  28949. },
  28950. comment_number: {
  28951. required: true,
  28952. type: "integer"
  28953. },
  28954. discussion_number: {
  28955. required: true,
  28956. type: "integer"
  28957. },
  28958. org: {
  28959. required: true,
  28960. type: "string"
  28961. },
  28962. team_slug: {
  28963. required: true,
  28964. type: "string"
  28965. }
  28966. },
  28967. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  28968. },
  28969. updateDiscussionCommentLegacy: {
  28970. deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
  28971. method: "PATCH",
  28972. params: {
  28973. body: {
  28974. required: true,
  28975. type: "string"
  28976. },
  28977. comment_number: {
  28978. required: true,
  28979. type: "integer"
  28980. },
  28981. discussion_number: {
  28982. required: true,
  28983. type: "integer"
  28984. },
  28985. team_id: {
  28986. required: true,
  28987. type: "integer"
  28988. }
  28989. },
  28990. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28991. },
  28992. updateDiscussionInOrg: {
  28993. method: "PATCH",
  28994. params: {
  28995. body: {
  28996. type: "string"
  28997. },
  28998. discussion_number: {
  28999. required: true,
  29000. type: "integer"
  29001. },
  29002. org: {
  29003. required: true,
  29004. type: "string"
  29005. },
  29006. team_slug: {
  29007. required: true,
  29008. type: "string"
  29009. },
  29010. title: {
  29011. type: "string"
  29012. }
  29013. },
  29014. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  29015. },
  29016. updateDiscussionLegacy: {
  29017. deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
  29018. method: "PATCH",
  29019. params: {
  29020. body: {
  29021. type: "string"
  29022. },
  29023. discussion_number: {
  29024. required: true,
  29025. type: "integer"
  29026. },
  29027. team_id: {
  29028. required: true,
  29029. type: "integer"
  29030. },
  29031. title: {
  29032. type: "string"
  29033. }
  29034. },
  29035. url: "/teams/:team_id/discussions/:discussion_number"
  29036. },
  29037. updateInOrg: {
  29038. method: "PATCH",
  29039. params: {
  29040. description: {
  29041. type: "string"
  29042. },
  29043. name: {
  29044. required: true,
  29045. type: "string"
  29046. },
  29047. org: {
  29048. required: true,
  29049. type: "string"
  29050. },
  29051. parent_team_id: {
  29052. type: "integer"
  29053. },
  29054. permission: {
  29055. enum: ["pull", "push", "admin"],
  29056. type: "string"
  29057. },
  29058. privacy: {
  29059. enum: ["secret", "closed"],
  29060. type: "string"
  29061. },
  29062. team_slug: {
  29063. required: true,
  29064. type: "string"
  29065. }
  29066. },
  29067. url: "/orgs/:org/teams/:team_slug"
  29068. },
  29069. updateLegacy: {
  29070. deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
  29071. method: "PATCH",
  29072. params: {
  29073. description: {
  29074. type: "string"
  29075. },
  29076. name: {
  29077. required: true,
  29078. type: "string"
  29079. },
  29080. parent_team_id: {
  29081. type: "integer"
  29082. },
  29083. permission: {
  29084. enum: ["pull", "push", "admin"],
  29085. type: "string"
  29086. },
  29087. privacy: {
  29088. enum: ["secret", "closed"],
  29089. type: "string"
  29090. },
  29091. team_id: {
  29092. required: true,
  29093. type: "integer"
  29094. }
  29095. },
  29096. url: "/teams/:team_id"
  29097. }
  29098. },
  29099. users: {
  29100. addEmails: {
  29101. method: "POST",
  29102. params: {
  29103. emails: {
  29104. required: true,
  29105. type: "string[]"
  29106. }
  29107. },
  29108. url: "/user/emails"
  29109. },
  29110. block: {
  29111. method: "PUT",
  29112. params: {
  29113. username: {
  29114. required: true,
  29115. type: "string"
  29116. }
  29117. },
  29118. url: "/user/blocks/:username"
  29119. },
  29120. checkBlocked: {
  29121. method: "GET",
  29122. params: {
  29123. username: {
  29124. required: true,
  29125. type: "string"
  29126. }
  29127. },
  29128. url: "/user/blocks/:username"
  29129. },
  29130. checkFollowing: {
  29131. method: "GET",
  29132. params: {
  29133. username: {
  29134. required: true,
  29135. type: "string"
  29136. }
  29137. },
  29138. url: "/user/following/:username"
  29139. },
  29140. checkFollowingForUser: {
  29141. method: "GET",
  29142. params: {
  29143. target_user: {
  29144. required: true,
  29145. type: "string"
  29146. },
  29147. username: {
  29148. required: true,
  29149. type: "string"
  29150. }
  29151. },
  29152. url: "/users/:username/following/:target_user"
  29153. },
  29154. createGpgKey: {
  29155. method: "POST",
  29156. params: {
  29157. armored_public_key: {
  29158. type: "string"
  29159. }
  29160. },
  29161. url: "/user/gpg_keys"
  29162. },
  29163. createPublicKey: {
  29164. method: "POST",
  29165. params: {
  29166. key: {
  29167. type: "string"
  29168. },
  29169. title: {
  29170. type: "string"
  29171. }
  29172. },
  29173. url: "/user/keys"
  29174. },
  29175. deleteEmails: {
  29176. method: "DELETE",
  29177. params: {
  29178. emails: {
  29179. required: true,
  29180. type: "string[]"
  29181. }
  29182. },
  29183. url: "/user/emails"
  29184. },
  29185. deleteGpgKey: {
  29186. method: "DELETE",
  29187. params: {
  29188. gpg_key_id: {
  29189. required: true,
  29190. type: "integer"
  29191. }
  29192. },
  29193. url: "/user/gpg_keys/:gpg_key_id"
  29194. },
  29195. deletePublicKey: {
  29196. method: "DELETE",
  29197. params: {
  29198. key_id: {
  29199. required: true,
  29200. type: "integer"
  29201. }
  29202. },
  29203. url: "/user/keys/:key_id"
  29204. },
  29205. follow: {
  29206. method: "PUT",
  29207. params: {
  29208. username: {
  29209. required: true,
  29210. type: "string"
  29211. }
  29212. },
  29213. url: "/user/following/:username"
  29214. },
  29215. getAuthenticated: {
  29216. method: "GET",
  29217. params: {},
  29218. url: "/user"
  29219. },
  29220. getByUsername: {
  29221. method: "GET",
  29222. params: {
  29223. username: {
  29224. required: true,
  29225. type: "string"
  29226. }
  29227. },
  29228. url: "/users/:username"
  29229. },
  29230. getContextForUser: {
  29231. method: "GET",
  29232. params: {
  29233. subject_id: {
  29234. type: "string"
  29235. },
  29236. subject_type: {
  29237. enum: ["organization", "repository", "issue", "pull_request"],
  29238. type: "string"
  29239. },
  29240. username: {
  29241. required: true,
  29242. type: "string"
  29243. }
  29244. },
  29245. url: "/users/:username/hovercard"
  29246. },
  29247. getGpgKey: {
  29248. method: "GET",
  29249. params: {
  29250. gpg_key_id: {
  29251. required: true,
  29252. type: "integer"
  29253. }
  29254. },
  29255. url: "/user/gpg_keys/:gpg_key_id"
  29256. },
  29257. getPublicKey: {
  29258. method: "GET",
  29259. params: {
  29260. key_id: {
  29261. required: true,
  29262. type: "integer"
  29263. }
  29264. },
  29265. url: "/user/keys/:key_id"
  29266. },
  29267. list: {
  29268. method: "GET",
  29269. params: {
  29270. page: {
  29271. type: "integer"
  29272. },
  29273. per_page: {
  29274. type: "integer"
  29275. },
  29276. since: {
  29277. type: "string"
  29278. }
  29279. },
  29280. url: "/users"
  29281. },
  29282. listBlocked: {
  29283. method: "GET",
  29284. params: {},
  29285. url: "/user/blocks"
  29286. },
  29287. listEmails: {
  29288. method: "GET",
  29289. params: {
  29290. page: {
  29291. type: "integer"
  29292. },
  29293. per_page: {
  29294. type: "integer"
  29295. }
  29296. },
  29297. url: "/user/emails"
  29298. },
  29299. listFollowersForAuthenticatedUser: {
  29300. method: "GET",
  29301. params: {
  29302. page: {
  29303. type: "integer"
  29304. },
  29305. per_page: {
  29306. type: "integer"
  29307. }
  29308. },
  29309. url: "/user/followers"
  29310. },
  29311. listFollowersForUser: {
  29312. method: "GET",
  29313. params: {
  29314. page: {
  29315. type: "integer"
  29316. },
  29317. per_page: {
  29318. type: "integer"
  29319. },
  29320. username: {
  29321. required: true,
  29322. type: "string"
  29323. }
  29324. },
  29325. url: "/users/:username/followers"
  29326. },
  29327. listFollowingForAuthenticatedUser: {
  29328. method: "GET",
  29329. params: {
  29330. page: {
  29331. type: "integer"
  29332. },
  29333. per_page: {
  29334. type: "integer"
  29335. }
  29336. },
  29337. url: "/user/following"
  29338. },
  29339. listFollowingForUser: {
  29340. method: "GET",
  29341. params: {
  29342. page: {
  29343. type: "integer"
  29344. },
  29345. per_page: {
  29346. type: "integer"
  29347. },
  29348. username: {
  29349. required: true,
  29350. type: "string"
  29351. }
  29352. },
  29353. url: "/users/:username/following"
  29354. },
  29355. listGpgKeys: {
  29356. method: "GET",
  29357. params: {
  29358. page: {
  29359. type: "integer"
  29360. },
  29361. per_page: {
  29362. type: "integer"
  29363. }
  29364. },
  29365. url: "/user/gpg_keys"
  29366. },
  29367. listGpgKeysForUser: {
  29368. method: "GET",
  29369. params: {
  29370. page: {
  29371. type: "integer"
  29372. },
  29373. per_page: {
  29374. type: "integer"
  29375. },
  29376. username: {
  29377. required: true,
  29378. type: "string"
  29379. }
  29380. },
  29381. url: "/users/:username/gpg_keys"
  29382. },
  29383. listPublicEmails: {
  29384. method: "GET",
  29385. params: {
  29386. page: {
  29387. type: "integer"
  29388. },
  29389. per_page: {
  29390. type: "integer"
  29391. }
  29392. },
  29393. url: "/user/public_emails"
  29394. },
  29395. listPublicKeys: {
  29396. method: "GET",
  29397. params: {
  29398. page: {
  29399. type: "integer"
  29400. },
  29401. per_page: {
  29402. type: "integer"
  29403. }
  29404. },
  29405. url: "/user/keys"
  29406. },
  29407. listPublicKeysForUser: {
  29408. method: "GET",
  29409. params: {
  29410. page: {
  29411. type: "integer"
  29412. },
  29413. per_page: {
  29414. type: "integer"
  29415. },
  29416. username: {
  29417. required: true,
  29418. type: "string"
  29419. }
  29420. },
  29421. url: "/users/:username/keys"
  29422. },
  29423. togglePrimaryEmailVisibility: {
  29424. method: "PATCH",
  29425. params: {
  29426. email: {
  29427. required: true,
  29428. type: "string"
  29429. },
  29430. visibility: {
  29431. required: true,
  29432. type: "string"
  29433. }
  29434. },
  29435. url: "/user/email/visibility"
  29436. },
  29437. unblock: {
  29438. method: "DELETE",
  29439. params: {
  29440. username: {
  29441. required: true,
  29442. type: "string"
  29443. }
  29444. },
  29445. url: "/user/blocks/:username"
  29446. },
  29447. unfollow: {
  29448. method: "DELETE",
  29449. params: {
  29450. username: {
  29451. required: true,
  29452. type: "string"
  29453. }
  29454. },
  29455. url: "/user/following/:username"
  29456. },
  29457. updateAuthenticated: {
  29458. method: "PATCH",
  29459. params: {
  29460. bio: {
  29461. type: "string"
  29462. },
  29463. blog: {
  29464. type: "string"
  29465. },
  29466. company: {
  29467. type: "string"
  29468. },
  29469. email: {
  29470. type: "string"
  29471. },
  29472. hireable: {
  29473. type: "boolean"
  29474. },
  29475. location: {
  29476. type: "string"
  29477. },
  29478. name: {
  29479. type: "string"
  29480. }
  29481. },
  29482. url: "/user"
  29483. }
  29484. }
  29485. };
  29486. const VERSION = "2.4.0";
  29487. function registerEndpoints(octokit, routes) {
  29488. Object.keys(routes).forEach(namespaceName => {
  29489. if (!octokit[namespaceName]) {
  29490. octokit[namespaceName] = {};
  29491. }
  29492. Object.keys(routes[namespaceName]).forEach(apiName => {
  29493. const apiOptions = routes[namespaceName][apiName];
  29494. const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
  29495. if (typeof apiOptions[key] !== "undefined") {
  29496. map[key] = apiOptions[key];
  29497. }
  29498. return map;
  29499. }, {});
  29500. endpointDefaults.request = {
  29501. validate: apiOptions.params
  29502. };
  29503. let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
  29504. // Not the most elegant solution, but we don’t want to move deprecation
  29505. // logic into octokit/endpoint.js as it’s out of scope
  29506. const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
  29507. if (hasDeprecatedParam) {
  29508. const patch = patchForDeprecation.bind(null, octokit, apiOptions);
  29509. request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
  29510. request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
  29511. request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
  29512. }
  29513. if (apiOptions.deprecated) {
  29514. octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
  29515. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
  29516. octokit[namespaceName][apiName] = request;
  29517. return request.apply(null, arguments);
  29518. }, request);
  29519. return;
  29520. }
  29521. octokit[namespaceName][apiName] = request;
  29522. });
  29523. });
  29524. }
  29525. function patchForDeprecation(octokit, apiOptions, method, methodName) {
  29526. const patchedMethod = options => {
  29527. options = Object.assign({}, options);
  29528. Object.keys(options).forEach(key => {
  29529. if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
  29530. const aliasKey = apiOptions.params[key].alias;
  29531. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
  29532. if (!(aliasKey in options)) {
  29533. options[aliasKey] = options[key];
  29534. }
  29535. delete options[key];
  29536. }
  29537. });
  29538. return method(options);
  29539. };
  29540. Object.keys(method).forEach(key => {
  29541. patchedMethod[key] = method[key];
  29542. });
  29543. return patchedMethod;
  29544. }
  29545. /**
  29546. * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
  29547. * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
  29548. * done, we will remove the registerEndpoints methods and return the methods
  29549. * directly as with the other plugins. At that point we will also remove the
  29550. * legacy workarounds and deprecations.
  29551. *
  29552. * See the plan at
  29553. * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
  29554. */
  29555. function restEndpointMethods(octokit) {
  29556. // @ts-ignore
  29557. octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
  29558. registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
  29559. // See https://github.com/octokit/rest.js/pull/1134
  29560. [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
  29561. Object.defineProperty(octokit, deprecatedScope, {
  29562. get() {
  29563. octokit.log.warn( // @ts-ignore
  29564. new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
  29565. return octokit[scope];
  29566. }
  29567. });
  29568. });
  29569. return {};
  29570. }
  29571. restEndpointMethods.VERSION = VERSION;
  29572. exports.restEndpointMethods = restEndpointMethods;
  29573. //# sourceMappingURL=index.js.map
  29574. /***/ }),
  29575. /***/ 850:
  29576. /***/ (function(module, __unusedexports, __webpack_require__) {
  29577. module.exports = paginationMethodsPlugin
  29578. function paginationMethodsPlugin (octokit) {
  29579. octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
  29580. octokit.getLastPage = __webpack_require__(30).bind(null, octokit)
  29581. octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
  29582. octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
  29583. octokit.hasFirstPage = __webpack_require__(536)
  29584. octokit.hasLastPage = __webpack_require__(336)
  29585. octokit.hasNextPage = __webpack_require__(929)
  29586. octokit.hasPreviousPage = __webpack_require__(558)
  29587. }
  29588. /***/ }),
  29589. /***/ 853:
  29590. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  29591. "use strict";
  29592. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  29593. if (k2 === undefined) k2 = k;
  29594. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  29595. }) : (function(o, m, k, k2) {
  29596. if (k2 === undefined) k2 = k;
  29597. o[k2] = m[k];
  29598. }));
  29599. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  29600. Object.defineProperty(o, "default", { enumerable: true, value: v });
  29601. }) : function(o, v) {
  29602. o["default"] = v;
  29603. });
  29604. var __importStar = (this && this.__importStar) || function (mod) {
  29605. if (mod && mod.__esModule) return mod;
  29606. var result = {};
  29607. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  29608. __setModuleDefault(result, mod);
  29609. return result;
  29610. };
  29611. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  29612. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  29613. return new (P || (P = Promise))(function (resolve, reject) {
  29614. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  29615. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  29616. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  29617. step((generator = generator.apply(thisArg, _arguments || [])).next());
  29618. });
  29619. };
  29620. Object.defineProperty(exports, "__esModule", { value: true });
  29621. exports.cleanup = exports.getSource = void 0;
  29622. const core = __importStar(__webpack_require__(470));
  29623. const fsHelper = __importStar(__webpack_require__(618));
  29624. const gitAuthHelper = __importStar(__webpack_require__(287));
  29625. const gitCommandManager = __importStar(__webpack_require__(289));
  29626. const gitDirectoryHelper = __importStar(__webpack_require__(438));
  29627. const githubApiHelper = __importStar(__webpack_require__(464));
  29628. const io = __importStar(__webpack_require__(1));
  29629. const path = __importStar(__webpack_require__(622));
  29630. const refHelper = __importStar(__webpack_require__(227));
  29631. const stateHelper = __importStar(__webpack_require__(153));
  29632. const urlHelper = __importStar(__webpack_require__(81));
  29633. function getSource(settings) {
  29634. return __awaiter(this, void 0, void 0, function* () {
  29635. // Repository URL
  29636. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  29637. const repositoryUrl = urlHelper.getFetchUrl(settings);
  29638. // Remove conflicting file path
  29639. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  29640. yield io.rmRF(settings.repositoryPath);
  29641. }
  29642. // Create directory
  29643. let isExisting = true;
  29644. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  29645. isExisting = false;
  29646. yield io.mkdirP(settings.repositoryPath);
  29647. }
  29648. // Git command manager
  29649. core.startGroup('Getting Git version info');
  29650. const git = yield getGitCommandManager(settings);
  29651. core.endGroup();
  29652. let authHelper = null;
  29653. try {
  29654. if (git) {
  29655. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  29656. if (settings.setSafeDirectory) {
  29657. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  29658. // Otherwise all git commands we run in a container fail
  29659. yield authHelper.configureTempGlobalConfig();
  29660. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  29661. yield git
  29662. .config('safe.directory', settings.repositoryPath, true, true)
  29663. .catch(error => {
  29664. core.info(`Failed to initialize safe directory with error: ${error}`);
  29665. });
  29666. stateHelper.setSafeDirectory();
  29667. }
  29668. }
  29669. // Prepare existing directory, otherwise recreate
  29670. if (isExisting) {
  29671. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  29672. }
  29673. if (!git) {
  29674. // Downloading using REST API
  29675. core.info(`The repository will be downloaded using the GitHub REST API`);
  29676. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  29677. if (settings.submodules) {
  29678. throw new Error(`Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  29679. }
  29680. else if (settings.sshKey) {
  29681. throw new Error(`Input 'ssh-key' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  29682. }
  29683. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath, settings.githubServerUrl);
  29684. return;
  29685. }
  29686. // Save state for POST action
  29687. stateHelper.setRepositoryPath(settings.repositoryPath);
  29688. // Initialize the repository
  29689. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  29690. core.startGroup('Initializing the repository');
  29691. yield git.init();
  29692. yield git.remoteAdd('origin', repositoryUrl);
  29693. core.endGroup();
  29694. }
  29695. // Disable automatic garbage collection
  29696. core.startGroup('Disabling automatic garbage collection');
  29697. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  29698. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  29699. }
  29700. core.endGroup();
  29701. // If we didn't initialize it above, do it now
  29702. if (!authHelper) {
  29703. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  29704. }
  29705. // Configure auth
  29706. core.startGroup('Setting up auth');
  29707. yield authHelper.configureAuth();
  29708. core.endGroup();
  29709. // Determine the default branch
  29710. if (!settings.ref && !settings.commit) {
  29711. core.startGroup('Determining the default branch');
  29712. if (settings.sshKey) {
  29713. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  29714. }
  29715. else {
  29716. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.githubServerUrl);
  29717. }
  29718. core.endGroup();
  29719. }
  29720. // LFS install
  29721. if (settings.lfs) {
  29722. yield git.lfsInstall();
  29723. }
  29724. // Fetch
  29725. core.startGroup('Fetching the repository');
  29726. if (settings.fetchDepth <= 0) {
  29727. // Fetch all branches and tags
  29728. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  29729. yield git.fetch(refSpec);
  29730. // When all history is fetched, the ref we're interested in may have moved to a different
  29731. // commit (push or force push). If so, fetch again with a targeted refspec.
  29732. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  29733. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  29734. yield git.fetch(refSpec);
  29735. }
  29736. }
  29737. else {
  29738. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  29739. yield git.fetch(refSpec, settings.fetchDepth);
  29740. }
  29741. core.endGroup();
  29742. // Checkout info
  29743. core.startGroup('Determining the checkout info');
  29744. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  29745. core.endGroup();
  29746. // LFS fetch
  29747. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  29748. // Explicit lfs fetch will fetch lfs objects in parallel.
  29749. if (settings.lfs) {
  29750. core.startGroup('Fetching LFS objects');
  29751. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  29752. core.endGroup();
  29753. }
  29754. // Checkout
  29755. core.startGroup('Checking out the ref');
  29756. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  29757. core.endGroup();
  29758. // Submodules
  29759. if (settings.submodules) {
  29760. // Temporarily override global config
  29761. core.startGroup('Setting up auth for fetching submodules');
  29762. yield authHelper.configureGlobalAuth();
  29763. core.endGroup();
  29764. // Checkout submodules
  29765. core.startGroup('Fetching submodules');
  29766. yield git.submoduleSync(settings.nestedSubmodules);
  29767. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  29768. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  29769. core.endGroup();
  29770. // Persist credentials
  29771. if (settings.persistCredentials) {
  29772. core.startGroup('Persisting credentials for submodules');
  29773. yield authHelper.configureSubmoduleAuth();
  29774. core.endGroup();
  29775. }
  29776. }
  29777. // Get commit information
  29778. const commitInfo = yield git.log1();
  29779. // Log commit sha
  29780. yield git.log1("--format='%H'");
  29781. // Check for incorrect pull request merge commit
  29782. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl);
  29783. }
  29784. finally {
  29785. // Remove auth
  29786. if (authHelper) {
  29787. if (!settings.persistCredentials) {
  29788. core.startGroup('Removing auth');
  29789. yield authHelper.removeAuth();
  29790. core.endGroup();
  29791. }
  29792. authHelper.removeGlobalConfig();
  29793. }
  29794. }
  29795. });
  29796. }
  29797. exports.getSource = getSource;
  29798. function cleanup(repositoryPath) {
  29799. return __awaiter(this, void 0, void 0, function* () {
  29800. // Repo exists?
  29801. if (!repositoryPath ||
  29802. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  29803. return;
  29804. }
  29805. let git;
  29806. try {
  29807. git = yield gitCommandManager.createCommandManager(repositoryPath, false);
  29808. }
  29809. catch (_a) {
  29810. return;
  29811. }
  29812. // Remove auth
  29813. const authHelper = gitAuthHelper.createAuthHelper(git);
  29814. try {
  29815. if (stateHelper.PostSetSafeDirectory) {
  29816. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  29817. // Otherwise all git commands we run in a container fail
  29818. yield authHelper.configureTempGlobalConfig();
  29819. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  29820. yield git
  29821. .config('safe.directory', repositoryPath, true, true)
  29822. .catch(error => {
  29823. core.info(`Failed to initialize safe directory with error: ${error}`);
  29824. });
  29825. }
  29826. yield authHelper.removeAuth();
  29827. }
  29828. finally {
  29829. yield authHelper.removeGlobalConfig();
  29830. }
  29831. });
  29832. }
  29833. exports.cleanup = cleanup;
  29834. function getGitCommandManager(settings) {
  29835. return __awaiter(this, void 0, void 0, function* () {
  29836. core.info(`Working directory is '${settings.repositoryPath}'`);
  29837. try {
  29838. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs);
  29839. }
  29840. catch (err) {
  29841. // Git is required for LFS
  29842. if (settings.lfs) {
  29843. throw err;
  29844. }
  29845. // Otherwise fallback to REST API
  29846. return undefined;
  29847. }
  29848. });
  29849. }
  29850. /***/ }),
  29851. /***/ 854:
  29852. /***/ (function(module) {
  29853. /**
  29854. * lodash (Custom Build) <https://lodash.com/>
  29855. * Build: `lodash modularize exports="npm" -o ./`
  29856. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  29857. * Released under MIT license <https://lodash.com/license>
  29858. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  29859. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  29860. */
  29861. /** Used as the `TypeError` message for "Functions" methods. */
  29862. var FUNC_ERROR_TEXT = 'Expected a function';
  29863. /** Used to stand-in for `undefined` hash values. */
  29864. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  29865. /** Used as references for various `Number` constants. */
  29866. var INFINITY = 1 / 0;
  29867. /** `Object#toString` result references. */
  29868. var funcTag = '[object Function]',
  29869. genTag = '[object GeneratorFunction]',
  29870. symbolTag = '[object Symbol]';
  29871. /** Used to match property names within property paths. */
  29872. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  29873. reIsPlainProp = /^\w*$/,
  29874. reLeadingDot = /^\./,
  29875. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  29876. /**
  29877. * Used to match `RegExp`
  29878. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  29879. */
  29880. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  29881. /** Used to match backslashes in property paths. */
  29882. var reEscapeChar = /\\(\\)?/g;
  29883. /** Used to detect host constructors (Safari). */
  29884. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  29885. /** Detect free variable `global` from Node.js. */
  29886. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  29887. /** Detect free variable `self`. */
  29888. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  29889. /** Used as a reference to the global object. */
  29890. var root = freeGlobal || freeSelf || Function('return this')();
  29891. /**
  29892. * Gets the value at `key` of `object`.
  29893. *
  29894. * @private
  29895. * @param {Object} [object] The object to query.
  29896. * @param {string} key The key of the property to get.
  29897. * @returns {*} Returns the property value.
  29898. */
  29899. function getValue(object, key) {
  29900. return object == null ? undefined : object[key];
  29901. }
  29902. /**
  29903. * Checks if `value` is a host object in IE < 9.
  29904. *
  29905. * @private
  29906. * @param {*} value The value to check.
  29907. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  29908. */
  29909. function isHostObject(value) {
  29910. // Many host objects are `Object` objects that can coerce to strings
  29911. // despite having improperly defined `toString` methods.
  29912. var result = false;
  29913. if (value != null && typeof value.toString != 'function') {
  29914. try {
  29915. result = !!(value + '');
  29916. } catch (e) {}
  29917. }
  29918. return result;
  29919. }
  29920. /** Used for built-in method references. */
  29921. var arrayProto = Array.prototype,
  29922. funcProto = Function.prototype,
  29923. objectProto = Object.prototype;
  29924. /** Used to detect overreaching core-js shims. */
  29925. var coreJsData = root['__core-js_shared__'];
  29926. /** Used to detect methods masquerading as native. */
  29927. var maskSrcKey = (function() {
  29928. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  29929. return uid ? ('Symbol(src)_1.' + uid) : '';
  29930. }());
  29931. /** Used to resolve the decompiled source of functions. */
  29932. var funcToString = funcProto.toString;
  29933. /** Used to check objects for own properties. */
  29934. var hasOwnProperty = objectProto.hasOwnProperty;
  29935. /**
  29936. * Used to resolve the
  29937. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  29938. * of values.
  29939. */
  29940. var objectToString = objectProto.toString;
  29941. /** Used to detect if a method is native. */
  29942. var reIsNative = RegExp('^' +
  29943. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  29944. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  29945. );
  29946. /** Built-in value references. */
  29947. var Symbol = root.Symbol,
  29948. splice = arrayProto.splice;
  29949. /* Built-in method references that are verified to be native. */
  29950. var Map = getNative(root, 'Map'),
  29951. nativeCreate = getNative(Object, 'create');
  29952. /** Used to convert symbols to primitives and strings. */
  29953. var symbolProto = Symbol ? Symbol.prototype : undefined,
  29954. symbolToString = symbolProto ? symbolProto.toString : undefined;
  29955. /**
  29956. * Creates a hash object.
  29957. *
  29958. * @private
  29959. * @constructor
  29960. * @param {Array} [entries] The key-value pairs to cache.
  29961. */
  29962. function Hash(entries) {
  29963. var index = -1,
  29964. length = entries ? entries.length : 0;
  29965. this.clear();
  29966. while (++index < length) {
  29967. var entry = entries[index];
  29968. this.set(entry[0], entry[1]);
  29969. }
  29970. }
  29971. /**
  29972. * Removes all key-value entries from the hash.
  29973. *
  29974. * @private
  29975. * @name clear
  29976. * @memberOf Hash
  29977. */
  29978. function hashClear() {
  29979. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  29980. }
  29981. /**
  29982. * Removes `key` and its value from the hash.
  29983. *
  29984. * @private
  29985. * @name delete
  29986. * @memberOf Hash
  29987. * @param {Object} hash The hash to modify.
  29988. * @param {string} key The key of the value to remove.
  29989. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29990. */
  29991. function hashDelete(key) {
  29992. return this.has(key) && delete this.__data__[key];
  29993. }
  29994. /**
  29995. * Gets the hash value for `key`.
  29996. *
  29997. * @private
  29998. * @name get
  29999. * @memberOf Hash
  30000. * @param {string} key The key of the value to get.
  30001. * @returns {*} Returns the entry value.
  30002. */
  30003. function hashGet(key) {
  30004. var data = this.__data__;
  30005. if (nativeCreate) {
  30006. var result = data[key];
  30007. return result === HASH_UNDEFINED ? undefined : result;
  30008. }
  30009. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  30010. }
  30011. /**
  30012. * Checks if a hash value for `key` exists.
  30013. *
  30014. * @private
  30015. * @name has
  30016. * @memberOf Hash
  30017. * @param {string} key The key of the entry to check.
  30018. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  30019. */
  30020. function hashHas(key) {
  30021. var data = this.__data__;
  30022. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  30023. }
  30024. /**
  30025. * Sets the hash `key` to `value`.
  30026. *
  30027. * @private
  30028. * @name set
  30029. * @memberOf Hash
  30030. * @param {string} key The key of the value to set.
  30031. * @param {*} value The value to set.
  30032. * @returns {Object} Returns the hash instance.
  30033. */
  30034. function hashSet(key, value) {
  30035. var data = this.__data__;
  30036. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  30037. return this;
  30038. }
  30039. // Add methods to `Hash`.
  30040. Hash.prototype.clear = hashClear;
  30041. Hash.prototype['delete'] = hashDelete;
  30042. Hash.prototype.get = hashGet;
  30043. Hash.prototype.has = hashHas;
  30044. Hash.prototype.set = hashSet;
  30045. /**
  30046. * Creates an list cache object.
  30047. *
  30048. * @private
  30049. * @constructor
  30050. * @param {Array} [entries] The key-value pairs to cache.
  30051. */
  30052. function ListCache(entries) {
  30053. var index = -1,
  30054. length = entries ? entries.length : 0;
  30055. this.clear();
  30056. while (++index < length) {
  30057. var entry = entries[index];
  30058. this.set(entry[0], entry[1]);
  30059. }
  30060. }
  30061. /**
  30062. * Removes all key-value entries from the list cache.
  30063. *
  30064. * @private
  30065. * @name clear
  30066. * @memberOf ListCache
  30067. */
  30068. function listCacheClear() {
  30069. this.__data__ = [];
  30070. }
  30071. /**
  30072. * Removes `key` and its value from the list cache.
  30073. *
  30074. * @private
  30075. * @name delete
  30076. * @memberOf ListCache
  30077. * @param {string} key The key of the value to remove.
  30078. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  30079. */
  30080. function listCacheDelete(key) {
  30081. var data = this.__data__,
  30082. index = assocIndexOf(data, key);
  30083. if (index < 0) {
  30084. return false;
  30085. }
  30086. var lastIndex = data.length - 1;
  30087. if (index == lastIndex) {
  30088. data.pop();
  30089. } else {
  30090. splice.call(data, index, 1);
  30091. }
  30092. return true;
  30093. }
  30094. /**
  30095. * Gets the list cache value for `key`.
  30096. *
  30097. * @private
  30098. * @name get
  30099. * @memberOf ListCache
  30100. * @param {string} key The key of the value to get.
  30101. * @returns {*} Returns the entry value.
  30102. */
  30103. function listCacheGet(key) {
  30104. var data = this.__data__,
  30105. index = assocIndexOf(data, key);
  30106. return index < 0 ? undefined : data[index][1];
  30107. }
  30108. /**
  30109. * Checks if a list cache value for `key` exists.
  30110. *
  30111. * @private
  30112. * @name has
  30113. * @memberOf ListCache
  30114. * @param {string} key The key of the entry to check.
  30115. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  30116. */
  30117. function listCacheHas(key) {
  30118. return assocIndexOf(this.__data__, key) > -1;
  30119. }
  30120. /**
  30121. * Sets the list cache `key` to `value`.
  30122. *
  30123. * @private
  30124. * @name set
  30125. * @memberOf ListCache
  30126. * @param {string} key The key of the value to set.
  30127. * @param {*} value The value to set.
  30128. * @returns {Object} Returns the list cache instance.
  30129. */
  30130. function listCacheSet(key, value) {
  30131. var data = this.__data__,
  30132. index = assocIndexOf(data, key);
  30133. if (index < 0) {
  30134. data.push([key, value]);
  30135. } else {
  30136. data[index][1] = value;
  30137. }
  30138. return this;
  30139. }
  30140. // Add methods to `ListCache`.
  30141. ListCache.prototype.clear = listCacheClear;
  30142. ListCache.prototype['delete'] = listCacheDelete;
  30143. ListCache.prototype.get = listCacheGet;
  30144. ListCache.prototype.has = listCacheHas;
  30145. ListCache.prototype.set = listCacheSet;
  30146. /**
  30147. * Creates a map cache object to store key-value pairs.
  30148. *
  30149. * @private
  30150. * @constructor
  30151. * @param {Array} [entries] The key-value pairs to cache.
  30152. */
  30153. function MapCache(entries) {
  30154. var index = -1,
  30155. length = entries ? entries.length : 0;
  30156. this.clear();
  30157. while (++index < length) {
  30158. var entry = entries[index];
  30159. this.set(entry[0], entry[1]);
  30160. }
  30161. }
  30162. /**
  30163. * Removes all key-value entries from the map.
  30164. *
  30165. * @private
  30166. * @name clear
  30167. * @memberOf MapCache
  30168. */
  30169. function mapCacheClear() {
  30170. this.__data__ = {
  30171. 'hash': new Hash,
  30172. 'map': new (Map || ListCache),
  30173. 'string': new Hash
  30174. };
  30175. }
  30176. /**
  30177. * Removes `key` and its value from the map.
  30178. *
  30179. * @private
  30180. * @name delete
  30181. * @memberOf MapCache
  30182. * @param {string} key The key of the value to remove.
  30183. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  30184. */
  30185. function mapCacheDelete(key) {
  30186. return getMapData(this, key)['delete'](key);
  30187. }
  30188. /**
  30189. * Gets the map value for `key`.
  30190. *
  30191. * @private
  30192. * @name get
  30193. * @memberOf MapCache
  30194. * @param {string} key The key of the value to get.
  30195. * @returns {*} Returns the entry value.
  30196. */
  30197. function mapCacheGet(key) {
  30198. return getMapData(this, key).get(key);
  30199. }
  30200. /**
  30201. * Checks if a map value for `key` exists.
  30202. *
  30203. * @private
  30204. * @name has
  30205. * @memberOf MapCache
  30206. * @param {string} key The key of the entry to check.
  30207. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  30208. */
  30209. function mapCacheHas(key) {
  30210. return getMapData(this, key).has(key);
  30211. }
  30212. /**
  30213. * Sets the map `key` to `value`.
  30214. *
  30215. * @private
  30216. * @name set
  30217. * @memberOf MapCache
  30218. * @param {string} key The key of the value to set.
  30219. * @param {*} value The value to set.
  30220. * @returns {Object} Returns the map cache instance.
  30221. */
  30222. function mapCacheSet(key, value) {
  30223. getMapData(this, key).set(key, value);
  30224. return this;
  30225. }
  30226. // Add methods to `MapCache`.
  30227. MapCache.prototype.clear = mapCacheClear;
  30228. MapCache.prototype['delete'] = mapCacheDelete;
  30229. MapCache.prototype.get = mapCacheGet;
  30230. MapCache.prototype.has = mapCacheHas;
  30231. MapCache.prototype.set = mapCacheSet;
  30232. /**
  30233. * Gets the index at which the `key` is found in `array` of key-value pairs.
  30234. *
  30235. * @private
  30236. * @param {Array} array The array to inspect.
  30237. * @param {*} key The key to search for.
  30238. * @returns {number} Returns the index of the matched value, else `-1`.
  30239. */
  30240. function assocIndexOf(array, key) {
  30241. var length = array.length;
  30242. while (length--) {
  30243. if (eq(array[length][0], key)) {
  30244. return length;
  30245. }
  30246. }
  30247. return -1;
  30248. }
  30249. /**
  30250. * The base implementation of `_.get` without support for default values.
  30251. *
  30252. * @private
  30253. * @param {Object} object The object to query.
  30254. * @param {Array|string} path The path of the property to get.
  30255. * @returns {*} Returns the resolved value.
  30256. */
  30257. function baseGet(object, path) {
  30258. path = isKey(path, object) ? [path] : castPath(path);
  30259. var index = 0,
  30260. length = path.length;
  30261. while (object != null && index < length) {
  30262. object = object[toKey(path[index++])];
  30263. }
  30264. return (index && index == length) ? object : undefined;
  30265. }
  30266. /**
  30267. * The base implementation of `_.isNative` without bad shim checks.
  30268. *
  30269. * @private
  30270. * @param {*} value The value to check.
  30271. * @returns {boolean} Returns `true` if `value` is a native function,
  30272. * else `false`.
  30273. */
  30274. function baseIsNative(value) {
  30275. if (!isObject(value) || isMasked(value)) {
  30276. return false;
  30277. }
  30278. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  30279. return pattern.test(toSource(value));
  30280. }
  30281. /**
  30282. * The base implementation of `_.toString` which doesn't convert nullish
  30283. * values to empty strings.
  30284. *
  30285. * @private
  30286. * @param {*} value The value to process.
  30287. * @returns {string} Returns the string.
  30288. */
  30289. function baseToString(value) {
  30290. // Exit early for strings to avoid a performance hit in some environments.
  30291. if (typeof value == 'string') {
  30292. return value;
  30293. }
  30294. if (isSymbol(value)) {
  30295. return symbolToString ? symbolToString.call(value) : '';
  30296. }
  30297. var result = (value + '');
  30298. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30299. }
  30300. /**
  30301. * Casts `value` to a path array if it's not one.
  30302. *
  30303. * @private
  30304. * @param {*} value The value to inspect.
  30305. * @returns {Array} Returns the cast property path array.
  30306. */
  30307. function castPath(value) {
  30308. return isArray(value) ? value : stringToPath(value);
  30309. }
  30310. /**
  30311. * Gets the data for `map`.
  30312. *
  30313. * @private
  30314. * @param {Object} map The map to query.
  30315. * @param {string} key The reference key.
  30316. * @returns {*} Returns the map data.
  30317. */
  30318. function getMapData(map, key) {
  30319. var data = map.__data__;
  30320. return isKeyable(key)
  30321. ? data[typeof key == 'string' ? 'string' : 'hash']
  30322. : data.map;
  30323. }
  30324. /**
  30325. * Gets the native function at `key` of `object`.
  30326. *
  30327. * @private
  30328. * @param {Object} object The object to query.
  30329. * @param {string} key The key of the method to get.
  30330. * @returns {*} Returns the function if it's native, else `undefined`.
  30331. */
  30332. function getNative(object, key) {
  30333. var value = getValue(object, key);
  30334. return baseIsNative(value) ? value : undefined;
  30335. }
  30336. /**
  30337. * Checks if `value` is a property name and not a property path.
  30338. *
  30339. * @private
  30340. * @param {*} value The value to check.
  30341. * @param {Object} [object] The object to query keys on.
  30342. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  30343. */
  30344. function isKey(value, object) {
  30345. if (isArray(value)) {
  30346. return false;
  30347. }
  30348. var type = typeof value;
  30349. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  30350. value == null || isSymbol(value)) {
  30351. return true;
  30352. }
  30353. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  30354. (object != null && value in Object(object));
  30355. }
  30356. /**
  30357. * Checks if `value` is suitable for use as unique object key.
  30358. *
  30359. * @private
  30360. * @param {*} value The value to check.
  30361. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  30362. */
  30363. function isKeyable(value) {
  30364. var type = typeof value;
  30365. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  30366. ? (value !== '__proto__')
  30367. : (value === null);
  30368. }
  30369. /**
  30370. * Checks if `func` has its source masked.
  30371. *
  30372. * @private
  30373. * @param {Function} func The function to check.
  30374. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  30375. */
  30376. function isMasked(func) {
  30377. return !!maskSrcKey && (maskSrcKey in func);
  30378. }
  30379. /**
  30380. * Converts `string` to a property path array.
  30381. *
  30382. * @private
  30383. * @param {string} string The string to convert.
  30384. * @returns {Array} Returns the property path array.
  30385. */
  30386. var stringToPath = memoize(function(string) {
  30387. string = toString(string);
  30388. var result = [];
  30389. if (reLeadingDot.test(string)) {
  30390. result.push('');
  30391. }
  30392. string.replace(rePropName, function(match, number, quote, string) {
  30393. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  30394. });
  30395. return result;
  30396. });
  30397. /**
  30398. * Converts `value` to a string key if it's not a string or symbol.
  30399. *
  30400. * @private
  30401. * @param {*} value The value to inspect.
  30402. * @returns {string|symbol} Returns the key.
  30403. */
  30404. function toKey(value) {
  30405. if (typeof value == 'string' || isSymbol(value)) {
  30406. return value;
  30407. }
  30408. var result = (value + '');
  30409. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30410. }
  30411. /**
  30412. * Converts `func` to its source code.
  30413. *
  30414. * @private
  30415. * @param {Function} func The function to process.
  30416. * @returns {string} Returns the source code.
  30417. */
  30418. function toSource(func) {
  30419. if (func != null) {
  30420. try {
  30421. return funcToString.call(func);
  30422. } catch (e) {}
  30423. try {
  30424. return (func + '');
  30425. } catch (e) {}
  30426. }
  30427. return '';
  30428. }
  30429. /**
  30430. * Creates a function that memoizes the result of `func`. If `resolver` is
  30431. * provided, it determines the cache key for storing the result based on the
  30432. * arguments provided to the memoized function. By default, the first argument
  30433. * provided to the memoized function is used as the map cache key. The `func`
  30434. * is invoked with the `this` binding of the memoized function.
  30435. *
  30436. * **Note:** The cache is exposed as the `cache` property on the memoized
  30437. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  30438. * constructor with one whose instances implement the
  30439. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  30440. * method interface of `delete`, `get`, `has`, and `set`.
  30441. *
  30442. * @static
  30443. * @memberOf _
  30444. * @since 0.1.0
  30445. * @category Function
  30446. * @param {Function} func The function to have its output memoized.
  30447. * @param {Function} [resolver] The function to resolve the cache key.
  30448. * @returns {Function} Returns the new memoized function.
  30449. * @example
  30450. *
  30451. * var object = { 'a': 1, 'b': 2 };
  30452. * var other = { 'c': 3, 'd': 4 };
  30453. *
  30454. * var values = _.memoize(_.values);
  30455. * values(object);
  30456. * // => [1, 2]
  30457. *
  30458. * values(other);
  30459. * // => [3, 4]
  30460. *
  30461. * object.a = 2;
  30462. * values(object);
  30463. * // => [1, 2]
  30464. *
  30465. * // Modify the result cache.
  30466. * values.cache.set(object, ['a', 'b']);
  30467. * values(object);
  30468. * // => ['a', 'b']
  30469. *
  30470. * // Replace `_.memoize.Cache`.
  30471. * _.memoize.Cache = WeakMap;
  30472. */
  30473. function memoize(func, resolver) {
  30474. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  30475. throw new TypeError(FUNC_ERROR_TEXT);
  30476. }
  30477. var memoized = function() {
  30478. var args = arguments,
  30479. key = resolver ? resolver.apply(this, args) : args[0],
  30480. cache = memoized.cache;
  30481. if (cache.has(key)) {
  30482. return cache.get(key);
  30483. }
  30484. var result = func.apply(this, args);
  30485. memoized.cache = cache.set(key, result);
  30486. return result;
  30487. };
  30488. memoized.cache = new (memoize.Cache || MapCache);
  30489. return memoized;
  30490. }
  30491. // Assign cache to `_.memoize`.
  30492. memoize.Cache = MapCache;
  30493. /**
  30494. * Performs a
  30495. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30496. * comparison between two values to determine if they are equivalent.
  30497. *
  30498. * @static
  30499. * @memberOf _
  30500. * @since 4.0.0
  30501. * @category Lang
  30502. * @param {*} value The value to compare.
  30503. * @param {*} other The other value to compare.
  30504. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  30505. * @example
  30506. *
  30507. * var object = { 'a': 1 };
  30508. * var other = { 'a': 1 };
  30509. *
  30510. * _.eq(object, object);
  30511. * // => true
  30512. *
  30513. * _.eq(object, other);
  30514. * // => false
  30515. *
  30516. * _.eq('a', 'a');
  30517. * // => true
  30518. *
  30519. * _.eq('a', Object('a'));
  30520. * // => false
  30521. *
  30522. * _.eq(NaN, NaN);
  30523. * // => true
  30524. */
  30525. function eq(value, other) {
  30526. return value === other || (value !== value && other !== other);
  30527. }
  30528. /**
  30529. * Checks if `value` is classified as an `Array` object.
  30530. *
  30531. * @static
  30532. * @memberOf _
  30533. * @since 0.1.0
  30534. * @category Lang
  30535. * @param {*} value The value to check.
  30536. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  30537. * @example
  30538. *
  30539. * _.isArray([1, 2, 3]);
  30540. * // => true
  30541. *
  30542. * _.isArray(document.body.children);
  30543. * // => false
  30544. *
  30545. * _.isArray('abc');
  30546. * // => false
  30547. *
  30548. * _.isArray(_.noop);
  30549. * // => false
  30550. */
  30551. var isArray = Array.isArray;
  30552. /**
  30553. * Checks if `value` is classified as a `Function` object.
  30554. *
  30555. * @static
  30556. * @memberOf _
  30557. * @since 0.1.0
  30558. * @category Lang
  30559. * @param {*} value The value to check.
  30560. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  30561. * @example
  30562. *
  30563. * _.isFunction(_);
  30564. * // => true
  30565. *
  30566. * _.isFunction(/abc/);
  30567. * // => false
  30568. */
  30569. function isFunction(value) {
  30570. // The use of `Object#toString` avoids issues with the `typeof` operator
  30571. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  30572. var tag = isObject(value) ? objectToString.call(value) : '';
  30573. return tag == funcTag || tag == genTag;
  30574. }
  30575. /**
  30576. * Checks if `value` is the
  30577. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  30578. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  30579. *
  30580. * @static
  30581. * @memberOf _
  30582. * @since 0.1.0
  30583. * @category Lang
  30584. * @param {*} value The value to check.
  30585. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  30586. * @example
  30587. *
  30588. * _.isObject({});
  30589. * // => true
  30590. *
  30591. * _.isObject([1, 2, 3]);
  30592. * // => true
  30593. *
  30594. * _.isObject(_.noop);
  30595. * // => true
  30596. *
  30597. * _.isObject(null);
  30598. * // => false
  30599. */
  30600. function isObject(value) {
  30601. var type = typeof value;
  30602. return !!value && (type == 'object' || type == 'function');
  30603. }
  30604. /**
  30605. * Checks if `value` is object-like. A value is object-like if it's not `null`
  30606. * and has a `typeof` result of "object".
  30607. *
  30608. * @static
  30609. * @memberOf _
  30610. * @since 4.0.0
  30611. * @category Lang
  30612. * @param {*} value The value to check.
  30613. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  30614. * @example
  30615. *
  30616. * _.isObjectLike({});
  30617. * // => true
  30618. *
  30619. * _.isObjectLike([1, 2, 3]);
  30620. * // => true
  30621. *
  30622. * _.isObjectLike(_.noop);
  30623. * // => false
  30624. *
  30625. * _.isObjectLike(null);
  30626. * // => false
  30627. */
  30628. function isObjectLike(value) {
  30629. return !!value && typeof value == 'object';
  30630. }
  30631. /**
  30632. * Checks if `value` is classified as a `Symbol` primitive or object.
  30633. *
  30634. * @static
  30635. * @memberOf _
  30636. * @since 4.0.0
  30637. * @category Lang
  30638. * @param {*} value The value to check.
  30639. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  30640. * @example
  30641. *
  30642. * _.isSymbol(Symbol.iterator);
  30643. * // => true
  30644. *
  30645. * _.isSymbol('abc');
  30646. * // => false
  30647. */
  30648. function isSymbol(value) {
  30649. return typeof value == 'symbol' ||
  30650. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  30651. }
  30652. /**
  30653. * Converts `value` to a string. An empty string is returned for `null`
  30654. * and `undefined` values. The sign of `-0` is preserved.
  30655. *
  30656. * @static
  30657. * @memberOf _
  30658. * @since 4.0.0
  30659. * @category Lang
  30660. * @param {*} value The value to process.
  30661. * @returns {string} Returns the string.
  30662. * @example
  30663. *
  30664. * _.toString(null);
  30665. * // => ''
  30666. *
  30667. * _.toString(-0);
  30668. * // => '-0'
  30669. *
  30670. * _.toString([1, 2, 3]);
  30671. * // => '1,2,3'
  30672. */
  30673. function toString(value) {
  30674. return value == null ? '' : baseToString(value);
  30675. }
  30676. /**
  30677. * Gets the value at `path` of `object`. If the resolved value is
  30678. * `undefined`, the `defaultValue` is returned in its place.
  30679. *
  30680. * @static
  30681. * @memberOf _
  30682. * @since 3.7.0
  30683. * @category Object
  30684. * @param {Object} object The object to query.
  30685. * @param {Array|string} path The path of the property to get.
  30686. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  30687. * @returns {*} Returns the resolved value.
  30688. * @example
  30689. *
  30690. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  30691. *
  30692. * _.get(object, 'a[0].b.c');
  30693. * // => 3
  30694. *
  30695. * _.get(object, ['a', '0', 'b', 'c']);
  30696. * // => 3
  30697. *
  30698. * _.get(object, 'a.b.c', 'default');
  30699. * // => 'default'
  30700. */
  30701. function get(object, path, defaultValue) {
  30702. var result = object == null ? undefined : baseGet(object, path);
  30703. return result === undefined ? defaultValue : result;
  30704. }
  30705. module.exports = get;
  30706. /***/ }),
  30707. /***/ 855:
  30708. /***/ (function(module, __unusedexports, __webpack_require__) {
  30709. module.exports = registerPlugin;
  30710. const factory = __webpack_require__(47);
  30711. function registerPlugin(plugins, pluginFunction) {
  30712. return factory(
  30713. plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
  30714. );
  30715. }
  30716. /***/ }),
  30717. /***/ 863:
  30718. /***/ (function(module, __unusedexports, __webpack_require__) {
  30719. module.exports = authenticationBeforeRequest;
  30720. const btoa = __webpack_require__(675);
  30721. const withAuthorizationPrefix = __webpack_require__(143);
  30722. function authenticationBeforeRequest(state, options) {
  30723. if (typeof state.auth === "string") {
  30724. options.headers.authorization = withAuthorizationPrefix(state.auth);
  30725. return;
  30726. }
  30727. if (state.auth.username) {
  30728. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  30729. options.headers.authorization = `Basic ${hash}`;
  30730. if (state.otp) {
  30731. options.headers["x-github-otp"] = state.otp;
  30732. }
  30733. return;
  30734. }
  30735. if (state.auth.clientId) {
  30736. // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as
  30737. // Basic Authorization instead of query parameters. The only routes where that applies share the same
  30738. // URL though: `/applications/:client_id/tokens/:access_token`.
  30739. //
  30740. // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)
  30741. // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)
  30742. // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)
  30743. //
  30744. // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token"
  30745. // as well as "/applications/123/tokens/token456"
  30746. if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) {
  30747. const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`);
  30748. options.headers.authorization = `Basic ${hash}`;
  30749. return;
  30750. }
  30751. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  30752. options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`;
  30753. return;
  30754. }
  30755. return Promise.resolve()
  30756. .then(() => {
  30757. return state.auth();
  30758. })
  30759. .then(authorization => {
  30760. options.headers.authorization = withAuthorizationPrefix(authorization);
  30761. });
  30762. }
  30763. /***/ }),
  30764. /***/ 866:
  30765. /***/ (function(module, __unusedexports, __webpack_require__) {
  30766. "use strict";
  30767. var shebangRegex = __webpack_require__(816);
  30768. module.exports = function (str) {
  30769. var match = str.match(shebangRegex);
  30770. if (!match) {
  30771. return null;
  30772. }
  30773. var arr = match[0].replace(/#! ?/, '').split(' ');
  30774. var bin = arr[0].split('/').pop();
  30775. var arg = arr[1];
  30776. return (bin === 'env' ?
  30777. arg :
  30778. bin + (arg ? ' ' + arg : '')
  30779. );
  30780. };
  30781. /***/ }),
  30782. /***/ 874:
  30783. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  30784. "use strict";
  30785. // Copyright (c) Microsoft. All rights reserved.
  30786. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  30787. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  30788. return new (P || (P = Promise))(function (resolve, reject) {
  30789. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  30790. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  30791. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  30792. step((generator = generator.apply(thisArg, _arguments || [])).next());
  30793. });
  30794. };
  30795. Object.defineProperty(exports, "__esModule", { value: true });
  30796. const url = __webpack_require__(835);
  30797. const http = __webpack_require__(605);
  30798. const https = __webpack_require__(211);
  30799. const util = __webpack_require__(729);
  30800. let fs;
  30801. let tunnel;
  30802. var HttpCodes;
  30803. (function (HttpCodes) {
  30804. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  30805. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  30806. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  30807. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  30808. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  30809. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  30810. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  30811. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  30812. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  30813. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  30814. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  30815. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  30816. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  30817. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  30818. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  30819. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  30820. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  30821. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  30822. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  30823. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  30824. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  30825. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  30826. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  30827. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  30828. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  30829. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  30830. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  30831. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  30832. const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
  30833. const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
  30834. const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
  30835. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  30836. const ExponentialBackoffCeiling = 10;
  30837. const ExponentialBackoffTimeSlice = 5;
  30838. class HttpClientResponse {
  30839. constructor(message) {
  30840. this.message = message;
  30841. }
  30842. readBody() {
  30843. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  30844. let buffer = Buffer.alloc(0);
  30845. const encodingCharset = util.obtainContentCharset(this);
  30846. // Extract Encoding from header: 'content-encoding'
  30847. // Match `gzip`, `gzip, deflate` variations of GZIP encoding
  30848. const contentEncoding = this.message.headers['content-encoding'] || '';
  30849. const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
  30850. this.message.on('data', function (data) {
  30851. const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
  30852. buffer = Buffer.concat([buffer, chunk]);
  30853. }).on('end', function () {
  30854. return __awaiter(this, void 0, void 0, function* () {
  30855. if (isGzippedEncoded) { // Process GZipped Response Body HERE
  30856. const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
  30857. resolve(gunzippedBody);
  30858. }
  30859. else {
  30860. resolve(buffer.toString(encodingCharset));
  30861. }
  30862. });
  30863. }).on('error', function (err) {
  30864. reject(err);
  30865. });
  30866. }));
  30867. }
  30868. }
  30869. exports.HttpClientResponse = HttpClientResponse;
  30870. function isHttps(requestUrl) {
  30871. let parsedUrl = url.parse(requestUrl);
  30872. return parsedUrl.protocol === 'https:';
  30873. }
  30874. exports.isHttps = isHttps;
  30875. var EnvironmentVariables;
  30876. (function (EnvironmentVariables) {
  30877. EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
  30878. EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
  30879. EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
  30880. })(EnvironmentVariables || (EnvironmentVariables = {}));
  30881. class HttpClient {
  30882. constructor(userAgent, handlers, requestOptions) {
  30883. this._ignoreSslError = false;
  30884. this._allowRedirects = true;
  30885. this._allowRedirectDowngrade = false;
  30886. this._maxRedirects = 50;
  30887. this._allowRetries = false;
  30888. this._maxRetries = 1;
  30889. this._keepAlive = false;
  30890. this._disposed = false;
  30891. this.userAgent = userAgent;
  30892. this.handlers = handlers || [];
  30893. let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
  30894. if (no_proxy) {
  30895. this._httpProxyBypassHosts = [];
  30896. no_proxy.split(',').forEach(bypass => {
  30897. this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
  30898. });
  30899. }
  30900. this.requestOptions = requestOptions;
  30901. if (requestOptions) {
  30902. if (requestOptions.ignoreSslError != null) {
  30903. this._ignoreSslError = requestOptions.ignoreSslError;
  30904. }
  30905. this._socketTimeout = requestOptions.socketTimeout;
  30906. this._httpProxy = requestOptions.proxy;
  30907. if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
  30908. this._httpProxyBypassHosts = [];
  30909. requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
  30910. this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
  30911. });
  30912. }
  30913. this._certConfig = requestOptions.cert;
  30914. if (this._certConfig) {
  30915. // If using cert, need fs
  30916. fs = __webpack_require__(747);
  30917. // cache the cert content into memory, so we don't have to read it from disk every time
  30918. if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
  30919. this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
  30920. }
  30921. if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
  30922. this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
  30923. }
  30924. if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
  30925. this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
  30926. }
  30927. }
  30928. if (requestOptions.allowRedirects != null) {
  30929. this._allowRedirects = requestOptions.allowRedirects;
  30930. }
  30931. if (requestOptions.allowRedirectDowngrade != null) {
  30932. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  30933. }
  30934. if (requestOptions.maxRedirects != null) {
  30935. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  30936. }
  30937. if (requestOptions.keepAlive != null) {
  30938. this._keepAlive = requestOptions.keepAlive;
  30939. }
  30940. if (requestOptions.allowRetries != null) {
  30941. this._allowRetries = requestOptions.allowRetries;
  30942. }
  30943. if (requestOptions.maxRetries != null) {
  30944. this._maxRetries = requestOptions.maxRetries;
  30945. }
  30946. }
  30947. }
  30948. options(requestUrl, additionalHeaders) {
  30949. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  30950. }
  30951. get(requestUrl, additionalHeaders) {
  30952. return this.request('GET', requestUrl, null, additionalHeaders || {});
  30953. }
  30954. del(requestUrl, additionalHeaders) {
  30955. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  30956. }
  30957. post(requestUrl, data, additionalHeaders) {
  30958. return this.request('POST', requestUrl, data, additionalHeaders || {});
  30959. }
  30960. patch(requestUrl, data, additionalHeaders) {
  30961. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  30962. }
  30963. put(requestUrl, data, additionalHeaders) {
  30964. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  30965. }
  30966. head(requestUrl, additionalHeaders) {
  30967. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  30968. }
  30969. sendStream(verb, requestUrl, stream, additionalHeaders) {
  30970. return this.request(verb, requestUrl, stream, additionalHeaders);
  30971. }
  30972. /**
  30973. * Makes a raw http request.
  30974. * All other methods such as get, post, patch, and request ultimately call this.
  30975. * Prefer get, del, post and patch
  30976. */
  30977. request(verb, requestUrl, data, headers) {
  30978. return __awaiter(this, void 0, void 0, function* () {
  30979. if (this._disposed) {
  30980. throw new Error("Client has already been disposed.");
  30981. }
  30982. let parsedUrl = url.parse(requestUrl);
  30983. let info = this._prepareRequest(verb, parsedUrl, headers);
  30984. // Only perform retries on reads since writes may not be idempotent.
  30985. let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
  30986. let numTries = 0;
  30987. let response;
  30988. while (numTries < maxTries) {
  30989. try {
  30990. response = yield this.requestRaw(info, data);
  30991. }
  30992. catch (err) {
  30993. numTries++;
  30994. if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
  30995. yield this._performExponentialBackoff(numTries);
  30996. continue;
  30997. }
  30998. throw err;
  30999. }
  31000. // Check if it's an authentication challenge
  31001. if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
  31002. let authenticationHandler;
  31003. for (let i = 0; i < this.handlers.length; i++) {
  31004. if (this.handlers[i].canHandleAuthentication(response)) {
  31005. authenticationHandler = this.handlers[i];
  31006. break;
  31007. }
  31008. }
  31009. if (authenticationHandler) {
  31010. return authenticationHandler.handleAuthentication(this, info, data);
  31011. }
  31012. else {
  31013. // We have received an unauthorized response but have no handlers to handle it.
  31014. // Let the response return to the caller.
  31015. return response;
  31016. }
  31017. }
  31018. let redirectsRemaining = this._maxRedirects;
  31019. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
  31020. && this._allowRedirects
  31021. && redirectsRemaining > 0) {
  31022. const redirectUrl = response.message.headers["location"];
  31023. if (!redirectUrl) {
  31024. // if there's no location to redirect to, we won't
  31025. break;
  31026. }
  31027. let parsedRedirectUrl = url.parse(redirectUrl);
  31028. if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
  31029. throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");
  31030. }
  31031. // we need to finish reading the response before reassigning response
  31032. // which will leak the open socket.
  31033. yield response.readBody();
  31034. // let's make the request with the new redirectUrl
  31035. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  31036. response = yield this.requestRaw(info, data);
  31037. redirectsRemaining--;
  31038. }
  31039. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  31040. // If not a retry code, return immediately instead of retrying
  31041. return response;
  31042. }
  31043. numTries += 1;
  31044. if (numTries < maxTries) {
  31045. yield response.readBody();
  31046. yield this._performExponentialBackoff(numTries);
  31047. }
  31048. }
  31049. return response;
  31050. });
  31051. }
  31052. /**
  31053. * Needs to be called if keepAlive is set to true in request options.
  31054. */
  31055. dispose() {
  31056. if (this._agent) {
  31057. this._agent.destroy();
  31058. }
  31059. this._disposed = true;
  31060. }
  31061. /**
  31062. * Raw request.
  31063. * @param info
  31064. * @param data
  31065. */
  31066. requestRaw(info, data) {
  31067. return new Promise((resolve, reject) => {
  31068. let callbackForResult = function (err, res) {
  31069. if (err) {
  31070. reject(err);
  31071. }
  31072. resolve(res);
  31073. };
  31074. this.requestRawWithCallback(info, data, callbackForResult);
  31075. });
  31076. }
  31077. /**
  31078. * Raw request with callback.
  31079. * @param info
  31080. * @param data
  31081. * @param onResult
  31082. */
  31083. requestRawWithCallback(info, data, onResult) {
  31084. let socket;
  31085. if (typeof (data) === 'string') {
  31086. info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
  31087. }
  31088. let callbackCalled = false;
  31089. let handleResult = (err, res) => {
  31090. if (!callbackCalled) {
  31091. callbackCalled = true;
  31092. onResult(err, res);
  31093. }
  31094. };
  31095. let req = info.httpModule.request(info.options, (msg) => {
  31096. let res = new HttpClientResponse(msg);
  31097. handleResult(null, res);
  31098. });
  31099. req.on('socket', (sock) => {
  31100. socket = sock;
  31101. });
  31102. // If we ever get disconnected, we want the socket to timeout eventually
  31103. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  31104. if (socket) {
  31105. socket.destroy();
  31106. }
  31107. handleResult(new Error('Request timeout: ' + info.options.path), null);
  31108. });
  31109. req.on('error', function (err) {
  31110. // err has statusCode property
  31111. // res should have headers
  31112. handleResult(err, null);
  31113. });
  31114. if (data && typeof (data) === 'string') {
  31115. req.write(data, 'utf8');
  31116. }
  31117. if (data && typeof (data) !== 'string') {
  31118. data.on('close', function () {
  31119. req.end();
  31120. });
  31121. data.pipe(req);
  31122. }
  31123. else {
  31124. req.end();
  31125. }
  31126. }
  31127. _prepareRequest(method, requestUrl, headers) {
  31128. const info = {};
  31129. info.parsedUrl = requestUrl;
  31130. const usingSsl = info.parsedUrl.protocol === 'https:';
  31131. info.httpModule = usingSsl ? https : http;
  31132. const defaultPort = usingSsl ? 443 : 80;
  31133. info.options = {};
  31134. info.options.host = info.parsedUrl.hostname;
  31135. info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
  31136. info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  31137. info.options.method = method;
  31138. info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
  31139. this._socketTimeout = info.options.timeout;
  31140. info.options.headers = this._mergeHeaders(headers);
  31141. if (this.userAgent != null) {
  31142. info.options.headers["user-agent"] = this.userAgent;
  31143. }
  31144. info.options.agent = this._getAgent(info.parsedUrl);
  31145. // gives handlers an opportunity to participate
  31146. if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
  31147. this.handlers.forEach((handler) => {
  31148. handler.prepareRequest(info.options);
  31149. });
  31150. }
  31151. return info;
  31152. }
  31153. _isPresigned(requestUrl) {
  31154. if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
  31155. const patterns = this.requestOptions.presignedUrlPatterns;
  31156. for (let i = 0; i < patterns.length; i++) {
  31157. if (requestUrl.match(patterns[i])) {
  31158. return true;
  31159. }
  31160. }
  31161. }
  31162. return false;
  31163. }
  31164. _mergeHeaders(headers) {
  31165. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
  31166. if (this.requestOptions && this.requestOptions.headers) {
  31167. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  31168. }
  31169. return lowercaseKeys(headers || {});
  31170. }
  31171. _getAgent(parsedUrl) {
  31172. let agent;
  31173. let proxy = this._getProxy(parsedUrl);
  31174. let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
  31175. if (this._keepAlive && useProxy) {
  31176. agent = this._proxyAgent;
  31177. }
  31178. if (this._keepAlive && !useProxy) {
  31179. agent = this._agent;
  31180. }
  31181. // if agent is already assigned use that agent.
  31182. if (!!agent) {
  31183. return agent;
  31184. }
  31185. const usingSsl = parsedUrl.protocol === 'https:';
  31186. let maxSockets = 100;
  31187. if (!!this.requestOptions) {
  31188. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  31189. }
  31190. if (useProxy) {
  31191. // If using proxy, need tunnel
  31192. if (!tunnel) {
  31193. tunnel = __webpack_require__(413);
  31194. }
  31195. const agentOptions = {
  31196. maxSockets: maxSockets,
  31197. keepAlive: this._keepAlive,
  31198. proxy: {
  31199. proxyAuth: proxy.proxyAuth,
  31200. host: proxy.proxyUrl.hostname,
  31201. port: proxy.proxyUrl.port
  31202. },
  31203. };
  31204. let tunnelAgent;
  31205. const overHttps = proxy.proxyUrl.protocol === 'https:';
  31206. if (usingSsl) {
  31207. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  31208. }
  31209. else {
  31210. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  31211. }
  31212. agent = tunnelAgent(agentOptions);
  31213. this._proxyAgent = agent;
  31214. }
  31215. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  31216. if (this._keepAlive && !agent) {
  31217. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  31218. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  31219. this._agent = agent;
  31220. }
  31221. // if not using private agent and tunnel agent isn't setup then use global agent
  31222. if (!agent) {
  31223. agent = usingSsl ? https.globalAgent : http.globalAgent;
  31224. }
  31225. if (usingSsl && this._ignoreSslError) {
  31226. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  31227. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  31228. // we have to cast it to any and change it directly
  31229. agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
  31230. }
  31231. if (usingSsl && this._certConfig) {
  31232. agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
  31233. }
  31234. return agent;
  31235. }
  31236. _getProxy(parsedUrl) {
  31237. let usingSsl = parsedUrl.protocol === 'https:';
  31238. let proxyConfig = this._httpProxy;
  31239. // fallback to http_proxy and https_proxy env
  31240. let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
  31241. let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
  31242. if (!proxyConfig) {
  31243. if (https_proxy && usingSsl) {
  31244. proxyConfig = {
  31245. proxyUrl: https_proxy
  31246. };
  31247. }
  31248. else if (http_proxy) {
  31249. proxyConfig = {
  31250. proxyUrl: http_proxy
  31251. };
  31252. }
  31253. }
  31254. let proxyUrl;
  31255. let proxyAuth;
  31256. if (proxyConfig) {
  31257. if (proxyConfig.proxyUrl.length > 0) {
  31258. proxyUrl = url.parse(proxyConfig.proxyUrl);
  31259. }
  31260. if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
  31261. proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
  31262. }
  31263. }
  31264. return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
  31265. }
  31266. _isMatchInBypassProxyList(parsedUrl) {
  31267. if (!this._httpProxyBypassHosts) {
  31268. return false;
  31269. }
  31270. let bypass = false;
  31271. this._httpProxyBypassHosts.forEach(bypassHost => {
  31272. if (bypassHost.test(parsedUrl.href)) {
  31273. bypass = true;
  31274. }
  31275. });
  31276. return bypass;
  31277. }
  31278. _performExponentialBackoff(retryNumber) {
  31279. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  31280. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  31281. return new Promise(resolve => setTimeout(() => resolve(), ms));
  31282. }
  31283. }
  31284. exports.HttpClient = HttpClient;
  31285. /***/ }),
  31286. /***/ 881:
  31287. /***/ (function(module) {
  31288. "use strict";
  31289. const isWin = process.platform === 'win32';
  31290. function notFoundError(original, syscall) {
  31291. return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
  31292. code: 'ENOENT',
  31293. errno: 'ENOENT',
  31294. syscall: `${syscall} ${original.command}`,
  31295. path: original.command,
  31296. spawnargs: original.args,
  31297. });
  31298. }
  31299. function hookChildProcess(cp, parsed) {
  31300. if (!isWin) {
  31301. return;
  31302. }
  31303. const originalEmit = cp.emit;
  31304. cp.emit = function (name, arg1) {
  31305. // If emitting "exit" event and exit code is 1, we need to check if
  31306. // the command exists and emit an "error" instead
  31307. // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
  31308. if (name === 'exit') {
  31309. const err = verifyENOENT(arg1, parsed, 'spawn');
  31310. if (err) {
  31311. return originalEmit.call(cp, 'error', err);
  31312. }
  31313. }
  31314. return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
  31315. };
  31316. }
  31317. function verifyENOENT(status, parsed) {
  31318. if (isWin && status === 1 && !parsed.file) {
  31319. return notFoundError(parsed.original, 'spawn');
  31320. }
  31321. return null;
  31322. }
  31323. function verifyENOENTSync(status, parsed) {
  31324. if (isWin && status === 1 && !parsed.file) {
  31325. return notFoundError(parsed.original, 'spawnSync');
  31326. }
  31327. return null;
  31328. }
  31329. module.exports = {
  31330. hookChildProcess,
  31331. verifyENOENT,
  31332. verifyENOENTSync,
  31333. notFoundError,
  31334. };
  31335. /***/ }),
  31336. /***/ 883:
  31337. /***/ (function(module) {
  31338. /**
  31339. * lodash (Custom Build) <https://lodash.com/>
  31340. * Build: `lodash modularize exports="npm" -o ./`
  31341. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  31342. * Released under MIT license <https://lodash.com/license>
  31343. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  31344. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  31345. */
  31346. /** Used as the `TypeError` message for "Functions" methods. */
  31347. var FUNC_ERROR_TEXT = 'Expected a function';
  31348. /** Used to stand-in for `undefined` hash values. */
  31349. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  31350. /** Used as references for various `Number` constants. */
  31351. var INFINITY = 1 / 0,
  31352. MAX_SAFE_INTEGER = 9007199254740991;
  31353. /** `Object#toString` result references. */
  31354. var funcTag = '[object Function]',
  31355. genTag = '[object GeneratorFunction]',
  31356. symbolTag = '[object Symbol]';
  31357. /** Used to match property names within property paths. */
  31358. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  31359. reIsPlainProp = /^\w*$/,
  31360. reLeadingDot = /^\./,
  31361. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  31362. /**
  31363. * Used to match `RegExp`
  31364. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  31365. */
  31366. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  31367. /** Used to match backslashes in property paths. */
  31368. var reEscapeChar = /\\(\\)?/g;
  31369. /** Used to detect host constructors (Safari). */
  31370. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  31371. /** Used to detect unsigned integer values. */
  31372. var reIsUint = /^(?:0|[1-9]\d*)$/;
  31373. /** Detect free variable `global` from Node.js. */
  31374. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  31375. /** Detect free variable `self`. */
  31376. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  31377. /** Used as a reference to the global object. */
  31378. var root = freeGlobal || freeSelf || Function('return this')();
  31379. /**
  31380. * Gets the value at `key` of `object`.
  31381. *
  31382. * @private
  31383. * @param {Object} [object] The object to query.
  31384. * @param {string} key The key of the property to get.
  31385. * @returns {*} Returns the property value.
  31386. */
  31387. function getValue(object, key) {
  31388. return object == null ? undefined : object[key];
  31389. }
  31390. /**
  31391. * Checks if `value` is a host object in IE < 9.
  31392. *
  31393. * @private
  31394. * @param {*} value The value to check.
  31395. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  31396. */
  31397. function isHostObject(value) {
  31398. // Many host objects are `Object` objects that can coerce to strings
  31399. // despite having improperly defined `toString` methods.
  31400. var result = false;
  31401. if (value != null && typeof value.toString != 'function') {
  31402. try {
  31403. result = !!(value + '');
  31404. } catch (e) {}
  31405. }
  31406. return result;
  31407. }
  31408. /** Used for built-in method references. */
  31409. var arrayProto = Array.prototype,
  31410. funcProto = Function.prototype,
  31411. objectProto = Object.prototype;
  31412. /** Used to detect overreaching core-js shims. */
  31413. var coreJsData = root['__core-js_shared__'];
  31414. /** Used to detect methods masquerading as native. */
  31415. var maskSrcKey = (function() {
  31416. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  31417. return uid ? ('Symbol(src)_1.' + uid) : '';
  31418. }());
  31419. /** Used to resolve the decompiled source of functions. */
  31420. var funcToString = funcProto.toString;
  31421. /** Used to check objects for own properties. */
  31422. var hasOwnProperty = objectProto.hasOwnProperty;
  31423. /**
  31424. * Used to resolve the
  31425. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  31426. * of values.
  31427. */
  31428. var objectToString = objectProto.toString;
  31429. /** Used to detect if a method is native. */
  31430. var reIsNative = RegExp('^' +
  31431. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  31432. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  31433. );
  31434. /** Built-in value references. */
  31435. var Symbol = root.Symbol,
  31436. splice = arrayProto.splice;
  31437. /* Built-in method references that are verified to be native. */
  31438. var Map = getNative(root, 'Map'),
  31439. nativeCreate = getNative(Object, 'create');
  31440. /** Used to convert symbols to primitives and strings. */
  31441. var symbolProto = Symbol ? Symbol.prototype : undefined,
  31442. symbolToString = symbolProto ? symbolProto.toString : undefined;
  31443. /**
  31444. * Creates a hash object.
  31445. *
  31446. * @private
  31447. * @constructor
  31448. * @param {Array} [entries] The key-value pairs to cache.
  31449. */
  31450. function Hash(entries) {
  31451. var index = -1,
  31452. length = entries ? entries.length : 0;
  31453. this.clear();
  31454. while (++index < length) {
  31455. var entry = entries[index];
  31456. this.set(entry[0], entry[1]);
  31457. }
  31458. }
  31459. /**
  31460. * Removes all key-value entries from the hash.
  31461. *
  31462. * @private
  31463. * @name clear
  31464. * @memberOf Hash
  31465. */
  31466. function hashClear() {
  31467. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  31468. }
  31469. /**
  31470. * Removes `key` and its value from the hash.
  31471. *
  31472. * @private
  31473. * @name delete
  31474. * @memberOf Hash
  31475. * @param {Object} hash The hash to modify.
  31476. * @param {string} key The key of the value to remove.
  31477. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31478. */
  31479. function hashDelete(key) {
  31480. return this.has(key) && delete this.__data__[key];
  31481. }
  31482. /**
  31483. * Gets the hash value for `key`.
  31484. *
  31485. * @private
  31486. * @name get
  31487. * @memberOf Hash
  31488. * @param {string} key The key of the value to get.
  31489. * @returns {*} Returns the entry value.
  31490. */
  31491. function hashGet(key) {
  31492. var data = this.__data__;
  31493. if (nativeCreate) {
  31494. var result = data[key];
  31495. return result === HASH_UNDEFINED ? undefined : result;
  31496. }
  31497. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  31498. }
  31499. /**
  31500. * Checks if a hash value for `key` exists.
  31501. *
  31502. * @private
  31503. * @name has
  31504. * @memberOf Hash
  31505. * @param {string} key The key of the entry to check.
  31506. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31507. */
  31508. function hashHas(key) {
  31509. var data = this.__data__;
  31510. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  31511. }
  31512. /**
  31513. * Sets the hash `key` to `value`.
  31514. *
  31515. * @private
  31516. * @name set
  31517. * @memberOf Hash
  31518. * @param {string} key The key of the value to set.
  31519. * @param {*} value The value to set.
  31520. * @returns {Object} Returns the hash instance.
  31521. */
  31522. function hashSet(key, value) {
  31523. var data = this.__data__;
  31524. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  31525. return this;
  31526. }
  31527. // Add methods to `Hash`.
  31528. Hash.prototype.clear = hashClear;
  31529. Hash.prototype['delete'] = hashDelete;
  31530. Hash.prototype.get = hashGet;
  31531. Hash.prototype.has = hashHas;
  31532. Hash.prototype.set = hashSet;
  31533. /**
  31534. * Creates an list cache object.
  31535. *
  31536. * @private
  31537. * @constructor
  31538. * @param {Array} [entries] The key-value pairs to cache.
  31539. */
  31540. function ListCache(entries) {
  31541. var index = -1,
  31542. length = entries ? entries.length : 0;
  31543. this.clear();
  31544. while (++index < length) {
  31545. var entry = entries[index];
  31546. this.set(entry[0], entry[1]);
  31547. }
  31548. }
  31549. /**
  31550. * Removes all key-value entries from the list cache.
  31551. *
  31552. * @private
  31553. * @name clear
  31554. * @memberOf ListCache
  31555. */
  31556. function listCacheClear() {
  31557. this.__data__ = [];
  31558. }
  31559. /**
  31560. * Removes `key` and its value from the list cache.
  31561. *
  31562. * @private
  31563. * @name delete
  31564. * @memberOf ListCache
  31565. * @param {string} key The key of the value to remove.
  31566. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31567. */
  31568. function listCacheDelete(key) {
  31569. var data = this.__data__,
  31570. index = assocIndexOf(data, key);
  31571. if (index < 0) {
  31572. return false;
  31573. }
  31574. var lastIndex = data.length - 1;
  31575. if (index == lastIndex) {
  31576. data.pop();
  31577. } else {
  31578. splice.call(data, index, 1);
  31579. }
  31580. return true;
  31581. }
  31582. /**
  31583. * Gets the list cache value for `key`.
  31584. *
  31585. * @private
  31586. * @name get
  31587. * @memberOf ListCache
  31588. * @param {string} key The key of the value to get.
  31589. * @returns {*} Returns the entry value.
  31590. */
  31591. function listCacheGet(key) {
  31592. var data = this.__data__,
  31593. index = assocIndexOf(data, key);
  31594. return index < 0 ? undefined : data[index][1];
  31595. }
  31596. /**
  31597. * Checks if a list cache value for `key` exists.
  31598. *
  31599. * @private
  31600. * @name has
  31601. * @memberOf ListCache
  31602. * @param {string} key The key of the entry to check.
  31603. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31604. */
  31605. function listCacheHas(key) {
  31606. return assocIndexOf(this.__data__, key) > -1;
  31607. }
  31608. /**
  31609. * Sets the list cache `key` to `value`.
  31610. *
  31611. * @private
  31612. * @name set
  31613. * @memberOf ListCache
  31614. * @param {string} key The key of the value to set.
  31615. * @param {*} value The value to set.
  31616. * @returns {Object} Returns the list cache instance.
  31617. */
  31618. function listCacheSet(key, value) {
  31619. var data = this.__data__,
  31620. index = assocIndexOf(data, key);
  31621. if (index < 0) {
  31622. data.push([key, value]);
  31623. } else {
  31624. data[index][1] = value;
  31625. }
  31626. return this;
  31627. }
  31628. // Add methods to `ListCache`.
  31629. ListCache.prototype.clear = listCacheClear;
  31630. ListCache.prototype['delete'] = listCacheDelete;
  31631. ListCache.prototype.get = listCacheGet;
  31632. ListCache.prototype.has = listCacheHas;
  31633. ListCache.prototype.set = listCacheSet;
  31634. /**
  31635. * Creates a map cache object to store key-value pairs.
  31636. *
  31637. * @private
  31638. * @constructor
  31639. * @param {Array} [entries] The key-value pairs to cache.
  31640. */
  31641. function MapCache(entries) {
  31642. var index = -1,
  31643. length = entries ? entries.length : 0;
  31644. this.clear();
  31645. while (++index < length) {
  31646. var entry = entries[index];
  31647. this.set(entry[0], entry[1]);
  31648. }
  31649. }
  31650. /**
  31651. * Removes all key-value entries from the map.
  31652. *
  31653. * @private
  31654. * @name clear
  31655. * @memberOf MapCache
  31656. */
  31657. function mapCacheClear() {
  31658. this.__data__ = {
  31659. 'hash': new Hash,
  31660. 'map': new (Map || ListCache),
  31661. 'string': new Hash
  31662. };
  31663. }
  31664. /**
  31665. * Removes `key` and its value from the map.
  31666. *
  31667. * @private
  31668. * @name delete
  31669. * @memberOf MapCache
  31670. * @param {string} key The key of the value to remove.
  31671. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31672. */
  31673. function mapCacheDelete(key) {
  31674. return getMapData(this, key)['delete'](key);
  31675. }
  31676. /**
  31677. * Gets the map value for `key`.
  31678. *
  31679. * @private
  31680. * @name get
  31681. * @memberOf MapCache
  31682. * @param {string} key The key of the value to get.
  31683. * @returns {*} Returns the entry value.
  31684. */
  31685. function mapCacheGet(key) {
  31686. return getMapData(this, key).get(key);
  31687. }
  31688. /**
  31689. * Checks if a map value for `key` exists.
  31690. *
  31691. * @private
  31692. * @name has
  31693. * @memberOf MapCache
  31694. * @param {string} key The key of the entry to check.
  31695. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31696. */
  31697. function mapCacheHas(key) {
  31698. return getMapData(this, key).has(key);
  31699. }
  31700. /**
  31701. * Sets the map `key` to `value`.
  31702. *
  31703. * @private
  31704. * @name set
  31705. * @memberOf MapCache
  31706. * @param {string} key The key of the value to set.
  31707. * @param {*} value The value to set.
  31708. * @returns {Object} Returns the map cache instance.
  31709. */
  31710. function mapCacheSet(key, value) {
  31711. getMapData(this, key).set(key, value);
  31712. return this;
  31713. }
  31714. // Add methods to `MapCache`.
  31715. MapCache.prototype.clear = mapCacheClear;
  31716. MapCache.prototype['delete'] = mapCacheDelete;
  31717. MapCache.prototype.get = mapCacheGet;
  31718. MapCache.prototype.has = mapCacheHas;
  31719. MapCache.prototype.set = mapCacheSet;
  31720. /**
  31721. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  31722. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31723. * for equality comparisons.
  31724. *
  31725. * @private
  31726. * @param {Object} object The object to modify.
  31727. * @param {string} key The key of the property to assign.
  31728. * @param {*} value The value to assign.
  31729. */
  31730. function assignValue(object, key, value) {
  31731. var objValue = object[key];
  31732. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  31733. (value === undefined && !(key in object))) {
  31734. object[key] = value;
  31735. }
  31736. }
  31737. /**
  31738. * Gets the index at which the `key` is found in `array` of key-value pairs.
  31739. *
  31740. * @private
  31741. * @param {Array} array The array to inspect.
  31742. * @param {*} key The key to search for.
  31743. * @returns {number} Returns the index of the matched value, else `-1`.
  31744. */
  31745. function assocIndexOf(array, key) {
  31746. var length = array.length;
  31747. while (length--) {
  31748. if (eq(array[length][0], key)) {
  31749. return length;
  31750. }
  31751. }
  31752. return -1;
  31753. }
  31754. /**
  31755. * The base implementation of `_.isNative` without bad shim checks.
  31756. *
  31757. * @private
  31758. * @param {*} value The value to check.
  31759. * @returns {boolean} Returns `true` if `value` is a native function,
  31760. * else `false`.
  31761. */
  31762. function baseIsNative(value) {
  31763. if (!isObject(value) || isMasked(value)) {
  31764. return false;
  31765. }
  31766. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  31767. return pattern.test(toSource(value));
  31768. }
  31769. /**
  31770. * The base implementation of `_.set`.
  31771. *
  31772. * @private
  31773. * @param {Object} object The object to modify.
  31774. * @param {Array|string} path The path of the property to set.
  31775. * @param {*} value The value to set.
  31776. * @param {Function} [customizer] The function to customize path creation.
  31777. * @returns {Object} Returns `object`.
  31778. */
  31779. function baseSet(object, path, value, customizer) {
  31780. if (!isObject(object)) {
  31781. return object;
  31782. }
  31783. path = isKey(path, object) ? [path] : castPath(path);
  31784. var index = -1,
  31785. length = path.length,
  31786. lastIndex = length - 1,
  31787. nested = object;
  31788. while (nested != null && ++index < length) {
  31789. var key = toKey(path[index]),
  31790. newValue = value;
  31791. if (index != lastIndex) {
  31792. var objValue = nested[key];
  31793. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  31794. if (newValue === undefined) {
  31795. newValue = isObject(objValue)
  31796. ? objValue
  31797. : (isIndex(path[index + 1]) ? [] : {});
  31798. }
  31799. }
  31800. assignValue(nested, key, newValue);
  31801. nested = nested[key];
  31802. }
  31803. return object;
  31804. }
  31805. /**
  31806. * The base implementation of `_.toString` which doesn't convert nullish
  31807. * values to empty strings.
  31808. *
  31809. * @private
  31810. * @param {*} value The value to process.
  31811. * @returns {string} Returns the string.
  31812. */
  31813. function baseToString(value) {
  31814. // Exit early for strings to avoid a performance hit in some environments.
  31815. if (typeof value == 'string') {
  31816. return value;
  31817. }
  31818. if (isSymbol(value)) {
  31819. return symbolToString ? symbolToString.call(value) : '';
  31820. }
  31821. var result = (value + '');
  31822. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  31823. }
  31824. /**
  31825. * Casts `value` to a path array if it's not one.
  31826. *
  31827. * @private
  31828. * @param {*} value The value to inspect.
  31829. * @returns {Array} Returns the cast property path array.
  31830. */
  31831. function castPath(value) {
  31832. return isArray(value) ? value : stringToPath(value);
  31833. }
  31834. /**
  31835. * Gets the data for `map`.
  31836. *
  31837. * @private
  31838. * @param {Object} map The map to query.
  31839. * @param {string} key The reference key.
  31840. * @returns {*} Returns the map data.
  31841. */
  31842. function getMapData(map, key) {
  31843. var data = map.__data__;
  31844. return isKeyable(key)
  31845. ? data[typeof key == 'string' ? 'string' : 'hash']
  31846. : data.map;
  31847. }
  31848. /**
  31849. * Gets the native function at `key` of `object`.
  31850. *
  31851. * @private
  31852. * @param {Object} object The object to query.
  31853. * @param {string} key The key of the method to get.
  31854. * @returns {*} Returns the function if it's native, else `undefined`.
  31855. */
  31856. function getNative(object, key) {
  31857. var value = getValue(object, key);
  31858. return baseIsNative(value) ? value : undefined;
  31859. }
  31860. /**
  31861. * Checks if `value` is a valid array-like index.
  31862. *
  31863. * @private
  31864. * @param {*} value The value to check.
  31865. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  31866. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  31867. */
  31868. function isIndex(value, length) {
  31869. length = length == null ? MAX_SAFE_INTEGER : length;
  31870. return !!length &&
  31871. (typeof value == 'number' || reIsUint.test(value)) &&
  31872. (value > -1 && value % 1 == 0 && value < length);
  31873. }
  31874. /**
  31875. * Checks if `value` is a property name and not a property path.
  31876. *
  31877. * @private
  31878. * @param {*} value The value to check.
  31879. * @param {Object} [object] The object to query keys on.
  31880. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  31881. */
  31882. function isKey(value, object) {
  31883. if (isArray(value)) {
  31884. return false;
  31885. }
  31886. var type = typeof value;
  31887. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  31888. value == null || isSymbol(value)) {
  31889. return true;
  31890. }
  31891. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  31892. (object != null && value in Object(object));
  31893. }
  31894. /**
  31895. * Checks if `value` is suitable for use as unique object key.
  31896. *
  31897. * @private
  31898. * @param {*} value The value to check.
  31899. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  31900. */
  31901. function isKeyable(value) {
  31902. var type = typeof value;
  31903. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  31904. ? (value !== '__proto__')
  31905. : (value === null);
  31906. }
  31907. /**
  31908. * Checks if `func` has its source masked.
  31909. *
  31910. * @private
  31911. * @param {Function} func The function to check.
  31912. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  31913. */
  31914. function isMasked(func) {
  31915. return !!maskSrcKey && (maskSrcKey in func);
  31916. }
  31917. /**
  31918. * Converts `string` to a property path array.
  31919. *
  31920. * @private
  31921. * @param {string} string The string to convert.
  31922. * @returns {Array} Returns the property path array.
  31923. */
  31924. var stringToPath = memoize(function(string) {
  31925. string = toString(string);
  31926. var result = [];
  31927. if (reLeadingDot.test(string)) {
  31928. result.push('');
  31929. }
  31930. string.replace(rePropName, function(match, number, quote, string) {
  31931. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  31932. });
  31933. return result;
  31934. });
  31935. /**
  31936. * Converts `value` to a string key if it's not a string or symbol.
  31937. *
  31938. * @private
  31939. * @param {*} value The value to inspect.
  31940. * @returns {string|symbol} Returns the key.
  31941. */
  31942. function toKey(value) {
  31943. if (typeof value == 'string' || isSymbol(value)) {
  31944. return value;
  31945. }
  31946. var result = (value + '');
  31947. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  31948. }
  31949. /**
  31950. * Converts `func` to its source code.
  31951. *
  31952. * @private
  31953. * @param {Function} func The function to process.
  31954. * @returns {string} Returns the source code.
  31955. */
  31956. function toSource(func) {
  31957. if (func != null) {
  31958. try {
  31959. return funcToString.call(func);
  31960. } catch (e) {}
  31961. try {
  31962. return (func + '');
  31963. } catch (e) {}
  31964. }
  31965. return '';
  31966. }
  31967. /**
  31968. * Creates a function that memoizes the result of `func`. If `resolver` is
  31969. * provided, it determines the cache key for storing the result based on the
  31970. * arguments provided to the memoized function. By default, the first argument
  31971. * provided to the memoized function is used as the map cache key. The `func`
  31972. * is invoked with the `this` binding of the memoized function.
  31973. *
  31974. * **Note:** The cache is exposed as the `cache` property on the memoized
  31975. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  31976. * constructor with one whose instances implement the
  31977. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  31978. * method interface of `delete`, `get`, `has`, and `set`.
  31979. *
  31980. * @static
  31981. * @memberOf _
  31982. * @since 0.1.0
  31983. * @category Function
  31984. * @param {Function} func The function to have its output memoized.
  31985. * @param {Function} [resolver] The function to resolve the cache key.
  31986. * @returns {Function} Returns the new memoized function.
  31987. * @example
  31988. *
  31989. * var object = { 'a': 1, 'b': 2 };
  31990. * var other = { 'c': 3, 'd': 4 };
  31991. *
  31992. * var values = _.memoize(_.values);
  31993. * values(object);
  31994. * // => [1, 2]
  31995. *
  31996. * values(other);
  31997. * // => [3, 4]
  31998. *
  31999. * object.a = 2;
  32000. * values(object);
  32001. * // => [1, 2]
  32002. *
  32003. * // Modify the result cache.
  32004. * values.cache.set(object, ['a', 'b']);
  32005. * values(object);
  32006. * // => ['a', 'b']
  32007. *
  32008. * // Replace `_.memoize.Cache`.
  32009. * _.memoize.Cache = WeakMap;
  32010. */
  32011. function memoize(func, resolver) {
  32012. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  32013. throw new TypeError(FUNC_ERROR_TEXT);
  32014. }
  32015. var memoized = function() {
  32016. var args = arguments,
  32017. key = resolver ? resolver.apply(this, args) : args[0],
  32018. cache = memoized.cache;
  32019. if (cache.has(key)) {
  32020. return cache.get(key);
  32021. }
  32022. var result = func.apply(this, args);
  32023. memoized.cache = cache.set(key, result);
  32024. return result;
  32025. };
  32026. memoized.cache = new (memoize.Cache || MapCache);
  32027. return memoized;
  32028. }
  32029. // Assign cache to `_.memoize`.
  32030. memoize.Cache = MapCache;
  32031. /**
  32032. * Performs a
  32033. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32034. * comparison between two values to determine if they are equivalent.
  32035. *
  32036. * @static
  32037. * @memberOf _
  32038. * @since 4.0.0
  32039. * @category Lang
  32040. * @param {*} value The value to compare.
  32041. * @param {*} other The other value to compare.
  32042. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  32043. * @example
  32044. *
  32045. * var object = { 'a': 1 };
  32046. * var other = { 'a': 1 };
  32047. *
  32048. * _.eq(object, object);
  32049. * // => true
  32050. *
  32051. * _.eq(object, other);
  32052. * // => false
  32053. *
  32054. * _.eq('a', 'a');
  32055. * // => true
  32056. *
  32057. * _.eq('a', Object('a'));
  32058. * // => false
  32059. *
  32060. * _.eq(NaN, NaN);
  32061. * // => true
  32062. */
  32063. function eq(value, other) {
  32064. return value === other || (value !== value && other !== other);
  32065. }
  32066. /**
  32067. * Checks if `value` is classified as an `Array` object.
  32068. *
  32069. * @static
  32070. * @memberOf _
  32071. * @since 0.1.0
  32072. * @category Lang
  32073. * @param {*} value The value to check.
  32074. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  32075. * @example
  32076. *
  32077. * _.isArray([1, 2, 3]);
  32078. * // => true
  32079. *
  32080. * _.isArray(document.body.children);
  32081. * // => false
  32082. *
  32083. * _.isArray('abc');
  32084. * // => false
  32085. *
  32086. * _.isArray(_.noop);
  32087. * // => false
  32088. */
  32089. var isArray = Array.isArray;
  32090. /**
  32091. * Checks if `value` is classified as a `Function` object.
  32092. *
  32093. * @static
  32094. * @memberOf _
  32095. * @since 0.1.0
  32096. * @category Lang
  32097. * @param {*} value The value to check.
  32098. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  32099. * @example
  32100. *
  32101. * _.isFunction(_);
  32102. * // => true
  32103. *
  32104. * _.isFunction(/abc/);
  32105. * // => false
  32106. */
  32107. function isFunction(value) {
  32108. // The use of `Object#toString` avoids issues with the `typeof` operator
  32109. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  32110. var tag = isObject(value) ? objectToString.call(value) : '';
  32111. return tag == funcTag || tag == genTag;
  32112. }
  32113. /**
  32114. * Checks if `value` is the
  32115. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  32116. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  32117. *
  32118. * @static
  32119. * @memberOf _
  32120. * @since 0.1.0
  32121. * @category Lang
  32122. * @param {*} value The value to check.
  32123. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  32124. * @example
  32125. *
  32126. * _.isObject({});
  32127. * // => true
  32128. *
  32129. * _.isObject([1, 2, 3]);
  32130. * // => true
  32131. *
  32132. * _.isObject(_.noop);
  32133. * // => true
  32134. *
  32135. * _.isObject(null);
  32136. * // => false
  32137. */
  32138. function isObject(value) {
  32139. var type = typeof value;
  32140. return !!value && (type == 'object' || type == 'function');
  32141. }
  32142. /**
  32143. * Checks if `value` is object-like. A value is object-like if it's not `null`
  32144. * and has a `typeof` result of "object".
  32145. *
  32146. * @static
  32147. * @memberOf _
  32148. * @since 4.0.0
  32149. * @category Lang
  32150. * @param {*} value The value to check.
  32151. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  32152. * @example
  32153. *
  32154. * _.isObjectLike({});
  32155. * // => true
  32156. *
  32157. * _.isObjectLike([1, 2, 3]);
  32158. * // => true
  32159. *
  32160. * _.isObjectLike(_.noop);
  32161. * // => false
  32162. *
  32163. * _.isObjectLike(null);
  32164. * // => false
  32165. */
  32166. function isObjectLike(value) {
  32167. return !!value && typeof value == 'object';
  32168. }
  32169. /**
  32170. * Checks if `value` is classified as a `Symbol` primitive or object.
  32171. *
  32172. * @static
  32173. * @memberOf _
  32174. * @since 4.0.0
  32175. * @category Lang
  32176. * @param {*} value The value to check.
  32177. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  32178. * @example
  32179. *
  32180. * _.isSymbol(Symbol.iterator);
  32181. * // => true
  32182. *
  32183. * _.isSymbol('abc');
  32184. * // => false
  32185. */
  32186. function isSymbol(value) {
  32187. return typeof value == 'symbol' ||
  32188. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  32189. }
  32190. /**
  32191. * Converts `value` to a string. An empty string is returned for `null`
  32192. * and `undefined` values. The sign of `-0` is preserved.
  32193. *
  32194. * @static
  32195. * @memberOf _
  32196. * @since 4.0.0
  32197. * @category Lang
  32198. * @param {*} value The value to process.
  32199. * @returns {string} Returns the string.
  32200. * @example
  32201. *
  32202. * _.toString(null);
  32203. * // => ''
  32204. *
  32205. * _.toString(-0);
  32206. * // => '-0'
  32207. *
  32208. * _.toString([1, 2, 3]);
  32209. * // => '1,2,3'
  32210. */
  32211. function toString(value) {
  32212. return value == null ? '' : baseToString(value);
  32213. }
  32214. /**
  32215. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  32216. * it's created. Arrays are created for missing index properties while objects
  32217. * are created for all other missing properties. Use `_.setWith` to customize
  32218. * `path` creation.
  32219. *
  32220. * **Note:** This method mutates `object`.
  32221. *
  32222. * @static
  32223. * @memberOf _
  32224. * @since 3.7.0
  32225. * @category Object
  32226. * @param {Object} object The object to modify.
  32227. * @param {Array|string} path The path of the property to set.
  32228. * @param {*} value The value to set.
  32229. * @returns {Object} Returns `object`.
  32230. * @example
  32231. *
  32232. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  32233. *
  32234. * _.set(object, 'a[0].b.c', 4);
  32235. * console.log(object.a[0].b.c);
  32236. * // => 4
  32237. *
  32238. * _.set(object, ['x', '0', 'y', 'z'], 5);
  32239. * console.log(object.x[0].y.z);
  32240. * // => 5
  32241. */
  32242. function set(object, path, value) {
  32243. return object == null ? object : baseSet(object, path, value);
  32244. }
  32245. module.exports = set;
  32246. /***/ }),
  32247. /***/ 897:
  32248. /***/ (function(module, __unusedexports, __webpack_require__) {
  32249. "use strict";
  32250. var getSideChannel = __webpack_require__(701);
  32251. var utils = __webpack_require__(581);
  32252. var formats = __webpack_require__(13);
  32253. var has = Object.prototype.hasOwnProperty;
  32254. var arrayPrefixGenerators = {
  32255. brackets: function brackets(prefix) {
  32256. return prefix + '[]';
  32257. },
  32258. comma: 'comma',
  32259. indices: function indices(prefix, key) {
  32260. return prefix + '[' + key + ']';
  32261. },
  32262. repeat: function repeat(prefix) {
  32263. return prefix;
  32264. }
  32265. };
  32266. var isArray = Array.isArray;
  32267. var push = Array.prototype.push;
  32268. var pushToArray = function (arr, valueOrArray) {
  32269. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  32270. };
  32271. var toISO = Date.prototype.toISOString;
  32272. var defaultFormat = formats['default'];
  32273. var defaults = {
  32274. addQueryPrefix: false,
  32275. allowDots: false,
  32276. charset: 'utf-8',
  32277. charsetSentinel: false,
  32278. delimiter: '&',
  32279. encode: true,
  32280. encoder: utils.encode,
  32281. encodeValuesOnly: false,
  32282. format: defaultFormat,
  32283. formatter: formats.formatters[defaultFormat],
  32284. // deprecated
  32285. indices: false,
  32286. serializeDate: function serializeDate(date) {
  32287. return toISO.call(date);
  32288. },
  32289. skipNulls: false,
  32290. strictNullHandling: false
  32291. };
  32292. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  32293. return typeof v === 'string'
  32294. || typeof v === 'number'
  32295. || typeof v === 'boolean'
  32296. || typeof v === 'symbol'
  32297. || typeof v === 'bigint';
  32298. };
  32299. var stringify = function stringify(
  32300. object,
  32301. prefix,
  32302. generateArrayPrefix,
  32303. strictNullHandling,
  32304. skipNulls,
  32305. encoder,
  32306. filter,
  32307. sort,
  32308. allowDots,
  32309. serializeDate,
  32310. format,
  32311. formatter,
  32312. encodeValuesOnly,
  32313. charset,
  32314. sideChannel
  32315. ) {
  32316. var obj = object;
  32317. if (sideChannel.has(object)) {
  32318. throw new RangeError('Cyclic object value');
  32319. }
  32320. if (typeof filter === 'function') {
  32321. obj = filter(prefix, obj);
  32322. } else if (obj instanceof Date) {
  32323. obj = serializeDate(obj);
  32324. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  32325. obj = utils.maybeMap(obj, function (value) {
  32326. if (value instanceof Date) {
  32327. return serializeDate(value);
  32328. }
  32329. return value;
  32330. });
  32331. }
  32332. if (obj === null) {
  32333. if (strictNullHandling) {
  32334. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  32335. }
  32336. obj = '';
  32337. }
  32338. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  32339. if (encoder) {
  32340. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  32341. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  32342. }
  32343. return [formatter(prefix) + '=' + formatter(String(obj))];
  32344. }
  32345. var values = [];
  32346. if (typeof obj === 'undefined') {
  32347. return values;
  32348. }
  32349. var objKeys;
  32350. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  32351. // we need to join elements in
  32352. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
  32353. } else if (isArray(filter)) {
  32354. objKeys = filter;
  32355. } else {
  32356. var keys = Object.keys(obj);
  32357. objKeys = sort ? keys.sort(sort) : keys;
  32358. }
  32359. for (var i = 0; i < objKeys.length; ++i) {
  32360. var key = objKeys[i];
  32361. var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
  32362. if (skipNulls && value === null) {
  32363. continue;
  32364. }
  32365. var keyPrefix = isArray(obj)
  32366. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
  32367. : prefix + (allowDots ? '.' + key : '[' + key + ']');
  32368. sideChannel.set(object, true);
  32369. var valueSideChannel = getSideChannel();
  32370. pushToArray(values, stringify(
  32371. value,
  32372. keyPrefix,
  32373. generateArrayPrefix,
  32374. strictNullHandling,
  32375. skipNulls,
  32376. encoder,
  32377. filter,
  32378. sort,
  32379. allowDots,
  32380. serializeDate,
  32381. format,
  32382. formatter,
  32383. encodeValuesOnly,
  32384. charset,
  32385. valueSideChannel
  32386. ));
  32387. }
  32388. return values;
  32389. };
  32390. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  32391. if (!opts) {
  32392. return defaults;
  32393. }
  32394. if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
  32395. throw new TypeError('Encoder has to be a function.');
  32396. }
  32397. var charset = opts.charset || defaults.charset;
  32398. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  32399. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  32400. }
  32401. var format = formats['default'];
  32402. if (typeof opts.format !== 'undefined') {
  32403. if (!has.call(formats.formatters, opts.format)) {
  32404. throw new TypeError('Unknown format option provided.');
  32405. }
  32406. format = opts.format;
  32407. }
  32408. var formatter = formats.formatters[format];
  32409. var filter = defaults.filter;
  32410. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  32411. filter = opts.filter;
  32412. }
  32413. return {
  32414. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  32415. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  32416. charset: charset,
  32417. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  32418. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  32419. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  32420. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  32421. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  32422. filter: filter,
  32423. format: format,
  32424. formatter: formatter,
  32425. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  32426. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  32427. sort: typeof opts.sort === 'function' ? opts.sort : null,
  32428. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  32429. };
  32430. };
  32431. module.exports = function (object, opts) {
  32432. var obj = object;
  32433. var options = normalizeStringifyOptions(opts);
  32434. var objKeys;
  32435. var filter;
  32436. if (typeof options.filter === 'function') {
  32437. filter = options.filter;
  32438. obj = filter('', obj);
  32439. } else if (isArray(options.filter)) {
  32440. filter = options.filter;
  32441. objKeys = filter;
  32442. }
  32443. var keys = [];
  32444. if (typeof obj !== 'object' || obj === null) {
  32445. return '';
  32446. }
  32447. var arrayFormat;
  32448. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  32449. arrayFormat = opts.arrayFormat;
  32450. } else if (opts && 'indices' in opts) {
  32451. arrayFormat = opts.indices ? 'indices' : 'repeat';
  32452. } else {
  32453. arrayFormat = 'indices';
  32454. }
  32455. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  32456. if (!objKeys) {
  32457. objKeys = Object.keys(obj);
  32458. }
  32459. if (options.sort) {
  32460. objKeys.sort(options.sort);
  32461. }
  32462. var sideChannel = getSideChannel();
  32463. for (var i = 0; i < objKeys.length; ++i) {
  32464. var key = objKeys[i];
  32465. if (options.skipNulls && obj[key] === null) {
  32466. continue;
  32467. }
  32468. pushToArray(keys, stringify(
  32469. obj[key],
  32470. key,
  32471. generateArrayPrefix,
  32472. options.strictNullHandling,
  32473. options.skipNulls,
  32474. options.encode ? options.encoder : null,
  32475. options.filter,
  32476. options.sort,
  32477. options.allowDots,
  32478. options.serializeDate,
  32479. options.format,
  32480. options.formatter,
  32481. options.encodeValuesOnly,
  32482. options.charset,
  32483. sideChannel
  32484. ));
  32485. }
  32486. var joined = keys.join(options.delimiter);
  32487. var prefix = options.addQueryPrefix === true ? '?' : '';
  32488. if (options.charsetSentinel) {
  32489. if (options.charset === 'iso-8859-1') {
  32490. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  32491. prefix += 'utf8=%26%2310003%3B&';
  32492. } else {
  32493. // encodeURIComponent('✓')
  32494. prefix += 'utf8=%E2%9C%93&';
  32495. }
  32496. }
  32497. return joined.length > 0 ? prefix + joined : '';
  32498. };
  32499. /***/ }),
  32500. /***/ 898:
  32501. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  32502. "use strict";
  32503. Object.defineProperty(exports, '__esModule', { value: true });
  32504. var request = __webpack_require__(753);
  32505. var universalUserAgent = __webpack_require__(796);
  32506. const VERSION = "4.3.1";
  32507. class GraphqlError extends Error {
  32508. constructor(request, response) {
  32509. const message = response.data.errors[0].message;
  32510. super(message);
  32511. Object.assign(this, response.data);
  32512. this.name = "GraphqlError";
  32513. this.request = request; // Maintains proper stack trace (only available on V8)
  32514. /* istanbul ignore next */
  32515. if (Error.captureStackTrace) {
  32516. Error.captureStackTrace(this, this.constructor);
  32517. }
  32518. }
  32519. }
  32520. const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
  32521. function graphql(request, query, options) {
  32522. options = typeof query === "string" ? options = Object.assign({
  32523. query
  32524. }, options) : options = query;
  32525. const requestOptions = Object.keys(options).reduce((result, key) => {
  32526. if (NON_VARIABLE_OPTIONS.includes(key)) {
  32527. result[key] = options[key];
  32528. return result;
  32529. }
  32530. if (!result.variables) {
  32531. result.variables = {};
  32532. }
  32533. result.variables[key] = options[key];
  32534. return result;
  32535. }, {});
  32536. return request(requestOptions).then(response => {
  32537. if (response.data.errors) {
  32538. throw new GraphqlError(requestOptions, {
  32539. data: response.data
  32540. });
  32541. }
  32542. return response.data.data;
  32543. });
  32544. }
  32545. function withDefaults(request$1, newDefaults) {
  32546. const newRequest = request$1.defaults(newDefaults);
  32547. const newApi = (query, options) => {
  32548. return graphql(newRequest, query, options);
  32549. };
  32550. return Object.assign(newApi, {
  32551. defaults: withDefaults.bind(null, newRequest),
  32552. endpoint: request.request.endpoint
  32553. });
  32554. }
  32555. const graphql$1 = withDefaults(request.request, {
  32556. headers: {
  32557. "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  32558. },
  32559. method: "POST",
  32560. url: "/graphql"
  32561. });
  32562. function withCustomRequest(customRequest) {
  32563. return withDefaults(customRequest, {
  32564. method: "POST",
  32565. url: "/graphql"
  32566. });
  32567. }
  32568. exports.graphql = graphql$1;
  32569. exports.withCustomRequest = withCustomRequest;
  32570. //# sourceMappingURL=index.js.map
  32571. /***/ }),
  32572. /***/ 915:
  32573. /***/ (function(module, __unusedexports, __webpack_require__) {
  32574. "use strict";
  32575. var undefined;
  32576. var $SyntaxError = SyntaxError;
  32577. var $Function = Function;
  32578. var $TypeError = TypeError;
  32579. // eslint-disable-next-line consistent-return
  32580. var getEvalledConstructor = function (expressionSyntax) {
  32581. try {
  32582. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  32583. } catch (e) {}
  32584. };
  32585. var $gOPD = Object.getOwnPropertyDescriptor;
  32586. if ($gOPD) {
  32587. try {
  32588. $gOPD({}, '');
  32589. } catch (e) {
  32590. $gOPD = null; // this is IE 8, which has a broken gOPD
  32591. }
  32592. }
  32593. var throwTypeError = function () {
  32594. throw new $TypeError();
  32595. };
  32596. var ThrowTypeError = $gOPD
  32597. ? (function () {
  32598. try {
  32599. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  32600. arguments.callee; // IE 8 does not throw here
  32601. return throwTypeError;
  32602. } catch (calleeThrows) {
  32603. try {
  32604. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  32605. return $gOPD(arguments, 'callee').get;
  32606. } catch (gOPDthrows) {
  32607. return throwTypeError;
  32608. }
  32609. }
  32610. }())
  32611. : throwTypeError;
  32612. var hasSymbols = __webpack_require__(277)();
  32613. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  32614. var needsEval = {};
  32615. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  32616. var INTRINSICS = {
  32617. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  32618. '%Array%': Array,
  32619. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  32620. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  32621. '%AsyncFromSyncIteratorPrototype%': undefined,
  32622. '%AsyncFunction%': needsEval,
  32623. '%AsyncGenerator%': needsEval,
  32624. '%AsyncGeneratorFunction%': needsEval,
  32625. '%AsyncIteratorPrototype%': needsEval,
  32626. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  32627. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  32628. '%Boolean%': Boolean,
  32629. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  32630. '%Date%': Date,
  32631. '%decodeURI%': decodeURI,
  32632. '%decodeURIComponent%': decodeURIComponent,
  32633. '%encodeURI%': encodeURI,
  32634. '%encodeURIComponent%': encodeURIComponent,
  32635. '%Error%': Error,
  32636. '%eval%': eval, // eslint-disable-line no-eval
  32637. '%EvalError%': EvalError,
  32638. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  32639. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  32640. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  32641. '%Function%': $Function,
  32642. '%GeneratorFunction%': needsEval,
  32643. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  32644. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  32645. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  32646. '%isFinite%': isFinite,
  32647. '%isNaN%': isNaN,
  32648. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  32649. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  32650. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  32651. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  32652. '%Math%': Math,
  32653. '%Number%': Number,
  32654. '%Object%': Object,
  32655. '%parseFloat%': parseFloat,
  32656. '%parseInt%': parseInt,
  32657. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  32658. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  32659. '%RangeError%': RangeError,
  32660. '%ReferenceError%': ReferenceError,
  32661. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  32662. '%RegExp%': RegExp,
  32663. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  32664. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  32665. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  32666. '%String%': String,
  32667. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  32668. '%Symbol%': hasSymbols ? Symbol : undefined,
  32669. '%SyntaxError%': $SyntaxError,
  32670. '%ThrowTypeError%': ThrowTypeError,
  32671. '%TypedArray%': TypedArray,
  32672. '%TypeError%': $TypeError,
  32673. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  32674. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  32675. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  32676. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  32677. '%URIError%': URIError,
  32678. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  32679. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  32680. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  32681. };
  32682. var doEval = function doEval(name) {
  32683. var value;
  32684. if (name === '%AsyncFunction%') {
  32685. value = getEvalledConstructor('async function () {}');
  32686. } else if (name === '%GeneratorFunction%') {
  32687. value = getEvalledConstructor('function* () {}');
  32688. } else if (name === '%AsyncGeneratorFunction%') {
  32689. value = getEvalledConstructor('async function* () {}');
  32690. } else if (name === '%AsyncGenerator%') {
  32691. var fn = doEval('%AsyncGeneratorFunction%');
  32692. if (fn) {
  32693. value = fn.prototype;
  32694. }
  32695. } else if (name === '%AsyncIteratorPrototype%') {
  32696. var gen = doEval('%AsyncGenerator%');
  32697. if (gen) {
  32698. value = getProto(gen.prototype);
  32699. }
  32700. }
  32701. INTRINSICS[name] = value;
  32702. return value;
  32703. };
  32704. var LEGACY_ALIASES = {
  32705. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  32706. '%ArrayPrototype%': ['Array', 'prototype'],
  32707. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  32708. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  32709. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  32710. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  32711. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  32712. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  32713. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  32714. '%BooleanPrototype%': ['Boolean', 'prototype'],
  32715. '%DataViewPrototype%': ['DataView', 'prototype'],
  32716. '%DatePrototype%': ['Date', 'prototype'],
  32717. '%ErrorPrototype%': ['Error', 'prototype'],
  32718. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  32719. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  32720. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  32721. '%FunctionPrototype%': ['Function', 'prototype'],
  32722. '%Generator%': ['GeneratorFunction', 'prototype'],
  32723. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  32724. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  32725. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  32726. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  32727. '%JSONParse%': ['JSON', 'parse'],
  32728. '%JSONStringify%': ['JSON', 'stringify'],
  32729. '%MapPrototype%': ['Map', 'prototype'],
  32730. '%NumberPrototype%': ['Number', 'prototype'],
  32731. '%ObjectPrototype%': ['Object', 'prototype'],
  32732. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  32733. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  32734. '%PromisePrototype%': ['Promise', 'prototype'],
  32735. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  32736. '%Promise_all%': ['Promise', 'all'],
  32737. '%Promise_reject%': ['Promise', 'reject'],
  32738. '%Promise_resolve%': ['Promise', 'resolve'],
  32739. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  32740. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  32741. '%RegExpPrototype%': ['RegExp', 'prototype'],
  32742. '%SetPrototype%': ['Set', 'prototype'],
  32743. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  32744. '%StringPrototype%': ['String', 'prototype'],
  32745. '%SymbolPrototype%': ['Symbol', 'prototype'],
  32746. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  32747. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  32748. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  32749. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  32750. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  32751. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  32752. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  32753. '%URIErrorPrototype%': ['URIError', 'prototype'],
  32754. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  32755. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  32756. };
  32757. var bind = __webpack_require__(739);
  32758. var hasOwn = __webpack_require__(174);
  32759. var $concat = bind.call(Function.call, Array.prototype.concat);
  32760. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  32761. var $replace = bind.call(Function.call, String.prototype.replace);
  32762. var $strSlice = bind.call(Function.call, String.prototype.slice);
  32763. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  32764. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  32765. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  32766. var stringToPath = function stringToPath(string) {
  32767. var first = $strSlice(string, 0, 1);
  32768. var last = $strSlice(string, -1);
  32769. if (first === '%' && last !== '%') {
  32770. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  32771. } else if (last === '%' && first !== '%') {
  32772. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  32773. }
  32774. var result = [];
  32775. $replace(string, rePropName, function (match, number, quote, subString) {
  32776. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  32777. });
  32778. return result;
  32779. };
  32780. /* end adaptation */
  32781. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  32782. var intrinsicName = name;
  32783. var alias;
  32784. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  32785. alias = LEGACY_ALIASES[intrinsicName];
  32786. intrinsicName = '%' + alias[0] + '%';
  32787. }
  32788. if (hasOwn(INTRINSICS, intrinsicName)) {
  32789. var value = INTRINSICS[intrinsicName];
  32790. if (value === needsEval) {
  32791. value = doEval(intrinsicName);
  32792. }
  32793. if (typeof value === 'undefined' && !allowMissing) {
  32794. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  32795. }
  32796. return {
  32797. alias: alias,
  32798. name: intrinsicName,
  32799. value: value
  32800. };
  32801. }
  32802. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  32803. };
  32804. module.exports = function GetIntrinsic(name, allowMissing) {
  32805. if (typeof name !== 'string' || name.length === 0) {
  32806. throw new $TypeError('intrinsic name must be a non-empty string');
  32807. }
  32808. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  32809. throw new $TypeError('"allowMissing" argument must be a boolean');
  32810. }
  32811. var parts = stringToPath(name);
  32812. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  32813. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  32814. var intrinsicRealName = intrinsic.name;
  32815. var value = intrinsic.value;
  32816. var skipFurtherCaching = false;
  32817. var alias = intrinsic.alias;
  32818. if (alias) {
  32819. intrinsicBaseName = alias[0];
  32820. $spliceApply(parts, $concat([0, 1], alias));
  32821. }
  32822. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  32823. var part = parts[i];
  32824. var first = $strSlice(part, 0, 1);
  32825. var last = $strSlice(part, -1);
  32826. if (
  32827. (
  32828. (first === '"' || first === "'" || first === '`')
  32829. || (last === '"' || last === "'" || last === '`')
  32830. )
  32831. && first !== last
  32832. ) {
  32833. throw new $SyntaxError('property names with quotes must have matching quotes');
  32834. }
  32835. if (part === 'constructor' || !isOwn) {
  32836. skipFurtherCaching = true;
  32837. }
  32838. intrinsicBaseName += '.' + part;
  32839. intrinsicRealName = '%' + intrinsicBaseName + '%';
  32840. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  32841. value = INTRINSICS[intrinsicRealName];
  32842. } else if (value != null) {
  32843. if (!(part in value)) {
  32844. if (!allowMissing) {
  32845. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  32846. }
  32847. return void undefined;
  32848. }
  32849. if ($gOPD && (i + 1) >= parts.length) {
  32850. var desc = $gOPD(value, part);
  32851. isOwn = !!desc;
  32852. // By convention, when a data property is converted to an accessor
  32853. // property to emulate a data property that does not suffer from
  32854. // the override mistake, that accessor's getter is marked with
  32855. // an `originalValue` property. Here, when we detect this, we
  32856. // uphold the illusion by pretending to see that original data
  32857. // property, i.e., returning the value rather than the getter
  32858. // itself.
  32859. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  32860. value = desc.get;
  32861. } else {
  32862. value = value[part];
  32863. }
  32864. } else {
  32865. isOwn = hasOwn(value, part);
  32866. value = value[part];
  32867. }
  32868. if (isOwn && !skipFurtherCaching) {
  32869. INTRINSICS[intrinsicRealName] = value;
  32870. }
  32871. }
  32872. }
  32873. return value;
  32874. };
  32875. /***/ }),
  32876. /***/ 916:
  32877. /***/ (function(__unusedmodule, exports) {
  32878. "use strict";
  32879. Object.defineProperty(exports, '__esModule', { value: true });
  32880. const VERSION = "1.0.0";
  32881. /**
  32882. * @param octokit Octokit instance
  32883. * @param options Options passed to Octokit constructor
  32884. */
  32885. function requestLog(octokit) {
  32886. octokit.hook.wrap("request", (request, options) => {
  32887. octokit.log.debug("request", options);
  32888. const start = Date.now();
  32889. const requestOptions = octokit.request.endpoint.parse(options);
  32890. const path = requestOptions.url.replace(options.baseUrl, "");
  32891. return request(options).then(response => {
  32892. octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
  32893. return response;
  32894. }).catch(error => {
  32895. octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
  32896. throw error;
  32897. });
  32898. });
  32899. }
  32900. requestLog.VERSION = VERSION;
  32901. exports.requestLog = requestLog;
  32902. //# sourceMappingURL=index.js.map
  32903. /***/ }),
  32904. /***/ 923:
  32905. /***/ (function(module) {
  32906. "use strict";
  32907. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  32908. module.exports = function hasSymbols() {
  32909. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  32910. if (typeof Symbol.iterator === 'symbol') { return true; }
  32911. var obj = {};
  32912. var sym = Symbol('test');
  32913. var symObj = Object(sym);
  32914. if (typeof sym === 'string') { return false; }
  32915. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  32916. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  32917. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  32918. // if (sym instanceof Symbol) { return false; }
  32919. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  32920. // if (!(symObj instanceof Symbol)) { return false; }
  32921. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  32922. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  32923. var symVal = 42;
  32924. obj[sym] = symVal;
  32925. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  32926. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  32927. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  32928. var syms = Object.getOwnPropertySymbols(obj);
  32929. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  32930. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  32931. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  32932. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  32933. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  32934. }
  32935. return true;
  32936. };
  32937. /***/ }),
  32938. /***/ 929:
  32939. /***/ (function(module, __unusedexports, __webpack_require__) {
  32940. module.exports = hasNextPage
  32941. const deprecate = __webpack_require__(370)
  32942. const getPageLinks = __webpack_require__(577)
  32943. function hasNextPage (link) {
  32944. deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  32945. return getPageLinks(link).next
  32946. }
  32947. /***/ }),
  32948. /***/ 936:
  32949. /***/ (function(module, __unusedexports, __webpack_require__) {
  32950. "use strict";
  32951. const punycode = __webpack_require__(213);
  32952. const tr46 = __webpack_require__(976);
  32953. const specialSchemes = {
  32954. ftp: 21,
  32955. file: null,
  32956. gopher: 70,
  32957. http: 80,
  32958. https: 443,
  32959. ws: 80,
  32960. wss: 443
  32961. };
  32962. const failure = Symbol("failure");
  32963. function countSymbols(str) {
  32964. return punycode.ucs2.decode(str).length;
  32965. }
  32966. function at(input, idx) {
  32967. const c = input[idx];
  32968. return isNaN(c) ? undefined : String.fromCodePoint(c);
  32969. }
  32970. function isASCIIDigit(c) {
  32971. return c >= 0x30 && c <= 0x39;
  32972. }
  32973. function isASCIIAlpha(c) {
  32974. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  32975. }
  32976. function isASCIIAlphanumeric(c) {
  32977. return isASCIIAlpha(c) || isASCIIDigit(c);
  32978. }
  32979. function isASCIIHex(c) {
  32980. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  32981. }
  32982. function isSingleDot(buffer) {
  32983. return buffer === "." || buffer.toLowerCase() === "%2e";
  32984. }
  32985. function isDoubleDot(buffer) {
  32986. buffer = buffer.toLowerCase();
  32987. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  32988. }
  32989. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  32990. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  32991. }
  32992. function isWindowsDriveLetterString(string) {
  32993. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  32994. }
  32995. function isNormalizedWindowsDriveLetterString(string) {
  32996. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  32997. }
  32998. function containsForbiddenHostCodePoint(string) {
  32999. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  33000. }
  33001. function containsForbiddenHostCodePointExcludingPercent(string) {
  33002. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  33003. }
  33004. function isSpecialScheme(scheme) {
  33005. return specialSchemes[scheme] !== undefined;
  33006. }
  33007. function isSpecial(url) {
  33008. return isSpecialScheme(url.scheme);
  33009. }
  33010. function defaultPort(scheme) {
  33011. return specialSchemes[scheme];
  33012. }
  33013. function percentEncode(c) {
  33014. let hex = c.toString(16).toUpperCase();
  33015. if (hex.length === 1) {
  33016. hex = "0" + hex;
  33017. }
  33018. return "%" + hex;
  33019. }
  33020. function utf8PercentEncode(c) {
  33021. const buf = new Buffer(c);
  33022. let str = "";
  33023. for (let i = 0; i < buf.length; ++i) {
  33024. str += percentEncode(buf[i]);
  33025. }
  33026. return str;
  33027. }
  33028. function utf8PercentDecode(str) {
  33029. const input = new Buffer(str);
  33030. const output = [];
  33031. for (let i = 0; i < input.length; ++i) {
  33032. if (input[i] !== 37) {
  33033. output.push(input[i]);
  33034. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  33035. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  33036. i += 2;
  33037. } else {
  33038. output.push(input[i]);
  33039. }
  33040. }
  33041. return new Buffer(output).toString();
  33042. }
  33043. function isC0ControlPercentEncode(c) {
  33044. return c <= 0x1F || c > 0x7E;
  33045. }
  33046. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  33047. function isPathPercentEncode(c) {
  33048. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  33049. }
  33050. const extraUserinfoPercentEncodeSet =
  33051. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  33052. function isUserinfoPercentEncode(c) {
  33053. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  33054. }
  33055. function percentEncodeChar(c, encodeSetPredicate) {
  33056. const cStr = String.fromCodePoint(c);
  33057. if (encodeSetPredicate(c)) {
  33058. return utf8PercentEncode(cStr);
  33059. }
  33060. return cStr;
  33061. }
  33062. function parseIPv4Number(input) {
  33063. let R = 10;
  33064. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  33065. input = input.substring(2);
  33066. R = 16;
  33067. } else if (input.length >= 2 && input.charAt(0) === "0") {
  33068. input = input.substring(1);
  33069. R = 8;
  33070. }
  33071. if (input === "") {
  33072. return 0;
  33073. }
  33074. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  33075. if (regex.test(input)) {
  33076. return failure;
  33077. }
  33078. return parseInt(input, R);
  33079. }
  33080. function parseIPv4(input) {
  33081. const parts = input.split(".");
  33082. if (parts[parts.length - 1] === "") {
  33083. if (parts.length > 1) {
  33084. parts.pop();
  33085. }
  33086. }
  33087. if (parts.length > 4) {
  33088. return input;
  33089. }
  33090. const numbers = [];
  33091. for (const part of parts) {
  33092. if (part === "") {
  33093. return input;
  33094. }
  33095. const n = parseIPv4Number(part);
  33096. if (n === failure) {
  33097. return input;
  33098. }
  33099. numbers.push(n);
  33100. }
  33101. for (let i = 0; i < numbers.length - 1; ++i) {
  33102. if (numbers[i] > 255) {
  33103. return failure;
  33104. }
  33105. }
  33106. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  33107. return failure;
  33108. }
  33109. let ipv4 = numbers.pop();
  33110. let counter = 0;
  33111. for (const n of numbers) {
  33112. ipv4 += n * Math.pow(256, 3 - counter);
  33113. ++counter;
  33114. }
  33115. return ipv4;
  33116. }
  33117. function serializeIPv4(address) {
  33118. let output = "";
  33119. let n = address;
  33120. for (let i = 1; i <= 4; ++i) {
  33121. output = String(n % 256) + output;
  33122. if (i !== 4) {
  33123. output = "." + output;
  33124. }
  33125. n = Math.floor(n / 256);
  33126. }
  33127. return output;
  33128. }
  33129. function parseIPv6(input) {
  33130. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  33131. let pieceIndex = 0;
  33132. let compress = null;
  33133. let pointer = 0;
  33134. input = punycode.ucs2.decode(input);
  33135. if (input[pointer] === 58) {
  33136. if (input[pointer + 1] !== 58) {
  33137. return failure;
  33138. }
  33139. pointer += 2;
  33140. ++pieceIndex;
  33141. compress = pieceIndex;
  33142. }
  33143. while (pointer < input.length) {
  33144. if (pieceIndex === 8) {
  33145. return failure;
  33146. }
  33147. if (input[pointer] === 58) {
  33148. if (compress !== null) {
  33149. return failure;
  33150. }
  33151. ++pointer;
  33152. ++pieceIndex;
  33153. compress = pieceIndex;
  33154. continue;
  33155. }
  33156. let value = 0;
  33157. let length = 0;
  33158. while (length < 4 && isASCIIHex(input[pointer])) {
  33159. value = value * 0x10 + parseInt(at(input, pointer), 16);
  33160. ++pointer;
  33161. ++length;
  33162. }
  33163. if (input[pointer] === 46) {
  33164. if (length === 0) {
  33165. return failure;
  33166. }
  33167. pointer -= length;
  33168. if (pieceIndex > 6) {
  33169. return failure;
  33170. }
  33171. let numbersSeen = 0;
  33172. while (input[pointer] !== undefined) {
  33173. let ipv4Piece = null;
  33174. if (numbersSeen > 0) {
  33175. if (input[pointer] === 46 && numbersSeen < 4) {
  33176. ++pointer;
  33177. } else {
  33178. return failure;
  33179. }
  33180. }
  33181. if (!isASCIIDigit(input[pointer])) {
  33182. return failure;
  33183. }
  33184. while (isASCIIDigit(input[pointer])) {
  33185. const number = parseInt(at(input, pointer));
  33186. if (ipv4Piece === null) {
  33187. ipv4Piece = number;
  33188. } else if (ipv4Piece === 0) {
  33189. return failure;
  33190. } else {
  33191. ipv4Piece = ipv4Piece * 10 + number;
  33192. }
  33193. if (ipv4Piece > 255) {
  33194. return failure;
  33195. }
  33196. ++pointer;
  33197. }
  33198. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  33199. ++numbersSeen;
  33200. if (numbersSeen === 2 || numbersSeen === 4) {
  33201. ++pieceIndex;
  33202. }
  33203. }
  33204. if (numbersSeen !== 4) {
  33205. return failure;
  33206. }
  33207. break;
  33208. } else if (input[pointer] === 58) {
  33209. ++pointer;
  33210. if (input[pointer] === undefined) {
  33211. return failure;
  33212. }
  33213. } else if (input[pointer] !== undefined) {
  33214. return failure;
  33215. }
  33216. address[pieceIndex] = value;
  33217. ++pieceIndex;
  33218. }
  33219. if (compress !== null) {
  33220. let swaps = pieceIndex - compress;
  33221. pieceIndex = 7;
  33222. while (pieceIndex !== 0 && swaps > 0) {
  33223. const temp = address[compress + swaps - 1];
  33224. address[compress + swaps - 1] = address[pieceIndex];
  33225. address[pieceIndex] = temp;
  33226. --pieceIndex;
  33227. --swaps;
  33228. }
  33229. } else if (compress === null && pieceIndex !== 8) {
  33230. return failure;
  33231. }
  33232. return address;
  33233. }
  33234. function serializeIPv6(address) {
  33235. let output = "";
  33236. const seqResult = findLongestZeroSequence(address);
  33237. const compress = seqResult.idx;
  33238. let ignore0 = false;
  33239. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  33240. if (ignore0 && address[pieceIndex] === 0) {
  33241. continue;
  33242. } else if (ignore0) {
  33243. ignore0 = false;
  33244. }
  33245. if (compress === pieceIndex) {
  33246. const separator = pieceIndex === 0 ? "::" : ":";
  33247. output += separator;
  33248. ignore0 = true;
  33249. continue;
  33250. }
  33251. output += address[pieceIndex].toString(16);
  33252. if (pieceIndex !== 7) {
  33253. output += ":";
  33254. }
  33255. }
  33256. return output;
  33257. }
  33258. function parseHost(input, isSpecialArg) {
  33259. if (input[0] === "[") {
  33260. if (input[input.length - 1] !== "]") {
  33261. return failure;
  33262. }
  33263. return parseIPv6(input.substring(1, input.length - 1));
  33264. }
  33265. if (!isSpecialArg) {
  33266. return parseOpaqueHost(input);
  33267. }
  33268. const domain = utf8PercentDecode(input);
  33269. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  33270. if (asciiDomain === null) {
  33271. return failure;
  33272. }
  33273. if (containsForbiddenHostCodePoint(asciiDomain)) {
  33274. return failure;
  33275. }
  33276. const ipv4Host = parseIPv4(asciiDomain);
  33277. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  33278. return ipv4Host;
  33279. }
  33280. return asciiDomain;
  33281. }
  33282. function parseOpaqueHost(input) {
  33283. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  33284. return failure;
  33285. }
  33286. let output = "";
  33287. const decoded = punycode.ucs2.decode(input);
  33288. for (let i = 0; i < decoded.length; ++i) {
  33289. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  33290. }
  33291. return output;
  33292. }
  33293. function findLongestZeroSequence(arr) {
  33294. let maxIdx = null;
  33295. let maxLen = 1; // only find elements > 1
  33296. let currStart = null;
  33297. let currLen = 0;
  33298. for (let i = 0; i < arr.length; ++i) {
  33299. if (arr[i] !== 0) {
  33300. if (currLen > maxLen) {
  33301. maxIdx = currStart;
  33302. maxLen = currLen;
  33303. }
  33304. currStart = null;
  33305. currLen = 0;
  33306. } else {
  33307. if (currStart === null) {
  33308. currStart = i;
  33309. }
  33310. ++currLen;
  33311. }
  33312. }
  33313. // if trailing zeros
  33314. if (currLen > maxLen) {
  33315. maxIdx = currStart;
  33316. maxLen = currLen;
  33317. }
  33318. return {
  33319. idx: maxIdx,
  33320. len: maxLen
  33321. };
  33322. }
  33323. function serializeHost(host) {
  33324. if (typeof host === "number") {
  33325. return serializeIPv4(host);
  33326. }
  33327. // IPv6 serializer
  33328. if (host instanceof Array) {
  33329. return "[" + serializeIPv6(host) + "]";
  33330. }
  33331. return host;
  33332. }
  33333. function trimControlChars(url) {
  33334. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  33335. }
  33336. function trimTabAndNewline(url) {
  33337. return url.replace(/\u0009|\u000A|\u000D/g, "");
  33338. }
  33339. function shortenPath(url) {
  33340. const path = url.path;
  33341. if (path.length === 0) {
  33342. return;
  33343. }
  33344. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  33345. return;
  33346. }
  33347. path.pop();
  33348. }
  33349. function includesCredentials(url) {
  33350. return url.username !== "" || url.password !== "";
  33351. }
  33352. function cannotHaveAUsernamePasswordPort(url) {
  33353. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  33354. }
  33355. function isNormalizedWindowsDriveLetter(string) {
  33356. return /^[A-Za-z]:$/.test(string);
  33357. }
  33358. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  33359. this.pointer = 0;
  33360. this.input = input;
  33361. this.base = base || null;
  33362. this.encodingOverride = encodingOverride || "utf-8";
  33363. this.stateOverride = stateOverride;
  33364. this.url = url;
  33365. this.failure = false;
  33366. this.parseError = false;
  33367. if (!this.url) {
  33368. this.url = {
  33369. scheme: "",
  33370. username: "",
  33371. password: "",
  33372. host: null,
  33373. port: null,
  33374. path: [],
  33375. query: null,
  33376. fragment: null,
  33377. cannotBeABaseURL: false
  33378. };
  33379. const res = trimControlChars(this.input);
  33380. if (res !== this.input) {
  33381. this.parseError = true;
  33382. }
  33383. this.input = res;
  33384. }
  33385. const res = trimTabAndNewline(this.input);
  33386. if (res !== this.input) {
  33387. this.parseError = true;
  33388. }
  33389. this.input = res;
  33390. this.state = stateOverride || "scheme start";
  33391. this.buffer = "";
  33392. this.atFlag = false;
  33393. this.arrFlag = false;
  33394. this.passwordTokenSeenFlag = false;
  33395. this.input = punycode.ucs2.decode(this.input);
  33396. for (; this.pointer <= this.input.length; ++this.pointer) {
  33397. const c = this.input[this.pointer];
  33398. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  33399. // exec state machine
  33400. const ret = this["parse " + this.state](c, cStr);
  33401. if (!ret) {
  33402. break; // terminate algorithm
  33403. } else if (ret === failure) {
  33404. this.failure = true;
  33405. break;
  33406. }
  33407. }
  33408. }
  33409. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  33410. if (isASCIIAlpha(c)) {
  33411. this.buffer += cStr.toLowerCase();
  33412. this.state = "scheme";
  33413. } else if (!this.stateOverride) {
  33414. this.state = "no scheme";
  33415. --this.pointer;
  33416. } else {
  33417. this.parseError = true;
  33418. return failure;
  33419. }
  33420. return true;
  33421. };
  33422. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  33423. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  33424. this.buffer += cStr.toLowerCase();
  33425. } else if (c === 58) {
  33426. if (this.stateOverride) {
  33427. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  33428. return false;
  33429. }
  33430. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  33431. return false;
  33432. }
  33433. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  33434. return false;
  33435. }
  33436. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  33437. return false;
  33438. }
  33439. }
  33440. this.url.scheme = this.buffer;
  33441. this.buffer = "";
  33442. if (this.stateOverride) {
  33443. return false;
  33444. }
  33445. if (this.url.scheme === "file") {
  33446. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  33447. this.parseError = true;
  33448. }
  33449. this.state = "file";
  33450. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  33451. this.state = "special relative or authority";
  33452. } else if (isSpecial(this.url)) {
  33453. this.state = "special authority slashes";
  33454. } else if (this.input[this.pointer + 1] === 47) {
  33455. this.state = "path or authority";
  33456. ++this.pointer;
  33457. } else {
  33458. this.url.cannotBeABaseURL = true;
  33459. this.url.path.push("");
  33460. this.state = "cannot-be-a-base-URL path";
  33461. }
  33462. } else if (!this.stateOverride) {
  33463. this.buffer = "";
  33464. this.state = "no scheme";
  33465. this.pointer = -1;
  33466. } else {
  33467. this.parseError = true;
  33468. return failure;
  33469. }
  33470. return true;
  33471. };
  33472. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  33473. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  33474. return failure;
  33475. } else if (this.base.cannotBeABaseURL && c === 35) {
  33476. this.url.scheme = this.base.scheme;
  33477. this.url.path = this.base.path.slice();
  33478. this.url.query = this.base.query;
  33479. this.url.fragment = "";
  33480. this.url.cannotBeABaseURL = true;
  33481. this.state = "fragment";
  33482. } else if (this.base.scheme === "file") {
  33483. this.state = "file";
  33484. --this.pointer;
  33485. } else {
  33486. this.state = "relative";
  33487. --this.pointer;
  33488. }
  33489. return true;
  33490. };
  33491. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  33492. if (c === 47 && this.input[this.pointer + 1] === 47) {
  33493. this.state = "special authority ignore slashes";
  33494. ++this.pointer;
  33495. } else {
  33496. this.parseError = true;
  33497. this.state = "relative";
  33498. --this.pointer;
  33499. }
  33500. return true;
  33501. };
  33502. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  33503. if (c === 47) {
  33504. this.state = "authority";
  33505. } else {
  33506. this.state = "path";
  33507. --this.pointer;
  33508. }
  33509. return true;
  33510. };
  33511. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  33512. this.url.scheme = this.base.scheme;
  33513. if (isNaN(c)) {
  33514. this.url.username = this.base.username;
  33515. this.url.password = this.base.password;
  33516. this.url.host = this.base.host;
  33517. this.url.port = this.base.port;
  33518. this.url.path = this.base.path.slice();
  33519. this.url.query = this.base.query;
  33520. } else if (c === 47) {
  33521. this.state = "relative slash";
  33522. } else if (c === 63) {
  33523. this.url.username = this.base.username;
  33524. this.url.password = this.base.password;
  33525. this.url.host = this.base.host;
  33526. this.url.port = this.base.port;
  33527. this.url.path = this.base.path.slice();
  33528. this.url.query = "";
  33529. this.state = "query";
  33530. } else if (c === 35) {
  33531. this.url.username = this.base.username;
  33532. this.url.password = this.base.password;
  33533. this.url.host = this.base.host;
  33534. this.url.port = this.base.port;
  33535. this.url.path = this.base.path.slice();
  33536. this.url.query = this.base.query;
  33537. this.url.fragment = "";
  33538. this.state = "fragment";
  33539. } else if (isSpecial(this.url) && c === 92) {
  33540. this.parseError = true;
  33541. this.state = "relative slash";
  33542. } else {
  33543. this.url.username = this.base.username;
  33544. this.url.password = this.base.password;
  33545. this.url.host = this.base.host;
  33546. this.url.port = this.base.port;
  33547. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  33548. this.state = "path";
  33549. --this.pointer;
  33550. }
  33551. return true;
  33552. };
  33553. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  33554. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  33555. if (c === 92) {
  33556. this.parseError = true;
  33557. }
  33558. this.state = "special authority ignore slashes";
  33559. } else if (c === 47) {
  33560. this.state = "authority";
  33561. } else {
  33562. this.url.username = this.base.username;
  33563. this.url.password = this.base.password;
  33564. this.url.host = this.base.host;
  33565. this.url.port = this.base.port;
  33566. this.state = "path";
  33567. --this.pointer;
  33568. }
  33569. return true;
  33570. };
  33571. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  33572. if (c === 47 && this.input[this.pointer + 1] === 47) {
  33573. this.state = "special authority ignore slashes";
  33574. ++this.pointer;
  33575. } else {
  33576. this.parseError = true;
  33577. this.state = "special authority ignore slashes";
  33578. --this.pointer;
  33579. }
  33580. return true;
  33581. };
  33582. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  33583. if (c !== 47 && c !== 92) {
  33584. this.state = "authority";
  33585. --this.pointer;
  33586. } else {
  33587. this.parseError = true;
  33588. }
  33589. return true;
  33590. };
  33591. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  33592. if (c === 64) {
  33593. this.parseError = true;
  33594. if (this.atFlag) {
  33595. this.buffer = "%40" + this.buffer;
  33596. }
  33597. this.atFlag = true;
  33598. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  33599. const len = countSymbols(this.buffer);
  33600. for (let pointer = 0; pointer < len; ++pointer) {
  33601. const codePoint = this.buffer.codePointAt(pointer);
  33602. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  33603. this.passwordTokenSeenFlag = true;
  33604. continue;
  33605. }
  33606. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  33607. if (this.passwordTokenSeenFlag) {
  33608. this.url.password += encodedCodePoints;
  33609. } else {
  33610. this.url.username += encodedCodePoints;
  33611. }
  33612. }
  33613. this.buffer = "";
  33614. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33615. (isSpecial(this.url) && c === 92)) {
  33616. if (this.atFlag && this.buffer === "") {
  33617. this.parseError = true;
  33618. return failure;
  33619. }
  33620. this.pointer -= countSymbols(this.buffer) + 1;
  33621. this.buffer = "";
  33622. this.state = "host";
  33623. } else {
  33624. this.buffer += cStr;
  33625. }
  33626. return true;
  33627. };
  33628. URLStateMachine.prototype["parse hostname"] =
  33629. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  33630. if (this.stateOverride && this.url.scheme === "file") {
  33631. --this.pointer;
  33632. this.state = "file host";
  33633. } else if (c === 58 && !this.arrFlag) {
  33634. if (this.buffer === "") {
  33635. this.parseError = true;
  33636. return failure;
  33637. }
  33638. const host = parseHost(this.buffer, isSpecial(this.url));
  33639. if (host === failure) {
  33640. return failure;
  33641. }
  33642. this.url.host = host;
  33643. this.buffer = "";
  33644. this.state = "port";
  33645. if (this.stateOverride === "hostname") {
  33646. return false;
  33647. }
  33648. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33649. (isSpecial(this.url) && c === 92)) {
  33650. --this.pointer;
  33651. if (isSpecial(this.url) && this.buffer === "") {
  33652. this.parseError = true;
  33653. return failure;
  33654. } else if (this.stateOverride && this.buffer === "" &&
  33655. (includesCredentials(this.url) || this.url.port !== null)) {
  33656. this.parseError = true;
  33657. return false;
  33658. }
  33659. const host = parseHost(this.buffer, isSpecial(this.url));
  33660. if (host === failure) {
  33661. return failure;
  33662. }
  33663. this.url.host = host;
  33664. this.buffer = "";
  33665. this.state = "path start";
  33666. if (this.stateOverride) {
  33667. return false;
  33668. }
  33669. } else {
  33670. if (c === 91) {
  33671. this.arrFlag = true;
  33672. } else if (c === 93) {
  33673. this.arrFlag = false;
  33674. }
  33675. this.buffer += cStr;
  33676. }
  33677. return true;
  33678. };
  33679. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  33680. if (isASCIIDigit(c)) {
  33681. this.buffer += cStr;
  33682. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33683. (isSpecial(this.url) && c === 92) ||
  33684. this.stateOverride) {
  33685. if (this.buffer !== "") {
  33686. const port = parseInt(this.buffer);
  33687. if (port > Math.pow(2, 16) - 1) {
  33688. this.parseError = true;
  33689. return failure;
  33690. }
  33691. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  33692. this.buffer = "";
  33693. }
  33694. if (this.stateOverride) {
  33695. return false;
  33696. }
  33697. this.state = "path start";
  33698. --this.pointer;
  33699. } else {
  33700. this.parseError = true;
  33701. return failure;
  33702. }
  33703. return true;
  33704. };
  33705. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  33706. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  33707. this.url.scheme = "file";
  33708. if (c === 47 || c === 92) {
  33709. if (c === 92) {
  33710. this.parseError = true;
  33711. }
  33712. this.state = "file slash";
  33713. } else if (this.base !== null && this.base.scheme === "file") {
  33714. if (isNaN(c)) {
  33715. this.url.host = this.base.host;
  33716. this.url.path = this.base.path.slice();
  33717. this.url.query = this.base.query;
  33718. } else if (c === 63) {
  33719. this.url.host = this.base.host;
  33720. this.url.path = this.base.path.slice();
  33721. this.url.query = "";
  33722. this.state = "query";
  33723. } else if (c === 35) {
  33724. this.url.host = this.base.host;
  33725. this.url.path = this.base.path.slice();
  33726. this.url.query = this.base.query;
  33727. this.url.fragment = "";
  33728. this.state = "fragment";
  33729. } else {
  33730. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  33731. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  33732. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  33733. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  33734. this.url.host = this.base.host;
  33735. this.url.path = this.base.path.slice();
  33736. shortenPath(this.url);
  33737. } else {
  33738. this.parseError = true;
  33739. }
  33740. this.state = "path";
  33741. --this.pointer;
  33742. }
  33743. } else {
  33744. this.state = "path";
  33745. --this.pointer;
  33746. }
  33747. return true;
  33748. };
  33749. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  33750. if (c === 47 || c === 92) {
  33751. if (c === 92) {
  33752. this.parseError = true;
  33753. }
  33754. this.state = "file host";
  33755. } else {
  33756. if (this.base !== null && this.base.scheme === "file") {
  33757. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  33758. this.url.path.push(this.base.path[0]);
  33759. } else {
  33760. this.url.host = this.base.host;
  33761. }
  33762. }
  33763. this.state = "path";
  33764. --this.pointer;
  33765. }
  33766. return true;
  33767. };
  33768. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  33769. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  33770. --this.pointer;
  33771. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  33772. this.parseError = true;
  33773. this.state = "path";
  33774. } else if (this.buffer === "") {
  33775. this.url.host = "";
  33776. if (this.stateOverride) {
  33777. return false;
  33778. }
  33779. this.state = "path start";
  33780. } else {
  33781. let host = parseHost(this.buffer, isSpecial(this.url));
  33782. if (host === failure) {
  33783. return failure;
  33784. }
  33785. if (host === "localhost") {
  33786. host = "";
  33787. }
  33788. this.url.host = host;
  33789. if (this.stateOverride) {
  33790. return false;
  33791. }
  33792. this.buffer = "";
  33793. this.state = "path start";
  33794. }
  33795. } else {
  33796. this.buffer += cStr;
  33797. }
  33798. return true;
  33799. };
  33800. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  33801. if (isSpecial(this.url)) {
  33802. if (c === 92) {
  33803. this.parseError = true;
  33804. }
  33805. this.state = "path";
  33806. if (c !== 47 && c !== 92) {
  33807. --this.pointer;
  33808. }
  33809. } else if (!this.stateOverride && c === 63) {
  33810. this.url.query = "";
  33811. this.state = "query";
  33812. } else if (!this.stateOverride && c === 35) {
  33813. this.url.fragment = "";
  33814. this.state = "fragment";
  33815. } else if (c !== undefined) {
  33816. this.state = "path";
  33817. if (c !== 47) {
  33818. --this.pointer;
  33819. }
  33820. }
  33821. return true;
  33822. };
  33823. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  33824. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  33825. (!this.stateOverride && (c === 63 || c === 35))) {
  33826. if (isSpecial(this.url) && c === 92) {
  33827. this.parseError = true;
  33828. }
  33829. if (isDoubleDot(this.buffer)) {
  33830. shortenPath(this.url);
  33831. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  33832. this.url.path.push("");
  33833. }
  33834. } else if (isSingleDot(this.buffer) && c !== 47 &&
  33835. !(isSpecial(this.url) && c === 92)) {
  33836. this.url.path.push("");
  33837. } else if (!isSingleDot(this.buffer)) {
  33838. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  33839. if (this.url.host !== "" && this.url.host !== null) {
  33840. this.parseError = true;
  33841. this.url.host = "";
  33842. }
  33843. this.buffer = this.buffer[0] + ":";
  33844. }
  33845. this.url.path.push(this.buffer);
  33846. }
  33847. this.buffer = "";
  33848. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  33849. while (this.url.path.length > 1 && this.url.path[0] === "") {
  33850. this.parseError = true;
  33851. this.url.path.shift();
  33852. }
  33853. }
  33854. if (c === 63) {
  33855. this.url.query = "";
  33856. this.state = "query";
  33857. }
  33858. if (c === 35) {
  33859. this.url.fragment = "";
  33860. this.state = "fragment";
  33861. }
  33862. } else {
  33863. // TODO: If c is not a URL code point and not "%", parse error.
  33864. if (c === 37 &&
  33865. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33866. !isASCIIHex(this.input[this.pointer + 2]))) {
  33867. this.parseError = true;
  33868. }
  33869. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  33870. }
  33871. return true;
  33872. };
  33873. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  33874. if (c === 63) {
  33875. this.url.query = "";
  33876. this.state = "query";
  33877. } else if (c === 35) {
  33878. this.url.fragment = "";
  33879. this.state = "fragment";
  33880. } else {
  33881. // TODO: Add: not a URL code point
  33882. if (!isNaN(c) && c !== 37) {
  33883. this.parseError = true;
  33884. }
  33885. if (c === 37 &&
  33886. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33887. !isASCIIHex(this.input[this.pointer + 2]))) {
  33888. this.parseError = true;
  33889. }
  33890. if (!isNaN(c)) {
  33891. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  33892. }
  33893. }
  33894. return true;
  33895. };
  33896. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  33897. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  33898. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  33899. this.encodingOverride = "utf-8";
  33900. }
  33901. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  33902. for (let i = 0; i < buffer.length; ++i) {
  33903. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  33904. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  33905. this.url.query += percentEncode(buffer[i]);
  33906. } else {
  33907. this.url.query += String.fromCodePoint(buffer[i]);
  33908. }
  33909. }
  33910. this.buffer = "";
  33911. if (c === 35) {
  33912. this.url.fragment = "";
  33913. this.state = "fragment";
  33914. }
  33915. } else {
  33916. // TODO: If c is not a URL code point and not "%", parse error.
  33917. if (c === 37 &&
  33918. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33919. !isASCIIHex(this.input[this.pointer + 2]))) {
  33920. this.parseError = true;
  33921. }
  33922. this.buffer += cStr;
  33923. }
  33924. return true;
  33925. };
  33926. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  33927. if (isNaN(c)) { // do nothing
  33928. } else if (c === 0x0) {
  33929. this.parseError = true;
  33930. } else {
  33931. // TODO: If c is not a URL code point and not "%", parse error.
  33932. if (c === 37 &&
  33933. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33934. !isASCIIHex(this.input[this.pointer + 2]))) {
  33935. this.parseError = true;
  33936. }
  33937. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  33938. }
  33939. return true;
  33940. };
  33941. function serializeURL(url, excludeFragment) {
  33942. let output = url.scheme + ":";
  33943. if (url.host !== null) {
  33944. output += "//";
  33945. if (url.username !== "" || url.password !== "") {
  33946. output += url.username;
  33947. if (url.password !== "") {
  33948. output += ":" + url.password;
  33949. }
  33950. output += "@";
  33951. }
  33952. output += serializeHost(url.host);
  33953. if (url.port !== null) {
  33954. output += ":" + url.port;
  33955. }
  33956. } else if (url.host === null && url.scheme === "file") {
  33957. output += "//";
  33958. }
  33959. if (url.cannotBeABaseURL) {
  33960. output += url.path[0];
  33961. } else {
  33962. for (const string of url.path) {
  33963. output += "/" + string;
  33964. }
  33965. }
  33966. if (url.query !== null) {
  33967. output += "?" + url.query;
  33968. }
  33969. if (!excludeFragment && url.fragment !== null) {
  33970. output += "#" + url.fragment;
  33971. }
  33972. return output;
  33973. }
  33974. function serializeOrigin(tuple) {
  33975. let result = tuple.scheme + "://";
  33976. result += serializeHost(tuple.host);
  33977. if (tuple.port !== null) {
  33978. result += ":" + tuple.port;
  33979. }
  33980. return result;
  33981. }
  33982. module.exports.serializeURL = serializeURL;
  33983. module.exports.serializeURLOrigin = function (url) {
  33984. // https://url.spec.whatwg.org/#concept-url-origin
  33985. switch (url.scheme) {
  33986. case "blob":
  33987. try {
  33988. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  33989. } catch (e) {
  33990. // serializing an opaque origin returns "null"
  33991. return "null";
  33992. }
  33993. case "ftp":
  33994. case "gopher":
  33995. case "http":
  33996. case "https":
  33997. case "ws":
  33998. case "wss":
  33999. return serializeOrigin({
  34000. scheme: url.scheme,
  34001. host: url.host,
  34002. port: url.port
  34003. });
  34004. case "file":
  34005. // spec says "exercise to the reader", chrome says "file://"
  34006. return "file://";
  34007. default:
  34008. // serializing an opaque origin returns "null"
  34009. return "null";
  34010. }
  34011. };
  34012. module.exports.basicURLParse = function (input, options) {
  34013. if (options === undefined) {
  34014. options = {};
  34015. }
  34016. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  34017. if (usm.failure) {
  34018. return "failure";
  34019. }
  34020. return usm.url;
  34021. };
  34022. module.exports.setTheUsername = function (url, username) {
  34023. url.username = "";
  34024. const decoded = punycode.ucs2.decode(username);
  34025. for (let i = 0; i < decoded.length; ++i) {
  34026. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  34027. }
  34028. };
  34029. module.exports.setThePassword = function (url, password) {
  34030. url.password = "";
  34031. const decoded = punycode.ucs2.decode(password);
  34032. for (let i = 0; i < decoded.length; ++i) {
  34033. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  34034. }
  34035. };
  34036. module.exports.serializeHost = serializeHost;
  34037. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  34038. module.exports.serializeInteger = function (integer) {
  34039. return String(integer);
  34040. };
  34041. module.exports.parseURL = function (input, options) {
  34042. if (options === undefined) {
  34043. options = {};
  34044. }
  34045. // We don't handle blobs, so this just delegates:
  34046. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  34047. };
  34048. /***/ }),
  34049. /***/ 948:
  34050. /***/ (function(module) {
  34051. "use strict";
  34052. /**
  34053. * Tries to execute a function and discards any error that occurs.
  34054. * @param {Function} fn - Function that might or might not throw an error.
  34055. * @returns {?*} Return-value of the function when no error occurred.
  34056. */
  34057. module.exports = function(fn) {
  34058. try { return fn() } catch (e) {}
  34059. }
  34060. /***/ }),
  34061. /***/ 950:
  34062. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34063. "use strict";
  34064. Object.defineProperty(exports, "__esModule", { value: true });
  34065. const url = __webpack_require__(835);
  34066. function getProxyUrl(reqUrl) {
  34067. let usingSsl = reqUrl.protocol === 'https:';
  34068. let proxyUrl;
  34069. if (checkBypass(reqUrl)) {
  34070. return proxyUrl;
  34071. }
  34072. let proxyVar;
  34073. if (usingSsl) {
  34074. proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  34075. }
  34076. else {
  34077. proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
  34078. }
  34079. if (proxyVar) {
  34080. proxyUrl = url.parse(proxyVar);
  34081. }
  34082. return proxyUrl;
  34083. }
  34084. exports.getProxyUrl = getProxyUrl;
  34085. function checkBypass(reqUrl) {
  34086. if (!reqUrl.hostname) {
  34087. return false;
  34088. }
  34089. let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  34090. if (!noProxy) {
  34091. return false;
  34092. }
  34093. // Determine the request port
  34094. let reqPort;
  34095. if (reqUrl.port) {
  34096. reqPort = Number(reqUrl.port);
  34097. }
  34098. else if (reqUrl.protocol === 'http:') {
  34099. reqPort = 80;
  34100. }
  34101. else if (reqUrl.protocol === 'https:') {
  34102. reqPort = 443;
  34103. }
  34104. // Format the request hostname and hostname with port
  34105. let upperReqHosts = [reqUrl.hostname.toUpperCase()];
  34106. if (typeof reqPort === 'number') {
  34107. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  34108. }
  34109. // Compare request host against noproxy
  34110. for (let upperNoProxyItem of noProxy
  34111. .split(',')
  34112. .map(x => x.trim().toUpperCase())
  34113. .filter(x => x)) {
  34114. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  34115. return true;
  34116. }
  34117. }
  34118. return false;
  34119. }
  34120. exports.checkBypass = checkBypass;
  34121. /***/ }),
  34122. /***/ 954:
  34123. /***/ (function(module) {
  34124. module.exports = validateAuth;
  34125. function validateAuth(auth) {
  34126. if (typeof auth === "string") {
  34127. return;
  34128. }
  34129. if (typeof auth === "function") {
  34130. return;
  34131. }
  34132. if (auth.username && auth.password) {
  34133. return;
  34134. }
  34135. if (auth.clientId && auth.clientSecret) {
  34136. return;
  34137. }
  34138. throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
  34139. }
  34140. /***/ }),
  34141. /***/ 955:
  34142. /***/ (function(module, __unusedexports, __webpack_require__) {
  34143. "use strict";
  34144. const path = __webpack_require__(622);
  34145. const childProcess = __webpack_require__(129);
  34146. const crossSpawn = __webpack_require__(20);
  34147. const stripEof = __webpack_require__(768);
  34148. const npmRunPath = __webpack_require__(621);
  34149. const isStream = __webpack_require__(323);
  34150. const _getStream = __webpack_require__(145);
  34151. const pFinally = __webpack_require__(697);
  34152. const onExit = __webpack_require__(260);
  34153. const errname = __webpack_require__(427);
  34154. const stdio = __webpack_require__(168);
  34155. const TEN_MEGABYTES = 1000 * 1000 * 10;
  34156. function handleArgs(cmd, args, opts) {
  34157. let parsed;
  34158. opts = Object.assign({
  34159. extendEnv: true,
  34160. env: {}
  34161. }, opts);
  34162. if (opts.extendEnv) {
  34163. opts.env = Object.assign({}, process.env, opts.env);
  34164. }
  34165. if (opts.__winShell === true) {
  34166. delete opts.__winShell;
  34167. parsed = {
  34168. command: cmd,
  34169. args,
  34170. options: opts,
  34171. file: cmd,
  34172. original: {
  34173. cmd,
  34174. args
  34175. }
  34176. };
  34177. } else {
  34178. parsed = crossSpawn._parse(cmd, args, opts);
  34179. }
  34180. opts = Object.assign({
  34181. maxBuffer: TEN_MEGABYTES,
  34182. buffer: true,
  34183. stripEof: true,
  34184. preferLocal: true,
  34185. localDir: parsed.options.cwd || process.cwd(),
  34186. encoding: 'utf8',
  34187. reject: true,
  34188. cleanup: true
  34189. }, parsed.options);
  34190. opts.stdio = stdio(opts);
  34191. if (opts.preferLocal) {
  34192. opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
  34193. }
  34194. if (opts.detached) {
  34195. // #115
  34196. opts.cleanup = false;
  34197. }
  34198. if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
  34199. // #116
  34200. parsed.args.unshift('/q');
  34201. }
  34202. return {
  34203. cmd: parsed.command,
  34204. args: parsed.args,
  34205. opts,
  34206. parsed
  34207. };
  34208. }
  34209. function handleInput(spawned, input) {
  34210. if (input === null || input === undefined) {
  34211. return;
  34212. }
  34213. if (isStream(input)) {
  34214. input.pipe(spawned.stdin);
  34215. } else {
  34216. spawned.stdin.end(input);
  34217. }
  34218. }
  34219. function handleOutput(opts, val) {
  34220. if (val && opts.stripEof) {
  34221. val = stripEof(val);
  34222. }
  34223. return val;
  34224. }
  34225. function handleShell(fn, cmd, opts) {
  34226. let file = '/bin/sh';
  34227. let args = ['-c', cmd];
  34228. opts = Object.assign({}, opts);
  34229. if (process.platform === 'win32') {
  34230. opts.__winShell = true;
  34231. file = process.env.comspec || 'cmd.exe';
  34232. args = ['/s', '/c', `"${cmd}"`];
  34233. opts.windowsVerbatimArguments = true;
  34234. }
  34235. if (opts.shell) {
  34236. file = opts.shell;
  34237. delete opts.shell;
  34238. }
  34239. return fn(file, args, opts);
  34240. }
  34241. function getStream(process, stream, {encoding, buffer, maxBuffer}) {
  34242. if (!process[stream]) {
  34243. return null;
  34244. }
  34245. let ret;
  34246. if (!buffer) {
  34247. // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
  34248. ret = new Promise((resolve, reject) => {
  34249. process[stream]
  34250. .once('end', resolve)
  34251. .once('error', reject);
  34252. });
  34253. } else if (encoding) {
  34254. ret = _getStream(process[stream], {
  34255. encoding,
  34256. maxBuffer
  34257. });
  34258. } else {
  34259. ret = _getStream.buffer(process[stream], {maxBuffer});
  34260. }
  34261. return ret.catch(err => {
  34262. err.stream = stream;
  34263. err.message = `${stream} ${err.message}`;
  34264. throw err;
  34265. });
  34266. }
  34267. function makeError(result, options) {
  34268. const {stdout, stderr} = result;
  34269. let err = result.error;
  34270. const {code, signal} = result;
  34271. const {parsed, joinedCmd} = options;
  34272. const timedOut = options.timedOut || false;
  34273. if (!err) {
  34274. let output = '';
  34275. if (Array.isArray(parsed.opts.stdio)) {
  34276. if (parsed.opts.stdio[2] !== 'inherit') {
  34277. output += output.length > 0 ? stderr : `\n${stderr}`;
  34278. }
  34279. if (parsed.opts.stdio[1] !== 'inherit') {
  34280. output += `\n${stdout}`;
  34281. }
  34282. } else if (parsed.opts.stdio !== 'inherit') {
  34283. output = `\n${stderr}${stdout}`;
  34284. }
  34285. err = new Error(`Command failed: ${joinedCmd}${output}`);
  34286. err.code = code < 0 ? errname(code) : code;
  34287. }
  34288. err.stdout = stdout;
  34289. err.stderr = stderr;
  34290. err.failed = true;
  34291. err.signal = signal || null;
  34292. err.cmd = joinedCmd;
  34293. err.timedOut = timedOut;
  34294. return err;
  34295. }
  34296. function joinCmd(cmd, args) {
  34297. let joinedCmd = cmd;
  34298. if (Array.isArray(args) && args.length > 0) {
  34299. joinedCmd += ' ' + args.join(' ');
  34300. }
  34301. return joinedCmd;
  34302. }
  34303. module.exports = (cmd, args, opts) => {
  34304. const parsed = handleArgs(cmd, args, opts);
  34305. const {encoding, buffer, maxBuffer} = parsed.opts;
  34306. const joinedCmd = joinCmd(cmd, args);
  34307. let spawned;
  34308. try {
  34309. spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
  34310. } catch (err) {
  34311. return Promise.reject(err);
  34312. }
  34313. let removeExitHandler;
  34314. if (parsed.opts.cleanup) {
  34315. removeExitHandler = onExit(() => {
  34316. spawned.kill();
  34317. });
  34318. }
  34319. let timeoutId = null;
  34320. let timedOut = false;
  34321. const cleanup = () => {
  34322. if (timeoutId) {
  34323. clearTimeout(timeoutId);
  34324. timeoutId = null;
  34325. }
  34326. if (removeExitHandler) {
  34327. removeExitHandler();
  34328. }
  34329. };
  34330. if (parsed.opts.timeout > 0) {
  34331. timeoutId = setTimeout(() => {
  34332. timeoutId = null;
  34333. timedOut = true;
  34334. spawned.kill(parsed.opts.killSignal);
  34335. }, parsed.opts.timeout);
  34336. }
  34337. const processDone = new Promise(resolve => {
  34338. spawned.on('exit', (code, signal) => {
  34339. cleanup();
  34340. resolve({code, signal});
  34341. });
  34342. spawned.on('error', err => {
  34343. cleanup();
  34344. resolve({error: err});
  34345. });
  34346. if (spawned.stdin) {
  34347. spawned.stdin.on('error', err => {
  34348. cleanup();
  34349. resolve({error: err});
  34350. });
  34351. }
  34352. });
  34353. function destroy() {
  34354. if (spawned.stdout) {
  34355. spawned.stdout.destroy();
  34356. }
  34357. if (spawned.stderr) {
  34358. spawned.stderr.destroy();
  34359. }
  34360. }
  34361. const handlePromise = () => pFinally(Promise.all([
  34362. processDone,
  34363. getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
  34364. getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
  34365. ]).then(arr => {
  34366. const result = arr[0];
  34367. result.stdout = arr[1];
  34368. result.stderr = arr[2];
  34369. if (result.error || result.code !== 0 || result.signal !== null) {
  34370. const err = makeError(result, {
  34371. joinedCmd,
  34372. parsed,
  34373. timedOut
  34374. });
  34375. // TODO: missing some timeout logic for killed
  34376. // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
  34377. // err.killed = spawned.killed || killed;
  34378. err.killed = err.killed || spawned.killed;
  34379. if (!parsed.opts.reject) {
  34380. return err;
  34381. }
  34382. throw err;
  34383. }
  34384. return {
  34385. stdout: handleOutput(parsed.opts, result.stdout),
  34386. stderr: handleOutput(parsed.opts, result.stderr),
  34387. code: 0,
  34388. failed: false,
  34389. killed: false,
  34390. signal: null,
  34391. cmd: joinedCmd,
  34392. timedOut: false
  34393. };
  34394. }), destroy);
  34395. crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
  34396. handleInput(spawned, parsed.opts.input);
  34397. spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
  34398. spawned.catch = onrejected => handlePromise().catch(onrejected);
  34399. return spawned;
  34400. };
  34401. // TODO: set `stderr: 'ignore'` when that option is implemented
  34402. module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
  34403. // TODO: set `stdout: 'ignore'` when that option is implemented
  34404. module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
  34405. module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
  34406. module.exports.sync = (cmd, args, opts) => {
  34407. const parsed = handleArgs(cmd, args, opts);
  34408. const joinedCmd = joinCmd(cmd, args);
  34409. if (isStream(parsed.opts.input)) {
  34410. throw new TypeError('The `input` option cannot be a stream in sync mode');
  34411. }
  34412. const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
  34413. result.code = result.status;
  34414. if (result.error || result.status !== 0 || result.signal !== null) {
  34415. const err = makeError(result, {
  34416. joinedCmd,
  34417. parsed
  34418. });
  34419. if (!parsed.opts.reject) {
  34420. return err;
  34421. }
  34422. throw err;
  34423. }
  34424. return {
  34425. stdout: handleOutput(parsed.opts, result.stdout),
  34426. stderr: handleOutput(parsed.opts, result.stderr),
  34427. code: 0,
  34428. failed: false,
  34429. signal: null,
  34430. cmd: joinedCmd,
  34431. timedOut: false
  34432. };
  34433. };
  34434. module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
  34435. /***/ }),
  34436. /***/ 960:
  34437. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34438. "use strict";
  34439. Object.defineProperty(exports, "__esModule", {
  34440. value: true
  34441. });
  34442. exports.default = void 0;
  34443. var _validate = _interopRequireDefault(__webpack_require__(634));
  34444. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34445. /**
  34446. * Convert array of 16 byte values to UUID string format of the form:
  34447. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  34448. */
  34449. const byteToHex = [];
  34450. for (let i = 0; i < 256; ++i) {
  34451. byteToHex.push((i + 0x100).toString(16).substr(1));
  34452. }
  34453. function stringify(arr, offset = 0) {
  34454. // Note: Be careful editing this code! It's been tuned for performance
  34455. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  34456. const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
  34457. // of the following:
  34458. // - One or more input array values don't map to a hex octet (leading to
  34459. // "undefined" in the uuid)
  34460. // - Invalid input values for the RFC `version` or `variant` fields
  34461. if (!(0, _validate.default)(uuid)) {
  34462. throw TypeError('Stringified UUID is invalid');
  34463. }
  34464. return uuid;
  34465. }
  34466. var _default = stringify;
  34467. exports.default = _default;
  34468. /***/ }),
  34469. /***/ 966:
  34470. /***/ (function(module, __unusedexports, __webpack_require__) {
  34471. "use strict";
  34472. const {PassThrough} = __webpack_require__(794);
  34473. module.exports = options => {
  34474. options = Object.assign({}, options);
  34475. const {array} = options;
  34476. let {encoding} = options;
  34477. const buffer = encoding === 'buffer';
  34478. let objectMode = false;
  34479. if (array) {
  34480. objectMode = !(encoding || buffer);
  34481. } else {
  34482. encoding = encoding || 'utf8';
  34483. }
  34484. if (buffer) {
  34485. encoding = null;
  34486. }
  34487. let len = 0;
  34488. const ret = [];
  34489. const stream = new PassThrough({objectMode});
  34490. if (encoding) {
  34491. stream.setEncoding(encoding);
  34492. }
  34493. stream.on('data', chunk => {
  34494. ret.push(chunk);
  34495. if (objectMode) {
  34496. len = ret.length;
  34497. } else {
  34498. len += chunk.length;
  34499. }
  34500. });
  34501. stream.getBufferedValue = () => {
  34502. if (array) {
  34503. return ret;
  34504. }
  34505. return buffer ? Buffer.concat(ret, len) : ret.join('');
  34506. };
  34507. stream.getBufferedLength = () => len;
  34508. return stream;
  34509. };
  34510. /***/ }),
  34511. /***/ 969:
  34512. /***/ (function(module, __unusedexports, __webpack_require__) {
  34513. var wrappy = __webpack_require__(11)
  34514. module.exports = wrappy(once)
  34515. module.exports.strict = wrappy(onceStrict)
  34516. once.proto = once(function () {
  34517. Object.defineProperty(Function.prototype, 'once', {
  34518. value: function () {
  34519. return once(this)
  34520. },
  34521. configurable: true
  34522. })
  34523. Object.defineProperty(Function.prototype, 'onceStrict', {
  34524. value: function () {
  34525. return onceStrict(this)
  34526. },
  34527. configurable: true
  34528. })
  34529. })
  34530. function once (fn) {
  34531. var f = function () {
  34532. if (f.called) return f.value
  34533. f.called = true
  34534. return f.value = fn.apply(this, arguments)
  34535. }
  34536. f.called = false
  34537. return f
  34538. }
  34539. function onceStrict (fn) {
  34540. var f = function () {
  34541. if (f.called)
  34542. throw new Error(f.onceError)
  34543. f.called = true
  34544. return f.value = fn.apply(this, arguments)
  34545. }
  34546. var name = fn.name || 'Function wrapped with `once`'
  34547. f.onceError = name + " shouldn't be called more than once"
  34548. f.called = false
  34549. return f
  34550. }
  34551. /***/ }),
  34552. /***/ 971:
  34553. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34554. "use strict";
  34555. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  34556. if (k2 === undefined) k2 = k;
  34557. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  34558. }) : (function(o, m, k, k2) {
  34559. if (k2 === undefined) k2 = k;
  34560. o[k2] = m[k];
  34561. }));
  34562. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  34563. Object.defineProperty(o, "default", { enumerable: true, value: v });
  34564. }) : function(o, v) {
  34565. o["default"] = v;
  34566. });
  34567. var __importStar = (this && this.__importStar) || function (mod) {
  34568. if (mod && mod.__esModule) return mod;
  34569. var result = {};
  34570. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  34571. __setModuleDefault(result, mod);
  34572. return result;
  34573. };
  34574. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34575. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  34576. return new (P || (P = Promise))(function (resolve, reject) {
  34577. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34578. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34579. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  34580. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34581. });
  34582. };
  34583. var _a;
  34584. Object.defineProperty(exports, "__esModule", { value: true });
  34585. exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
  34586. const fs = __importStar(__webpack_require__(747));
  34587. const path = __importStar(__webpack_require__(622));
  34588. _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
  34589. exports.IS_WINDOWS = process.platform === 'win32';
  34590. function exists(fsPath) {
  34591. return __awaiter(this, void 0, void 0, function* () {
  34592. try {
  34593. yield exports.stat(fsPath);
  34594. }
  34595. catch (err) {
  34596. if (err.code === 'ENOENT') {
  34597. return false;
  34598. }
  34599. throw err;
  34600. }
  34601. return true;
  34602. });
  34603. }
  34604. exports.exists = exists;
  34605. function isDirectory(fsPath, useStat = false) {
  34606. return __awaiter(this, void 0, void 0, function* () {
  34607. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  34608. return stats.isDirectory();
  34609. });
  34610. }
  34611. exports.isDirectory = isDirectory;
  34612. /**
  34613. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  34614. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  34615. */
  34616. function isRooted(p) {
  34617. p = normalizeSeparators(p);
  34618. if (!p) {
  34619. throw new Error('isRooted() parameter "p" cannot be empty');
  34620. }
  34621. if (exports.IS_WINDOWS) {
  34622. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  34623. ); // e.g. C: or C:\hello
  34624. }
  34625. return p.startsWith('/');
  34626. }
  34627. exports.isRooted = isRooted;
  34628. /**
  34629. * Best effort attempt to determine whether a file exists and is executable.
  34630. * @param filePath file path to check
  34631. * @param extensions additional file extensions to try
  34632. * @return if file exists and is executable, returns the file path. otherwise empty string.
  34633. */
  34634. function tryGetExecutablePath(filePath, extensions) {
  34635. return __awaiter(this, void 0, void 0, function* () {
  34636. let stats = undefined;
  34637. try {
  34638. // test file exists
  34639. stats = yield exports.stat(filePath);
  34640. }
  34641. catch (err) {
  34642. if (err.code !== 'ENOENT') {
  34643. // eslint-disable-next-line no-console
  34644. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  34645. }
  34646. }
  34647. if (stats && stats.isFile()) {
  34648. if (exports.IS_WINDOWS) {
  34649. // on Windows, test for valid extension
  34650. const upperExt = path.extname(filePath).toUpperCase();
  34651. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  34652. return filePath;
  34653. }
  34654. }
  34655. else {
  34656. if (isUnixExecutable(stats)) {
  34657. return filePath;
  34658. }
  34659. }
  34660. }
  34661. // try each extension
  34662. const originalFilePath = filePath;
  34663. for (const extension of extensions) {
  34664. filePath = originalFilePath + extension;
  34665. stats = undefined;
  34666. try {
  34667. stats = yield exports.stat(filePath);
  34668. }
  34669. catch (err) {
  34670. if (err.code !== 'ENOENT') {
  34671. // eslint-disable-next-line no-console
  34672. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  34673. }
  34674. }
  34675. if (stats && stats.isFile()) {
  34676. if (exports.IS_WINDOWS) {
  34677. // preserve the case of the actual file (since an extension was appended)
  34678. try {
  34679. const directory = path.dirname(filePath);
  34680. const upperName = path.basename(filePath).toUpperCase();
  34681. for (const actualName of yield exports.readdir(directory)) {
  34682. if (upperName === actualName.toUpperCase()) {
  34683. filePath = path.join(directory, actualName);
  34684. break;
  34685. }
  34686. }
  34687. }
  34688. catch (err) {
  34689. // eslint-disable-next-line no-console
  34690. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  34691. }
  34692. return filePath;
  34693. }
  34694. else {
  34695. if (isUnixExecutable(stats)) {
  34696. return filePath;
  34697. }
  34698. }
  34699. }
  34700. }
  34701. return '';
  34702. });
  34703. }
  34704. exports.tryGetExecutablePath = tryGetExecutablePath;
  34705. function normalizeSeparators(p) {
  34706. p = p || '';
  34707. if (exports.IS_WINDOWS) {
  34708. // convert slashes on Windows
  34709. p = p.replace(/\//g, '\\');
  34710. // remove redundant slashes
  34711. return p.replace(/\\\\+/g, '\\');
  34712. }
  34713. // remove redundant slashes
  34714. return p.replace(/\/\/+/g, '/');
  34715. }
  34716. // on Mac/Linux, test the execute bit
  34717. // R W X R W X R W X
  34718. // 256 128 64 32 16 8 4 2 1
  34719. function isUnixExecutable(stats) {
  34720. return ((stats.mode & 1) > 0 ||
  34721. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  34722. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  34723. }
  34724. // Get the path of cmd.exe in windows
  34725. function getCmdPath() {
  34726. var _a;
  34727. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  34728. }
  34729. exports.getCmdPath = getCmdPath;
  34730. //# sourceMappingURL=io-util.js.map
  34731. /***/ }),
  34732. /***/ 976:
  34733. /***/ (function(module, __unusedexports, __webpack_require__) {
  34734. "use strict";
  34735. var punycode = __webpack_require__(213);
  34736. var mappingTable = __webpack_require__(482);
  34737. var PROCESSING_OPTIONS = {
  34738. TRANSITIONAL: 0,
  34739. NONTRANSITIONAL: 1
  34740. };
  34741. function normalize(str) { // fix bug in v8
  34742. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  34743. }
  34744. function findStatus(val) {
  34745. var start = 0;
  34746. var end = mappingTable.length - 1;
  34747. while (start <= end) {
  34748. var mid = Math.floor((start + end) / 2);
  34749. var target = mappingTable[mid];
  34750. if (target[0][0] <= val && target[0][1] >= val) {
  34751. return target;
  34752. } else if (target[0][0] > val) {
  34753. end = mid - 1;
  34754. } else {
  34755. start = mid + 1;
  34756. }
  34757. }
  34758. return null;
  34759. }
  34760. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  34761. function countSymbols(string) {
  34762. return string
  34763. // replace every surrogate pair with a BMP symbol
  34764. .replace(regexAstralSymbols, '_')
  34765. // then get the length
  34766. .length;
  34767. }
  34768. function mapChars(domain_name, useSTD3, processing_option) {
  34769. var hasError = false;
  34770. var processed = "";
  34771. var len = countSymbols(domain_name);
  34772. for (var i = 0; i < len; ++i) {
  34773. var codePoint = domain_name.codePointAt(i);
  34774. var status = findStatus(codePoint);
  34775. switch (status[1]) {
  34776. case "disallowed":
  34777. hasError = true;
  34778. processed += String.fromCodePoint(codePoint);
  34779. break;
  34780. case "ignored":
  34781. break;
  34782. case "mapped":
  34783. processed += String.fromCodePoint.apply(String, status[2]);
  34784. break;
  34785. case "deviation":
  34786. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  34787. processed += String.fromCodePoint.apply(String, status[2]);
  34788. } else {
  34789. processed += String.fromCodePoint(codePoint);
  34790. }
  34791. break;
  34792. case "valid":
  34793. processed += String.fromCodePoint(codePoint);
  34794. break;
  34795. case "disallowed_STD3_mapped":
  34796. if (useSTD3) {
  34797. hasError = true;
  34798. processed += String.fromCodePoint(codePoint);
  34799. } else {
  34800. processed += String.fromCodePoint.apply(String, status[2]);
  34801. }
  34802. break;
  34803. case "disallowed_STD3_valid":
  34804. if (useSTD3) {
  34805. hasError = true;
  34806. }
  34807. processed += String.fromCodePoint(codePoint);
  34808. break;
  34809. }
  34810. }
  34811. return {
  34812. string: processed,
  34813. error: hasError
  34814. };
  34815. }
  34816. var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;
  34817. function validateLabel(label, processing_option) {
  34818. if (label.substr(0, 4) === "xn--") {
  34819. label = punycode.toUnicode(label);
  34820. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  34821. }
  34822. var error = false;
  34823. if (normalize(label) !== label ||
  34824. (label[3] === "-" && label[4] === "-") ||
  34825. label[0] === "-" || label[label.length - 1] === "-" ||
  34826. label.indexOf(".") !== -1 ||
  34827. label.search(combiningMarksRegex) === 0) {
  34828. error = true;
  34829. }
  34830. var len = countSymbols(label);
  34831. for (var i = 0; i < len; ++i) {
  34832. var status = findStatus(label.codePointAt(i));
  34833. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  34834. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  34835. status[1] !== "valid" && status[1] !== "deviation")) {
  34836. error = true;
  34837. break;
  34838. }
  34839. }
  34840. return {
  34841. label: label,
  34842. error: error
  34843. };
  34844. }
  34845. function processing(domain_name, useSTD3, processing_option) {
  34846. var result = mapChars(domain_name, useSTD3, processing_option);
  34847. result.string = normalize(result.string);
  34848. var labels = result.string.split(".");
  34849. for (var i = 0; i < labels.length; ++i) {
  34850. try {
  34851. var validation = validateLabel(labels[i]);
  34852. labels[i] = validation.label;
  34853. result.error = result.error || validation.error;
  34854. } catch(e) {
  34855. result.error = true;
  34856. }
  34857. }
  34858. return {
  34859. string: labels.join("."),
  34860. error: result.error
  34861. };
  34862. }
  34863. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  34864. var result = processing(domain_name, useSTD3, processing_option);
  34865. var labels = result.string.split(".");
  34866. labels = labels.map(function(l) {
  34867. try {
  34868. return punycode.toASCII(l);
  34869. } catch(e) {
  34870. result.error = true;
  34871. return l;
  34872. }
  34873. });
  34874. if (verifyDnsLength) {
  34875. var total = labels.slice(0, labels.length - 1).join(".").length;
  34876. if (total.length > 253 || total.length === 0) {
  34877. result.error = true;
  34878. }
  34879. for (var i=0; i < labels.length; ++i) {
  34880. if (labels.length > 63 || labels.length === 0) {
  34881. result.error = true;
  34882. break;
  34883. }
  34884. }
  34885. }
  34886. if (result.error) return null;
  34887. return labels.join(".");
  34888. };
  34889. module.exports.toUnicode = function(domain_name, useSTD3) {
  34890. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  34891. return {
  34892. domain: result.string,
  34893. error: result.error
  34894. };
  34895. };
  34896. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  34897. /***/ }),
  34898. /***/ 986:
  34899. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34900. "use strict";
  34901. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34902. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  34903. return new (P || (P = Promise))(function (resolve, reject) {
  34904. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34905. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34906. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  34907. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34908. });
  34909. };
  34910. Object.defineProperty(exports, "__esModule", { value: true });
  34911. const tr = __webpack_require__(9);
  34912. /**
  34913. * Exec a command.
  34914. * Output will be streamed to the live console.
  34915. * Returns promise with return code
  34916. *
  34917. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  34918. * @param args optional arguments for tool. Escaping is handled by the lib.
  34919. * @param options optional exec options. See ExecOptions
  34920. * @returns Promise<number> exit code
  34921. */
  34922. function exec(commandLine, args, options) {
  34923. return __awaiter(this, void 0, void 0, function* () {
  34924. const commandArgs = tr.argStringToArray(commandLine);
  34925. if (commandArgs.length === 0) {
  34926. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  34927. }
  34928. // Path to tool to execute should be first arg
  34929. const toolPath = commandArgs[0];
  34930. args = commandArgs.slice(1).concat(args || []);
  34931. const runner = new tr.ToolRunner(toolPath, args, options);
  34932. return runner.exec();
  34933. });
  34934. }
  34935. exports.exec = exec;
  34936. //# sourceMappingURL=exec.js.map
  34937. /***/ }),
  34938. /***/ 991:
  34939. /***/ (function(module, __unusedexports, __webpack_require__) {
  34940. module.exports = authenticationRequestError;
  34941. const { RequestError } = __webpack_require__(497);
  34942. function authenticationRequestError(state, error, options) {
  34943. if (!error.headers) throw error;
  34944. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  34945. // handle "2FA required" error only
  34946. if (error.status !== 401 || !otpRequired) {
  34947. throw error;
  34948. }
  34949. if (
  34950. error.status === 401 &&
  34951. otpRequired &&
  34952. error.request &&
  34953. error.request.headers["x-github-otp"]
  34954. ) {
  34955. if (state.otp) {
  34956. delete state.otp; // no longer valid, request again
  34957. } else {
  34958. throw new RequestError(
  34959. "Invalid one-time password for two-factor authentication",
  34960. 401,
  34961. {
  34962. headers: error.headers,
  34963. request: options
  34964. }
  34965. );
  34966. }
  34967. }
  34968. if (typeof state.auth.on2fa !== "function") {
  34969. throw new RequestError(
  34970. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  34971. 401,
  34972. {
  34973. headers: error.headers,
  34974. request: options
  34975. }
  34976. );
  34977. }
  34978. return Promise.resolve()
  34979. .then(() => {
  34980. return state.auth.on2fa();
  34981. })
  34982. .then(oneTimePassword => {
  34983. const newOptions = Object.assign(options, {
  34984. headers: Object.assign(options.headers, {
  34985. "x-github-otp": oneTimePassword
  34986. })
  34987. });
  34988. return state.octokit.request(newOptions).then(response => {
  34989. // If OTP still valid, then persist it for following requests
  34990. state.otp = oneTimePassword;
  34991. return response;
  34992. });
  34993. });
  34994. }
  34995. /***/ }),
  34996. /***/ 993:
  34997. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34998. "use strict";
  34999. /* eslint-disable @typescript-eslint/no-explicit-any */
  35000. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  35001. if (k2 === undefined) k2 = k;
  35002. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  35003. }) : (function(o, m, k, k2) {
  35004. if (k2 === undefined) k2 = k;
  35005. o[k2] = m[k];
  35006. }));
  35007. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  35008. Object.defineProperty(o, "default", { enumerable: true, value: v });
  35009. }) : function(o, v) {
  35010. o["default"] = v;
  35011. });
  35012. var __importStar = (this && this.__importStar) || function (mod) {
  35013. if (mod && mod.__esModule) return mod;
  35014. var result = {};
  35015. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  35016. __setModuleDefault(result, mod);
  35017. return result;
  35018. };
  35019. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  35020. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  35021. return new (P || (P = Promise))(function (resolve, reject) {
  35022. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  35023. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  35024. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  35025. step((generator = generator.apply(thisArg, _arguments || [])).next());
  35026. });
  35027. };
  35028. Object.defineProperty(exports, "__esModule", { value: true });
  35029. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  35030. const http = __importStar(__webpack_require__(605));
  35031. const https = __importStar(__webpack_require__(211));
  35032. const pm = __importStar(__webpack_require__(95));
  35033. const tunnel = __importStar(__webpack_require__(413));
  35034. var HttpCodes;
  35035. (function (HttpCodes) {
  35036. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  35037. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  35038. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  35039. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  35040. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  35041. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  35042. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  35043. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  35044. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  35045. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  35046. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  35047. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  35048. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  35049. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  35050. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  35051. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  35052. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  35053. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  35054. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  35055. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  35056. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  35057. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  35058. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  35059. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  35060. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  35061. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  35062. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  35063. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  35064. var Headers;
  35065. (function (Headers) {
  35066. Headers["Accept"] = "accept";
  35067. Headers["ContentType"] = "content-type";
  35068. })(Headers = exports.Headers || (exports.Headers = {}));
  35069. var MediaTypes;
  35070. (function (MediaTypes) {
  35071. MediaTypes["ApplicationJson"] = "application/json";
  35072. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  35073. /**
  35074. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  35075. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  35076. */
  35077. function getProxyUrl(serverUrl) {
  35078. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  35079. return proxyUrl ? proxyUrl.href : '';
  35080. }
  35081. exports.getProxyUrl = getProxyUrl;
  35082. const HttpRedirectCodes = [
  35083. HttpCodes.MovedPermanently,
  35084. HttpCodes.ResourceMoved,
  35085. HttpCodes.SeeOther,
  35086. HttpCodes.TemporaryRedirect,
  35087. HttpCodes.PermanentRedirect
  35088. ];
  35089. const HttpResponseRetryCodes = [
  35090. HttpCodes.BadGateway,
  35091. HttpCodes.ServiceUnavailable,
  35092. HttpCodes.GatewayTimeout
  35093. ];
  35094. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  35095. const ExponentialBackoffCeiling = 10;
  35096. const ExponentialBackoffTimeSlice = 5;
  35097. class HttpClientError extends Error {
  35098. constructor(message, statusCode) {
  35099. super(message);
  35100. this.name = 'HttpClientError';
  35101. this.statusCode = statusCode;
  35102. Object.setPrototypeOf(this, HttpClientError.prototype);
  35103. }
  35104. }
  35105. exports.HttpClientError = HttpClientError;
  35106. class HttpClientResponse {
  35107. constructor(message) {
  35108. this.message = message;
  35109. }
  35110. readBody() {
  35111. return __awaiter(this, void 0, void 0, function* () {
  35112. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  35113. let output = Buffer.alloc(0);
  35114. this.message.on('data', (chunk) => {
  35115. output = Buffer.concat([output, chunk]);
  35116. });
  35117. this.message.on('end', () => {
  35118. resolve(output.toString());
  35119. });
  35120. }));
  35121. });
  35122. }
  35123. }
  35124. exports.HttpClientResponse = HttpClientResponse;
  35125. function isHttps(requestUrl) {
  35126. const parsedUrl = new URL(requestUrl);
  35127. return parsedUrl.protocol === 'https:';
  35128. }
  35129. exports.isHttps = isHttps;
  35130. class HttpClient {
  35131. constructor(userAgent, handlers, requestOptions) {
  35132. this._ignoreSslError = false;
  35133. this._allowRedirects = true;
  35134. this._allowRedirectDowngrade = false;
  35135. this._maxRedirects = 50;
  35136. this._allowRetries = false;
  35137. this._maxRetries = 1;
  35138. this._keepAlive = false;
  35139. this._disposed = false;
  35140. this.userAgent = userAgent;
  35141. this.handlers = handlers || [];
  35142. this.requestOptions = requestOptions;
  35143. if (requestOptions) {
  35144. if (requestOptions.ignoreSslError != null) {
  35145. this._ignoreSslError = requestOptions.ignoreSslError;
  35146. }
  35147. this._socketTimeout = requestOptions.socketTimeout;
  35148. if (requestOptions.allowRedirects != null) {
  35149. this._allowRedirects = requestOptions.allowRedirects;
  35150. }
  35151. if (requestOptions.allowRedirectDowngrade != null) {
  35152. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  35153. }
  35154. if (requestOptions.maxRedirects != null) {
  35155. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  35156. }
  35157. if (requestOptions.keepAlive != null) {
  35158. this._keepAlive = requestOptions.keepAlive;
  35159. }
  35160. if (requestOptions.allowRetries != null) {
  35161. this._allowRetries = requestOptions.allowRetries;
  35162. }
  35163. if (requestOptions.maxRetries != null) {
  35164. this._maxRetries = requestOptions.maxRetries;
  35165. }
  35166. }
  35167. }
  35168. options(requestUrl, additionalHeaders) {
  35169. return __awaiter(this, void 0, void 0, function* () {
  35170. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  35171. });
  35172. }
  35173. get(requestUrl, additionalHeaders) {
  35174. return __awaiter(this, void 0, void 0, function* () {
  35175. return this.request('GET', requestUrl, null, additionalHeaders || {});
  35176. });
  35177. }
  35178. del(requestUrl, additionalHeaders) {
  35179. return __awaiter(this, void 0, void 0, function* () {
  35180. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  35181. });
  35182. }
  35183. post(requestUrl, data, additionalHeaders) {
  35184. return __awaiter(this, void 0, void 0, function* () {
  35185. return this.request('POST', requestUrl, data, additionalHeaders || {});
  35186. });
  35187. }
  35188. patch(requestUrl, data, additionalHeaders) {
  35189. return __awaiter(this, void 0, void 0, function* () {
  35190. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  35191. });
  35192. }
  35193. put(requestUrl, data, additionalHeaders) {
  35194. return __awaiter(this, void 0, void 0, function* () {
  35195. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  35196. });
  35197. }
  35198. head(requestUrl, additionalHeaders) {
  35199. return __awaiter(this, void 0, void 0, function* () {
  35200. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  35201. });
  35202. }
  35203. sendStream(verb, requestUrl, stream, additionalHeaders) {
  35204. return __awaiter(this, void 0, void 0, function* () {
  35205. return this.request(verb, requestUrl, stream, additionalHeaders);
  35206. });
  35207. }
  35208. /**
  35209. * Gets a typed object from an endpoint
  35210. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  35211. */
  35212. getJson(requestUrl, additionalHeaders = {}) {
  35213. return __awaiter(this, void 0, void 0, function* () {
  35214. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  35215. const res = yield this.get(requestUrl, additionalHeaders);
  35216. return this._processResponse(res, this.requestOptions);
  35217. });
  35218. }
  35219. postJson(requestUrl, obj, additionalHeaders = {}) {
  35220. return __awaiter(this, void 0, void 0, function* () {
  35221. const data = JSON.stringify(obj, null, 2);
  35222. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  35223. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  35224. const res = yield this.post(requestUrl, data, additionalHeaders);
  35225. return this._processResponse(res, this.requestOptions);
  35226. });
  35227. }
  35228. putJson(requestUrl, obj, additionalHeaders = {}) {
  35229. return __awaiter(this, void 0, void 0, function* () {
  35230. const data = JSON.stringify(obj, null, 2);
  35231. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  35232. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  35233. const res = yield this.put(requestUrl, data, additionalHeaders);
  35234. return this._processResponse(res, this.requestOptions);
  35235. });
  35236. }
  35237. patchJson(requestUrl, obj, additionalHeaders = {}) {
  35238. return __awaiter(this, void 0, void 0, function* () {
  35239. const data = JSON.stringify(obj, null, 2);
  35240. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  35241. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  35242. const res = yield this.patch(requestUrl, data, additionalHeaders);
  35243. return this._processResponse(res, this.requestOptions);
  35244. });
  35245. }
  35246. /**
  35247. * Makes a raw http request.
  35248. * All other methods such as get, post, patch, and request ultimately call this.
  35249. * Prefer get, del, post and patch
  35250. */
  35251. request(verb, requestUrl, data, headers) {
  35252. return __awaiter(this, void 0, void 0, function* () {
  35253. if (this._disposed) {
  35254. throw new Error('Client has already been disposed.');
  35255. }
  35256. const parsedUrl = new URL(requestUrl);
  35257. let info = this._prepareRequest(verb, parsedUrl, headers);
  35258. // Only perform retries on reads since writes may not be idempotent.
  35259. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  35260. ? this._maxRetries + 1
  35261. : 1;
  35262. let numTries = 0;
  35263. let response;
  35264. do {
  35265. response = yield this.requestRaw(info, data);
  35266. // Check if it's an authentication challenge
  35267. if (response &&
  35268. response.message &&
  35269. response.message.statusCode === HttpCodes.Unauthorized) {
  35270. let authenticationHandler;
  35271. for (const handler of this.handlers) {
  35272. if (handler.canHandleAuthentication(response)) {
  35273. authenticationHandler = handler;
  35274. break;
  35275. }
  35276. }
  35277. if (authenticationHandler) {
  35278. return authenticationHandler.handleAuthentication(this, info, data);
  35279. }
  35280. else {
  35281. // We have received an unauthorized response but have no handlers to handle it.
  35282. // Let the response return to the caller.
  35283. return response;
  35284. }
  35285. }
  35286. let redirectsRemaining = this._maxRedirects;
  35287. while (response.message.statusCode &&
  35288. HttpRedirectCodes.includes(response.message.statusCode) &&
  35289. this._allowRedirects &&
  35290. redirectsRemaining > 0) {
  35291. const redirectUrl = response.message.headers['location'];
  35292. if (!redirectUrl) {
  35293. // if there's no location to redirect to, we won't
  35294. break;
  35295. }
  35296. const parsedRedirectUrl = new URL(redirectUrl);
  35297. if (parsedUrl.protocol === 'https:' &&
  35298. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  35299. !this._allowRedirectDowngrade) {
  35300. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  35301. }
  35302. // we need to finish reading the response before reassigning response
  35303. // which will leak the open socket.
  35304. yield response.readBody();
  35305. // strip authorization header if redirected to a different hostname
  35306. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  35307. for (const header in headers) {
  35308. // header names are case insensitive
  35309. if (header.toLowerCase() === 'authorization') {
  35310. delete headers[header];
  35311. }
  35312. }
  35313. }
  35314. // let's make the request with the new redirectUrl
  35315. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  35316. response = yield this.requestRaw(info, data);
  35317. redirectsRemaining--;
  35318. }
  35319. if (!response.message.statusCode ||
  35320. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  35321. // If not a retry code, return immediately instead of retrying
  35322. return response;
  35323. }
  35324. numTries += 1;
  35325. if (numTries < maxTries) {
  35326. yield response.readBody();
  35327. yield this._performExponentialBackoff(numTries);
  35328. }
  35329. } while (numTries < maxTries);
  35330. return response;
  35331. });
  35332. }
  35333. /**
  35334. * Needs to be called if keepAlive is set to true in request options.
  35335. */
  35336. dispose() {
  35337. if (this._agent) {
  35338. this._agent.destroy();
  35339. }
  35340. this._disposed = true;
  35341. }
  35342. /**
  35343. * Raw request.
  35344. * @param info
  35345. * @param data
  35346. */
  35347. requestRaw(info, data) {
  35348. return __awaiter(this, void 0, void 0, function* () {
  35349. return new Promise((resolve, reject) => {
  35350. function callbackForResult(err, res) {
  35351. if (err) {
  35352. reject(err);
  35353. }
  35354. else if (!res) {
  35355. // If `err` is not passed, then `res` must be passed.
  35356. reject(new Error('Unknown error'));
  35357. }
  35358. else {
  35359. resolve(res);
  35360. }
  35361. }
  35362. this.requestRawWithCallback(info, data, callbackForResult);
  35363. });
  35364. });
  35365. }
  35366. /**
  35367. * Raw request with callback.
  35368. * @param info
  35369. * @param data
  35370. * @param onResult
  35371. */
  35372. requestRawWithCallback(info, data, onResult) {
  35373. if (typeof data === 'string') {
  35374. if (!info.options.headers) {
  35375. info.options.headers = {};
  35376. }
  35377. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  35378. }
  35379. let callbackCalled = false;
  35380. function handleResult(err, res) {
  35381. if (!callbackCalled) {
  35382. callbackCalled = true;
  35383. onResult(err, res);
  35384. }
  35385. }
  35386. const req = info.httpModule.request(info.options, (msg) => {
  35387. const res = new HttpClientResponse(msg);
  35388. handleResult(undefined, res);
  35389. });
  35390. let socket;
  35391. req.on('socket', sock => {
  35392. socket = sock;
  35393. });
  35394. // If we ever get disconnected, we want the socket to timeout eventually
  35395. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  35396. if (socket) {
  35397. socket.end();
  35398. }
  35399. handleResult(new Error(`Request timeout: ${info.options.path}`));
  35400. });
  35401. req.on('error', function (err) {
  35402. // err has statusCode property
  35403. // res should have headers
  35404. handleResult(err);
  35405. });
  35406. if (data && typeof data === 'string') {
  35407. req.write(data, 'utf8');
  35408. }
  35409. if (data && typeof data !== 'string') {
  35410. data.on('close', function () {
  35411. req.end();
  35412. });
  35413. data.pipe(req);
  35414. }
  35415. else {
  35416. req.end();
  35417. }
  35418. }
  35419. /**
  35420. * Gets an http agent. This function is useful when you need an http agent that handles
  35421. * routing through a proxy server - depending upon the url and proxy environment variables.
  35422. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  35423. */
  35424. getAgent(serverUrl) {
  35425. const parsedUrl = new URL(serverUrl);
  35426. return this._getAgent(parsedUrl);
  35427. }
  35428. _prepareRequest(method, requestUrl, headers) {
  35429. const info = {};
  35430. info.parsedUrl = requestUrl;
  35431. const usingSsl = info.parsedUrl.protocol === 'https:';
  35432. info.httpModule = usingSsl ? https : http;
  35433. const defaultPort = usingSsl ? 443 : 80;
  35434. info.options = {};
  35435. info.options.host = info.parsedUrl.hostname;
  35436. info.options.port = info.parsedUrl.port
  35437. ? parseInt(info.parsedUrl.port)
  35438. : defaultPort;
  35439. info.options.path =
  35440. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  35441. info.options.method = method;
  35442. info.options.headers = this._mergeHeaders(headers);
  35443. if (this.userAgent != null) {
  35444. info.options.headers['user-agent'] = this.userAgent;
  35445. }
  35446. info.options.agent = this._getAgent(info.parsedUrl);
  35447. // gives handlers an opportunity to participate
  35448. if (this.handlers) {
  35449. for (const handler of this.handlers) {
  35450. handler.prepareRequest(info.options);
  35451. }
  35452. }
  35453. return info;
  35454. }
  35455. _mergeHeaders(headers) {
  35456. if (this.requestOptions && this.requestOptions.headers) {
  35457. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  35458. }
  35459. return lowercaseKeys(headers || {});
  35460. }
  35461. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  35462. let clientHeader;
  35463. if (this.requestOptions && this.requestOptions.headers) {
  35464. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  35465. }
  35466. return additionalHeaders[header] || clientHeader || _default;
  35467. }
  35468. _getAgent(parsedUrl) {
  35469. let agent;
  35470. const proxyUrl = pm.getProxyUrl(parsedUrl);
  35471. const useProxy = proxyUrl && proxyUrl.hostname;
  35472. if (this._keepAlive && useProxy) {
  35473. agent = this._proxyAgent;
  35474. }
  35475. if (this._keepAlive && !useProxy) {
  35476. agent = this._agent;
  35477. }
  35478. // if agent is already assigned use that agent.
  35479. if (agent) {
  35480. return agent;
  35481. }
  35482. const usingSsl = parsedUrl.protocol === 'https:';
  35483. let maxSockets = 100;
  35484. if (this.requestOptions) {
  35485. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  35486. }
  35487. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  35488. if (proxyUrl && proxyUrl.hostname) {
  35489. const agentOptions = {
  35490. maxSockets,
  35491. keepAlive: this._keepAlive,
  35492. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  35493. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  35494. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  35495. };
  35496. let tunnelAgent;
  35497. const overHttps = proxyUrl.protocol === 'https:';
  35498. if (usingSsl) {
  35499. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  35500. }
  35501. else {
  35502. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  35503. }
  35504. agent = tunnelAgent(agentOptions);
  35505. this._proxyAgent = agent;
  35506. }
  35507. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  35508. if (this._keepAlive && !agent) {
  35509. const options = { keepAlive: this._keepAlive, maxSockets };
  35510. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  35511. this._agent = agent;
  35512. }
  35513. // if not using private agent and tunnel agent isn't setup then use global agent
  35514. if (!agent) {
  35515. agent = usingSsl ? https.globalAgent : http.globalAgent;
  35516. }
  35517. if (usingSsl && this._ignoreSslError) {
  35518. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  35519. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  35520. // we have to cast it to any and change it directly
  35521. agent.options = Object.assign(agent.options || {}, {
  35522. rejectUnauthorized: false
  35523. });
  35524. }
  35525. return agent;
  35526. }
  35527. _performExponentialBackoff(retryNumber) {
  35528. return __awaiter(this, void 0, void 0, function* () {
  35529. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  35530. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  35531. return new Promise(resolve => setTimeout(() => resolve(), ms));
  35532. });
  35533. }
  35534. _processResponse(res, options) {
  35535. return __awaiter(this, void 0, void 0, function* () {
  35536. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  35537. const statusCode = res.message.statusCode || 0;
  35538. const response = {
  35539. statusCode,
  35540. result: null,
  35541. headers: {}
  35542. };
  35543. // not found leads to null obj returned
  35544. if (statusCode === HttpCodes.NotFound) {
  35545. resolve(response);
  35546. }
  35547. // get the result from the body
  35548. function dateTimeDeserializer(key, value) {
  35549. if (typeof value === 'string') {
  35550. const a = new Date(value);
  35551. if (!isNaN(a.valueOf())) {
  35552. return a;
  35553. }
  35554. }
  35555. return value;
  35556. }
  35557. let obj;
  35558. let contents;
  35559. try {
  35560. contents = yield res.readBody();
  35561. if (contents && contents.length > 0) {
  35562. if (options && options.deserializeDates) {
  35563. obj = JSON.parse(contents, dateTimeDeserializer);
  35564. }
  35565. else {
  35566. obj = JSON.parse(contents);
  35567. }
  35568. response.result = obj;
  35569. }
  35570. response.headers = res.message.headers;
  35571. }
  35572. catch (err) {
  35573. // Invalid resource (contents not json); leaving result obj null
  35574. }
  35575. // note that 3xx redirects are handled by the http layer.
  35576. if (statusCode > 299) {
  35577. let msg;
  35578. // if exception/error in body, attempt to get better error
  35579. if (obj && obj.message) {
  35580. msg = obj.message;
  35581. }
  35582. else if (contents && contents.length > 0) {
  35583. // it may be the case that the exception is in the body message as string
  35584. msg = contents;
  35585. }
  35586. else {
  35587. msg = `Failed request: (${statusCode})`;
  35588. }
  35589. const err = new HttpClientError(msg, statusCode);
  35590. err.result = response.result;
  35591. reject(err);
  35592. }
  35593. else {
  35594. resolve(response);
  35595. }
  35596. }));
  35597. });
  35598. }
  35599. }
  35600. exports.HttpClient = HttpClient;
  35601. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  35602. //# sourceMappingURL=index.js.map
  35603. /***/ })
  35604. /******/ });