index.js 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184
  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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  87. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  88. return new (P || (P = Promise))(function (resolve, reject) {
  89. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  90. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  91. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  92. step((generator = generator.apply(thisArg, _arguments || [])).next());
  93. });
  94. };
  95. Object.defineProperty(exports, "__esModule", { value: true });
  96. const childProcess = __webpack_require__(129);
  97. const path = __webpack_require__(622);
  98. const util_1 = __webpack_require__(669);
  99. const ioUtil = __webpack_require__(672);
  100. const exec = util_1.promisify(childProcess.exec);
  101. /**
  102. * Copies a file or folder.
  103. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  104. *
  105. * @param source source path
  106. * @param dest destination path
  107. * @param options optional. See CopyOptions.
  108. */
  109. function cp(source, dest, options = {}) {
  110. return __awaiter(this, void 0, void 0, function* () {
  111. const { force, recursive } = readCopyOptions(options);
  112. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  113. // Dest is an existing file, but not forcing
  114. if (destStat && destStat.isFile() && !force) {
  115. return;
  116. }
  117. // If dest is an existing directory, should copy inside.
  118. const newDest = destStat && destStat.isDirectory()
  119. ? path.join(dest, path.basename(source))
  120. : dest;
  121. if (!(yield ioUtil.exists(source))) {
  122. throw new Error(`no such file or directory: ${source}`);
  123. }
  124. const sourceStat = yield ioUtil.stat(source);
  125. if (sourceStat.isDirectory()) {
  126. if (!recursive) {
  127. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  128. }
  129. else {
  130. yield cpDirRecursive(source, newDest, 0, force);
  131. }
  132. }
  133. else {
  134. if (path.relative(source, newDest) === '') {
  135. // a file cannot be copied to itself
  136. throw new Error(`'${newDest}' and '${source}' are the same file`);
  137. }
  138. yield copyFile(source, newDest, force);
  139. }
  140. });
  141. }
  142. exports.cp = cp;
  143. /**
  144. * Moves a path.
  145. *
  146. * @param source source path
  147. * @param dest destination path
  148. * @param options optional. See MoveOptions.
  149. */
  150. function mv(source, dest, options = {}) {
  151. return __awaiter(this, void 0, void 0, function* () {
  152. if (yield ioUtil.exists(dest)) {
  153. let destExists = true;
  154. if (yield ioUtil.isDirectory(dest)) {
  155. // If dest is directory copy src into dest
  156. dest = path.join(dest, path.basename(source));
  157. destExists = yield ioUtil.exists(dest);
  158. }
  159. if (destExists) {
  160. if (options.force == null || options.force) {
  161. yield rmRF(dest);
  162. }
  163. else {
  164. throw new Error('Destination already exists');
  165. }
  166. }
  167. }
  168. yield mkdirP(path.dirname(dest));
  169. yield ioUtil.rename(source, dest);
  170. });
  171. }
  172. exports.mv = mv;
  173. /**
  174. * Remove a path recursively with force
  175. *
  176. * @param inputPath path to remove
  177. */
  178. function rmRF(inputPath) {
  179. return __awaiter(this, void 0, void 0, function* () {
  180. if (ioUtil.IS_WINDOWS) {
  181. // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
  182. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
  183. try {
  184. if (yield ioUtil.isDirectory(inputPath, true)) {
  185. yield exec(`rd /s /q "${inputPath}"`);
  186. }
  187. else {
  188. yield exec(`del /f /a "${inputPath}"`);
  189. }
  190. }
  191. catch (err) {
  192. // if you try to delete a file that doesn't exist, desired result is achieved
  193. // other errors are valid
  194. if (err.code !== 'ENOENT')
  195. throw err;
  196. }
  197. // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
  198. try {
  199. yield ioUtil.unlink(inputPath);
  200. }
  201. catch (err) {
  202. // if you try to delete a file that doesn't exist, desired result is achieved
  203. // other errors are valid
  204. if (err.code !== 'ENOENT')
  205. throw err;
  206. }
  207. }
  208. else {
  209. let isDir = false;
  210. try {
  211. isDir = yield ioUtil.isDirectory(inputPath);
  212. }
  213. catch (err) {
  214. // if you try to delete a file that doesn't exist, desired result is achieved
  215. // other errors are valid
  216. if (err.code !== 'ENOENT')
  217. throw err;
  218. return;
  219. }
  220. if (isDir) {
  221. yield exec(`rm -rf "${inputPath}"`);
  222. }
  223. else {
  224. yield ioUtil.unlink(inputPath);
  225. }
  226. }
  227. });
  228. }
  229. exports.rmRF = rmRF;
  230. /**
  231. * Make a directory. Creates the full path with folders in between
  232. * Will throw if it fails
  233. *
  234. * @param fsPath path to create
  235. * @returns Promise<void>
  236. */
  237. function mkdirP(fsPath) {
  238. return __awaiter(this, void 0, void 0, function* () {
  239. yield ioUtil.mkdirP(fsPath);
  240. });
  241. }
  242. exports.mkdirP = mkdirP;
  243. /**
  244. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  245. * If you check and the tool does not exist, it will throw.
  246. *
  247. * @param tool name of the tool
  248. * @param check whether to check if tool exists
  249. * @returns Promise<string> path to tool
  250. */
  251. function which(tool, check) {
  252. return __awaiter(this, void 0, void 0, function* () {
  253. if (!tool) {
  254. throw new Error("parameter 'tool' is required");
  255. }
  256. // recursive when check=true
  257. if (check) {
  258. const result = yield which(tool, false);
  259. if (!result) {
  260. if (ioUtil.IS_WINDOWS) {
  261. 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.`);
  262. }
  263. else {
  264. 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.`);
  265. }
  266. }
  267. }
  268. try {
  269. // build the list of extensions to try
  270. const extensions = [];
  271. if (ioUtil.IS_WINDOWS && process.env.PATHEXT) {
  272. for (const extension of process.env.PATHEXT.split(path.delimiter)) {
  273. if (extension) {
  274. extensions.push(extension);
  275. }
  276. }
  277. }
  278. // if it's rooted, return it if exists. otherwise return empty.
  279. if (ioUtil.isRooted(tool)) {
  280. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  281. if (filePath) {
  282. return filePath;
  283. }
  284. return '';
  285. }
  286. // if any path separators, return empty
  287. if (tool.includes('/') || (ioUtil.IS_WINDOWS && tool.includes('\\'))) {
  288. return '';
  289. }
  290. // build the list of directories
  291. //
  292. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  293. // it feels like we should not do this. Checking the current directory seems like more of a use
  294. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  295. // across platforms.
  296. const directories = [];
  297. if (process.env.PATH) {
  298. for (const p of process.env.PATH.split(path.delimiter)) {
  299. if (p) {
  300. directories.push(p);
  301. }
  302. }
  303. }
  304. // return the first match
  305. for (const directory of directories) {
  306. const filePath = yield ioUtil.tryGetExecutablePath(directory + path.sep + tool, extensions);
  307. if (filePath) {
  308. return filePath;
  309. }
  310. }
  311. return '';
  312. }
  313. catch (err) {
  314. throw new Error(`which failed with message ${err.message}`);
  315. }
  316. });
  317. }
  318. exports.which = which;
  319. function readCopyOptions(options) {
  320. const force = options.force == null ? true : options.force;
  321. const recursive = Boolean(options.recursive);
  322. return { force, recursive };
  323. }
  324. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  325. return __awaiter(this, void 0, void 0, function* () {
  326. // Ensure there is not a run away recursive copy
  327. if (currentDepth >= 255)
  328. return;
  329. currentDepth++;
  330. yield mkdirP(destDir);
  331. const files = yield ioUtil.readdir(sourceDir);
  332. for (const fileName of files) {
  333. const srcFile = `${sourceDir}/${fileName}`;
  334. const destFile = `${destDir}/${fileName}`;
  335. const srcFileStat = yield ioUtil.lstat(srcFile);
  336. if (srcFileStat.isDirectory()) {
  337. // Recurse
  338. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  339. }
  340. else {
  341. yield copyFile(srcFile, destFile, force);
  342. }
  343. }
  344. // Change the mode for the newly created directory
  345. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  346. });
  347. }
  348. // Buffered file copy
  349. function copyFile(srcFile, destFile, force) {
  350. return __awaiter(this, void 0, void 0, function* () {
  351. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  352. // unlink/re-link it
  353. try {
  354. yield ioUtil.lstat(destFile);
  355. yield ioUtil.unlink(destFile);
  356. }
  357. catch (e) {
  358. // Try to override file permission
  359. if (e.code === 'EPERM') {
  360. yield ioUtil.chmod(destFile, '0666');
  361. yield ioUtil.unlink(destFile);
  362. }
  363. // other errors = it doesn't exist, no work to do
  364. }
  365. // Copy over symlink
  366. const symlinkFull = yield ioUtil.readlink(srcFile);
  367. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  368. }
  369. else if (!(yield ioUtil.exists(destFile)) || force) {
  370. yield ioUtil.copyFile(srcFile, destFile);
  371. }
  372. });
  373. }
  374. //# sourceMappingURL=io.js.map
  375. /***/ }),
  376. /***/ 2:
  377. /***/ (function(module, __unusedexports, __webpack_require__) {
  378. "use strict";
  379. const os = __webpack_require__(87);
  380. const macosRelease = __webpack_require__(118);
  381. const winRelease = __webpack_require__(49);
  382. const osName = (platform, release) => {
  383. if (!platform && release) {
  384. throw new Error('You can\'t specify a `release` without specifying `platform`');
  385. }
  386. platform = platform || os.platform();
  387. let id;
  388. if (platform === 'darwin') {
  389. if (!release && os.platform() === 'darwin') {
  390. release = os.release();
  391. }
  392. const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
  393. id = release ? macosRelease(release).name : '';
  394. return prefix + (id ? ' ' + id : '');
  395. }
  396. if (platform === 'linux') {
  397. if (!release && os.platform() === 'linux') {
  398. release = os.release();
  399. }
  400. id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
  401. return 'Linux' + (id ? ' ' + id : '');
  402. }
  403. if (platform === 'win32') {
  404. if (!release && os.platform() === 'win32') {
  405. release = os.release();
  406. }
  407. id = release ? winRelease(release) : '';
  408. return 'Windows' + (id ? ' ' + id : '');
  409. }
  410. return platform;
  411. };
  412. module.exports = osName;
  413. /***/ }),
  414. /***/ 3:
  415. /***/ (function(module, __unusedexports, __webpack_require__) {
  416. var once = __webpack_require__(969);
  417. var noop = function() {};
  418. var isRequest = function(stream) {
  419. return stream.setHeader && typeof stream.abort === 'function';
  420. };
  421. var isChildProcess = function(stream) {
  422. return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
  423. };
  424. var eos = function(stream, opts, callback) {
  425. if (typeof opts === 'function') return eos(stream, null, opts);
  426. if (!opts) opts = {};
  427. callback = once(callback || noop);
  428. var ws = stream._writableState;
  429. var rs = stream._readableState;
  430. var readable = opts.readable || (opts.readable !== false && stream.readable);
  431. var writable = opts.writable || (opts.writable !== false && stream.writable);
  432. var cancelled = false;
  433. var onlegacyfinish = function() {
  434. if (!stream.writable) onfinish();
  435. };
  436. var onfinish = function() {
  437. writable = false;
  438. if (!readable) callback.call(stream);
  439. };
  440. var onend = function() {
  441. readable = false;
  442. if (!writable) callback.call(stream);
  443. };
  444. var onexit = function(exitCode) {
  445. callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
  446. };
  447. var onerror = function(err) {
  448. callback.call(stream, err);
  449. };
  450. var onclose = function() {
  451. process.nextTick(onclosenexttick);
  452. };
  453. var onclosenexttick = function() {
  454. if (cancelled) return;
  455. if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
  456. if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
  457. };
  458. var onrequest = function() {
  459. stream.req.on('finish', onfinish);
  460. };
  461. if (isRequest(stream)) {
  462. stream.on('complete', onfinish);
  463. stream.on('abort', onclose);
  464. if (stream.req) onrequest();
  465. else stream.on('request', onrequest);
  466. } else if (writable && !ws) { // legacy streams
  467. stream.on('end', onlegacyfinish);
  468. stream.on('close', onlegacyfinish);
  469. }
  470. if (isChildProcess(stream)) stream.on('exit', onexit);
  471. stream.on('end', onend);
  472. stream.on('finish', onfinish);
  473. if (opts.error !== false) stream.on('error', onerror);
  474. stream.on('close', onclose);
  475. return function() {
  476. cancelled = true;
  477. stream.removeListener('complete', onfinish);
  478. stream.removeListener('abort', onclose);
  479. stream.removeListener('request', onrequest);
  480. if (stream.req) stream.req.removeListener('finish', onfinish);
  481. stream.removeListener('end', onlegacyfinish);
  482. stream.removeListener('close', onlegacyfinish);
  483. stream.removeListener('finish', onfinish);
  484. stream.removeListener('exit', onexit);
  485. stream.removeListener('end', onend);
  486. stream.removeListener('error', onerror);
  487. stream.removeListener('close', onclose);
  488. };
  489. };
  490. module.exports = eos;
  491. /***/ }),
  492. /***/ 9:
  493. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  494. "use strict";
  495. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  496. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  497. return new (P || (P = Promise))(function (resolve, reject) {
  498. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  499. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  500. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  501. step((generator = generator.apply(thisArg, _arguments || [])).next());
  502. });
  503. };
  504. Object.defineProperty(exports, "__esModule", { value: true });
  505. const os = __webpack_require__(87);
  506. const events = __webpack_require__(614);
  507. const child = __webpack_require__(129);
  508. /* eslint-disable @typescript-eslint/unbound-method */
  509. const IS_WINDOWS = process.platform === 'win32';
  510. /*
  511. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  512. */
  513. class ToolRunner extends events.EventEmitter {
  514. constructor(toolPath, args, options) {
  515. super();
  516. if (!toolPath) {
  517. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  518. }
  519. this.toolPath = toolPath;
  520. this.args = args || [];
  521. this.options = options || {};
  522. }
  523. _debug(message) {
  524. if (this.options.listeners && this.options.listeners.debug) {
  525. this.options.listeners.debug(message);
  526. }
  527. }
  528. _getCommandString(options, noPrefix) {
  529. const toolPath = this._getSpawnFileName();
  530. const args = this._getSpawnArgs(options);
  531. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  532. if (IS_WINDOWS) {
  533. // Windows + cmd file
  534. if (this._isCmdFile()) {
  535. cmd += toolPath;
  536. for (const a of args) {
  537. cmd += ` ${a}`;
  538. }
  539. }
  540. // Windows + verbatim
  541. else if (options.windowsVerbatimArguments) {
  542. cmd += `"${toolPath}"`;
  543. for (const a of args) {
  544. cmd += ` ${a}`;
  545. }
  546. }
  547. // Windows (regular)
  548. else {
  549. cmd += this._windowsQuoteCmdArg(toolPath);
  550. for (const a of args) {
  551. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  552. }
  553. }
  554. }
  555. else {
  556. // OSX/Linux - this can likely be improved with some form of quoting.
  557. // creating processes on Unix is fundamentally different than Windows.
  558. // on Unix, execvp() takes an arg array.
  559. cmd += toolPath;
  560. for (const a of args) {
  561. cmd += ` ${a}`;
  562. }
  563. }
  564. return cmd;
  565. }
  566. _processLineBuffer(data, strBuffer, onLine) {
  567. try {
  568. let s = strBuffer + data.toString();
  569. let n = s.indexOf(os.EOL);
  570. while (n > -1) {
  571. const line = s.substring(0, n);
  572. onLine(line);
  573. // the rest of the string ...
  574. s = s.substring(n + os.EOL.length);
  575. n = s.indexOf(os.EOL);
  576. }
  577. strBuffer = s;
  578. }
  579. catch (err) {
  580. // streaming lines to console is best effort. Don't fail a build.
  581. this._debug(`error processing line. Failed with error ${err}`);
  582. }
  583. }
  584. _getSpawnFileName() {
  585. if (IS_WINDOWS) {
  586. if (this._isCmdFile()) {
  587. return process.env['COMSPEC'] || 'cmd.exe';
  588. }
  589. }
  590. return this.toolPath;
  591. }
  592. _getSpawnArgs(options) {
  593. if (IS_WINDOWS) {
  594. if (this._isCmdFile()) {
  595. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  596. for (const a of this.args) {
  597. argline += ' ';
  598. argline += options.windowsVerbatimArguments
  599. ? a
  600. : this._windowsQuoteCmdArg(a);
  601. }
  602. argline += '"';
  603. return [argline];
  604. }
  605. }
  606. return this.args;
  607. }
  608. _endsWith(str, end) {
  609. return str.endsWith(end);
  610. }
  611. _isCmdFile() {
  612. const upperToolPath = this.toolPath.toUpperCase();
  613. return (this._endsWith(upperToolPath, '.CMD') ||
  614. this._endsWith(upperToolPath, '.BAT'));
  615. }
  616. _windowsQuoteCmdArg(arg) {
  617. // for .exe, apply the normal quoting rules that libuv applies
  618. if (!this._isCmdFile()) {
  619. return this._uvQuoteCmdArg(arg);
  620. }
  621. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  622. // the libuv rules are generic and are not designed specifically for cmd.exe
  623. // command line parser.
  624. //
  625. // for a detailed description of the cmd.exe command line parser, refer to
  626. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  627. // need quotes for empty arg
  628. if (!arg) {
  629. return '""';
  630. }
  631. // determine whether the arg needs to be quoted
  632. const cmdSpecialChars = [
  633. ' ',
  634. '\t',
  635. '&',
  636. '(',
  637. ')',
  638. '[',
  639. ']',
  640. '{',
  641. '}',
  642. '^',
  643. '=',
  644. ';',
  645. '!',
  646. "'",
  647. '+',
  648. ',',
  649. '`',
  650. '~',
  651. '|',
  652. '<',
  653. '>',
  654. '"'
  655. ];
  656. let needsQuotes = false;
  657. for (const char of arg) {
  658. if (cmdSpecialChars.some(x => x === char)) {
  659. needsQuotes = true;
  660. break;
  661. }
  662. }
  663. // short-circuit if quotes not needed
  664. if (!needsQuotes) {
  665. return arg;
  666. }
  667. // the following quoting rules are very similar to the rules that by libuv applies.
  668. //
  669. // 1) wrap the string in quotes
  670. //
  671. // 2) double-up quotes - i.e. " => ""
  672. //
  673. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  674. // doesn't work well with a cmd.exe command line.
  675. //
  676. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  677. // for example, the command line:
  678. // foo.exe "myarg:""my val"""
  679. // is parsed by a .NET console app into an arg array:
  680. // [ "myarg:\"my val\"" ]
  681. // which is the same end result when applying libuv quoting rules. although the actual
  682. // command line from libuv quoting rules would look like:
  683. // foo.exe "myarg:\"my val\""
  684. //
  685. // 3) double-up slashes that precede a quote,
  686. // e.g. hello \world => "hello \world"
  687. // hello\"world => "hello\\""world"
  688. // hello\\"world => "hello\\\\""world"
  689. // hello world\ => "hello world\\"
  690. //
  691. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  692. // the reasons for including this as a .cmd quoting rule are:
  693. //
  694. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  695. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  696. //
  697. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  698. // haven't heard any complaints about that aspect.
  699. //
  700. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  701. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  702. // by using %%.
  703. //
  704. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  705. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  706. //
  707. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  708. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  709. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  710. // to an external program.
  711. //
  712. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  713. // % can be escaped within a .cmd file.
  714. let reverse = '"';
  715. let quoteHit = true;
  716. for (let i = arg.length; i > 0; i--) {
  717. // walk the string in reverse
  718. reverse += arg[i - 1];
  719. if (quoteHit && arg[i - 1] === '\\') {
  720. reverse += '\\'; // double the slash
  721. }
  722. else if (arg[i - 1] === '"') {
  723. quoteHit = true;
  724. reverse += '"'; // double the quote
  725. }
  726. else {
  727. quoteHit = false;
  728. }
  729. }
  730. reverse += '"';
  731. return reverse
  732. .split('')
  733. .reverse()
  734. .join('');
  735. }
  736. _uvQuoteCmdArg(arg) {
  737. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  738. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  739. // is used.
  740. //
  741. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  742. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  743. // pasting copyright notice from Node within this function:
  744. //
  745. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  746. //
  747. // Permission is hereby granted, free of charge, to any person obtaining a copy
  748. // of this software and associated documentation files (the "Software"), to
  749. // deal in the Software without restriction, including without limitation the
  750. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  751. // sell copies of the Software, and to permit persons to whom the Software is
  752. // furnished to do so, subject to the following conditions:
  753. //
  754. // The above copyright notice and this permission notice shall be included in
  755. // all copies or substantial portions of the Software.
  756. //
  757. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  758. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  759. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  760. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  761. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  762. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  763. // IN THE SOFTWARE.
  764. if (!arg) {
  765. // Need double quotation for empty argument
  766. return '""';
  767. }
  768. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  769. // No quotation needed
  770. return arg;
  771. }
  772. if (!arg.includes('"') && !arg.includes('\\')) {
  773. // No embedded double quotes or backslashes, so I can just wrap
  774. // quote marks around the whole thing.
  775. return `"${arg}"`;
  776. }
  777. // Expected input/output:
  778. // input : hello"world
  779. // output: "hello\"world"
  780. // input : hello""world
  781. // output: "hello\"\"world"
  782. // input : hello\world
  783. // output: hello\world
  784. // input : hello\\world
  785. // output: hello\\world
  786. // input : hello\"world
  787. // output: "hello\\\"world"
  788. // input : hello\\"world
  789. // output: "hello\\\\\"world"
  790. // input : hello world\
  791. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  792. // but it appears the comment is wrong, it should be "hello world\\"
  793. let reverse = '"';
  794. let quoteHit = true;
  795. for (let i = arg.length; i > 0; i--) {
  796. // walk the string in reverse
  797. reverse += arg[i - 1];
  798. if (quoteHit && arg[i - 1] === '\\') {
  799. reverse += '\\';
  800. }
  801. else if (arg[i - 1] === '"') {
  802. quoteHit = true;
  803. reverse += '\\';
  804. }
  805. else {
  806. quoteHit = false;
  807. }
  808. }
  809. reverse += '"';
  810. return reverse
  811. .split('')
  812. .reverse()
  813. .join('');
  814. }
  815. _cloneExecOptions(options) {
  816. options = options || {};
  817. const result = {
  818. cwd: options.cwd || process.cwd(),
  819. env: options.env || process.env,
  820. silent: options.silent || false,
  821. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  822. failOnStdErr: options.failOnStdErr || false,
  823. ignoreReturnCode: options.ignoreReturnCode || false,
  824. delay: options.delay || 10000
  825. };
  826. result.outStream = options.outStream || process.stdout;
  827. result.errStream = options.errStream || process.stderr;
  828. return result;
  829. }
  830. _getSpawnOptions(options, toolPath) {
  831. options = options || {};
  832. const result = {};
  833. result.cwd = options.cwd;
  834. result.env = options.env;
  835. result['windowsVerbatimArguments'] =
  836. options.windowsVerbatimArguments || this._isCmdFile();
  837. if (options.windowsVerbatimArguments) {
  838. result.argv0 = `"${toolPath}"`;
  839. }
  840. return result;
  841. }
  842. /**
  843. * Exec a tool.
  844. * Output will be streamed to the live console.
  845. * Returns promise with return code
  846. *
  847. * @param tool path to tool to exec
  848. * @param options optional exec options. See ExecOptions
  849. * @returns number
  850. */
  851. exec() {
  852. return __awaiter(this, void 0, void 0, function* () {
  853. return new Promise((resolve, reject) => {
  854. this._debug(`exec tool: ${this.toolPath}`);
  855. this._debug('arguments:');
  856. for (const arg of this.args) {
  857. this._debug(` ${arg}`);
  858. }
  859. const optionsNonNull = this._cloneExecOptions(this.options);
  860. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  861. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  862. }
  863. const state = new ExecState(optionsNonNull, this.toolPath);
  864. state.on('debug', (message) => {
  865. this._debug(message);
  866. });
  867. const fileName = this._getSpawnFileName();
  868. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  869. const stdbuffer = '';
  870. if (cp.stdout) {
  871. cp.stdout.on('data', (data) => {
  872. if (this.options.listeners && this.options.listeners.stdout) {
  873. this.options.listeners.stdout(data);
  874. }
  875. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  876. optionsNonNull.outStream.write(data);
  877. }
  878. this._processLineBuffer(data, stdbuffer, (line) => {
  879. if (this.options.listeners && this.options.listeners.stdline) {
  880. this.options.listeners.stdline(line);
  881. }
  882. });
  883. });
  884. }
  885. const errbuffer = '';
  886. if (cp.stderr) {
  887. cp.stderr.on('data', (data) => {
  888. state.processStderr = true;
  889. if (this.options.listeners && this.options.listeners.stderr) {
  890. this.options.listeners.stderr(data);
  891. }
  892. if (!optionsNonNull.silent &&
  893. optionsNonNull.errStream &&
  894. optionsNonNull.outStream) {
  895. const s = optionsNonNull.failOnStdErr
  896. ? optionsNonNull.errStream
  897. : optionsNonNull.outStream;
  898. s.write(data);
  899. }
  900. this._processLineBuffer(data, errbuffer, (line) => {
  901. if (this.options.listeners && this.options.listeners.errline) {
  902. this.options.listeners.errline(line);
  903. }
  904. });
  905. });
  906. }
  907. cp.on('error', (err) => {
  908. state.processError = err.message;
  909. state.processExited = true;
  910. state.processClosed = true;
  911. state.CheckComplete();
  912. });
  913. cp.on('exit', (code) => {
  914. state.processExitCode = code;
  915. state.processExited = true;
  916. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  917. state.CheckComplete();
  918. });
  919. cp.on('close', (code) => {
  920. state.processExitCode = code;
  921. state.processExited = true;
  922. state.processClosed = true;
  923. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  924. state.CheckComplete();
  925. });
  926. state.on('done', (error, exitCode) => {
  927. if (stdbuffer.length > 0) {
  928. this.emit('stdline', stdbuffer);
  929. }
  930. if (errbuffer.length > 0) {
  931. this.emit('errline', errbuffer);
  932. }
  933. cp.removeAllListeners();
  934. if (error) {
  935. reject(error);
  936. }
  937. else {
  938. resolve(exitCode);
  939. }
  940. });
  941. });
  942. });
  943. }
  944. }
  945. exports.ToolRunner = ToolRunner;
  946. /**
  947. * Convert an arg string to an array of args. Handles escaping
  948. *
  949. * @param argString string of arguments
  950. * @returns string[] array of arguments
  951. */
  952. function argStringToArray(argString) {
  953. const args = [];
  954. let inQuotes = false;
  955. let escaped = false;
  956. let arg = '';
  957. function append(c) {
  958. // we only escape double quotes.
  959. if (escaped && c !== '"') {
  960. arg += '\\';
  961. }
  962. arg += c;
  963. escaped = false;
  964. }
  965. for (let i = 0; i < argString.length; i++) {
  966. const c = argString.charAt(i);
  967. if (c === '"') {
  968. if (!escaped) {
  969. inQuotes = !inQuotes;
  970. }
  971. else {
  972. append(c);
  973. }
  974. continue;
  975. }
  976. if (c === '\\' && escaped) {
  977. append(c);
  978. continue;
  979. }
  980. if (c === '\\' && inQuotes) {
  981. escaped = true;
  982. continue;
  983. }
  984. if (c === ' ' && !inQuotes) {
  985. if (arg.length > 0) {
  986. args.push(arg);
  987. arg = '';
  988. }
  989. continue;
  990. }
  991. append(c);
  992. }
  993. if (arg.length > 0) {
  994. args.push(arg.trim());
  995. }
  996. return args;
  997. }
  998. exports.argStringToArray = argStringToArray;
  999. class ExecState extends events.EventEmitter {
  1000. constructor(options, toolPath) {
  1001. super();
  1002. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  1003. this.processError = '';
  1004. this.processExitCode = 0;
  1005. this.processExited = false; // tracks whether the process has exited
  1006. this.processStderr = false; // tracks whether stderr was written to
  1007. this.delay = 10000; // 10 seconds
  1008. this.done = false;
  1009. this.timeout = null;
  1010. if (!toolPath) {
  1011. throw new Error('toolPath must not be empty');
  1012. }
  1013. this.options = options;
  1014. this.toolPath = toolPath;
  1015. if (options.delay) {
  1016. this.delay = options.delay;
  1017. }
  1018. }
  1019. CheckComplete() {
  1020. if (this.done) {
  1021. return;
  1022. }
  1023. if (this.processClosed) {
  1024. this._setResult();
  1025. }
  1026. else if (this.processExited) {
  1027. this.timeout = setTimeout(ExecState.HandleTimeout, this.delay, this);
  1028. }
  1029. }
  1030. _debug(message) {
  1031. this.emit('debug', message);
  1032. }
  1033. _setResult() {
  1034. // determine whether there is an error
  1035. let error;
  1036. if (this.processExited) {
  1037. if (this.processError) {
  1038. 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}`);
  1039. }
  1040. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  1041. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  1042. }
  1043. else if (this.processStderr && this.options.failOnStdErr) {
  1044. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  1045. }
  1046. }
  1047. // clear the timeout
  1048. if (this.timeout) {
  1049. clearTimeout(this.timeout);
  1050. this.timeout = null;
  1051. }
  1052. this.done = true;
  1053. this.emit('done', error, this.processExitCode);
  1054. }
  1055. static HandleTimeout(state) {
  1056. if (state.done) {
  1057. return;
  1058. }
  1059. if (!state.processClosed && state.processExited) {
  1060. const message = `The STDIO streams did not close within ${state.delay /
  1061. 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.`;
  1062. state._debug(message);
  1063. }
  1064. state._setResult();
  1065. }
  1066. }
  1067. //# sourceMappingURL=toolrunner.js.map
  1068. /***/ }),
  1069. /***/ 11:
  1070. /***/ (function(module) {
  1071. // Returns a wrapper function that returns a wrapped callback
  1072. // The wrapper function should do some stuff, and return a
  1073. // presumably different callback function.
  1074. // This makes sure that own properties are retained, so that
  1075. // decorations and such are not lost along the way.
  1076. module.exports = wrappy
  1077. function wrappy (fn, cb) {
  1078. if (fn && cb) return wrappy(fn)(cb)
  1079. if (typeof fn !== 'function')
  1080. throw new TypeError('need wrapper function')
  1081. Object.keys(fn).forEach(function (k) {
  1082. wrapper[k] = fn[k]
  1083. })
  1084. return wrapper
  1085. function wrapper() {
  1086. var args = new Array(arguments.length)
  1087. for (var i = 0; i < args.length; i++) {
  1088. args[i] = arguments[i]
  1089. }
  1090. var ret = fn.apply(this, args)
  1091. var cb = args[args.length-1]
  1092. if (typeof ret === 'function' && ret !== cb) {
  1093. Object.keys(cb).forEach(function (k) {
  1094. ret[k] = cb[k]
  1095. })
  1096. }
  1097. return ret
  1098. }
  1099. }
  1100. /***/ }),
  1101. /***/ 13:
  1102. /***/ (function(module) {
  1103. "use strict";
  1104. var replace = String.prototype.replace;
  1105. var percentTwenties = /%20/g;
  1106. var Format = {
  1107. RFC1738: 'RFC1738',
  1108. RFC3986: 'RFC3986'
  1109. };
  1110. module.exports = {
  1111. 'default': Format.RFC3986,
  1112. formatters: {
  1113. RFC1738: function (value) {
  1114. return replace.call(value, percentTwenties, '+');
  1115. },
  1116. RFC3986: function (value) {
  1117. return String(value);
  1118. }
  1119. },
  1120. RFC1738: Format.RFC1738,
  1121. RFC3986: Format.RFC3986
  1122. };
  1123. /***/ }),
  1124. /***/ 16:
  1125. /***/ (function(module) {
  1126. module.exports = require("tls");
  1127. /***/ }),
  1128. /***/ 18:
  1129. /***/ (function() {
  1130. eval("require")("encoding");
  1131. /***/ }),
  1132. /***/ 19:
  1133. /***/ (function(module, __unusedexports, __webpack_require__) {
  1134. module.exports = authenticationPlugin;
  1135. const { Deprecation } = __webpack_require__(692);
  1136. const once = __webpack_require__(969);
  1137. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  1138. const authenticate = __webpack_require__(674);
  1139. const beforeRequest = __webpack_require__(471);
  1140. const requestError = __webpack_require__(349);
  1141. function authenticationPlugin(octokit, options) {
  1142. if (options.auth) {
  1143. octokit.authenticate = () => {
  1144. deprecateAuthenticate(
  1145. octokit.log,
  1146. new Deprecation(
  1147. '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
  1148. )
  1149. );
  1150. };
  1151. return;
  1152. }
  1153. const state = {
  1154. octokit,
  1155. auth: false
  1156. };
  1157. octokit.authenticate = authenticate.bind(null, state);
  1158. octokit.hook.before("request", beforeRequest.bind(null, state));
  1159. octokit.hook.error("request", requestError.bind(null, state));
  1160. }
  1161. /***/ }),
  1162. /***/ 20:
  1163. /***/ (function(module, __unusedexports, __webpack_require__) {
  1164. "use strict";
  1165. const cp = __webpack_require__(129);
  1166. const parse = __webpack_require__(568);
  1167. const enoent = __webpack_require__(881);
  1168. function spawn(command, args, options) {
  1169. // Parse the arguments
  1170. const parsed = parse(command, args, options);
  1171. // Spawn the child process
  1172. const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
  1173. // Hook into child process "exit" event to emit an error if the command
  1174. // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1175. enoent.hookChildProcess(spawned, parsed);
  1176. return spawned;
  1177. }
  1178. function spawnSync(command, args, options) {
  1179. // Parse the arguments
  1180. const parsed = parse(command, args, options);
  1181. // Spawn the child process
  1182. const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
  1183. // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1184. result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
  1185. return result;
  1186. }
  1187. module.exports = spawn;
  1188. module.exports.spawn = spawn;
  1189. module.exports.sync = spawnSync;
  1190. module.exports._parse = parse;
  1191. module.exports._enoent = enoent;
  1192. /***/ }),
  1193. /***/ 26:
  1194. /***/ (function(module, __unusedexports, __webpack_require__) {
  1195. var hasMap = typeof Map === 'function' && Map.prototype;
  1196. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  1197. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  1198. var mapForEach = hasMap && Map.prototype.forEach;
  1199. var hasSet = typeof Set === 'function' && Set.prototype;
  1200. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  1201. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  1202. var setForEach = hasSet && Set.prototype.forEach;
  1203. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  1204. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  1205. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  1206. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  1207. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  1208. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  1209. var booleanValueOf = Boolean.prototype.valueOf;
  1210. var objectToString = Object.prototype.toString;
  1211. var functionToString = Function.prototype.toString;
  1212. var match = String.prototype.match;
  1213. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  1214. var gOPS = Object.getOwnPropertySymbols;
  1215. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  1216. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  1217. var isEnumerable = Object.prototype.propertyIsEnumerable;
  1218. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  1219. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  1220. ? function (O) {
  1221. return O.__proto__; // eslint-disable-line no-proto
  1222. }
  1223. : null
  1224. );
  1225. var inspectCustom = __webpack_require__(330).custom;
  1226. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  1227. var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
  1228. module.exports = function inspect_(obj, options, depth, seen) {
  1229. var opts = options || {};
  1230. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  1231. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  1232. }
  1233. if (
  1234. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  1235. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  1236. : opts.maxStringLength !== null
  1237. )
  1238. ) {
  1239. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  1240. }
  1241. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  1242. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  1243. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  1244. }
  1245. if (
  1246. has(opts, 'indent')
  1247. && opts.indent !== null
  1248. && opts.indent !== '\t'
  1249. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  1250. ) {
  1251. throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
  1252. }
  1253. if (typeof obj === 'undefined') {
  1254. return 'undefined';
  1255. }
  1256. if (obj === null) {
  1257. return 'null';
  1258. }
  1259. if (typeof obj === 'boolean') {
  1260. return obj ? 'true' : 'false';
  1261. }
  1262. if (typeof obj === 'string') {
  1263. return inspectString(obj, opts);
  1264. }
  1265. if (typeof obj === 'number') {
  1266. if (obj === 0) {
  1267. return Infinity / obj > 0 ? '0' : '-0';
  1268. }
  1269. return String(obj);
  1270. }
  1271. if (typeof obj === 'bigint') {
  1272. return String(obj) + 'n';
  1273. }
  1274. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  1275. if (typeof depth === 'undefined') { depth = 0; }
  1276. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  1277. return isArray(obj) ? '[Array]' : '[Object]';
  1278. }
  1279. var indent = getIndent(opts, depth);
  1280. if (typeof seen === 'undefined') {
  1281. seen = [];
  1282. } else if (indexOf(seen, obj) >= 0) {
  1283. return '[Circular]';
  1284. }
  1285. function inspect(value, from, noIndent) {
  1286. if (from) {
  1287. seen = seen.slice();
  1288. seen.push(from);
  1289. }
  1290. if (noIndent) {
  1291. var newOpts = {
  1292. depth: opts.depth
  1293. };
  1294. if (has(opts, 'quoteStyle')) {
  1295. newOpts.quoteStyle = opts.quoteStyle;
  1296. }
  1297. return inspect_(value, newOpts, depth + 1, seen);
  1298. }
  1299. return inspect_(value, opts, depth + 1, seen);
  1300. }
  1301. if (typeof obj === 'function') {
  1302. var name = nameOf(obj);
  1303. var keys = arrObjKeys(obj, inspect);
  1304. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
  1305. }
  1306. if (isSymbol(obj)) {
  1307. var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  1308. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  1309. }
  1310. if (isElement(obj)) {
  1311. var s = '<' + String(obj.nodeName).toLowerCase();
  1312. var attrs = obj.attributes || [];
  1313. for (var i = 0; i < attrs.length; i++) {
  1314. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  1315. }
  1316. s += '>';
  1317. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  1318. s += '</' + String(obj.nodeName).toLowerCase() + '>';
  1319. return s;
  1320. }
  1321. if (isArray(obj)) {
  1322. if (obj.length === 0) { return '[]'; }
  1323. var xs = arrObjKeys(obj, inspect);
  1324. if (indent && !singleLineValues(xs)) {
  1325. return '[' + indentedJoin(xs, indent) + ']';
  1326. }
  1327. return '[ ' + xs.join(', ') + ' ]';
  1328. }
  1329. if (isError(obj)) {
  1330. var parts = arrObjKeys(obj, inspect);
  1331. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  1332. return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
  1333. }
  1334. if (typeof obj === 'object' && customInspect) {
  1335. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  1336. return obj[inspectSymbol]();
  1337. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  1338. return obj.inspect();
  1339. }
  1340. }
  1341. if (isMap(obj)) {
  1342. var mapParts = [];
  1343. mapForEach.call(obj, function (value, key) {
  1344. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  1345. });
  1346. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  1347. }
  1348. if (isSet(obj)) {
  1349. var setParts = [];
  1350. setForEach.call(obj, function (value) {
  1351. setParts.push(inspect(value, obj));
  1352. });
  1353. return collectionOf('Set', setSize.call(obj), setParts, indent);
  1354. }
  1355. if (isWeakMap(obj)) {
  1356. return weakCollectionOf('WeakMap');
  1357. }
  1358. if (isWeakSet(obj)) {
  1359. return weakCollectionOf('WeakSet');
  1360. }
  1361. if (isWeakRef(obj)) {
  1362. return weakCollectionOf('WeakRef');
  1363. }
  1364. if (isNumber(obj)) {
  1365. return markBoxed(inspect(Number(obj)));
  1366. }
  1367. if (isBigInt(obj)) {
  1368. return markBoxed(inspect(bigIntValueOf.call(obj)));
  1369. }
  1370. if (isBoolean(obj)) {
  1371. return markBoxed(booleanValueOf.call(obj));
  1372. }
  1373. if (isString(obj)) {
  1374. return markBoxed(inspect(String(obj)));
  1375. }
  1376. if (!isDate(obj) && !isRegExp(obj)) {
  1377. var ys = arrObjKeys(obj, inspect);
  1378. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  1379. var protoTag = obj instanceof Object ? '' : 'null prototype';
  1380. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
  1381. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  1382. var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
  1383. if (ys.length === 0) { return tag + '{}'; }
  1384. if (indent) {
  1385. return tag + '{' + indentedJoin(ys, indent) + '}';
  1386. }
  1387. return tag + '{ ' + ys.join(', ') + ' }';
  1388. }
  1389. return String(obj);
  1390. };
  1391. function wrapQuotes(s, defaultStyle, opts) {
  1392. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  1393. return quoteChar + s + quoteChar;
  1394. }
  1395. function quote(s) {
  1396. return String(s).replace(/"/g, '&quot;');
  1397. }
  1398. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1399. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1400. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1401. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1402. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1403. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1404. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1405. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  1406. function isSymbol(obj) {
  1407. if (hasShammedSymbols) {
  1408. return obj && typeof obj === 'object' && obj instanceof Symbol;
  1409. }
  1410. if (typeof obj === 'symbol') {
  1411. return true;
  1412. }
  1413. if (!obj || typeof obj !== 'object' || !symToString) {
  1414. return false;
  1415. }
  1416. try {
  1417. symToString.call(obj);
  1418. return true;
  1419. } catch (e) {}
  1420. return false;
  1421. }
  1422. function isBigInt(obj) {
  1423. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  1424. return false;
  1425. }
  1426. try {
  1427. bigIntValueOf.call(obj);
  1428. return true;
  1429. } catch (e) {}
  1430. return false;
  1431. }
  1432. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  1433. function has(obj, key) {
  1434. return hasOwn.call(obj, key);
  1435. }
  1436. function toStr(obj) {
  1437. return objectToString.call(obj);
  1438. }
  1439. function nameOf(f) {
  1440. if (f.name) { return f.name; }
  1441. var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  1442. if (m) { return m[1]; }
  1443. return null;
  1444. }
  1445. function indexOf(xs, x) {
  1446. if (xs.indexOf) { return xs.indexOf(x); }
  1447. for (var i = 0, l = xs.length; i < l; i++) {
  1448. if (xs[i] === x) { return i; }
  1449. }
  1450. return -1;
  1451. }
  1452. function isMap(x) {
  1453. if (!mapSize || !x || typeof x !== 'object') {
  1454. return false;
  1455. }
  1456. try {
  1457. mapSize.call(x);
  1458. try {
  1459. setSize.call(x);
  1460. } catch (s) {
  1461. return true;
  1462. }
  1463. return x instanceof Map; // core-js workaround, pre-v2.5.0
  1464. } catch (e) {}
  1465. return false;
  1466. }
  1467. function isWeakMap(x) {
  1468. if (!weakMapHas || !x || typeof x !== 'object') {
  1469. return false;
  1470. }
  1471. try {
  1472. weakMapHas.call(x, weakMapHas);
  1473. try {
  1474. weakSetHas.call(x, weakSetHas);
  1475. } catch (s) {
  1476. return true;
  1477. }
  1478. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  1479. } catch (e) {}
  1480. return false;
  1481. }
  1482. function isWeakRef(x) {
  1483. if (!weakRefDeref || !x || typeof x !== 'object') {
  1484. return false;
  1485. }
  1486. try {
  1487. weakRefDeref.call(x);
  1488. return true;
  1489. } catch (e) {}
  1490. return false;
  1491. }
  1492. function isSet(x) {
  1493. if (!setSize || !x || typeof x !== 'object') {
  1494. return false;
  1495. }
  1496. try {
  1497. setSize.call(x);
  1498. try {
  1499. mapSize.call(x);
  1500. } catch (m) {
  1501. return true;
  1502. }
  1503. return x instanceof Set; // core-js workaround, pre-v2.5.0
  1504. } catch (e) {}
  1505. return false;
  1506. }
  1507. function isWeakSet(x) {
  1508. if (!weakSetHas || !x || typeof x !== 'object') {
  1509. return false;
  1510. }
  1511. try {
  1512. weakSetHas.call(x, weakSetHas);
  1513. try {
  1514. weakMapHas.call(x, weakMapHas);
  1515. } catch (s) {
  1516. return true;
  1517. }
  1518. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  1519. } catch (e) {}
  1520. return false;
  1521. }
  1522. function isElement(x) {
  1523. if (!x || typeof x !== 'object') { return false; }
  1524. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  1525. return true;
  1526. }
  1527. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  1528. }
  1529. function inspectString(str, opts) {
  1530. if (str.length > opts.maxStringLength) {
  1531. var remaining = str.length - opts.maxStringLength;
  1532. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  1533. return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
  1534. }
  1535. // eslint-disable-next-line no-control-regex
  1536. var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
  1537. return wrapQuotes(s, 'single', opts);
  1538. }
  1539. function lowbyte(c) {
  1540. var n = c.charCodeAt(0);
  1541. var x = {
  1542. 8: 'b',
  1543. 9: 't',
  1544. 10: 'n',
  1545. 12: 'f',
  1546. 13: 'r'
  1547. }[n];
  1548. if (x) { return '\\' + x; }
  1549. return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
  1550. }
  1551. function markBoxed(str) {
  1552. return 'Object(' + str + ')';
  1553. }
  1554. function weakCollectionOf(type) {
  1555. return type + ' { ? }';
  1556. }
  1557. function collectionOf(type, size, entries, indent) {
  1558. var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
  1559. return type + ' (' + size + ') {' + joinedEntries + '}';
  1560. }
  1561. function singleLineValues(xs) {
  1562. for (var i = 0; i < xs.length; i++) {
  1563. if (indexOf(xs[i], '\n') >= 0) {
  1564. return false;
  1565. }
  1566. }
  1567. return true;
  1568. }
  1569. function getIndent(opts, depth) {
  1570. var baseIndent;
  1571. if (opts.indent === '\t') {
  1572. baseIndent = '\t';
  1573. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  1574. baseIndent = Array(opts.indent + 1).join(' ');
  1575. } else {
  1576. return null;
  1577. }
  1578. return {
  1579. base: baseIndent,
  1580. prev: Array(depth + 1).join(baseIndent)
  1581. };
  1582. }
  1583. function indentedJoin(xs, indent) {
  1584. if (xs.length === 0) { return ''; }
  1585. var lineJoiner = '\n' + indent.prev + indent.base;
  1586. return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
  1587. }
  1588. function arrObjKeys(obj, inspect) {
  1589. var isArr = isArray(obj);
  1590. var xs = [];
  1591. if (isArr) {
  1592. xs.length = obj.length;
  1593. for (var i = 0; i < obj.length; i++) {
  1594. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  1595. }
  1596. }
  1597. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  1598. var symMap;
  1599. if (hasShammedSymbols) {
  1600. symMap = {};
  1601. for (var k = 0; k < syms.length; k++) {
  1602. symMap['$' + syms[k]] = syms[k];
  1603. }
  1604. }
  1605. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  1606. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1607. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1608. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  1609. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  1610. continue; // eslint-disable-line no-restricted-syntax, no-continue
  1611. } else if ((/[^\w$]/).test(key)) {
  1612. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  1613. } else {
  1614. xs.push(key + ': ' + inspect(obj[key], obj));
  1615. }
  1616. }
  1617. if (typeof gOPS === 'function') {
  1618. for (var j = 0; j < syms.length; j++) {
  1619. if (isEnumerable.call(obj, syms[j])) {
  1620. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  1621. }
  1622. }
  1623. }
  1624. return xs;
  1625. }
  1626. /***/ }),
  1627. /***/ 30:
  1628. /***/ (function(module, __unusedexports, __webpack_require__) {
  1629. module.exports = getLastPage
  1630. const getPage = __webpack_require__(265)
  1631. function getLastPage (octokit, link, headers) {
  1632. return getPage(octokit, link, 'last', headers)
  1633. }
  1634. /***/ }),
  1635. /***/ 34:
  1636. /***/ (function(module) {
  1637. module.exports = require("https");
  1638. /***/ }),
  1639. /***/ 39:
  1640. /***/ (function(module) {
  1641. "use strict";
  1642. module.exports = opts => {
  1643. opts = opts || {};
  1644. const env = opts.env || process.env;
  1645. const platform = opts.platform || process.platform;
  1646. if (platform !== 'win32') {
  1647. return 'PATH';
  1648. }
  1649. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  1650. };
  1651. /***/ }),
  1652. /***/ 47:
  1653. /***/ (function(module, __unusedexports, __webpack_require__) {
  1654. module.exports = factory;
  1655. const Octokit = __webpack_require__(402);
  1656. const registerPlugin = __webpack_require__(855);
  1657. function factory(plugins) {
  1658. const Api = Octokit.bind(null, plugins || []);
  1659. Api.plugin = registerPlugin.bind(null, plugins || []);
  1660. return Api;
  1661. }
  1662. /***/ }),
  1663. /***/ 49:
  1664. /***/ (function(module, __unusedexports, __webpack_require__) {
  1665. "use strict";
  1666. const os = __webpack_require__(87);
  1667. const execa = __webpack_require__(955);
  1668. // Reference: https://www.gaijin.at/en/lstwinver.php
  1669. const names = new Map([
  1670. ['10.0', '10'],
  1671. ['6.3', '8.1'],
  1672. ['6.2', '8'],
  1673. ['6.1', '7'],
  1674. ['6.0', 'Vista'],
  1675. ['5.2', 'Server 2003'],
  1676. ['5.1', 'XP'],
  1677. ['5.0', '2000'],
  1678. ['4.9', 'ME'],
  1679. ['4.1', '98'],
  1680. ['4.0', '95']
  1681. ]);
  1682. const windowsRelease = release => {
  1683. const version = /\d+\.\d/.exec(release || os.release());
  1684. if (release && !version) {
  1685. throw new Error('`release` argument doesn\'t match `n.n`');
  1686. }
  1687. const ver = (version || [])[0];
  1688. // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime.
  1689. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
  1690. // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
  1691. // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead.
  1692. // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name.
  1693. if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
  1694. let stdout;
  1695. try {
  1696. stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
  1697. } catch (_) {
  1698. stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
  1699. }
  1700. const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
  1701. if (year) {
  1702. return `Server ${year}`;
  1703. }
  1704. }
  1705. return names.get(ver);
  1706. };
  1707. module.exports = windowsRelease;
  1708. /***/ }),
  1709. /***/ 70:
  1710. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1711. "use strict";
  1712. exports.URL = __webpack_require__(782).interface;
  1713. exports.serializeURL = __webpack_require__(936).serializeURL;
  1714. exports.serializeURLOrigin = __webpack_require__(936).serializeURLOrigin;
  1715. exports.basicURLParse = __webpack_require__(936).basicURLParse;
  1716. exports.setTheUsername = __webpack_require__(936).setTheUsername;
  1717. exports.setThePassword = __webpack_require__(936).setThePassword;
  1718. exports.serializeHost = __webpack_require__(936).serializeHost;
  1719. exports.serializeInteger = __webpack_require__(936).serializeInteger;
  1720. exports.parseURL = __webpack_require__(936).parseURL;
  1721. /***/ }),
  1722. /***/ 81:
  1723. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1724. "use strict";
  1725. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1726. if (k2 === undefined) k2 = k;
  1727. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1728. }) : (function(o, m, k, k2) {
  1729. if (k2 === undefined) k2 = k;
  1730. o[k2] = m[k];
  1731. }));
  1732. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1733. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1734. }) : function(o, v) {
  1735. o["default"] = v;
  1736. });
  1737. var __importStar = (this && this.__importStar) || function (mod) {
  1738. if (mod && mod.__esModule) return mod;
  1739. var result = {};
  1740. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1741. __setModuleDefault(result, mod);
  1742. return result;
  1743. };
  1744. Object.defineProperty(exports, "__esModule", { value: true });
  1745. exports.getServerUrl = exports.getFetchUrl = void 0;
  1746. const assert = __importStar(__webpack_require__(357));
  1747. const url_1 = __webpack_require__(835);
  1748. function getFetchUrl(settings) {
  1749. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  1750. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  1751. const serviceUrl = getServerUrl();
  1752. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  1753. const encodedName = encodeURIComponent(settings.repositoryName);
  1754. if (settings.sshKey) {
  1755. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  1756. }
  1757. // "origin" is SCHEME://HOSTNAME[:PORT]
  1758. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  1759. }
  1760. exports.getFetchUrl = getFetchUrl;
  1761. function getServerUrl() {
  1762. // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
  1763. return new url_1.URL(process.env['GITHUB_SERVER_URL'] ||
  1764. process.env['GITHUB_URL'] ||
  1765. 'https://github.com');
  1766. }
  1767. exports.getServerUrl = getServerUrl;
  1768. /***/ }),
  1769. /***/ 82:
  1770. /***/ (function(__unusedmodule, exports) {
  1771. "use strict";
  1772. // We use any as a valid input type
  1773. /* eslint-disable @typescript-eslint/no-explicit-any */
  1774. Object.defineProperty(exports, "__esModule", { value: true });
  1775. /**
  1776. * Sanitizes an input into a string so it can be passed into issueCommand safely
  1777. * @param input input to sanitize into a string
  1778. */
  1779. function toCommandValue(input) {
  1780. if (input === null || input === undefined) {
  1781. return '';
  1782. }
  1783. else if (typeof input === 'string' || input instanceof String) {
  1784. return input;
  1785. }
  1786. return JSON.stringify(input);
  1787. }
  1788. exports.toCommandValue = toCommandValue;
  1789. //# sourceMappingURL=utils.js.map
  1790. /***/ }),
  1791. /***/ 87:
  1792. /***/ (function(module) {
  1793. module.exports = require("os");
  1794. /***/ }),
  1795. /***/ 102:
  1796. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1797. "use strict";
  1798. // For internal use, subject to change.
  1799. var __importStar = (this && this.__importStar) || function (mod) {
  1800. if (mod && mod.__esModule) return mod;
  1801. var result = {};
  1802. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  1803. result["default"] = mod;
  1804. return result;
  1805. };
  1806. Object.defineProperty(exports, "__esModule", { value: true });
  1807. // We use any as a valid input type
  1808. /* eslint-disable @typescript-eslint/no-explicit-any */
  1809. const fs = __importStar(__webpack_require__(747));
  1810. const os = __importStar(__webpack_require__(87));
  1811. const utils_1 = __webpack_require__(82);
  1812. function issueCommand(command, message) {
  1813. const filePath = process.env[`GITHUB_${command}`];
  1814. if (!filePath) {
  1815. throw new Error(`Unable to find environment variable for file command ${command}`);
  1816. }
  1817. if (!fs.existsSync(filePath)) {
  1818. throw new Error(`Missing file at path: ${filePath}`);
  1819. }
  1820. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  1821. encoding: 'utf8'
  1822. });
  1823. }
  1824. exports.issueCommand = issueCommand;
  1825. //# sourceMappingURL=file-command.js.map
  1826. /***/ }),
  1827. /***/ 118:
  1828. /***/ (function(module, __unusedexports, __webpack_require__) {
  1829. "use strict";
  1830. const os = __webpack_require__(87);
  1831. const nameMap = new Map([
  1832. [19, 'Catalina'],
  1833. [18, 'Mojave'],
  1834. [17, 'High Sierra'],
  1835. [16, 'Sierra'],
  1836. [15, 'El Capitan'],
  1837. [14, 'Yosemite'],
  1838. [13, 'Mavericks'],
  1839. [12, 'Mountain Lion'],
  1840. [11, 'Lion'],
  1841. [10, 'Snow Leopard'],
  1842. [9, 'Leopard'],
  1843. [8, 'Tiger'],
  1844. [7, 'Panther'],
  1845. [6, 'Jaguar'],
  1846. [5, 'Puma']
  1847. ]);
  1848. const macosRelease = release => {
  1849. release = Number((release || os.release()).split('.')[0]);
  1850. return {
  1851. name: nameMap.get(release),
  1852. version: '10.' + (release - 4)
  1853. };
  1854. };
  1855. module.exports = macosRelease;
  1856. // TODO: remove this in the next major version
  1857. module.exports.default = macosRelease;
  1858. /***/ }),
  1859. /***/ 126:
  1860. /***/ (function(module) {
  1861. /**
  1862. * lodash (Custom Build) <https://lodash.com/>
  1863. * Build: `lodash modularize exports="npm" -o ./`
  1864. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  1865. * Released under MIT license <https://lodash.com/license>
  1866. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  1867. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  1868. */
  1869. /** Used as the size to enable large array optimizations. */
  1870. var LARGE_ARRAY_SIZE = 200;
  1871. /** Used to stand-in for `undefined` hash values. */
  1872. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  1873. /** Used as references for various `Number` constants. */
  1874. var INFINITY = 1 / 0;
  1875. /** `Object#toString` result references. */
  1876. var funcTag = '[object Function]',
  1877. genTag = '[object GeneratorFunction]';
  1878. /**
  1879. * Used to match `RegExp`
  1880. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  1881. */
  1882. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  1883. /** Used to detect host constructors (Safari). */
  1884. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  1885. /** Detect free variable `global` from Node.js. */
  1886. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  1887. /** Detect free variable `self`. */
  1888. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  1889. /** Used as a reference to the global object. */
  1890. var root = freeGlobal || freeSelf || Function('return this')();
  1891. /**
  1892. * A specialized version of `_.includes` for arrays without support for
  1893. * specifying an index to search from.
  1894. *
  1895. * @private
  1896. * @param {Array} [array] The array to inspect.
  1897. * @param {*} target The value to search for.
  1898. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  1899. */
  1900. function arrayIncludes(array, value) {
  1901. var length = array ? array.length : 0;
  1902. return !!length && baseIndexOf(array, value, 0) > -1;
  1903. }
  1904. /**
  1905. * This function is like `arrayIncludes` except that it accepts a comparator.
  1906. *
  1907. * @private
  1908. * @param {Array} [array] The array to inspect.
  1909. * @param {*} target The value to search for.
  1910. * @param {Function} comparator The comparator invoked per element.
  1911. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  1912. */
  1913. function arrayIncludesWith(array, value, comparator) {
  1914. var index = -1,
  1915. length = array ? array.length : 0;
  1916. while (++index < length) {
  1917. if (comparator(value, array[index])) {
  1918. return true;
  1919. }
  1920. }
  1921. return false;
  1922. }
  1923. /**
  1924. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  1925. * support for iteratee shorthands.
  1926. *
  1927. * @private
  1928. * @param {Array} array The array to inspect.
  1929. * @param {Function} predicate The function invoked per iteration.
  1930. * @param {number} fromIndex The index to search from.
  1931. * @param {boolean} [fromRight] Specify iterating from right to left.
  1932. * @returns {number} Returns the index of the matched value, else `-1`.
  1933. */
  1934. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  1935. var length = array.length,
  1936. index = fromIndex + (fromRight ? 1 : -1);
  1937. while ((fromRight ? index-- : ++index < length)) {
  1938. if (predicate(array[index], index, array)) {
  1939. return index;
  1940. }
  1941. }
  1942. return -1;
  1943. }
  1944. /**
  1945. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  1946. *
  1947. * @private
  1948. * @param {Array} array The array to inspect.
  1949. * @param {*} value The value to search for.
  1950. * @param {number} fromIndex The index to search from.
  1951. * @returns {number} Returns the index of the matched value, else `-1`.
  1952. */
  1953. function baseIndexOf(array, value, fromIndex) {
  1954. if (value !== value) {
  1955. return baseFindIndex(array, baseIsNaN, fromIndex);
  1956. }
  1957. var index = fromIndex - 1,
  1958. length = array.length;
  1959. while (++index < length) {
  1960. if (array[index] === value) {
  1961. return index;
  1962. }
  1963. }
  1964. return -1;
  1965. }
  1966. /**
  1967. * The base implementation of `_.isNaN` without support for number objects.
  1968. *
  1969. * @private
  1970. * @param {*} value The value to check.
  1971. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  1972. */
  1973. function baseIsNaN(value) {
  1974. return value !== value;
  1975. }
  1976. /**
  1977. * Checks if a cache value for `key` exists.
  1978. *
  1979. * @private
  1980. * @param {Object} cache The cache to query.
  1981. * @param {string} key The key of the entry to check.
  1982. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1983. */
  1984. function cacheHas(cache, key) {
  1985. return cache.has(key);
  1986. }
  1987. /**
  1988. * Gets the value at `key` of `object`.
  1989. *
  1990. * @private
  1991. * @param {Object} [object] The object to query.
  1992. * @param {string} key The key of the property to get.
  1993. * @returns {*} Returns the property value.
  1994. */
  1995. function getValue(object, key) {
  1996. return object == null ? undefined : object[key];
  1997. }
  1998. /**
  1999. * Checks if `value` is a host object in IE < 9.
  2000. *
  2001. * @private
  2002. * @param {*} value The value to check.
  2003. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  2004. */
  2005. function isHostObject(value) {
  2006. // Many host objects are `Object` objects that can coerce to strings
  2007. // despite having improperly defined `toString` methods.
  2008. var result = false;
  2009. if (value != null && typeof value.toString != 'function') {
  2010. try {
  2011. result = !!(value + '');
  2012. } catch (e) {}
  2013. }
  2014. return result;
  2015. }
  2016. /**
  2017. * Converts `set` to an array of its values.
  2018. *
  2019. * @private
  2020. * @param {Object} set The set to convert.
  2021. * @returns {Array} Returns the values.
  2022. */
  2023. function setToArray(set) {
  2024. var index = -1,
  2025. result = Array(set.size);
  2026. set.forEach(function(value) {
  2027. result[++index] = value;
  2028. });
  2029. return result;
  2030. }
  2031. /** Used for built-in method references. */
  2032. var arrayProto = Array.prototype,
  2033. funcProto = Function.prototype,
  2034. objectProto = Object.prototype;
  2035. /** Used to detect overreaching core-js shims. */
  2036. var coreJsData = root['__core-js_shared__'];
  2037. /** Used to detect methods masquerading as native. */
  2038. var maskSrcKey = (function() {
  2039. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  2040. return uid ? ('Symbol(src)_1.' + uid) : '';
  2041. }());
  2042. /** Used to resolve the decompiled source of functions. */
  2043. var funcToString = funcProto.toString;
  2044. /** Used to check objects for own properties. */
  2045. var hasOwnProperty = objectProto.hasOwnProperty;
  2046. /**
  2047. * Used to resolve the
  2048. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  2049. * of values.
  2050. */
  2051. var objectToString = objectProto.toString;
  2052. /** Used to detect if a method is native. */
  2053. var reIsNative = RegExp('^' +
  2054. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  2055. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  2056. );
  2057. /** Built-in value references. */
  2058. var splice = arrayProto.splice;
  2059. /* Built-in method references that are verified to be native. */
  2060. var Map = getNative(root, 'Map'),
  2061. Set = getNative(root, 'Set'),
  2062. nativeCreate = getNative(Object, 'create');
  2063. /**
  2064. * Creates a hash object.
  2065. *
  2066. * @private
  2067. * @constructor
  2068. * @param {Array} [entries] The key-value pairs to cache.
  2069. */
  2070. function Hash(entries) {
  2071. var index = -1,
  2072. length = entries ? entries.length : 0;
  2073. this.clear();
  2074. while (++index < length) {
  2075. var entry = entries[index];
  2076. this.set(entry[0], entry[1]);
  2077. }
  2078. }
  2079. /**
  2080. * Removes all key-value entries from the hash.
  2081. *
  2082. * @private
  2083. * @name clear
  2084. * @memberOf Hash
  2085. */
  2086. function hashClear() {
  2087. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  2088. }
  2089. /**
  2090. * Removes `key` and its value from the hash.
  2091. *
  2092. * @private
  2093. * @name delete
  2094. * @memberOf Hash
  2095. * @param {Object} hash The hash to modify.
  2096. * @param {string} key The key of the value to remove.
  2097. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2098. */
  2099. function hashDelete(key) {
  2100. return this.has(key) && delete this.__data__[key];
  2101. }
  2102. /**
  2103. * Gets the hash value for `key`.
  2104. *
  2105. * @private
  2106. * @name get
  2107. * @memberOf Hash
  2108. * @param {string} key The key of the value to get.
  2109. * @returns {*} Returns the entry value.
  2110. */
  2111. function hashGet(key) {
  2112. var data = this.__data__;
  2113. if (nativeCreate) {
  2114. var result = data[key];
  2115. return result === HASH_UNDEFINED ? undefined : result;
  2116. }
  2117. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  2118. }
  2119. /**
  2120. * Checks if a hash value for `key` exists.
  2121. *
  2122. * @private
  2123. * @name has
  2124. * @memberOf Hash
  2125. * @param {string} key The key of the entry to check.
  2126. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2127. */
  2128. function hashHas(key) {
  2129. var data = this.__data__;
  2130. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  2131. }
  2132. /**
  2133. * Sets the hash `key` to `value`.
  2134. *
  2135. * @private
  2136. * @name set
  2137. * @memberOf Hash
  2138. * @param {string} key The key of the value to set.
  2139. * @param {*} value The value to set.
  2140. * @returns {Object} Returns the hash instance.
  2141. */
  2142. function hashSet(key, value) {
  2143. var data = this.__data__;
  2144. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  2145. return this;
  2146. }
  2147. // Add methods to `Hash`.
  2148. Hash.prototype.clear = hashClear;
  2149. Hash.prototype['delete'] = hashDelete;
  2150. Hash.prototype.get = hashGet;
  2151. Hash.prototype.has = hashHas;
  2152. Hash.prototype.set = hashSet;
  2153. /**
  2154. * Creates an list cache object.
  2155. *
  2156. * @private
  2157. * @constructor
  2158. * @param {Array} [entries] The key-value pairs to cache.
  2159. */
  2160. function ListCache(entries) {
  2161. var index = -1,
  2162. length = entries ? entries.length : 0;
  2163. this.clear();
  2164. while (++index < length) {
  2165. var entry = entries[index];
  2166. this.set(entry[0], entry[1]);
  2167. }
  2168. }
  2169. /**
  2170. * Removes all key-value entries from the list cache.
  2171. *
  2172. * @private
  2173. * @name clear
  2174. * @memberOf ListCache
  2175. */
  2176. function listCacheClear() {
  2177. this.__data__ = [];
  2178. }
  2179. /**
  2180. * Removes `key` and its value from the list cache.
  2181. *
  2182. * @private
  2183. * @name delete
  2184. * @memberOf ListCache
  2185. * @param {string} key The key of the value to remove.
  2186. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2187. */
  2188. function listCacheDelete(key) {
  2189. var data = this.__data__,
  2190. index = assocIndexOf(data, key);
  2191. if (index < 0) {
  2192. return false;
  2193. }
  2194. var lastIndex = data.length - 1;
  2195. if (index == lastIndex) {
  2196. data.pop();
  2197. } else {
  2198. splice.call(data, index, 1);
  2199. }
  2200. return true;
  2201. }
  2202. /**
  2203. * Gets the list cache value for `key`.
  2204. *
  2205. * @private
  2206. * @name get
  2207. * @memberOf ListCache
  2208. * @param {string} key The key of the value to get.
  2209. * @returns {*} Returns the entry value.
  2210. */
  2211. function listCacheGet(key) {
  2212. var data = this.__data__,
  2213. index = assocIndexOf(data, key);
  2214. return index < 0 ? undefined : data[index][1];
  2215. }
  2216. /**
  2217. * Checks if a list cache value for `key` exists.
  2218. *
  2219. * @private
  2220. * @name has
  2221. * @memberOf ListCache
  2222. * @param {string} key The key of the entry to check.
  2223. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2224. */
  2225. function listCacheHas(key) {
  2226. return assocIndexOf(this.__data__, key) > -1;
  2227. }
  2228. /**
  2229. * Sets the list cache `key` to `value`.
  2230. *
  2231. * @private
  2232. * @name set
  2233. * @memberOf ListCache
  2234. * @param {string} key The key of the value to set.
  2235. * @param {*} value The value to set.
  2236. * @returns {Object} Returns the list cache instance.
  2237. */
  2238. function listCacheSet(key, value) {
  2239. var data = this.__data__,
  2240. index = assocIndexOf(data, key);
  2241. if (index < 0) {
  2242. data.push([key, value]);
  2243. } else {
  2244. data[index][1] = value;
  2245. }
  2246. return this;
  2247. }
  2248. // Add methods to `ListCache`.
  2249. ListCache.prototype.clear = listCacheClear;
  2250. ListCache.prototype['delete'] = listCacheDelete;
  2251. ListCache.prototype.get = listCacheGet;
  2252. ListCache.prototype.has = listCacheHas;
  2253. ListCache.prototype.set = listCacheSet;
  2254. /**
  2255. * Creates a map cache object to store key-value pairs.
  2256. *
  2257. * @private
  2258. * @constructor
  2259. * @param {Array} [entries] The key-value pairs to cache.
  2260. */
  2261. function MapCache(entries) {
  2262. var index = -1,
  2263. length = entries ? entries.length : 0;
  2264. this.clear();
  2265. while (++index < length) {
  2266. var entry = entries[index];
  2267. this.set(entry[0], entry[1]);
  2268. }
  2269. }
  2270. /**
  2271. * Removes all key-value entries from the map.
  2272. *
  2273. * @private
  2274. * @name clear
  2275. * @memberOf MapCache
  2276. */
  2277. function mapCacheClear() {
  2278. this.__data__ = {
  2279. 'hash': new Hash,
  2280. 'map': new (Map || ListCache),
  2281. 'string': new Hash
  2282. };
  2283. }
  2284. /**
  2285. * Removes `key` and its value from the map.
  2286. *
  2287. * @private
  2288. * @name delete
  2289. * @memberOf MapCache
  2290. * @param {string} key The key of the value to remove.
  2291. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2292. */
  2293. function mapCacheDelete(key) {
  2294. return getMapData(this, key)['delete'](key);
  2295. }
  2296. /**
  2297. * Gets the map value for `key`.
  2298. *
  2299. * @private
  2300. * @name get
  2301. * @memberOf MapCache
  2302. * @param {string} key The key of the value to get.
  2303. * @returns {*} Returns the entry value.
  2304. */
  2305. function mapCacheGet(key) {
  2306. return getMapData(this, key).get(key);
  2307. }
  2308. /**
  2309. * Checks if a map value for `key` exists.
  2310. *
  2311. * @private
  2312. * @name has
  2313. * @memberOf MapCache
  2314. * @param {string} key The key of the entry to check.
  2315. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2316. */
  2317. function mapCacheHas(key) {
  2318. return getMapData(this, key).has(key);
  2319. }
  2320. /**
  2321. * Sets the map `key` to `value`.
  2322. *
  2323. * @private
  2324. * @name set
  2325. * @memberOf MapCache
  2326. * @param {string} key The key of the value to set.
  2327. * @param {*} value The value to set.
  2328. * @returns {Object} Returns the map cache instance.
  2329. */
  2330. function mapCacheSet(key, value) {
  2331. getMapData(this, key).set(key, value);
  2332. return this;
  2333. }
  2334. // Add methods to `MapCache`.
  2335. MapCache.prototype.clear = mapCacheClear;
  2336. MapCache.prototype['delete'] = mapCacheDelete;
  2337. MapCache.prototype.get = mapCacheGet;
  2338. MapCache.prototype.has = mapCacheHas;
  2339. MapCache.prototype.set = mapCacheSet;
  2340. /**
  2341. *
  2342. * Creates an array cache object to store unique values.
  2343. *
  2344. * @private
  2345. * @constructor
  2346. * @param {Array} [values] The values to cache.
  2347. */
  2348. function SetCache(values) {
  2349. var index = -1,
  2350. length = values ? values.length : 0;
  2351. this.__data__ = new MapCache;
  2352. while (++index < length) {
  2353. this.add(values[index]);
  2354. }
  2355. }
  2356. /**
  2357. * Adds `value` to the array cache.
  2358. *
  2359. * @private
  2360. * @name add
  2361. * @memberOf SetCache
  2362. * @alias push
  2363. * @param {*} value The value to cache.
  2364. * @returns {Object} Returns the cache instance.
  2365. */
  2366. function setCacheAdd(value) {
  2367. this.__data__.set(value, HASH_UNDEFINED);
  2368. return this;
  2369. }
  2370. /**
  2371. * Checks if `value` is in the array cache.
  2372. *
  2373. * @private
  2374. * @name has
  2375. * @memberOf SetCache
  2376. * @param {*} value The value to search for.
  2377. * @returns {number} Returns `true` if `value` is found, else `false`.
  2378. */
  2379. function setCacheHas(value) {
  2380. return this.__data__.has(value);
  2381. }
  2382. // Add methods to `SetCache`.
  2383. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  2384. SetCache.prototype.has = setCacheHas;
  2385. /**
  2386. * Gets the index at which the `key` is found in `array` of key-value pairs.
  2387. *
  2388. * @private
  2389. * @param {Array} array The array to inspect.
  2390. * @param {*} key The key to search for.
  2391. * @returns {number} Returns the index of the matched value, else `-1`.
  2392. */
  2393. function assocIndexOf(array, key) {
  2394. var length = array.length;
  2395. while (length--) {
  2396. if (eq(array[length][0], key)) {
  2397. return length;
  2398. }
  2399. }
  2400. return -1;
  2401. }
  2402. /**
  2403. * The base implementation of `_.isNative` without bad shim checks.
  2404. *
  2405. * @private
  2406. * @param {*} value The value to check.
  2407. * @returns {boolean} Returns `true` if `value` is a native function,
  2408. * else `false`.
  2409. */
  2410. function baseIsNative(value) {
  2411. if (!isObject(value) || isMasked(value)) {
  2412. return false;
  2413. }
  2414. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  2415. return pattern.test(toSource(value));
  2416. }
  2417. /**
  2418. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  2419. *
  2420. * @private
  2421. * @param {Array} array The array to inspect.
  2422. * @param {Function} [iteratee] The iteratee invoked per element.
  2423. * @param {Function} [comparator] The comparator invoked per element.
  2424. * @returns {Array} Returns the new duplicate free array.
  2425. */
  2426. function baseUniq(array, iteratee, comparator) {
  2427. var index = -1,
  2428. includes = arrayIncludes,
  2429. length = array.length,
  2430. isCommon = true,
  2431. result = [],
  2432. seen = result;
  2433. if (comparator) {
  2434. isCommon = false;
  2435. includes = arrayIncludesWith;
  2436. }
  2437. else if (length >= LARGE_ARRAY_SIZE) {
  2438. var set = iteratee ? null : createSet(array);
  2439. if (set) {
  2440. return setToArray(set);
  2441. }
  2442. isCommon = false;
  2443. includes = cacheHas;
  2444. seen = new SetCache;
  2445. }
  2446. else {
  2447. seen = iteratee ? [] : result;
  2448. }
  2449. outer:
  2450. while (++index < length) {
  2451. var value = array[index],
  2452. computed = iteratee ? iteratee(value) : value;
  2453. value = (comparator || value !== 0) ? value : 0;
  2454. if (isCommon && computed === computed) {
  2455. var seenIndex = seen.length;
  2456. while (seenIndex--) {
  2457. if (seen[seenIndex] === computed) {
  2458. continue outer;
  2459. }
  2460. }
  2461. if (iteratee) {
  2462. seen.push(computed);
  2463. }
  2464. result.push(value);
  2465. }
  2466. else if (!includes(seen, computed, comparator)) {
  2467. if (seen !== result) {
  2468. seen.push(computed);
  2469. }
  2470. result.push(value);
  2471. }
  2472. }
  2473. return result;
  2474. }
  2475. /**
  2476. * Creates a set object of `values`.
  2477. *
  2478. * @private
  2479. * @param {Array} values The values to add to the set.
  2480. * @returns {Object} Returns the new set.
  2481. */
  2482. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  2483. return new Set(values);
  2484. };
  2485. /**
  2486. * Gets the data for `map`.
  2487. *
  2488. * @private
  2489. * @param {Object} map The map to query.
  2490. * @param {string} key The reference key.
  2491. * @returns {*} Returns the map data.
  2492. */
  2493. function getMapData(map, key) {
  2494. var data = map.__data__;
  2495. return isKeyable(key)
  2496. ? data[typeof key == 'string' ? 'string' : 'hash']
  2497. : data.map;
  2498. }
  2499. /**
  2500. * Gets the native function at `key` of `object`.
  2501. *
  2502. * @private
  2503. * @param {Object} object The object to query.
  2504. * @param {string} key The key of the method to get.
  2505. * @returns {*} Returns the function if it's native, else `undefined`.
  2506. */
  2507. function getNative(object, key) {
  2508. var value = getValue(object, key);
  2509. return baseIsNative(value) ? value : undefined;
  2510. }
  2511. /**
  2512. * Checks if `value` is suitable for use as unique object key.
  2513. *
  2514. * @private
  2515. * @param {*} value The value to check.
  2516. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  2517. */
  2518. function isKeyable(value) {
  2519. var type = typeof value;
  2520. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  2521. ? (value !== '__proto__')
  2522. : (value === null);
  2523. }
  2524. /**
  2525. * Checks if `func` has its source masked.
  2526. *
  2527. * @private
  2528. * @param {Function} func The function to check.
  2529. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  2530. */
  2531. function isMasked(func) {
  2532. return !!maskSrcKey && (maskSrcKey in func);
  2533. }
  2534. /**
  2535. * Converts `func` to its source code.
  2536. *
  2537. * @private
  2538. * @param {Function} func The function to process.
  2539. * @returns {string} Returns the source code.
  2540. */
  2541. function toSource(func) {
  2542. if (func != null) {
  2543. try {
  2544. return funcToString.call(func);
  2545. } catch (e) {}
  2546. try {
  2547. return (func + '');
  2548. } catch (e) {}
  2549. }
  2550. return '';
  2551. }
  2552. /**
  2553. * Creates a duplicate-free version of an array, using
  2554. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2555. * for equality comparisons, in which only the first occurrence of each
  2556. * element is kept.
  2557. *
  2558. * @static
  2559. * @memberOf _
  2560. * @since 0.1.0
  2561. * @category Array
  2562. * @param {Array} array The array to inspect.
  2563. * @returns {Array} Returns the new duplicate free array.
  2564. * @example
  2565. *
  2566. * _.uniq([2, 1, 2]);
  2567. * // => [2, 1]
  2568. */
  2569. function uniq(array) {
  2570. return (array && array.length)
  2571. ? baseUniq(array)
  2572. : [];
  2573. }
  2574. /**
  2575. * Performs a
  2576. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2577. * comparison between two values to determine if they are equivalent.
  2578. *
  2579. * @static
  2580. * @memberOf _
  2581. * @since 4.0.0
  2582. * @category Lang
  2583. * @param {*} value The value to compare.
  2584. * @param {*} other The other value to compare.
  2585. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  2586. * @example
  2587. *
  2588. * var object = { 'a': 1 };
  2589. * var other = { 'a': 1 };
  2590. *
  2591. * _.eq(object, object);
  2592. * // => true
  2593. *
  2594. * _.eq(object, other);
  2595. * // => false
  2596. *
  2597. * _.eq('a', 'a');
  2598. * // => true
  2599. *
  2600. * _.eq('a', Object('a'));
  2601. * // => false
  2602. *
  2603. * _.eq(NaN, NaN);
  2604. * // => true
  2605. */
  2606. function eq(value, other) {
  2607. return value === other || (value !== value && other !== other);
  2608. }
  2609. /**
  2610. * Checks if `value` is classified as a `Function` object.
  2611. *
  2612. * @static
  2613. * @memberOf _
  2614. * @since 0.1.0
  2615. * @category Lang
  2616. * @param {*} value The value to check.
  2617. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  2618. * @example
  2619. *
  2620. * _.isFunction(_);
  2621. * // => true
  2622. *
  2623. * _.isFunction(/abc/);
  2624. * // => false
  2625. */
  2626. function isFunction(value) {
  2627. // The use of `Object#toString` avoids issues with the `typeof` operator
  2628. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  2629. var tag = isObject(value) ? objectToString.call(value) : '';
  2630. return tag == funcTag || tag == genTag;
  2631. }
  2632. /**
  2633. * Checks if `value` is the
  2634. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  2635. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  2636. *
  2637. * @static
  2638. * @memberOf _
  2639. * @since 0.1.0
  2640. * @category Lang
  2641. * @param {*} value The value to check.
  2642. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  2643. * @example
  2644. *
  2645. * _.isObject({});
  2646. * // => true
  2647. *
  2648. * _.isObject([1, 2, 3]);
  2649. * // => true
  2650. *
  2651. * _.isObject(_.noop);
  2652. * // => true
  2653. *
  2654. * _.isObject(null);
  2655. * // => false
  2656. */
  2657. function isObject(value) {
  2658. var type = typeof value;
  2659. return !!value && (type == 'object' || type == 'function');
  2660. }
  2661. /**
  2662. * This method returns `undefined`.
  2663. *
  2664. * @static
  2665. * @memberOf _
  2666. * @since 2.3.0
  2667. * @category Util
  2668. * @example
  2669. *
  2670. * _.times(2, _.noop);
  2671. * // => [undefined, undefined]
  2672. */
  2673. function noop() {
  2674. // No operation performed.
  2675. }
  2676. module.exports = uniq;
  2677. /***/ }),
  2678. /***/ 129:
  2679. /***/ (function(module) {
  2680. module.exports = require("child_process");
  2681. /***/ }),
  2682. /***/ 139:
  2683. /***/ (function(module, __unusedexports, __webpack_require__) {
  2684. // Unique ID creation requires a high quality random # generator. In node.js
  2685. // this is pretty straight-forward - we use the crypto API.
  2686. var crypto = __webpack_require__(417);
  2687. module.exports = function nodeRNG() {
  2688. return crypto.randomBytes(16);
  2689. };
  2690. /***/ }),
  2691. /***/ 141:
  2692. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2693. "use strict";
  2694. var net = __webpack_require__(631);
  2695. var tls = __webpack_require__(16);
  2696. var http = __webpack_require__(605);
  2697. var https = __webpack_require__(34);
  2698. var events = __webpack_require__(614);
  2699. var assert = __webpack_require__(357);
  2700. var util = __webpack_require__(669);
  2701. exports.httpOverHttp = httpOverHttp;
  2702. exports.httpsOverHttp = httpsOverHttp;
  2703. exports.httpOverHttps = httpOverHttps;
  2704. exports.httpsOverHttps = httpsOverHttps;
  2705. function httpOverHttp(options) {
  2706. var agent = new TunnelingAgent(options);
  2707. agent.request = http.request;
  2708. return agent;
  2709. }
  2710. function httpsOverHttp(options) {
  2711. var agent = new TunnelingAgent(options);
  2712. agent.request = http.request;
  2713. agent.createSocket = createSecureSocket;
  2714. agent.defaultPort = 443;
  2715. return agent;
  2716. }
  2717. function httpOverHttps(options) {
  2718. var agent = new TunnelingAgent(options);
  2719. agent.request = https.request;
  2720. return agent;
  2721. }
  2722. function httpsOverHttps(options) {
  2723. var agent = new TunnelingAgent(options);
  2724. agent.request = https.request;
  2725. agent.createSocket = createSecureSocket;
  2726. agent.defaultPort = 443;
  2727. return agent;
  2728. }
  2729. function TunnelingAgent(options) {
  2730. var self = this;
  2731. self.options = options || {};
  2732. self.proxyOptions = self.options.proxy || {};
  2733. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  2734. self.requests = [];
  2735. self.sockets = [];
  2736. self.on('free', function onFree(socket, host, port, localAddress) {
  2737. var options = toOptions(host, port, localAddress);
  2738. for (var i = 0, len = self.requests.length; i < len; ++i) {
  2739. var pending = self.requests[i];
  2740. if (pending.host === options.host && pending.port === options.port) {
  2741. // Detect the request to connect same origin server,
  2742. // reuse the connection.
  2743. self.requests.splice(i, 1);
  2744. pending.request.onSocket(socket);
  2745. return;
  2746. }
  2747. }
  2748. socket.destroy();
  2749. self.removeSocket(socket);
  2750. });
  2751. }
  2752. util.inherits(TunnelingAgent, events.EventEmitter);
  2753. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  2754. var self = this;
  2755. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  2756. if (self.sockets.length >= this.maxSockets) {
  2757. // We are over limit so we'll add it to the queue.
  2758. self.requests.push(options);
  2759. return;
  2760. }
  2761. // If we are under maxSockets create a new one.
  2762. self.createSocket(options, function(socket) {
  2763. socket.on('free', onFree);
  2764. socket.on('close', onCloseOrRemove);
  2765. socket.on('agentRemove', onCloseOrRemove);
  2766. req.onSocket(socket);
  2767. function onFree() {
  2768. self.emit('free', socket, options);
  2769. }
  2770. function onCloseOrRemove(err) {
  2771. self.removeSocket(socket);
  2772. socket.removeListener('free', onFree);
  2773. socket.removeListener('close', onCloseOrRemove);
  2774. socket.removeListener('agentRemove', onCloseOrRemove);
  2775. }
  2776. });
  2777. };
  2778. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  2779. var self = this;
  2780. var placeholder = {};
  2781. self.sockets.push(placeholder);
  2782. var connectOptions = mergeOptions({}, self.proxyOptions, {
  2783. method: 'CONNECT',
  2784. path: options.host + ':' + options.port,
  2785. agent: false,
  2786. headers: {
  2787. host: options.host + ':' + options.port
  2788. }
  2789. });
  2790. if (options.localAddress) {
  2791. connectOptions.localAddress = options.localAddress;
  2792. }
  2793. if (connectOptions.proxyAuth) {
  2794. connectOptions.headers = connectOptions.headers || {};
  2795. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  2796. new Buffer(connectOptions.proxyAuth).toString('base64');
  2797. }
  2798. debug('making CONNECT request');
  2799. var connectReq = self.request(connectOptions);
  2800. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  2801. connectReq.once('response', onResponse); // for v0.6
  2802. connectReq.once('upgrade', onUpgrade); // for v0.6
  2803. connectReq.once('connect', onConnect); // for v0.7 or later
  2804. connectReq.once('error', onError);
  2805. connectReq.end();
  2806. function onResponse(res) {
  2807. // Very hacky. This is necessary to avoid http-parser leaks.
  2808. res.upgrade = true;
  2809. }
  2810. function onUpgrade(res, socket, head) {
  2811. // Hacky.
  2812. process.nextTick(function() {
  2813. onConnect(res, socket, head);
  2814. });
  2815. }
  2816. function onConnect(res, socket, head) {
  2817. connectReq.removeAllListeners();
  2818. socket.removeAllListeners();
  2819. if (res.statusCode !== 200) {
  2820. debug('tunneling socket could not be established, statusCode=%d',
  2821. res.statusCode);
  2822. socket.destroy();
  2823. var error = new Error('tunneling socket could not be established, ' +
  2824. 'statusCode=' + res.statusCode);
  2825. error.code = 'ECONNRESET';
  2826. options.request.emit('error', error);
  2827. self.removeSocket(placeholder);
  2828. return;
  2829. }
  2830. if (head.length > 0) {
  2831. debug('got illegal response body from proxy');
  2832. socket.destroy();
  2833. var error = new Error('got illegal response body from proxy');
  2834. error.code = 'ECONNRESET';
  2835. options.request.emit('error', error);
  2836. self.removeSocket(placeholder);
  2837. return;
  2838. }
  2839. debug('tunneling connection has established');
  2840. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  2841. return cb(socket);
  2842. }
  2843. function onError(cause) {
  2844. connectReq.removeAllListeners();
  2845. debug('tunneling socket could not be established, cause=%s\n',
  2846. cause.message, cause.stack);
  2847. var error = new Error('tunneling socket could not be established, ' +
  2848. 'cause=' + cause.message);
  2849. error.code = 'ECONNRESET';
  2850. options.request.emit('error', error);
  2851. self.removeSocket(placeholder);
  2852. }
  2853. };
  2854. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  2855. var pos = this.sockets.indexOf(socket)
  2856. if (pos === -1) {
  2857. return;
  2858. }
  2859. this.sockets.splice(pos, 1);
  2860. var pending = this.requests.shift();
  2861. if (pending) {
  2862. // If we have pending requests and a socket gets closed a new one
  2863. // needs to be created to take over in the pool for the one that closed.
  2864. this.createSocket(pending, function(socket) {
  2865. pending.request.onSocket(socket);
  2866. });
  2867. }
  2868. };
  2869. function createSecureSocket(options, cb) {
  2870. var self = this;
  2871. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  2872. var hostHeader = options.request.getHeader('host');
  2873. var tlsOptions = mergeOptions({}, self.options, {
  2874. socket: socket,
  2875. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  2876. });
  2877. // 0 is dummy port for v0.6
  2878. var secureSocket = tls.connect(0, tlsOptions);
  2879. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  2880. cb(secureSocket);
  2881. });
  2882. }
  2883. function toOptions(host, port, localAddress) {
  2884. if (typeof host === 'string') { // since v0.10
  2885. return {
  2886. host: host,
  2887. port: port,
  2888. localAddress: localAddress
  2889. };
  2890. }
  2891. return host; // for v0.11 or later
  2892. }
  2893. function mergeOptions(target) {
  2894. for (var i = 1, len = arguments.length; i < len; ++i) {
  2895. var overrides = arguments[i];
  2896. if (typeof overrides === 'object') {
  2897. var keys = Object.keys(overrides);
  2898. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  2899. var k = keys[j];
  2900. if (overrides[k] !== undefined) {
  2901. target[k] = overrides[k];
  2902. }
  2903. }
  2904. }
  2905. }
  2906. return target;
  2907. }
  2908. var debug;
  2909. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  2910. debug = function() {
  2911. var args = Array.prototype.slice.call(arguments);
  2912. if (typeof args[0] === 'string') {
  2913. args[0] = 'TUNNEL: ' + args[0];
  2914. } else {
  2915. args.unshift('TUNNEL:');
  2916. }
  2917. console.error.apply(console, args);
  2918. }
  2919. } else {
  2920. debug = function() {};
  2921. }
  2922. exports.debug = debug; // for test
  2923. /***/ }),
  2924. /***/ 143:
  2925. /***/ (function(module, __unusedexports, __webpack_require__) {
  2926. module.exports = withAuthorizationPrefix;
  2927. const atob = __webpack_require__(368);
  2928. const REGEX_IS_BASIC_AUTH = /^[\w-]+:/;
  2929. function withAuthorizationPrefix(authorization) {
  2930. if (/^(basic|bearer|token) /i.test(authorization)) {
  2931. return authorization;
  2932. }
  2933. try {
  2934. if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) {
  2935. return `basic ${authorization}`;
  2936. }
  2937. } catch (error) {}
  2938. if (authorization.split(/\./).length === 3) {
  2939. return `bearer ${authorization}`;
  2940. }
  2941. return `token ${authorization}`;
  2942. }
  2943. /***/ }),
  2944. /***/ 145:
  2945. /***/ (function(module, __unusedexports, __webpack_require__) {
  2946. "use strict";
  2947. const pump = __webpack_require__(453);
  2948. const bufferStream = __webpack_require__(966);
  2949. class MaxBufferError extends Error {
  2950. constructor() {
  2951. super('maxBuffer exceeded');
  2952. this.name = 'MaxBufferError';
  2953. }
  2954. }
  2955. function getStream(inputStream, options) {
  2956. if (!inputStream) {
  2957. return Promise.reject(new Error('Expected a stream'));
  2958. }
  2959. options = Object.assign({maxBuffer: Infinity}, options);
  2960. const {maxBuffer} = options;
  2961. let stream;
  2962. return new Promise((resolve, reject) => {
  2963. const rejectPromise = error => {
  2964. if (error) { // A null check
  2965. error.bufferedData = stream.getBufferedValue();
  2966. }
  2967. reject(error);
  2968. };
  2969. stream = pump(inputStream, bufferStream(options), error => {
  2970. if (error) {
  2971. rejectPromise(error);
  2972. return;
  2973. }
  2974. resolve();
  2975. });
  2976. stream.on('data', () => {
  2977. if (stream.getBufferedLength() > maxBuffer) {
  2978. rejectPromise(new MaxBufferError());
  2979. }
  2980. });
  2981. }).then(() => stream.getBufferedValue());
  2982. }
  2983. module.exports = getStream;
  2984. module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
  2985. module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
  2986. module.exports.MaxBufferError = MaxBufferError;
  2987. /***/ }),
  2988. /***/ 148:
  2989. /***/ (function(module, __unusedexports, __webpack_require__) {
  2990. module.exports = paginatePlugin;
  2991. const { paginateRest } = __webpack_require__(299);
  2992. function paginatePlugin(octokit) {
  2993. Object.assign(octokit, paginateRest(octokit));
  2994. }
  2995. /***/ }),
  2996. /***/ 149:
  2997. /***/ (function(module) {
  2998. "use strict";
  2999. var conversions = {};
  3000. module.exports = conversions;
  3001. function sign(x) {
  3002. return x < 0 ? -1 : 1;
  3003. }
  3004. function evenRound(x) {
  3005. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  3006. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  3007. return Math.floor(x);
  3008. } else {
  3009. return Math.round(x);
  3010. }
  3011. }
  3012. function createNumberConversion(bitLength, typeOpts) {
  3013. if (!typeOpts.unsigned) {
  3014. --bitLength;
  3015. }
  3016. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  3017. const upperBound = Math.pow(2, bitLength) - 1;
  3018. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  3019. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  3020. return function(V, opts) {
  3021. if (!opts) opts = {};
  3022. let x = +V;
  3023. if (opts.enforceRange) {
  3024. if (!Number.isFinite(x)) {
  3025. throw new TypeError("Argument is not a finite number");
  3026. }
  3027. x = sign(x) * Math.floor(Math.abs(x));
  3028. if (x < lowerBound || x > upperBound) {
  3029. throw new TypeError("Argument is not in byte range");
  3030. }
  3031. return x;
  3032. }
  3033. if (!isNaN(x) && opts.clamp) {
  3034. x = evenRound(x);
  3035. if (x < lowerBound) x = lowerBound;
  3036. if (x > upperBound) x = upperBound;
  3037. return x;
  3038. }
  3039. if (!Number.isFinite(x) || x === 0) {
  3040. return 0;
  3041. }
  3042. x = sign(x) * Math.floor(Math.abs(x));
  3043. x = x % moduloVal;
  3044. if (!typeOpts.unsigned && x >= moduloBound) {
  3045. return x - moduloVal;
  3046. } else if (typeOpts.unsigned) {
  3047. if (x < 0) {
  3048. x += moduloVal;
  3049. } else if (x === -0) { // don't return negative zero
  3050. return 0;
  3051. }
  3052. }
  3053. return x;
  3054. }
  3055. }
  3056. conversions["void"] = function () {
  3057. return undefined;
  3058. };
  3059. conversions["boolean"] = function (val) {
  3060. return !!val;
  3061. };
  3062. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  3063. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  3064. conversions["short"] = createNumberConversion(16, { unsigned: false });
  3065. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  3066. conversions["long"] = createNumberConversion(32, { unsigned: false });
  3067. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  3068. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  3069. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  3070. conversions["double"] = function (V) {
  3071. const x = +V;
  3072. if (!Number.isFinite(x)) {
  3073. throw new TypeError("Argument is not a finite floating-point value");
  3074. }
  3075. return x;
  3076. };
  3077. conversions["unrestricted double"] = function (V) {
  3078. const x = +V;
  3079. if (isNaN(x)) {
  3080. throw new TypeError("Argument is NaN");
  3081. }
  3082. return x;
  3083. };
  3084. // not quite valid, but good enough for JS
  3085. conversions["float"] = conversions["double"];
  3086. conversions["unrestricted float"] = conversions["unrestricted double"];
  3087. conversions["DOMString"] = function (V, opts) {
  3088. if (!opts) opts = {};
  3089. if (opts.treatNullAsEmptyString && V === null) {
  3090. return "";
  3091. }
  3092. return String(V);
  3093. };
  3094. conversions["ByteString"] = function (V, opts) {
  3095. const x = String(V);
  3096. let c = undefined;
  3097. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  3098. if (c > 255) {
  3099. throw new TypeError("Argument is not a valid bytestring");
  3100. }
  3101. }
  3102. return x;
  3103. };
  3104. conversions["USVString"] = function (V) {
  3105. const S = String(V);
  3106. const n = S.length;
  3107. const U = [];
  3108. for (let i = 0; i < n; ++i) {
  3109. const c = S.charCodeAt(i);
  3110. if (c < 0xD800 || c > 0xDFFF) {
  3111. U.push(String.fromCodePoint(c));
  3112. } else if (0xDC00 <= c && c <= 0xDFFF) {
  3113. U.push(String.fromCodePoint(0xFFFD));
  3114. } else {
  3115. if (i === n - 1) {
  3116. U.push(String.fromCodePoint(0xFFFD));
  3117. } else {
  3118. const d = S.charCodeAt(i + 1);
  3119. if (0xDC00 <= d && d <= 0xDFFF) {
  3120. const a = c & 0x3FF;
  3121. const b = d & 0x3FF;
  3122. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  3123. ++i;
  3124. } else {
  3125. U.push(String.fromCodePoint(0xFFFD));
  3126. }
  3127. }
  3128. }
  3129. }
  3130. return U.join('');
  3131. };
  3132. conversions["Date"] = function (V, opts) {
  3133. if (!(V instanceof Date)) {
  3134. throw new TypeError("Argument is not a Date object");
  3135. }
  3136. if (isNaN(V)) {
  3137. return undefined;
  3138. }
  3139. return V;
  3140. };
  3141. conversions["RegExp"] = function (V, opts) {
  3142. if (!(V instanceof RegExp)) {
  3143. V = new RegExp(V);
  3144. }
  3145. return V;
  3146. };
  3147. /***/ }),
  3148. /***/ 153:
  3149. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3150. "use strict";
  3151. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3152. if (k2 === undefined) k2 = k;
  3153. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3154. }) : (function(o, m, k, k2) {
  3155. if (k2 === undefined) k2 = k;
  3156. o[k2] = m[k];
  3157. }));
  3158. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3159. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3160. }) : function(o, v) {
  3161. o["default"] = v;
  3162. });
  3163. var __importStar = (this && this.__importStar) || function (mod) {
  3164. if (mod && mod.__esModule) return mod;
  3165. var result = {};
  3166. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3167. __setModuleDefault(result, mod);
  3168. return result;
  3169. };
  3170. Object.defineProperty(exports, "__esModule", { value: true });
  3171. exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.RepositoryPath = exports.IsPost = void 0;
  3172. const coreCommand = __importStar(__webpack_require__(431));
  3173. /**
  3174. * Indicates whether the POST action is running
  3175. */
  3176. exports.IsPost = !!process.env['STATE_isPost'];
  3177. /**
  3178. * The repository path for the POST action. The value is empty during the MAIN action.
  3179. */
  3180. exports.RepositoryPath = process.env['STATE_repositoryPath'] || '';
  3181. /**
  3182. * The SSH key path for the POST action. The value is empty during the MAIN action.
  3183. */
  3184. exports.SshKeyPath = process.env['STATE_sshKeyPath'] || '';
  3185. /**
  3186. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  3187. */
  3188. exports.SshKnownHostsPath = process.env['STATE_sshKnownHostsPath'] || '';
  3189. /**
  3190. * Save the repository path so the POST action can retrieve the value.
  3191. */
  3192. function setRepositoryPath(repositoryPath) {
  3193. coreCommand.issueCommand('save-state', { name: 'repositoryPath' }, repositoryPath);
  3194. }
  3195. exports.setRepositoryPath = setRepositoryPath;
  3196. /**
  3197. * Save the SSH key path so the POST action can retrieve the value.
  3198. */
  3199. function setSshKeyPath(sshKeyPath) {
  3200. coreCommand.issueCommand('save-state', { name: 'sshKeyPath' }, sshKeyPath);
  3201. }
  3202. exports.setSshKeyPath = setSshKeyPath;
  3203. /**
  3204. * Save the SSH known hosts path so the POST action can retrieve the value.
  3205. */
  3206. function setSshKnownHostsPath(sshKnownHostsPath) {
  3207. coreCommand.issueCommand('save-state', { name: 'sshKnownHostsPath' }, sshKnownHostsPath);
  3208. }
  3209. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  3210. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  3211. // This is necessary since we don't have a separate entry point.
  3212. if (!exports.IsPost) {
  3213. coreCommand.issueCommand('save-state', { name: 'isPost' }, 'true');
  3214. }
  3215. /***/ }),
  3216. /***/ 168:
  3217. /***/ (function(module) {
  3218. "use strict";
  3219. const alias = ['stdin', 'stdout', 'stderr'];
  3220. const hasAlias = opts => alias.some(x => Boolean(opts[x]));
  3221. module.exports = opts => {
  3222. if (!opts) {
  3223. return null;
  3224. }
  3225. if (opts.stdio && hasAlias(opts)) {
  3226. throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
  3227. }
  3228. if (typeof opts.stdio === 'string') {
  3229. return opts.stdio;
  3230. }
  3231. const stdio = opts.stdio || [];
  3232. if (!Array.isArray(stdio)) {
  3233. throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
  3234. }
  3235. const result = [];
  3236. const len = Math.max(stdio.length, alias.length);
  3237. for (let i = 0; i < len; i++) {
  3238. let value = null;
  3239. if (stdio[i] !== undefined) {
  3240. value = stdio[i];
  3241. } else if (opts[alias[i]] !== undefined) {
  3242. value = opts[alias[i]];
  3243. }
  3244. result[i] = value;
  3245. }
  3246. return result;
  3247. };
  3248. /***/ }),
  3249. /***/ 174:
  3250. /***/ (function(module, __unusedexports, __webpack_require__) {
  3251. "use strict";
  3252. var bind = __webpack_require__(739);
  3253. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  3254. /***/ }),
  3255. /***/ 179:
  3256. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3257. "use strict";
  3258. var net = __webpack_require__(631);
  3259. var tls = __webpack_require__(16);
  3260. var http = __webpack_require__(605);
  3261. var https = __webpack_require__(34);
  3262. var events = __webpack_require__(614);
  3263. var assert = __webpack_require__(357);
  3264. var util = __webpack_require__(669);
  3265. exports.httpOverHttp = httpOverHttp;
  3266. exports.httpsOverHttp = httpsOverHttp;
  3267. exports.httpOverHttps = httpOverHttps;
  3268. exports.httpsOverHttps = httpsOverHttps;
  3269. function httpOverHttp(options) {
  3270. var agent = new TunnelingAgent(options);
  3271. agent.request = http.request;
  3272. return agent;
  3273. }
  3274. function httpsOverHttp(options) {
  3275. var agent = new TunnelingAgent(options);
  3276. agent.request = http.request;
  3277. agent.createSocket = createSecureSocket;
  3278. agent.defaultPort = 443;
  3279. return agent;
  3280. }
  3281. function httpOverHttps(options) {
  3282. var agent = new TunnelingAgent(options);
  3283. agent.request = https.request;
  3284. return agent;
  3285. }
  3286. function httpsOverHttps(options) {
  3287. var agent = new TunnelingAgent(options);
  3288. agent.request = https.request;
  3289. agent.createSocket = createSecureSocket;
  3290. agent.defaultPort = 443;
  3291. return agent;
  3292. }
  3293. function TunnelingAgent(options) {
  3294. var self = this;
  3295. self.options = options || {};
  3296. self.proxyOptions = self.options.proxy || {};
  3297. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  3298. self.requests = [];
  3299. self.sockets = [];
  3300. self.on('free', function onFree(socket, host, port, localAddress) {
  3301. var options = toOptions(host, port, localAddress);
  3302. for (var i = 0, len = self.requests.length; i < len; ++i) {
  3303. var pending = self.requests[i];
  3304. if (pending.host === options.host && pending.port === options.port) {
  3305. // Detect the request to connect same origin server,
  3306. // reuse the connection.
  3307. self.requests.splice(i, 1);
  3308. pending.request.onSocket(socket);
  3309. return;
  3310. }
  3311. }
  3312. socket.destroy();
  3313. self.removeSocket(socket);
  3314. });
  3315. }
  3316. util.inherits(TunnelingAgent, events.EventEmitter);
  3317. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  3318. var self = this;
  3319. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  3320. if (self.sockets.length >= this.maxSockets) {
  3321. // We are over limit so we'll add it to the queue.
  3322. self.requests.push(options);
  3323. return;
  3324. }
  3325. // If we are under maxSockets create a new one.
  3326. self.createSocket(options, function(socket) {
  3327. socket.on('free', onFree);
  3328. socket.on('close', onCloseOrRemove);
  3329. socket.on('agentRemove', onCloseOrRemove);
  3330. req.onSocket(socket);
  3331. function onFree() {
  3332. self.emit('free', socket, options);
  3333. }
  3334. function onCloseOrRemove(err) {
  3335. self.removeSocket(socket);
  3336. socket.removeListener('free', onFree);
  3337. socket.removeListener('close', onCloseOrRemove);
  3338. socket.removeListener('agentRemove', onCloseOrRemove);
  3339. }
  3340. });
  3341. };
  3342. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  3343. var self = this;
  3344. var placeholder = {};
  3345. self.sockets.push(placeholder);
  3346. var connectOptions = mergeOptions({}, self.proxyOptions, {
  3347. method: 'CONNECT',
  3348. path: options.host + ':' + options.port,
  3349. agent: false,
  3350. headers: {
  3351. host: options.host + ':' + options.port
  3352. }
  3353. });
  3354. if (options.localAddress) {
  3355. connectOptions.localAddress = options.localAddress;
  3356. }
  3357. if (connectOptions.proxyAuth) {
  3358. connectOptions.headers = connectOptions.headers || {};
  3359. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  3360. new Buffer(connectOptions.proxyAuth).toString('base64');
  3361. }
  3362. debug('making CONNECT request');
  3363. var connectReq = self.request(connectOptions);
  3364. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  3365. connectReq.once('response', onResponse); // for v0.6
  3366. connectReq.once('upgrade', onUpgrade); // for v0.6
  3367. connectReq.once('connect', onConnect); // for v0.7 or later
  3368. connectReq.once('error', onError);
  3369. connectReq.end();
  3370. function onResponse(res) {
  3371. // Very hacky. This is necessary to avoid http-parser leaks.
  3372. res.upgrade = true;
  3373. }
  3374. function onUpgrade(res, socket, head) {
  3375. // Hacky.
  3376. process.nextTick(function() {
  3377. onConnect(res, socket, head);
  3378. });
  3379. }
  3380. function onConnect(res, socket, head) {
  3381. connectReq.removeAllListeners();
  3382. socket.removeAllListeners();
  3383. if (res.statusCode !== 200) {
  3384. debug('tunneling socket could not be established, statusCode=%d',
  3385. res.statusCode);
  3386. socket.destroy();
  3387. var error = new Error('tunneling socket could not be established, ' +
  3388. 'statusCode=' + res.statusCode);
  3389. error.code = 'ECONNRESET';
  3390. options.request.emit('error', error);
  3391. self.removeSocket(placeholder);
  3392. return;
  3393. }
  3394. if (head.length > 0) {
  3395. debug('got illegal response body from proxy');
  3396. socket.destroy();
  3397. var error = new Error('got illegal response body from proxy');
  3398. error.code = 'ECONNRESET';
  3399. options.request.emit('error', error);
  3400. self.removeSocket(placeholder);
  3401. return;
  3402. }
  3403. debug('tunneling connection has established');
  3404. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  3405. return cb(socket);
  3406. }
  3407. function onError(cause) {
  3408. connectReq.removeAllListeners();
  3409. debug('tunneling socket could not be established, cause=%s\n',
  3410. cause.message, cause.stack);
  3411. var error = new Error('tunneling socket could not be established, ' +
  3412. 'cause=' + cause.message);
  3413. error.code = 'ECONNRESET';
  3414. options.request.emit('error', error);
  3415. self.removeSocket(placeholder);
  3416. }
  3417. };
  3418. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  3419. var pos = this.sockets.indexOf(socket)
  3420. if (pos === -1) {
  3421. return;
  3422. }
  3423. this.sockets.splice(pos, 1);
  3424. var pending = this.requests.shift();
  3425. if (pending) {
  3426. // If we have pending requests and a socket gets closed a new one
  3427. // needs to be created to take over in the pool for the one that closed.
  3428. this.createSocket(pending, function(socket) {
  3429. pending.request.onSocket(socket);
  3430. });
  3431. }
  3432. };
  3433. function createSecureSocket(options, cb) {
  3434. var self = this;
  3435. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  3436. var hostHeader = options.request.getHeader('host');
  3437. var tlsOptions = mergeOptions({}, self.options, {
  3438. socket: socket,
  3439. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  3440. });
  3441. // 0 is dummy port for v0.6
  3442. var secureSocket = tls.connect(0, tlsOptions);
  3443. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  3444. cb(secureSocket);
  3445. });
  3446. }
  3447. function toOptions(host, port, localAddress) {
  3448. if (typeof host === 'string') { // since v0.10
  3449. return {
  3450. host: host,
  3451. port: port,
  3452. localAddress: localAddress
  3453. };
  3454. }
  3455. return host; // for v0.11 or later
  3456. }
  3457. function mergeOptions(target) {
  3458. for (var i = 1, len = arguments.length; i < len; ++i) {
  3459. var overrides = arguments[i];
  3460. if (typeof overrides === 'object') {
  3461. var keys = Object.keys(overrides);
  3462. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  3463. var k = keys[j];
  3464. if (overrides[k] !== undefined) {
  3465. target[k] = overrides[k];
  3466. }
  3467. }
  3468. }
  3469. }
  3470. return target;
  3471. }
  3472. var debug;
  3473. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  3474. debug = function() {
  3475. var args = Array.prototype.slice.call(arguments);
  3476. if (typeof args[0] === 'string') {
  3477. args[0] = 'TUNNEL: ' + args[0];
  3478. } else {
  3479. args.unshift('TUNNEL:');
  3480. }
  3481. console.error.apply(console, args);
  3482. }
  3483. } else {
  3484. debug = function() {};
  3485. }
  3486. exports.debug = debug; // for test
  3487. /***/ }),
  3488. /***/ 190:
  3489. /***/ (function(module, __unusedexports, __webpack_require__) {
  3490. module.exports = authenticationPlugin;
  3491. const { createTokenAuth } = __webpack_require__(813);
  3492. const { Deprecation } = __webpack_require__(692);
  3493. const once = __webpack_require__(969);
  3494. const beforeRequest = __webpack_require__(863);
  3495. const requestError = __webpack_require__(991);
  3496. const validate = __webpack_require__(954);
  3497. const withAuthorizationPrefix = __webpack_require__(143);
  3498. const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
  3499. const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
  3500. function authenticationPlugin(octokit, options) {
  3501. // If `options.authStrategy` is set then use it and pass in `options.auth`
  3502. if (options.authStrategy) {
  3503. const auth = options.authStrategy(options.auth);
  3504. octokit.hook.wrap("request", auth.hook);
  3505. octokit.auth = auth;
  3506. return;
  3507. }
  3508. // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
  3509. // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
  3510. if (!options.auth) {
  3511. octokit.auth = () =>
  3512. Promise.resolve({
  3513. type: "unauthenticated"
  3514. });
  3515. return;
  3516. }
  3517. const isBasicAuthString =
  3518. typeof options.auth === "string" &&
  3519. /^basic/.test(withAuthorizationPrefix(options.auth));
  3520. // If only `options.auth` is set to a string, use the default token authentication strategy.
  3521. if (typeof options.auth === "string" && !isBasicAuthString) {
  3522. const auth = createTokenAuth(options.auth);
  3523. octokit.hook.wrap("request", auth.hook);
  3524. octokit.auth = auth;
  3525. return;
  3526. }
  3527. // Otherwise log a deprecation message
  3528. const [deprecationMethod, deprecationMessapge] = isBasicAuthString
  3529. ? [
  3530. deprecateAuthBasic,
  3531. '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)'
  3532. ]
  3533. : [
  3534. deprecateAuthObject,
  3535. '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)'
  3536. ];
  3537. deprecationMethod(
  3538. octokit.log,
  3539. new Deprecation("[@octokit/rest] " + deprecationMessapge)
  3540. );
  3541. octokit.auth = () =>
  3542. Promise.resolve({
  3543. type: "deprecated",
  3544. message: deprecationMessapge
  3545. });
  3546. validate(options.auth);
  3547. const state = {
  3548. octokit,
  3549. auth: options.auth
  3550. };
  3551. octokit.hook.before("request", beforeRequest.bind(null, state));
  3552. octokit.hook.error("request", requestError.bind(null, state));
  3553. }
  3554. /***/ }),
  3555. /***/ 197:
  3556. /***/ (function(module, __unusedexports, __webpack_require__) {
  3557. module.exports = isexe
  3558. isexe.sync = sync
  3559. var fs = __webpack_require__(747)
  3560. function isexe (path, options, cb) {
  3561. fs.stat(path, function (er, stat) {
  3562. cb(er, er ? false : checkStat(stat, options))
  3563. })
  3564. }
  3565. function sync (path, options) {
  3566. return checkStat(fs.statSync(path), options)
  3567. }
  3568. function checkStat (stat, options) {
  3569. return stat.isFile() && checkMode(stat, options)
  3570. }
  3571. function checkMode (stat, options) {
  3572. var mod = stat.mode
  3573. var uid = stat.uid
  3574. var gid = stat.gid
  3575. var myUid = options.uid !== undefined ?
  3576. options.uid : process.getuid && process.getuid()
  3577. var myGid = options.gid !== undefined ?
  3578. options.gid : process.getgid && process.getgid()
  3579. var u = parseInt('100', 8)
  3580. var g = parseInt('010', 8)
  3581. var o = parseInt('001', 8)
  3582. var ug = u | g
  3583. var ret = (mod & o) ||
  3584. (mod & g) && gid === myGid ||
  3585. (mod & u) && uid === myUid ||
  3586. (mod & ug) && myUid === 0
  3587. return ret
  3588. }
  3589. /***/ }),
  3590. /***/ 198:
  3591. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3592. "use strict";
  3593. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3594. if (k2 === undefined) k2 = k;
  3595. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3596. }) : (function(o, m, k, k2) {
  3597. if (k2 === undefined) k2 = k;
  3598. o[k2] = m[k];
  3599. }));
  3600. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3601. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3602. }) : function(o, v) {
  3603. o["default"] = v;
  3604. });
  3605. var __importStar = (this && this.__importStar) || function (mod) {
  3606. if (mod && mod.__esModule) return mod;
  3607. var result = {};
  3608. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3609. __setModuleDefault(result, mod);
  3610. return result;
  3611. };
  3612. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3613. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3614. return new (P || (P = Promise))(function (resolve, reject) {
  3615. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3616. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3617. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3618. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3619. });
  3620. };
  3621. Object.defineProperty(exports, "__esModule", { value: true });
  3622. const core = __importStar(__webpack_require__(470));
  3623. const coreCommand = __importStar(__webpack_require__(431));
  3624. const gitSourceProvider = __importStar(__webpack_require__(293));
  3625. const inputHelper = __importStar(__webpack_require__(821));
  3626. const path = __importStar(__webpack_require__(622));
  3627. const stateHelper = __importStar(__webpack_require__(153));
  3628. function run() {
  3629. var _a, _b;
  3630. return __awaiter(this, void 0, void 0, function* () {
  3631. try {
  3632. const sourceSettings = yield inputHelper.getInputs();
  3633. try {
  3634. // Register problem matcher
  3635. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  3636. // Get sources
  3637. yield gitSourceProvider.getSource(sourceSettings);
  3638. }
  3639. finally {
  3640. // Unregister problem matcher
  3641. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  3642. }
  3643. }
  3644. catch (error) {
  3645. core.setFailed(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  3646. }
  3647. });
  3648. }
  3649. function cleanup() {
  3650. var _a, _b;
  3651. return __awaiter(this, void 0, void 0, function* () {
  3652. try {
  3653. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  3654. }
  3655. catch (error) {
  3656. core.warning(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  3657. }
  3658. });
  3659. }
  3660. // Main
  3661. if (!stateHelper.IsPost) {
  3662. run();
  3663. }
  3664. // Post
  3665. else {
  3666. cleanup();
  3667. }
  3668. /***/ }),
  3669. /***/ 211:
  3670. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3671. "use strict";
  3672. Object.defineProperty(exports, '__esModule', { value: true });
  3673. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  3674. var osName = _interopDefault(__webpack_require__(2));
  3675. function getUserAgent() {
  3676. try {
  3677. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  3678. } catch (error) {
  3679. if (/wmic os get Caption/.test(error.message)) {
  3680. return "Windows <version undetectable>";
  3681. }
  3682. return "<environment undetectable>";
  3683. }
  3684. }
  3685. exports.getUserAgent = getUserAgent;
  3686. //# sourceMappingURL=index.js.map
  3687. /***/ }),
  3688. /***/ 213:
  3689. /***/ (function(module) {
  3690. module.exports = require("punycode");
  3691. /***/ }),
  3692. /***/ 215:
  3693. /***/ (function(module) {
  3694. 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"};
  3695. /***/ }),
  3696. /***/ 227:
  3697. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3698. "use strict";
  3699. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3700. if (k2 === undefined) k2 = k;
  3701. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3702. }) : (function(o, m, k, k2) {
  3703. if (k2 === undefined) k2 = k;
  3704. o[k2] = m[k];
  3705. }));
  3706. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3707. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3708. }) : function(o, v) {
  3709. o["default"] = v;
  3710. });
  3711. var __importStar = (this && this.__importStar) || function (mod) {
  3712. if (mod && mod.__esModule) return mod;
  3713. var result = {};
  3714. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3715. __setModuleDefault(result, mod);
  3716. return result;
  3717. };
  3718. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3719. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3720. return new (P || (P = Promise))(function (resolve, reject) {
  3721. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3722. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3723. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3724. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3725. });
  3726. };
  3727. Object.defineProperty(exports, "__esModule", { value: true });
  3728. exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  3729. const url_1 = __webpack_require__(835);
  3730. const core = __importStar(__webpack_require__(470));
  3731. const github = __importStar(__webpack_require__(469));
  3732. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  3733. function getCheckoutInfo(git, ref, commit) {
  3734. return __awaiter(this, void 0, void 0, function* () {
  3735. if (!git) {
  3736. throw new Error('Arg git cannot be empty');
  3737. }
  3738. if (!ref && !commit) {
  3739. throw new Error('Args ref and commit cannot both be empty');
  3740. }
  3741. const result = {};
  3742. const upperRef = (ref || '').toUpperCase();
  3743. // SHA only
  3744. if (!ref) {
  3745. result.ref = commit;
  3746. }
  3747. // refs/heads/
  3748. else if (upperRef.startsWith('REFS/HEADS/')) {
  3749. const branch = ref.substring('refs/heads/'.length);
  3750. result.ref = branch;
  3751. result.startPoint = `refs/remotes/origin/${branch}`;
  3752. }
  3753. // refs/pull/
  3754. else if (upperRef.startsWith('REFS/PULL/')) {
  3755. const branch = ref.substring('refs/pull/'.length);
  3756. result.ref = `refs/remotes/pull/${branch}`;
  3757. }
  3758. // refs/tags/
  3759. else if (upperRef.startsWith('REFS/')) {
  3760. result.ref = ref;
  3761. }
  3762. // Unqualified ref, check for a matching branch or tag
  3763. else {
  3764. if (yield git.branchExists(true, `origin/${ref}`)) {
  3765. result.ref = ref;
  3766. result.startPoint = `refs/remotes/origin/${ref}`;
  3767. }
  3768. else if (yield git.tagExists(`${ref}`)) {
  3769. result.ref = `refs/tags/${ref}`;
  3770. }
  3771. else {
  3772. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  3773. }
  3774. }
  3775. return result;
  3776. });
  3777. }
  3778. exports.getCheckoutInfo = getCheckoutInfo;
  3779. function getRefSpecForAllHistory(ref, commit) {
  3780. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  3781. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  3782. const branch = ref.substring('refs/pull/'.length);
  3783. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  3784. }
  3785. return result;
  3786. }
  3787. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  3788. function getRefSpec(ref, commit) {
  3789. if (!ref && !commit) {
  3790. throw new Error('Args ref and commit cannot both be empty');
  3791. }
  3792. const upperRef = (ref || '').toUpperCase();
  3793. // SHA
  3794. if (commit) {
  3795. // refs/heads
  3796. if (upperRef.startsWith('REFS/HEADS/')) {
  3797. const branch = ref.substring('refs/heads/'.length);
  3798. return [`+${commit}:refs/remotes/origin/${branch}`];
  3799. }
  3800. // refs/pull/
  3801. else if (upperRef.startsWith('REFS/PULL/')) {
  3802. const branch = ref.substring('refs/pull/'.length);
  3803. return [`+${commit}:refs/remotes/pull/${branch}`];
  3804. }
  3805. // refs/tags/
  3806. else if (upperRef.startsWith('REFS/TAGS/')) {
  3807. return [`+${commit}:${ref}`];
  3808. }
  3809. // Otherwise no destination ref
  3810. else {
  3811. return [commit];
  3812. }
  3813. }
  3814. // Unqualified ref, check for a matching branch or tag
  3815. else if (!upperRef.startsWith('REFS/')) {
  3816. return [
  3817. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  3818. `+refs/tags/${ref}*:refs/tags/${ref}*`
  3819. ];
  3820. }
  3821. // refs/heads/
  3822. else if (upperRef.startsWith('REFS/HEADS/')) {
  3823. const branch = ref.substring('refs/heads/'.length);
  3824. return [`+${ref}:refs/remotes/origin/${branch}`];
  3825. }
  3826. // refs/pull/
  3827. else if (upperRef.startsWith('REFS/PULL/')) {
  3828. const branch = ref.substring('refs/pull/'.length);
  3829. return [`+${ref}:refs/remotes/pull/${branch}`];
  3830. }
  3831. // refs/tags/
  3832. else {
  3833. return [`+${ref}:${ref}`];
  3834. }
  3835. }
  3836. exports.getRefSpec = getRefSpec;
  3837. /**
  3838. * Tests whether the initial fetch created the ref at the expected commit
  3839. */
  3840. function testRef(git, ref, commit) {
  3841. return __awaiter(this, void 0, void 0, function* () {
  3842. if (!git) {
  3843. throw new Error('Arg git cannot be empty');
  3844. }
  3845. if (!ref && !commit) {
  3846. throw new Error('Args ref and commit cannot both be empty');
  3847. }
  3848. // No SHA? Nothing to test
  3849. if (!commit) {
  3850. return true;
  3851. }
  3852. // SHA only?
  3853. else if (!ref) {
  3854. return yield git.shaExists(commit);
  3855. }
  3856. const upperRef = ref.toUpperCase();
  3857. // refs/heads/
  3858. if (upperRef.startsWith('REFS/HEADS/')) {
  3859. const branch = ref.substring('refs/heads/'.length);
  3860. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  3861. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  3862. }
  3863. // refs/pull/
  3864. else if (upperRef.startsWith('REFS/PULL/')) {
  3865. // Assume matches because fetched using the commit
  3866. return true;
  3867. }
  3868. // refs/tags/
  3869. else if (upperRef.startsWith('REFS/TAGS/')) {
  3870. const tagName = ref.substring('refs/tags/'.length);
  3871. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  3872. }
  3873. // Unexpected
  3874. else {
  3875. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  3876. return true;
  3877. }
  3878. });
  3879. }
  3880. exports.testRef = testRef;
  3881. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit) {
  3882. var _a, _b;
  3883. return __awaiter(this, void 0, void 0, function* () {
  3884. try {
  3885. // GHES?
  3886. if (isGhes()) {
  3887. return;
  3888. }
  3889. // Auth token?
  3890. if (!token) {
  3891. return;
  3892. }
  3893. // Public PR synchronize, for workflow repo?
  3894. if (fromPayload('repository.private') !== false ||
  3895. github.context.eventName !== 'pull_request' ||
  3896. fromPayload('action') !== 'synchronize' ||
  3897. repositoryOwner !== github.context.repo.owner ||
  3898. repositoryName !== github.context.repo.repo ||
  3899. ref !== github.context.ref ||
  3900. !ref.startsWith('refs/pull/') ||
  3901. commit !== github.context.sha) {
  3902. return;
  3903. }
  3904. // Head SHA
  3905. const expectedHeadSha = fromPayload('after');
  3906. if (!expectedHeadSha) {
  3907. core.debug('Unable to determine head sha');
  3908. return;
  3909. }
  3910. // Base SHA
  3911. const expectedBaseSha = fromPayload('pull_request.base.sha');
  3912. if (!expectedBaseSha) {
  3913. core.debug('Unable to determine base sha');
  3914. return;
  3915. }
  3916. // Expected message?
  3917. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  3918. if (commitInfo.indexOf(expectedMessage) >= 0) {
  3919. return;
  3920. }
  3921. // Extract details from message
  3922. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  3923. if (!match) {
  3924. core.debug('Unexpected message format');
  3925. return;
  3926. }
  3927. // Post telemetry
  3928. const actualHeadSha = match[1];
  3929. if (actualHeadSha !== expectedHeadSha) {
  3930. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  3931. const octokit = new github.GitHub(token, {
  3932. 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})`
  3933. });
  3934. yield octokit.repos.get({ owner: repositoryOwner, repo: repositoryName });
  3935. }
  3936. }
  3937. catch (err) {
  3938. core.debug(`Error when validating commit info: ${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : err}`);
  3939. }
  3940. });
  3941. }
  3942. exports.checkCommitInfo = checkCommitInfo;
  3943. function fromPayload(path) {
  3944. return select(github.context.payload, path);
  3945. }
  3946. function select(obj, path) {
  3947. if (!obj) {
  3948. return undefined;
  3949. }
  3950. const i = path.indexOf('.');
  3951. if (i < 0) {
  3952. return obj[path];
  3953. }
  3954. const key = path.substr(0, i);
  3955. return select(obj[key], path.substr(i + 1));
  3956. }
  3957. function isGhes() {
  3958. const ghUrl = new url_1.URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
  3959. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  3960. }
  3961. /***/ }),
  3962. /***/ 256:
  3963. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3964. "use strict";
  3965. const usm = __webpack_require__(936);
  3966. exports.implementation = class URLImpl {
  3967. constructor(constructorArgs) {
  3968. const url = constructorArgs[0];
  3969. const base = constructorArgs[1];
  3970. let parsedBase = null;
  3971. if (base !== undefined) {
  3972. parsedBase = usm.basicURLParse(base);
  3973. if (parsedBase === "failure") {
  3974. throw new TypeError("Invalid base URL");
  3975. }
  3976. }
  3977. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  3978. if (parsedURL === "failure") {
  3979. throw new TypeError("Invalid URL");
  3980. }
  3981. this._url = parsedURL;
  3982. // TODO: query stuff
  3983. }
  3984. get href() {
  3985. return usm.serializeURL(this._url);
  3986. }
  3987. set href(v) {
  3988. const parsedURL = usm.basicURLParse(v);
  3989. if (parsedURL === "failure") {
  3990. throw new TypeError("Invalid URL");
  3991. }
  3992. this._url = parsedURL;
  3993. }
  3994. get origin() {
  3995. return usm.serializeURLOrigin(this._url);
  3996. }
  3997. get protocol() {
  3998. return this._url.scheme + ":";
  3999. }
  4000. set protocol(v) {
  4001. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  4002. }
  4003. get username() {
  4004. return this._url.username;
  4005. }
  4006. set username(v) {
  4007. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4008. return;
  4009. }
  4010. usm.setTheUsername(this._url, v);
  4011. }
  4012. get password() {
  4013. return this._url.password;
  4014. }
  4015. set password(v) {
  4016. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4017. return;
  4018. }
  4019. usm.setThePassword(this._url, v);
  4020. }
  4021. get host() {
  4022. const url = this._url;
  4023. if (url.host === null) {
  4024. return "";
  4025. }
  4026. if (url.port === null) {
  4027. return usm.serializeHost(url.host);
  4028. }
  4029. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  4030. }
  4031. set host(v) {
  4032. if (this._url.cannotBeABaseURL) {
  4033. return;
  4034. }
  4035. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  4036. }
  4037. get hostname() {
  4038. if (this._url.host === null) {
  4039. return "";
  4040. }
  4041. return usm.serializeHost(this._url.host);
  4042. }
  4043. set hostname(v) {
  4044. if (this._url.cannotBeABaseURL) {
  4045. return;
  4046. }
  4047. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  4048. }
  4049. get port() {
  4050. if (this._url.port === null) {
  4051. return "";
  4052. }
  4053. return usm.serializeInteger(this._url.port);
  4054. }
  4055. set port(v) {
  4056. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4057. return;
  4058. }
  4059. if (v === "") {
  4060. this._url.port = null;
  4061. } else {
  4062. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  4063. }
  4064. }
  4065. get pathname() {
  4066. if (this._url.cannotBeABaseURL) {
  4067. return this._url.path[0];
  4068. }
  4069. if (this._url.path.length === 0) {
  4070. return "";
  4071. }
  4072. return "/" + this._url.path.join("/");
  4073. }
  4074. set pathname(v) {
  4075. if (this._url.cannotBeABaseURL) {
  4076. return;
  4077. }
  4078. this._url.path = [];
  4079. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  4080. }
  4081. get search() {
  4082. if (this._url.query === null || this._url.query === "") {
  4083. return "";
  4084. }
  4085. return "?" + this._url.query;
  4086. }
  4087. set search(v) {
  4088. // TODO: query stuff
  4089. const url = this._url;
  4090. if (v === "") {
  4091. url.query = null;
  4092. return;
  4093. }
  4094. const input = v[0] === "?" ? v.substring(1) : v;
  4095. url.query = "";
  4096. usm.basicURLParse(input, { url, stateOverride: "query" });
  4097. }
  4098. get hash() {
  4099. if (this._url.fragment === null || this._url.fragment === "") {
  4100. return "";
  4101. }
  4102. return "#" + this._url.fragment;
  4103. }
  4104. set hash(v) {
  4105. if (v === "") {
  4106. this._url.fragment = null;
  4107. return;
  4108. }
  4109. const input = v[0] === "#" ? v.substring(1) : v;
  4110. this._url.fragment = "";
  4111. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  4112. }
  4113. toJSON() {
  4114. return this.href;
  4115. }
  4116. };
  4117. /***/ }),
  4118. /***/ 260:
  4119. /***/ (function(module, __unusedexports, __webpack_require__) {
  4120. // Note: since nyc uses this module to output coverage, any lines
  4121. // that are in the direct sync flow of nyc's outputCoverage are
  4122. // ignored, since we can never get coverage for them.
  4123. var assert = __webpack_require__(357)
  4124. var signals = __webpack_require__(654)
  4125. var EE = __webpack_require__(614)
  4126. /* istanbul ignore if */
  4127. if (typeof EE !== 'function') {
  4128. EE = EE.EventEmitter
  4129. }
  4130. var emitter
  4131. if (process.__signal_exit_emitter__) {
  4132. emitter = process.__signal_exit_emitter__
  4133. } else {
  4134. emitter = process.__signal_exit_emitter__ = new EE()
  4135. emitter.count = 0
  4136. emitter.emitted = {}
  4137. }
  4138. // Because this emitter is a global, we have to check to see if a
  4139. // previous version of this library failed to enable infinite listeners.
  4140. // I know what you're about to say. But literally everything about
  4141. // signal-exit is a compromise with evil. Get used to it.
  4142. if (!emitter.infinite) {
  4143. emitter.setMaxListeners(Infinity)
  4144. emitter.infinite = true
  4145. }
  4146. module.exports = function (cb, opts) {
  4147. assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
  4148. if (loaded === false) {
  4149. load()
  4150. }
  4151. var ev = 'exit'
  4152. if (opts && opts.alwaysLast) {
  4153. ev = 'afterexit'
  4154. }
  4155. var remove = function () {
  4156. emitter.removeListener(ev, cb)
  4157. if (emitter.listeners('exit').length === 0 &&
  4158. emitter.listeners('afterexit').length === 0) {
  4159. unload()
  4160. }
  4161. }
  4162. emitter.on(ev, cb)
  4163. return remove
  4164. }
  4165. module.exports.unload = unload
  4166. function unload () {
  4167. if (!loaded) {
  4168. return
  4169. }
  4170. loaded = false
  4171. signals.forEach(function (sig) {
  4172. try {
  4173. process.removeListener(sig, sigListeners[sig])
  4174. } catch (er) {}
  4175. })
  4176. process.emit = originalProcessEmit
  4177. process.reallyExit = originalProcessReallyExit
  4178. emitter.count -= 1
  4179. }
  4180. function emit (event, code, signal) {
  4181. if (emitter.emitted[event]) {
  4182. return
  4183. }
  4184. emitter.emitted[event] = true
  4185. emitter.emit(event, code, signal)
  4186. }
  4187. // { <signal>: <listener fn>, ... }
  4188. var sigListeners = {}
  4189. signals.forEach(function (sig) {
  4190. sigListeners[sig] = function listener () {
  4191. // If there are no other listeners, an exit is coming!
  4192. // Simplest way: remove us and then re-send the signal.
  4193. // We know that this will kill the process, so we can
  4194. // safely emit now.
  4195. var listeners = process.listeners(sig)
  4196. if (listeners.length === emitter.count) {
  4197. unload()
  4198. emit('exit', null, sig)
  4199. /* istanbul ignore next */
  4200. emit('afterexit', null, sig)
  4201. /* istanbul ignore next */
  4202. process.kill(process.pid, sig)
  4203. }
  4204. }
  4205. })
  4206. module.exports.signals = function () {
  4207. return signals
  4208. }
  4209. module.exports.load = load
  4210. var loaded = false
  4211. function load () {
  4212. if (loaded) {
  4213. return
  4214. }
  4215. loaded = true
  4216. // This is the number of onSignalExit's that are in play.
  4217. // It's important so that we can count the correct number of
  4218. // listeners on signals, and don't wait for the other one to
  4219. // handle it instead of us.
  4220. emitter.count += 1
  4221. signals = signals.filter(function (sig) {
  4222. try {
  4223. process.on(sig, sigListeners[sig])
  4224. return true
  4225. } catch (er) {
  4226. return false
  4227. }
  4228. })
  4229. process.emit = processEmit
  4230. process.reallyExit = processReallyExit
  4231. }
  4232. var originalProcessReallyExit = process.reallyExit
  4233. function processReallyExit (code) {
  4234. process.exitCode = code || 0
  4235. emit('exit', process.exitCode, null)
  4236. /* istanbul ignore next */
  4237. emit('afterexit', process.exitCode, null)
  4238. /* istanbul ignore next */
  4239. originalProcessReallyExit.call(process, process.exitCode)
  4240. }
  4241. var originalProcessEmit = process.emit
  4242. function processEmit (ev, arg) {
  4243. if (ev === 'exit') {
  4244. if (arg !== undefined) {
  4245. process.exitCode = arg
  4246. }
  4247. var ret = originalProcessEmit.apply(this, arguments)
  4248. emit('exit', process.exitCode, null)
  4249. /* istanbul ignore next */
  4250. emit('afterexit', process.exitCode, null)
  4251. return ret
  4252. } else {
  4253. return originalProcessEmit.apply(this, arguments)
  4254. }
  4255. }
  4256. /***/ }),
  4257. /***/ 262:
  4258. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4259. "use strict";
  4260. Object.defineProperty(exports, "__esModule", { value: true });
  4261. const fs_1 = __webpack_require__(747);
  4262. const os_1 = __webpack_require__(87);
  4263. class Context {
  4264. /**
  4265. * Hydrate the context from the environment
  4266. */
  4267. constructor() {
  4268. this.payload = {};
  4269. if (process.env.GITHUB_EVENT_PATH) {
  4270. if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {
  4271. this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  4272. }
  4273. else {
  4274. const path = process.env.GITHUB_EVENT_PATH;
  4275. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  4276. }
  4277. }
  4278. this.eventName = process.env.GITHUB_EVENT_NAME;
  4279. this.sha = process.env.GITHUB_SHA;
  4280. this.ref = process.env.GITHUB_REF;
  4281. this.workflow = process.env.GITHUB_WORKFLOW;
  4282. this.action = process.env.GITHUB_ACTION;
  4283. this.actor = process.env.GITHUB_ACTOR;
  4284. }
  4285. get issue() {
  4286. const payload = this.payload;
  4287. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  4288. }
  4289. get repo() {
  4290. if (process.env.GITHUB_REPOSITORY) {
  4291. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  4292. return { owner, repo };
  4293. }
  4294. if (this.payload.repository) {
  4295. return {
  4296. owner: this.payload.repository.owner.login,
  4297. repo: this.payload.repository.name
  4298. };
  4299. }
  4300. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  4301. }
  4302. }
  4303. exports.Context = Context;
  4304. //# sourceMappingURL=context.js.map
  4305. /***/ }),
  4306. /***/ 265:
  4307. /***/ (function(module, __unusedexports, __webpack_require__) {
  4308. module.exports = getPage
  4309. const deprecate = __webpack_require__(370)
  4310. const getPageLinks = __webpack_require__(577)
  4311. const HttpError = __webpack_require__(297)
  4312. function getPage (octokit, link, which, headers) {
  4313. 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.`)
  4314. const url = getPageLinks(link)[which]
  4315. if (!url) {
  4316. const urlError = new HttpError(`No ${which} page found`, 404)
  4317. return Promise.reject(urlError)
  4318. }
  4319. const requestOptions = {
  4320. url,
  4321. headers: applyAcceptHeader(link, headers)
  4322. }
  4323. const promise = octokit.request(requestOptions)
  4324. return promise
  4325. }
  4326. function applyAcceptHeader (res, headers) {
  4327. const previous = res.headers && res.headers['x-github-media-type']
  4328. if (!previous || (headers && headers.accept)) {
  4329. return headers
  4330. }
  4331. headers = headers || {}
  4332. headers.accept = 'application/vnd.' + previous
  4333. .replace('; param=', '.')
  4334. .replace('; format=', '+')
  4335. return headers
  4336. }
  4337. /***/ }),
  4338. /***/ 277:
  4339. /***/ (function(module, __unusedexports, __webpack_require__) {
  4340. "use strict";
  4341. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  4342. var hasSymbolSham = __webpack_require__(923);
  4343. module.exports = function hasNativeSymbols() {
  4344. if (typeof origSymbol !== 'function') { return false; }
  4345. if (typeof Symbol !== 'function') { return false; }
  4346. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  4347. if (typeof Symbol('bar') !== 'symbol') { return false; }
  4348. return hasSymbolSham();
  4349. };
  4350. /***/ }),
  4351. /***/ 280:
  4352. /***/ (function(module, exports) {
  4353. exports = module.exports = SemVer
  4354. var debug
  4355. /* istanbul ignore next */
  4356. if (typeof process === 'object' &&
  4357. process.env &&
  4358. process.env.NODE_DEBUG &&
  4359. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  4360. debug = function () {
  4361. var args = Array.prototype.slice.call(arguments, 0)
  4362. args.unshift('SEMVER')
  4363. console.log.apply(console, args)
  4364. }
  4365. } else {
  4366. debug = function () {}
  4367. }
  4368. // Note: this is the semver.org version of the spec that it implements
  4369. // Not necessarily the package version of this code.
  4370. exports.SEMVER_SPEC_VERSION = '2.0.0'
  4371. var MAX_LENGTH = 256
  4372. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  4373. /* istanbul ignore next */ 9007199254740991
  4374. // Max safe segment length for coercion.
  4375. var MAX_SAFE_COMPONENT_LENGTH = 16
  4376. // The actual regexps go on exports.re
  4377. var re = exports.re = []
  4378. var src = exports.src = []
  4379. var R = 0
  4380. // The following Regular Expressions can be used for tokenizing,
  4381. // validating, and parsing SemVer version strings.
  4382. // ## Numeric Identifier
  4383. // A single `0`, or a non-zero digit followed by zero or more digits.
  4384. var NUMERICIDENTIFIER = R++
  4385. src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  4386. var NUMERICIDENTIFIERLOOSE = R++
  4387. src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  4388. // ## Non-numeric Identifier
  4389. // Zero or more digits, followed by a letter or hyphen, and then zero or
  4390. // more letters, digits, or hyphens.
  4391. var NONNUMERICIDENTIFIER = R++
  4392. src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  4393. // ## Main Version
  4394. // Three dot-separated numeric identifiers.
  4395. var MAINVERSION = R++
  4396. src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4397. '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4398. '(' + src[NUMERICIDENTIFIER] + ')'
  4399. var MAINVERSIONLOOSE = R++
  4400. src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4401. '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4402. '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
  4403. // ## Pre-release Version Identifier
  4404. // A numeric identifier, or a non-numeric identifier.
  4405. var PRERELEASEIDENTIFIER = R++
  4406. src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
  4407. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4408. var PRERELEASEIDENTIFIERLOOSE = R++
  4409. src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
  4410. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4411. // ## Pre-release Version
  4412. // Hyphen, followed by one or more dot-separated pre-release version
  4413. // identifiers.
  4414. var PRERELEASE = R++
  4415. src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
  4416. '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
  4417. var PRERELEASELOOSE = R++
  4418. src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
  4419. '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
  4420. // ## Build Metadata Identifier
  4421. // Any combination of digits, letters, or hyphens.
  4422. var BUILDIDENTIFIER = R++
  4423. src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  4424. // ## Build Metadata
  4425. // Plus sign, followed by one or more period-separated build metadata
  4426. // identifiers.
  4427. var BUILD = R++
  4428. src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
  4429. '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
  4430. // ## Full Version String
  4431. // A main version, followed optionally by a pre-release version and
  4432. // build metadata.
  4433. // Note that the only major, minor, patch, and pre-release sections of
  4434. // the version string are capturing groups. The build metadata is not a
  4435. // capturing group, because it should not ever be used in version
  4436. // comparison.
  4437. var FULL = R++
  4438. var FULLPLAIN = 'v?' + src[MAINVERSION] +
  4439. src[PRERELEASE] + '?' +
  4440. src[BUILD] + '?'
  4441. src[FULL] = '^' + FULLPLAIN + '$'
  4442. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  4443. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  4444. // common in the npm registry.
  4445. var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
  4446. src[PRERELEASELOOSE] + '?' +
  4447. src[BUILD] + '?'
  4448. var LOOSE = R++
  4449. src[LOOSE] = '^' + LOOSEPLAIN + '$'
  4450. var GTLT = R++
  4451. src[GTLT] = '((?:<|>)?=?)'
  4452. // Something like "2.*" or "1.2.x".
  4453. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  4454. // Only the first item is strictly required.
  4455. var XRANGEIDENTIFIERLOOSE = R++
  4456. src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  4457. var XRANGEIDENTIFIER = R++
  4458. src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
  4459. var XRANGEPLAIN = R++
  4460. src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
  4461. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4462. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4463. '(?:' + src[PRERELEASE] + ')?' +
  4464. src[BUILD] + '?' +
  4465. ')?)?'
  4466. var XRANGEPLAINLOOSE = R++
  4467. src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4468. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4469. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4470. '(?:' + src[PRERELEASELOOSE] + ')?' +
  4471. src[BUILD] + '?' +
  4472. ')?)?'
  4473. var XRANGE = R++
  4474. src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
  4475. var XRANGELOOSE = R++
  4476. src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
  4477. // Coercion.
  4478. // Extract anything that could conceivably be a part of a valid semver
  4479. var COERCE = R++
  4480. src[COERCE] = '(?:^|[^\\d])' +
  4481. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  4482. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4483. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4484. '(?:$|[^\\d])'
  4485. // Tilde ranges.
  4486. // Meaning is "reasonably at or greater than"
  4487. var LONETILDE = R++
  4488. src[LONETILDE] = '(?:~>?)'
  4489. var TILDETRIM = R++
  4490. src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
  4491. re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
  4492. var tildeTrimReplace = '$1~'
  4493. var TILDE = R++
  4494. src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
  4495. var TILDELOOSE = R++
  4496. src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
  4497. // Caret ranges.
  4498. // Meaning is "at least and backwards compatible with"
  4499. var LONECARET = R++
  4500. src[LONECARET] = '(?:\\^)'
  4501. var CARETTRIM = R++
  4502. src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
  4503. re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
  4504. var caretTrimReplace = '$1^'
  4505. var CARET = R++
  4506. src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
  4507. var CARETLOOSE = R++
  4508. src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
  4509. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  4510. var COMPARATORLOOSE = R++
  4511. src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
  4512. var COMPARATOR = R++
  4513. src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
  4514. // An expression to strip any whitespace between the gtlt and the thing
  4515. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  4516. var COMPARATORTRIM = R++
  4517. src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
  4518. '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
  4519. // this one has to use the /g flag
  4520. re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
  4521. var comparatorTrimReplace = '$1$2$3'
  4522. // Something like `1.2.3 - 1.2.4`
  4523. // Note that these all use the loose form, because they'll be
  4524. // checked against either the strict or loose comparator form
  4525. // later.
  4526. var HYPHENRANGE = R++
  4527. src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
  4528. '\\s+-\\s+' +
  4529. '(' + src[XRANGEPLAIN] + ')' +
  4530. '\\s*$'
  4531. var HYPHENRANGELOOSE = R++
  4532. src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
  4533. '\\s+-\\s+' +
  4534. '(' + src[XRANGEPLAINLOOSE] + ')' +
  4535. '\\s*$'
  4536. // Star ranges basically just allow anything at all.
  4537. var STAR = R++
  4538. src[STAR] = '(<|>)?=?\\s*\\*'
  4539. // Compile to actual regexp objects.
  4540. // All are flag-free, unless they were created above with a flag.
  4541. for (var i = 0; i < R; i++) {
  4542. debug(i, src[i])
  4543. if (!re[i]) {
  4544. re[i] = new RegExp(src[i])
  4545. }
  4546. }
  4547. exports.parse = parse
  4548. function parse (version, options) {
  4549. if (!options || typeof options !== 'object') {
  4550. options = {
  4551. loose: !!options,
  4552. includePrerelease: false
  4553. }
  4554. }
  4555. if (version instanceof SemVer) {
  4556. return version
  4557. }
  4558. if (typeof version !== 'string') {
  4559. return null
  4560. }
  4561. if (version.length > MAX_LENGTH) {
  4562. return null
  4563. }
  4564. var r = options.loose ? re[LOOSE] : re[FULL]
  4565. if (!r.test(version)) {
  4566. return null
  4567. }
  4568. try {
  4569. return new SemVer(version, options)
  4570. } catch (er) {
  4571. return null
  4572. }
  4573. }
  4574. exports.valid = valid
  4575. function valid (version, options) {
  4576. var v = parse(version, options)
  4577. return v ? v.version : null
  4578. }
  4579. exports.clean = clean
  4580. function clean (version, options) {
  4581. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  4582. return s ? s.version : null
  4583. }
  4584. exports.SemVer = SemVer
  4585. function SemVer (version, options) {
  4586. if (!options || typeof options !== 'object') {
  4587. options = {
  4588. loose: !!options,
  4589. includePrerelease: false
  4590. }
  4591. }
  4592. if (version instanceof SemVer) {
  4593. if (version.loose === options.loose) {
  4594. return version
  4595. } else {
  4596. version = version.version
  4597. }
  4598. } else if (typeof version !== 'string') {
  4599. throw new TypeError('Invalid Version: ' + version)
  4600. }
  4601. if (version.length > MAX_LENGTH) {
  4602. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  4603. }
  4604. if (!(this instanceof SemVer)) {
  4605. return new SemVer(version, options)
  4606. }
  4607. debug('SemVer', version, options)
  4608. this.options = options
  4609. this.loose = !!options.loose
  4610. var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
  4611. if (!m) {
  4612. throw new TypeError('Invalid Version: ' + version)
  4613. }
  4614. this.raw = version
  4615. // these are actually numbers
  4616. this.major = +m[1]
  4617. this.minor = +m[2]
  4618. this.patch = +m[3]
  4619. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  4620. throw new TypeError('Invalid major version')
  4621. }
  4622. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  4623. throw new TypeError('Invalid minor version')
  4624. }
  4625. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  4626. throw new TypeError('Invalid patch version')
  4627. }
  4628. // numberify any prerelease numeric ids
  4629. if (!m[4]) {
  4630. this.prerelease = []
  4631. } else {
  4632. this.prerelease = m[4].split('.').map(function (id) {
  4633. if (/^[0-9]+$/.test(id)) {
  4634. var num = +id
  4635. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  4636. return num
  4637. }
  4638. }
  4639. return id
  4640. })
  4641. }
  4642. this.build = m[5] ? m[5].split('.') : []
  4643. this.format()
  4644. }
  4645. SemVer.prototype.format = function () {
  4646. this.version = this.major + '.' + this.minor + '.' + this.patch
  4647. if (this.prerelease.length) {
  4648. this.version += '-' + this.prerelease.join('.')
  4649. }
  4650. return this.version
  4651. }
  4652. SemVer.prototype.toString = function () {
  4653. return this.version
  4654. }
  4655. SemVer.prototype.compare = function (other) {
  4656. debug('SemVer.compare', this.version, this.options, other)
  4657. if (!(other instanceof SemVer)) {
  4658. other = new SemVer(other, this.options)
  4659. }
  4660. return this.compareMain(other) || this.comparePre(other)
  4661. }
  4662. SemVer.prototype.compareMain = function (other) {
  4663. if (!(other instanceof SemVer)) {
  4664. other = new SemVer(other, this.options)
  4665. }
  4666. return compareIdentifiers(this.major, other.major) ||
  4667. compareIdentifiers(this.minor, other.minor) ||
  4668. compareIdentifiers(this.patch, other.patch)
  4669. }
  4670. SemVer.prototype.comparePre = function (other) {
  4671. if (!(other instanceof SemVer)) {
  4672. other = new SemVer(other, this.options)
  4673. }
  4674. // NOT having a prerelease is > having one
  4675. if (this.prerelease.length && !other.prerelease.length) {
  4676. return -1
  4677. } else if (!this.prerelease.length && other.prerelease.length) {
  4678. return 1
  4679. } else if (!this.prerelease.length && !other.prerelease.length) {
  4680. return 0
  4681. }
  4682. var i = 0
  4683. do {
  4684. var a = this.prerelease[i]
  4685. var b = other.prerelease[i]
  4686. debug('prerelease compare', i, a, b)
  4687. if (a === undefined && b === undefined) {
  4688. return 0
  4689. } else if (b === undefined) {
  4690. return 1
  4691. } else if (a === undefined) {
  4692. return -1
  4693. } else if (a === b) {
  4694. continue
  4695. } else {
  4696. return compareIdentifiers(a, b)
  4697. }
  4698. } while (++i)
  4699. }
  4700. // preminor will bump the version up to the next minor release, and immediately
  4701. // down to pre-release. premajor and prepatch work the same way.
  4702. SemVer.prototype.inc = function (release, identifier) {
  4703. switch (release) {
  4704. case 'premajor':
  4705. this.prerelease.length = 0
  4706. this.patch = 0
  4707. this.minor = 0
  4708. this.major++
  4709. this.inc('pre', identifier)
  4710. break
  4711. case 'preminor':
  4712. this.prerelease.length = 0
  4713. this.patch = 0
  4714. this.minor++
  4715. this.inc('pre', identifier)
  4716. break
  4717. case 'prepatch':
  4718. // If this is already a prerelease, it will bump to the next version
  4719. // drop any prereleases that might already exist, since they are not
  4720. // relevant at this point.
  4721. this.prerelease.length = 0
  4722. this.inc('patch', identifier)
  4723. this.inc('pre', identifier)
  4724. break
  4725. // If the input is a non-prerelease version, this acts the same as
  4726. // prepatch.
  4727. case 'prerelease':
  4728. if (this.prerelease.length === 0) {
  4729. this.inc('patch', identifier)
  4730. }
  4731. this.inc('pre', identifier)
  4732. break
  4733. case 'major':
  4734. // If this is a pre-major version, bump up to the same major version.
  4735. // Otherwise increment major.
  4736. // 1.0.0-5 bumps to 1.0.0
  4737. // 1.1.0 bumps to 2.0.0
  4738. if (this.minor !== 0 ||
  4739. this.patch !== 0 ||
  4740. this.prerelease.length === 0) {
  4741. this.major++
  4742. }
  4743. this.minor = 0
  4744. this.patch = 0
  4745. this.prerelease = []
  4746. break
  4747. case 'minor':
  4748. // If this is a pre-minor version, bump up to the same minor version.
  4749. // Otherwise increment minor.
  4750. // 1.2.0-5 bumps to 1.2.0
  4751. // 1.2.1 bumps to 1.3.0
  4752. if (this.patch !== 0 || this.prerelease.length === 0) {
  4753. this.minor++
  4754. }
  4755. this.patch = 0
  4756. this.prerelease = []
  4757. break
  4758. case 'patch':
  4759. // If this is not a pre-release version, it will increment the patch.
  4760. // If it is a pre-release it will bump up to the same patch version.
  4761. // 1.2.0-5 patches to 1.2.0
  4762. // 1.2.0 patches to 1.2.1
  4763. if (this.prerelease.length === 0) {
  4764. this.patch++
  4765. }
  4766. this.prerelease = []
  4767. break
  4768. // This probably shouldn't be used publicly.
  4769. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  4770. case 'pre':
  4771. if (this.prerelease.length === 0) {
  4772. this.prerelease = [0]
  4773. } else {
  4774. var i = this.prerelease.length
  4775. while (--i >= 0) {
  4776. if (typeof this.prerelease[i] === 'number') {
  4777. this.prerelease[i]++
  4778. i = -2
  4779. }
  4780. }
  4781. if (i === -1) {
  4782. // didn't increment anything
  4783. this.prerelease.push(0)
  4784. }
  4785. }
  4786. if (identifier) {
  4787. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  4788. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  4789. if (this.prerelease[0] === identifier) {
  4790. if (isNaN(this.prerelease[1])) {
  4791. this.prerelease = [identifier, 0]
  4792. }
  4793. } else {
  4794. this.prerelease = [identifier, 0]
  4795. }
  4796. }
  4797. break
  4798. default:
  4799. throw new Error('invalid increment argument: ' + release)
  4800. }
  4801. this.format()
  4802. this.raw = this.version
  4803. return this
  4804. }
  4805. exports.inc = inc
  4806. function inc (version, release, loose, identifier) {
  4807. if (typeof (loose) === 'string') {
  4808. identifier = loose
  4809. loose = undefined
  4810. }
  4811. try {
  4812. return new SemVer(version, loose).inc(release, identifier).version
  4813. } catch (er) {
  4814. return null
  4815. }
  4816. }
  4817. exports.diff = diff
  4818. function diff (version1, version2) {
  4819. if (eq(version1, version2)) {
  4820. return null
  4821. } else {
  4822. var v1 = parse(version1)
  4823. var v2 = parse(version2)
  4824. var prefix = ''
  4825. if (v1.prerelease.length || v2.prerelease.length) {
  4826. prefix = 'pre'
  4827. var defaultResult = 'prerelease'
  4828. }
  4829. for (var key in v1) {
  4830. if (key === 'major' || key === 'minor' || key === 'patch') {
  4831. if (v1[key] !== v2[key]) {
  4832. return prefix + key
  4833. }
  4834. }
  4835. }
  4836. return defaultResult // may be undefined
  4837. }
  4838. }
  4839. exports.compareIdentifiers = compareIdentifiers
  4840. var numeric = /^[0-9]+$/
  4841. function compareIdentifiers (a, b) {
  4842. var anum = numeric.test(a)
  4843. var bnum = numeric.test(b)
  4844. if (anum && bnum) {
  4845. a = +a
  4846. b = +b
  4847. }
  4848. return a === b ? 0
  4849. : (anum && !bnum) ? -1
  4850. : (bnum && !anum) ? 1
  4851. : a < b ? -1
  4852. : 1
  4853. }
  4854. exports.rcompareIdentifiers = rcompareIdentifiers
  4855. function rcompareIdentifiers (a, b) {
  4856. return compareIdentifiers(b, a)
  4857. }
  4858. exports.major = major
  4859. function major (a, loose) {
  4860. return new SemVer(a, loose).major
  4861. }
  4862. exports.minor = minor
  4863. function minor (a, loose) {
  4864. return new SemVer(a, loose).minor
  4865. }
  4866. exports.patch = patch
  4867. function patch (a, loose) {
  4868. return new SemVer(a, loose).patch
  4869. }
  4870. exports.compare = compare
  4871. function compare (a, b, loose) {
  4872. return new SemVer(a, loose).compare(new SemVer(b, loose))
  4873. }
  4874. exports.compareLoose = compareLoose
  4875. function compareLoose (a, b) {
  4876. return compare(a, b, true)
  4877. }
  4878. exports.rcompare = rcompare
  4879. function rcompare (a, b, loose) {
  4880. return compare(b, a, loose)
  4881. }
  4882. exports.sort = sort
  4883. function sort (list, loose) {
  4884. return list.sort(function (a, b) {
  4885. return exports.compare(a, b, loose)
  4886. })
  4887. }
  4888. exports.rsort = rsort
  4889. function rsort (list, loose) {
  4890. return list.sort(function (a, b) {
  4891. return exports.rcompare(a, b, loose)
  4892. })
  4893. }
  4894. exports.gt = gt
  4895. function gt (a, b, loose) {
  4896. return compare(a, b, loose) > 0
  4897. }
  4898. exports.lt = lt
  4899. function lt (a, b, loose) {
  4900. return compare(a, b, loose) < 0
  4901. }
  4902. exports.eq = eq
  4903. function eq (a, b, loose) {
  4904. return compare(a, b, loose) === 0
  4905. }
  4906. exports.neq = neq
  4907. function neq (a, b, loose) {
  4908. return compare(a, b, loose) !== 0
  4909. }
  4910. exports.gte = gte
  4911. function gte (a, b, loose) {
  4912. return compare(a, b, loose) >= 0
  4913. }
  4914. exports.lte = lte
  4915. function lte (a, b, loose) {
  4916. return compare(a, b, loose) <= 0
  4917. }
  4918. exports.cmp = cmp
  4919. function cmp (a, op, b, loose) {
  4920. switch (op) {
  4921. case '===':
  4922. if (typeof a === 'object')
  4923. a = a.version
  4924. if (typeof b === 'object')
  4925. b = b.version
  4926. return a === b
  4927. case '!==':
  4928. if (typeof a === 'object')
  4929. a = a.version
  4930. if (typeof b === 'object')
  4931. b = b.version
  4932. return a !== b
  4933. case '':
  4934. case '=':
  4935. case '==':
  4936. return eq(a, b, loose)
  4937. case '!=':
  4938. return neq(a, b, loose)
  4939. case '>':
  4940. return gt(a, b, loose)
  4941. case '>=':
  4942. return gte(a, b, loose)
  4943. case '<':
  4944. return lt(a, b, loose)
  4945. case '<=':
  4946. return lte(a, b, loose)
  4947. default:
  4948. throw new TypeError('Invalid operator: ' + op)
  4949. }
  4950. }
  4951. exports.Comparator = Comparator
  4952. function Comparator (comp, options) {
  4953. if (!options || typeof options !== 'object') {
  4954. options = {
  4955. loose: !!options,
  4956. includePrerelease: false
  4957. }
  4958. }
  4959. if (comp instanceof Comparator) {
  4960. if (comp.loose === !!options.loose) {
  4961. return comp
  4962. } else {
  4963. comp = comp.value
  4964. }
  4965. }
  4966. if (!(this instanceof Comparator)) {
  4967. return new Comparator(comp, options)
  4968. }
  4969. debug('comparator', comp, options)
  4970. this.options = options
  4971. this.loose = !!options.loose
  4972. this.parse(comp)
  4973. if (this.semver === ANY) {
  4974. this.value = ''
  4975. } else {
  4976. this.value = this.operator + this.semver.version
  4977. }
  4978. debug('comp', this)
  4979. }
  4980. var ANY = {}
  4981. Comparator.prototype.parse = function (comp) {
  4982. var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  4983. var m = comp.match(r)
  4984. if (!m) {
  4985. throw new TypeError('Invalid comparator: ' + comp)
  4986. }
  4987. this.operator = m[1]
  4988. if (this.operator === '=') {
  4989. this.operator = ''
  4990. }
  4991. // if it literally is just '>' or '' then allow anything.
  4992. if (!m[2]) {
  4993. this.semver = ANY
  4994. } else {
  4995. this.semver = new SemVer(m[2], this.options.loose)
  4996. }
  4997. }
  4998. Comparator.prototype.toString = function () {
  4999. return this.value
  5000. }
  5001. Comparator.prototype.test = function (version) {
  5002. debug('Comparator.test', version, this.options.loose)
  5003. if (this.semver === ANY) {
  5004. return true
  5005. }
  5006. if (typeof version === 'string') {
  5007. version = new SemVer(version, this.options)
  5008. }
  5009. return cmp(version, this.operator, this.semver, this.options)
  5010. }
  5011. Comparator.prototype.intersects = function (comp, options) {
  5012. if (!(comp instanceof Comparator)) {
  5013. throw new TypeError('a Comparator is required')
  5014. }
  5015. if (!options || typeof options !== 'object') {
  5016. options = {
  5017. loose: !!options,
  5018. includePrerelease: false
  5019. }
  5020. }
  5021. var rangeTmp
  5022. if (this.operator === '') {
  5023. rangeTmp = new Range(comp.value, options)
  5024. return satisfies(this.value, rangeTmp, options)
  5025. } else if (comp.operator === '') {
  5026. rangeTmp = new Range(this.value, options)
  5027. return satisfies(comp.semver, rangeTmp, options)
  5028. }
  5029. var sameDirectionIncreasing =
  5030. (this.operator === '>=' || this.operator === '>') &&
  5031. (comp.operator === '>=' || comp.operator === '>')
  5032. var sameDirectionDecreasing =
  5033. (this.operator === '<=' || this.operator === '<') &&
  5034. (comp.operator === '<=' || comp.operator === '<')
  5035. var sameSemVer = this.semver.version === comp.semver.version
  5036. var differentDirectionsInclusive =
  5037. (this.operator === '>=' || this.operator === '<=') &&
  5038. (comp.operator === '>=' || comp.operator === '<=')
  5039. var oppositeDirectionsLessThan =
  5040. cmp(this.semver, '<', comp.semver, options) &&
  5041. ((this.operator === '>=' || this.operator === '>') &&
  5042. (comp.operator === '<=' || comp.operator === '<'))
  5043. var oppositeDirectionsGreaterThan =
  5044. cmp(this.semver, '>', comp.semver, options) &&
  5045. ((this.operator === '<=' || this.operator === '<') &&
  5046. (comp.operator === '>=' || comp.operator === '>'))
  5047. return sameDirectionIncreasing || sameDirectionDecreasing ||
  5048. (sameSemVer && differentDirectionsInclusive) ||
  5049. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  5050. }
  5051. exports.Range = Range
  5052. function Range (range, options) {
  5053. if (!options || typeof options !== 'object') {
  5054. options = {
  5055. loose: !!options,
  5056. includePrerelease: false
  5057. }
  5058. }
  5059. if (range instanceof Range) {
  5060. if (range.loose === !!options.loose &&
  5061. range.includePrerelease === !!options.includePrerelease) {
  5062. return range
  5063. } else {
  5064. return new Range(range.raw, options)
  5065. }
  5066. }
  5067. if (range instanceof Comparator) {
  5068. return new Range(range.value, options)
  5069. }
  5070. if (!(this instanceof Range)) {
  5071. return new Range(range, options)
  5072. }
  5073. this.options = options
  5074. this.loose = !!options.loose
  5075. this.includePrerelease = !!options.includePrerelease
  5076. // First, split based on boolean or ||
  5077. this.raw = range
  5078. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  5079. return this.parseRange(range.trim())
  5080. }, this).filter(function (c) {
  5081. // throw out any that are not relevant for whatever reason
  5082. return c.length
  5083. })
  5084. if (!this.set.length) {
  5085. throw new TypeError('Invalid SemVer Range: ' + range)
  5086. }
  5087. this.format()
  5088. }
  5089. Range.prototype.format = function () {
  5090. this.range = this.set.map(function (comps) {
  5091. return comps.join(' ').trim()
  5092. }).join('||').trim()
  5093. return this.range
  5094. }
  5095. Range.prototype.toString = function () {
  5096. return this.range
  5097. }
  5098. Range.prototype.parseRange = function (range) {
  5099. var loose = this.options.loose
  5100. range = range.trim()
  5101. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  5102. var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
  5103. range = range.replace(hr, hyphenReplace)
  5104. debug('hyphen replace', range)
  5105. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  5106. range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
  5107. debug('comparator trim', range, re[COMPARATORTRIM])
  5108. // `~ 1.2.3` => `~1.2.3`
  5109. range = range.replace(re[TILDETRIM], tildeTrimReplace)
  5110. // `^ 1.2.3` => `^1.2.3`
  5111. range = range.replace(re[CARETTRIM], caretTrimReplace)
  5112. // normalize spaces
  5113. range = range.split(/\s+/).join(' ')
  5114. // At this point, the range is completely trimmed and
  5115. // ready to be split into comparators.
  5116. var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  5117. var set = range.split(' ').map(function (comp) {
  5118. return parseComparator(comp, this.options)
  5119. }, this).join(' ').split(/\s+/)
  5120. if (this.options.loose) {
  5121. // in loose mode, throw out any that are not valid comparators
  5122. set = set.filter(function (comp) {
  5123. return !!comp.match(compRe)
  5124. })
  5125. }
  5126. set = set.map(function (comp) {
  5127. return new Comparator(comp, this.options)
  5128. }, this)
  5129. return set
  5130. }
  5131. Range.prototype.intersects = function (range, options) {
  5132. if (!(range instanceof Range)) {
  5133. throw new TypeError('a Range is required')
  5134. }
  5135. return this.set.some(function (thisComparators) {
  5136. return thisComparators.every(function (thisComparator) {
  5137. return range.set.some(function (rangeComparators) {
  5138. return rangeComparators.every(function (rangeComparator) {
  5139. return thisComparator.intersects(rangeComparator, options)
  5140. })
  5141. })
  5142. })
  5143. })
  5144. }
  5145. // Mostly just for testing and legacy API reasons
  5146. exports.toComparators = toComparators
  5147. function toComparators (range, options) {
  5148. return new Range(range, options).set.map(function (comp) {
  5149. return comp.map(function (c) {
  5150. return c.value
  5151. }).join(' ').trim().split(' ')
  5152. })
  5153. }
  5154. // comprised of xranges, tildes, stars, and gtlt's at this point.
  5155. // already replaced the hyphen ranges
  5156. // turn into a set of JUST comparators.
  5157. function parseComparator (comp, options) {
  5158. debug('comp', comp, options)
  5159. comp = replaceCarets(comp, options)
  5160. debug('caret', comp)
  5161. comp = replaceTildes(comp, options)
  5162. debug('tildes', comp)
  5163. comp = replaceXRanges(comp, options)
  5164. debug('xrange', comp)
  5165. comp = replaceStars(comp, options)
  5166. debug('stars', comp)
  5167. return comp
  5168. }
  5169. function isX (id) {
  5170. return !id || id.toLowerCase() === 'x' || id === '*'
  5171. }
  5172. // ~, ~> --> * (any, kinda silly)
  5173. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  5174. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  5175. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  5176. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  5177. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  5178. function replaceTildes (comp, options) {
  5179. return comp.trim().split(/\s+/).map(function (comp) {
  5180. return replaceTilde(comp, options)
  5181. }).join(' ')
  5182. }
  5183. function replaceTilde (comp, options) {
  5184. var r = options.loose ? re[TILDELOOSE] : re[TILDE]
  5185. return comp.replace(r, function (_, M, m, p, pr) {
  5186. debug('tilde', comp, _, M, m, p, pr)
  5187. var ret
  5188. if (isX(M)) {
  5189. ret = ''
  5190. } else if (isX(m)) {
  5191. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5192. } else if (isX(p)) {
  5193. // ~1.2 == >=1.2.0 <1.3.0
  5194. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5195. } else if (pr) {
  5196. debug('replaceTilde pr', pr)
  5197. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5198. ' <' + M + '.' + (+m + 1) + '.0'
  5199. } else {
  5200. // ~1.2.3 == >=1.2.3 <1.3.0
  5201. ret = '>=' + M + '.' + m + '.' + p +
  5202. ' <' + M + '.' + (+m + 1) + '.0'
  5203. }
  5204. debug('tilde return', ret)
  5205. return ret
  5206. })
  5207. }
  5208. // ^ --> * (any, kinda silly)
  5209. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  5210. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  5211. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  5212. // ^1.2.3 --> >=1.2.3 <2.0.0
  5213. // ^1.2.0 --> >=1.2.0 <2.0.0
  5214. function replaceCarets (comp, options) {
  5215. return comp.trim().split(/\s+/).map(function (comp) {
  5216. return replaceCaret(comp, options)
  5217. }).join(' ')
  5218. }
  5219. function replaceCaret (comp, options) {
  5220. debug('caret', comp, options)
  5221. var r = options.loose ? re[CARETLOOSE] : re[CARET]
  5222. return comp.replace(r, function (_, M, m, p, pr) {
  5223. debug('caret', comp, _, M, m, p, pr)
  5224. var ret
  5225. if (isX(M)) {
  5226. ret = ''
  5227. } else if (isX(m)) {
  5228. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5229. } else if (isX(p)) {
  5230. if (M === '0') {
  5231. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5232. } else {
  5233. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  5234. }
  5235. } else if (pr) {
  5236. debug('replaceCaret pr', pr)
  5237. if (M === '0') {
  5238. if (m === '0') {
  5239. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5240. ' <' + M + '.' + m + '.' + (+p + 1)
  5241. } else {
  5242. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5243. ' <' + M + '.' + (+m + 1) + '.0'
  5244. }
  5245. } else {
  5246. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5247. ' <' + (+M + 1) + '.0.0'
  5248. }
  5249. } else {
  5250. debug('no pr')
  5251. if (M === '0') {
  5252. if (m === '0') {
  5253. ret = '>=' + M + '.' + m + '.' + p +
  5254. ' <' + M + '.' + m + '.' + (+p + 1)
  5255. } else {
  5256. ret = '>=' + M + '.' + m + '.' + p +
  5257. ' <' + M + '.' + (+m + 1) + '.0'
  5258. }
  5259. } else {
  5260. ret = '>=' + M + '.' + m + '.' + p +
  5261. ' <' + (+M + 1) + '.0.0'
  5262. }
  5263. }
  5264. debug('caret return', ret)
  5265. return ret
  5266. })
  5267. }
  5268. function replaceXRanges (comp, options) {
  5269. debug('replaceXRanges', comp, options)
  5270. return comp.split(/\s+/).map(function (comp) {
  5271. return replaceXRange(comp, options)
  5272. }).join(' ')
  5273. }
  5274. function replaceXRange (comp, options) {
  5275. comp = comp.trim()
  5276. var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
  5277. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  5278. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  5279. var xM = isX(M)
  5280. var xm = xM || isX(m)
  5281. var xp = xm || isX(p)
  5282. var anyX = xp
  5283. if (gtlt === '=' && anyX) {
  5284. gtlt = ''
  5285. }
  5286. if (xM) {
  5287. if (gtlt === '>' || gtlt === '<') {
  5288. // nothing is allowed
  5289. ret = '<0.0.0'
  5290. } else {
  5291. // nothing is forbidden
  5292. ret = '*'
  5293. }
  5294. } else if (gtlt && anyX) {
  5295. // we know patch is an x, because we have any x at all.
  5296. // replace X with 0
  5297. if (xm) {
  5298. m = 0
  5299. }
  5300. p = 0
  5301. if (gtlt === '>') {
  5302. // >1 => >=2.0.0
  5303. // >1.2 => >=1.3.0
  5304. // >1.2.3 => >= 1.2.4
  5305. gtlt = '>='
  5306. if (xm) {
  5307. M = +M + 1
  5308. m = 0
  5309. p = 0
  5310. } else {
  5311. m = +m + 1
  5312. p = 0
  5313. }
  5314. } else if (gtlt === '<=') {
  5315. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  5316. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  5317. gtlt = '<'
  5318. if (xm) {
  5319. M = +M + 1
  5320. } else {
  5321. m = +m + 1
  5322. }
  5323. }
  5324. ret = gtlt + M + '.' + m + '.' + p
  5325. } else if (xm) {
  5326. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5327. } else if (xp) {
  5328. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5329. }
  5330. debug('xRange return', ret)
  5331. return ret
  5332. })
  5333. }
  5334. // Because * is AND-ed with everything else in the comparator,
  5335. // and '' means "any version", just remove the *s entirely.
  5336. function replaceStars (comp, options) {
  5337. debug('replaceStars', comp, options)
  5338. // Looseness is ignored here. star is always as loose as it gets!
  5339. return comp.trim().replace(re[STAR], '')
  5340. }
  5341. // This function is passed to string.replace(re[HYPHENRANGE])
  5342. // M, m, patch, prerelease, build
  5343. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  5344. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  5345. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  5346. function hyphenReplace ($0,
  5347. from, fM, fm, fp, fpr, fb,
  5348. to, tM, tm, tp, tpr, tb) {
  5349. if (isX(fM)) {
  5350. from = ''
  5351. } else if (isX(fm)) {
  5352. from = '>=' + fM + '.0.0'
  5353. } else if (isX(fp)) {
  5354. from = '>=' + fM + '.' + fm + '.0'
  5355. } else {
  5356. from = '>=' + from
  5357. }
  5358. if (isX(tM)) {
  5359. to = ''
  5360. } else if (isX(tm)) {
  5361. to = '<' + (+tM + 1) + '.0.0'
  5362. } else if (isX(tp)) {
  5363. to = '<' + tM + '.' + (+tm + 1) + '.0'
  5364. } else if (tpr) {
  5365. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  5366. } else {
  5367. to = '<=' + to
  5368. }
  5369. return (from + ' ' + to).trim()
  5370. }
  5371. // if ANY of the sets match ALL of its comparators, then pass
  5372. Range.prototype.test = function (version) {
  5373. if (!version) {
  5374. return false
  5375. }
  5376. if (typeof version === 'string') {
  5377. version = new SemVer(version, this.options)
  5378. }
  5379. for (var i = 0; i < this.set.length; i++) {
  5380. if (testSet(this.set[i], version, this.options)) {
  5381. return true
  5382. }
  5383. }
  5384. return false
  5385. }
  5386. function testSet (set, version, options) {
  5387. for (var i = 0; i < set.length; i++) {
  5388. if (!set[i].test(version)) {
  5389. return false
  5390. }
  5391. }
  5392. if (version.prerelease.length && !options.includePrerelease) {
  5393. // Find the set of versions that are allowed to have prereleases
  5394. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  5395. // That should allow `1.2.3-pr.2` to pass.
  5396. // However, `1.2.4-alpha.notready` should NOT be allowed,
  5397. // even though it's within the range set by the comparators.
  5398. for (i = 0; i < set.length; i++) {
  5399. debug(set[i].semver)
  5400. if (set[i].semver === ANY) {
  5401. continue
  5402. }
  5403. if (set[i].semver.prerelease.length > 0) {
  5404. var allowed = set[i].semver
  5405. if (allowed.major === version.major &&
  5406. allowed.minor === version.minor &&
  5407. allowed.patch === version.patch) {
  5408. return true
  5409. }
  5410. }
  5411. }
  5412. // Version has a -pre, but it's not one of the ones we like.
  5413. return false
  5414. }
  5415. return true
  5416. }
  5417. exports.satisfies = satisfies
  5418. function satisfies (version, range, options) {
  5419. try {
  5420. range = new Range(range, options)
  5421. } catch (er) {
  5422. return false
  5423. }
  5424. return range.test(version)
  5425. }
  5426. exports.maxSatisfying = maxSatisfying
  5427. function maxSatisfying (versions, range, options) {
  5428. var max = null
  5429. var maxSV = null
  5430. try {
  5431. var rangeObj = new Range(range, options)
  5432. } catch (er) {
  5433. return null
  5434. }
  5435. versions.forEach(function (v) {
  5436. if (rangeObj.test(v)) {
  5437. // satisfies(v, range, options)
  5438. if (!max || maxSV.compare(v) === -1) {
  5439. // compare(max, v, true)
  5440. max = v
  5441. maxSV = new SemVer(max, options)
  5442. }
  5443. }
  5444. })
  5445. return max
  5446. }
  5447. exports.minSatisfying = minSatisfying
  5448. function minSatisfying (versions, range, options) {
  5449. var min = null
  5450. var minSV = null
  5451. try {
  5452. var rangeObj = new Range(range, options)
  5453. } catch (er) {
  5454. return null
  5455. }
  5456. versions.forEach(function (v) {
  5457. if (rangeObj.test(v)) {
  5458. // satisfies(v, range, options)
  5459. if (!min || minSV.compare(v) === 1) {
  5460. // compare(min, v, true)
  5461. min = v
  5462. minSV = new SemVer(min, options)
  5463. }
  5464. }
  5465. })
  5466. return min
  5467. }
  5468. exports.minVersion = minVersion
  5469. function minVersion (range, loose) {
  5470. range = new Range(range, loose)
  5471. var minver = new SemVer('0.0.0')
  5472. if (range.test(minver)) {
  5473. return minver
  5474. }
  5475. minver = new SemVer('0.0.0-0')
  5476. if (range.test(minver)) {
  5477. return minver
  5478. }
  5479. minver = null
  5480. for (var i = 0; i < range.set.length; ++i) {
  5481. var comparators = range.set[i]
  5482. comparators.forEach(function (comparator) {
  5483. // Clone to avoid manipulating the comparator's semver object.
  5484. var compver = new SemVer(comparator.semver.version)
  5485. switch (comparator.operator) {
  5486. case '>':
  5487. if (compver.prerelease.length === 0) {
  5488. compver.patch++
  5489. } else {
  5490. compver.prerelease.push(0)
  5491. }
  5492. compver.raw = compver.format()
  5493. /* fallthrough */
  5494. case '':
  5495. case '>=':
  5496. if (!minver || gt(minver, compver)) {
  5497. minver = compver
  5498. }
  5499. break
  5500. case '<':
  5501. case '<=':
  5502. /* Ignore maximum versions */
  5503. break
  5504. /* istanbul ignore next */
  5505. default:
  5506. throw new Error('Unexpected operation: ' + comparator.operator)
  5507. }
  5508. })
  5509. }
  5510. if (minver && range.test(minver)) {
  5511. return minver
  5512. }
  5513. return null
  5514. }
  5515. exports.validRange = validRange
  5516. function validRange (range, options) {
  5517. try {
  5518. // Return '*' instead of '' so that truthiness works.
  5519. // This will throw if it's invalid anyway
  5520. return new Range(range, options).range || '*'
  5521. } catch (er) {
  5522. return null
  5523. }
  5524. }
  5525. // Determine if version is less than all the versions possible in the range
  5526. exports.ltr = ltr
  5527. function ltr (version, range, options) {
  5528. return outside(version, range, '<', options)
  5529. }
  5530. // Determine if version is greater than all the versions possible in the range.
  5531. exports.gtr = gtr
  5532. function gtr (version, range, options) {
  5533. return outside(version, range, '>', options)
  5534. }
  5535. exports.outside = outside
  5536. function outside (version, range, hilo, options) {
  5537. version = new SemVer(version, options)
  5538. range = new Range(range, options)
  5539. var gtfn, ltefn, ltfn, comp, ecomp
  5540. switch (hilo) {
  5541. case '>':
  5542. gtfn = gt
  5543. ltefn = lte
  5544. ltfn = lt
  5545. comp = '>'
  5546. ecomp = '>='
  5547. break
  5548. case '<':
  5549. gtfn = lt
  5550. ltefn = gte
  5551. ltfn = gt
  5552. comp = '<'
  5553. ecomp = '<='
  5554. break
  5555. default:
  5556. throw new TypeError('Must provide a hilo val of "<" or ">"')
  5557. }
  5558. // If it satisifes the range it is not outside
  5559. if (satisfies(version, range, options)) {
  5560. return false
  5561. }
  5562. // From now on, variable terms are as if we're in "gtr" mode.
  5563. // but note that everything is flipped for the "ltr" function.
  5564. for (var i = 0; i < range.set.length; ++i) {
  5565. var comparators = range.set[i]
  5566. var high = null
  5567. var low = null
  5568. comparators.forEach(function (comparator) {
  5569. if (comparator.semver === ANY) {
  5570. comparator = new Comparator('>=0.0.0')
  5571. }
  5572. high = high || comparator
  5573. low = low || comparator
  5574. if (gtfn(comparator.semver, high.semver, options)) {
  5575. high = comparator
  5576. } else if (ltfn(comparator.semver, low.semver, options)) {
  5577. low = comparator
  5578. }
  5579. })
  5580. // If the edge version comparator has a operator then our version
  5581. // isn't outside it
  5582. if (high.operator === comp || high.operator === ecomp) {
  5583. return false
  5584. }
  5585. // If the lowest version comparator has an operator and our version
  5586. // is less than it then it isn't higher than the range
  5587. if ((!low.operator || low.operator === comp) &&
  5588. ltefn(version, low.semver)) {
  5589. return false
  5590. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  5591. return false
  5592. }
  5593. }
  5594. return true
  5595. }
  5596. exports.prerelease = prerelease
  5597. function prerelease (version, options) {
  5598. var parsed = parse(version, options)
  5599. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  5600. }
  5601. exports.intersects = intersects
  5602. function intersects (r1, r2, options) {
  5603. r1 = new Range(r1, options)
  5604. r2 = new Range(r2, options)
  5605. return r1.intersects(r2)
  5606. }
  5607. exports.coerce = coerce
  5608. function coerce (version) {
  5609. if (version instanceof SemVer) {
  5610. return version
  5611. }
  5612. if (typeof version !== 'string') {
  5613. return null
  5614. }
  5615. var match = version.match(re[COERCE])
  5616. if (match == null) {
  5617. return null
  5618. }
  5619. return parse(match[1] +
  5620. '.' + (match[2] || '0') +
  5621. '.' + (match[3] || '0'))
  5622. }
  5623. /***/ }),
  5624. /***/ 287:
  5625. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  5626. "use strict";
  5627. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  5628. if (k2 === undefined) k2 = k;
  5629. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5630. }) : (function(o, m, k, k2) {
  5631. if (k2 === undefined) k2 = k;
  5632. o[k2] = m[k];
  5633. }));
  5634. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  5635. Object.defineProperty(o, "default", { enumerable: true, value: v });
  5636. }) : function(o, v) {
  5637. o["default"] = v;
  5638. });
  5639. var __importStar = (this && this.__importStar) || function (mod) {
  5640. if (mod && mod.__esModule) return mod;
  5641. var result = {};
  5642. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  5643. __setModuleDefault(result, mod);
  5644. return result;
  5645. };
  5646. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5647. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5648. return new (P || (P = Promise))(function (resolve, reject) {
  5649. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5650. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5651. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5652. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5653. });
  5654. };
  5655. var __importDefault = (this && this.__importDefault) || function (mod) {
  5656. return (mod && mod.__esModule) ? mod : { "default": mod };
  5657. };
  5658. Object.defineProperty(exports, "__esModule", { value: true });
  5659. exports.createAuthHelper = void 0;
  5660. const assert = __importStar(__webpack_require__(357));
  5661. const core = __importStar(__webpack_require__(470));
  5662. const exec = __importStar(__webpack_require__(986));
  5663. const fs = __importStar(__webpack_require__(747));
  5664. const io = __importStar(__webpack_require__(1));
  5665. const os = __importStar(__webpack_require__(87));
  5666. const path = __importStar(__webpack_require__(622));
  5667. const regexpHelper = __importStar(__webpack_require__(528));
  5668. const stateHelper = __importStar(__webpack_require__(153));
  5669. const urlHelper = __importStar(__webpack_require__(81));
  5670. const v4_1 = __importDefault(__webpack_require__(826));
  5671. const IS_WINDOWS = process.platform === 'win32';
  5672. const SSH_COMMAND_KEY = 'core.sshCommand';
  5673. function createAuthHelper(git, settings) {
  5674. return new GitAuthHelper(git, settings);
  5675. }
  5676. exports.createAuthHelper = createAuthHelper;
  5677. class GitAuthHelper {
  5678. constructor(gitCommandManager, gitSourceSettings) {
  5679. this.insteadOfValues = [];
  5680. this.sshCommand = '';
  5681. this.sshKeyPath = '';
  5682. this.sshKnownHostsPath = '';
  5683. this.temporaryHomePath = '';
  5684. this.git = gitCommandManager;
  5685. this.settings = gitSourceSettings || {};
  5686. // Token auth header
  5687. const serverUrl = urlHelper.getServerUrl();
  5688. this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT]
  5689. const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64');
  5690. core.setSecret(basicCredential);
  5691. this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`;
  5692. this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`;
  5693. // Instead of SSH URL
  5694. this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT]
  5695. this.insteadOfValues.push(`git@${serverUrl.hostname}:`);
  5696. if (this.settings.workflowOrganizationId) {
  5697. this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`);
  5698. }
  5699. }
  5700. configureAuth() {
  5701. return __awaiter(this, void 0, void 0, function* () {
  5702. // Remove possible previous values
  5703. yield this.removeAuth();
  5704. // Configure new values
  5705. yield this.configureSsh();
  5706. yield this.configureToken();
  5707. });
  5708. }
  5709. configureGlobalAuth() {
  5710. var _a;
  5711. return __awaiter(this, void 0, void 0, function* () {
  5712. // Create a temp home directory
  5713. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  5714. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  5715. const uniqueId = (0, v4_1.default)();
  5716. this.temporaryHomePath = path.join(runnerTemp, uniqueId);
  5717. yield fs.promises.mkdir(this.temporaryHomePath, { recursive: true });
  5718. // Copy the global git config
  5719. const gitConfigPath = path.join(process.env['HOME'] || os.homedir(), '.gitconfig');
  5720. const newGitConfigPath = path.join(this.temporaryHomePath, '.gitconfig');
  5721. let configExists = false;
  5722. try {
  5723. yield fs.promises.stat(gitConfigPath);
  5724. configExists = true;
  5725. }
  5726. catch (err) {
  5727. if (((_a = err) === null || _a === void 0 ? void 0 : _a.code) !== 'ENOENT') {
  5728. throw err;
  5729. }
  5730. }
  5731. if (configExists) {
  5732. core.info(`Copying '${gitConfigPath}' to '${newGitConfigPath}'`);
  5733. yield io.cp(gitConfigPath, newGitConfigPath);
  5734. }
  5735. else {
  5736. yield fs.promises.writeFile(newGitConfigPath, '');
  5737. }
  5738. try {
  5739. // Override HOME
  5740. core.info(`Temporarily overriding HOME='${this.temporaryHomePath}' before making global git config changes`);
  5741. this.git.setEnvironmentVariable('HOME', this.temporaryHomePath);
  5742. // Configure the token
  5743. yield this.configureToken(newGitConfigPath, true);
  5744. // Configure HTTPS instead of SSH
  5745. yield this.git.tryConfigUnset(this.insteadOfKey, true);
  5746. if (!this.settings.sshKey) {
  5747. for (const insteadOfValue of this.insteadOfValues) {
  5748. yield this.git.config(this.insteadOfKey, insteadOfValue, true, true);
  5749. }
  5750. }
  5751. }
  5752. catch (err) {
  5753. // Unset in case somehow written to the real global config
  5754. core.info('Encountered an error when attempting to configure token. Attempting unconfigure.');
  5755. yield this.git.tryConfigUnset(this.tokenConfigKey, true);
  5756. throw err;
  5757. }
  5758. });
  5759. }
  5760. configureSubmoduleAuth() {
  5761. return __awaiter(this, void 0, void 0, function* () {
  5762. // Remove possible previous HTTPS instead of SSH
  5763. yield this.removeGitConfig(this.insteadOfKey, true);
  5764. if (this.settings.persistCredentials) {
  5765. // Configure a placeholder value. This approach avoids the credential being captured
  5766. // by process creation audit events, which are commonly logged. For more information,
  5767. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  5768. const output = yield this.git.submoduleForeach(`git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url`, this.settings.nestedSubmodules);
  5769. // Replace the placeholder
  5770. const configPaths = output.match(/(?<=(^|\n)file:)[^\t]+(?=\tremote\.origin\.url)/g) || [];
  5771. for (const configPath of configPaths) {
  5772. core.debug(`Replacing token placeholder in '${configPath}'`);
  5773. yield this.replaceTokenPlaceholder(configPath);
  5774. }
  5775. if (this.settings.sshKey) {
  5776. // Configure core.sshCommand
  5777. yield this.git.submoduleForeach(`git config --local '${SSH_COMMAND_KEY}' '${this.sshCommand}'`, this.settings.nestedSubmodules);
  5778. }
  5779. else {
  5780. // Configure HTTPS instead of SSH
  5781. for (const insteadOfValue of this.insteadOfValues) {
  5782. yield this.git.submoduleForeach(`git config --local --add '${this.insteadOfKey}' '${insteadOfValue}'`, this.settings.nestedSubmodules);
  5783. }
  5784. }
  5785. }
  5786. });
  5787. }
  5788. removeAuth() {
  5789. return __awaiter(this, void 0, void 0, function* () {
  5790. yield this.removeSsh();
  5791. yield this.removeToken();
  5792. });
  5793. }
  5794. removeGlobalAuth() {
  5795. return __awaiter(this, void 0, void 0, function* () {
  5796. core.debug(`Unsetting HOME override`);
  5797. this.git.removeEnvironmentVariable('HOME');
  5798. yield io.rmRF(this.temporaryHomePath);
  5799. });
  5800. }
  5801. configureSsh() {
  5802. var _a;
  5803. return __awaiter(this, void 0, void 0, function* () {
  5804. if (!this.settings.sshKey) {
  5805. return;
  5806. }
  5807. // Write key
  5808. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  5809. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  5810. const uniqueId = (0, v4_1.default)();
  5811. this.sshKeyPath = path.join(runnerTemp, uniqueId);
  5812. stateHelper.setSshKeyPath(this.sshKeyPath);
  5813. yield fs.promises.mkdir(runnerTemp, { recursive: true });
  5814. yield fs.promises.writeFile(this.sshKeyPath, this.settings.sshKey.trim() + '\n', { mode: 0o600 });
  5815. // Remove inherited permissions on Windows
  5816. if (IS_WINDOWS) {
  5817. const icacls = yield io.which('icacls.exe');
  5818. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
  5819. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
  5820. }
  5821. // Write known hosts
  5822. const userKnownHostsPath = path.join(os.homedir(), '.ssh', 'known_hosts');
  5823. let userKnownHosts = '';
  5824. try {
  5825. userKnownHosts = (yield fs.promises.readFile(userKnownHostsPath)).toString();
  5826. }
  5827. catch (err) {
  5828. if (((_a = err) === null || _a === void 0 ? void 0 : _a.code) !== 'ENOENT') {
  5829. throw err;
  5830. }
  5831. }
  5832. let knownHosts = '';
  5833. if (userKnownHosts) {
  5834. knownHosts += `# Begin from ${userKnownHostsPath}\n${userKnownHosts}\n# End from ${userKnownHostsPath}\n`;
  5835. }
  5836. if (this.settings.sshKnownHosts) {
  5837. knownHosts += `# Begin from input known hosts\n${this.settings.sshKnownHosts}\n# end from input known hosts\n`;
  5838. }
  5839. 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`;
  5840. this.sshKnownHostsPath = path.join(runnerTemp, `${uniqueId}_known_hosts`);
  5841. stateHelper.setSshKnownHostsPath(this.sshKnownHostsPath);
  5842. yield fs.promises.writeFile(this.sshKnownHostsPath, knownHosts);
  5843. // Configure GIT_SSH_COMMAND
  5844. const sshPath = yield io.which('ssh', true);
  5845. this.sshCommand = `"${sshPath}" -i "$RUNNER_TEMP/${path.basename(this.sshKeyPath)}"`;
  5846. if (this.settings.sshStrict) {
  5847. this.sshCommand += ' -o StrictHostKeyChecking=yes -o CheckHostIP=no';
  5848. }
  5849. this.sshCommand += ` -o "UserKnownHostsFile=$RUNNER_TEMP/${path.basename(this.sshKnownHostsPath)}"`;
  5850. core.info(`Temporarily overriding GIT_SSH_COMMAND=${this.sshCommand}`);
  5851. this.git.setEnvironmentVariable('GIT_SSH_COMMAND', this.sshCommand);
  5852. // Configure core.sshCommand
  5853. if (this.settings.persistCredentials) {
  5854. yield this.git.config(SSH_COMMAND_KEY, this.sshCommand);
  5855. }
  5856. });
  5857. }
  5858. configureToken(configPath, globalConfig) {
  5859. return __awaiter(this, void 0, void 0, function* () {
  5860. // Validate args
  5861. assert.ok((configPath && globalConfig) || (!configPath && !globalConfig), 'Unexpected configureToken parameter combinations');
  5862. // Default config path
  5863. if (!configPath && !globalConfig) {
  5864. configPath = path.join(this.git.getWorkingDirectory(), '.git', 'config');
  5865. }
  5866. // Configure a placeholder value. This approach avoids the credential being captured
  5867. // by process creation audit events, which are commonly logged. For more information,
  5868. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  5869. yield this.git.config(this.tokenConfigKey, this.tokenPlaceholderConfigValue, globalConfig);
  5870. // Replace the placeholder
  5871. yield this.replaceTokenPlaceholder(configPath || '');
  5872. });
  5873. }
  5874. replaceTokenPlaceholder(configPath) {
  5875. return __awaiter(this, void 0, void 0, function* () {
  5876. assert.ok(configPath, 'configPath is not defined');
  5877. let content = (yield fs.promises.readFile(configPath)).toString();
  5878. const placeholderIndex = content.indexOf(this.tokenPlaceholderConfigValue);
  5879. if (placeholderIndex < 0 ||
  5880. placeholderIndex != content.lastIndexOf(this.tokenPlaceholderConfigValue)) {
  5881. throw new Error(`Unable to replace auth placeholder in ${configPath}`);
  5882. }
  5883. assert.ok(this.tokenConfigValue, 'tokenConfigValue is not defined');
  5884. content = content.replace(this.tokenPlaceholderConfigValue, this.tokenConfigValue);
  5885. yield fs.promises.writeFile(configPath, content);
  5886. });
  5887. }
  5888. removeSsh() {
  5889. var _a, _b;
  5890. return __awaiter(this, void 0, void 0, function* () {
  5891. // SSH key
  5892. const keyPath = this.sshKeyPath || stateHelper.SshKeyPath;
  5893. if (keyPath) {
  5894. try {
  5895. yield io.rmRF(keyPath);
  5896. }
  5897. catch (err) {
  5898. core.debug(`${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : err}`);
  5899. core.warning(`Failed to remove SSH key '${keyPath}'`);
  5900. }
  5901. }
  5902. // SSH known hosts
  5903. const knownHostsPath = this.sshKnownHostsPath || stateHelper.SshKnownHostsPath;
  5904. if (knownHostsPath) {
  5905. try {
  5906. yield io.rmRF(knownHostsPath);
  5907. }
  5908. catch (_c) {
  5909. // Intentionally empty
  5910. }
  5911. }
  5912. // SSH command
  5913. yield this.removeGitConfig(SSH_COMMAND_KEY);
  5914. });
  5915. }
  5916. removeToken() {
  5917. return __awaiter(this, void 0, void 0, function* () {
  5918. // HTTP extra header
  5919. yield this.removeGitConfig(this.tokenConfigKey);
  5920. });
  5921. }
  5922. removeGitConfig(configKey, submoduleOnly = false) {
  5923. return __awaiter(this, void 0, void 0, function* () {
  5924. if (!submoduleOnly) {
  5925. if ((yield this.git.configExists(configKey)) &&
  5926. !(yield this.git.tryConfigUnset(configKey))) {
  5927. // Load the config contents
  5928. core.warning(`Failed to remove '${configKey}' from the git config`);
  5929. }
  5930. }
  5931. const pattern = regexpHelper.escape(configKey);
  5932. yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
  5933. });
  5934. }
  5935. }
  5936. /***/ }),
  5937. /***/ 289:
  5938. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  5939. "use strict";
  5940. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  5941. if (k2 === undefined) k2 = k;
  5942. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5943. }) : (function(o, m, k, k2) {
  5944. if (k2 === undefined) k2 = k;
  5945. o[k2] = m[k];
  5946. }));
  5947. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  5948. Object.defineProperty(o, "default", { enumerable: true, value: v });
  5949. }) : function(o, v) {
  5950. o["default"] = v;
  5951. });
  5952. var __importStar = (this && this.__importStar) || function (mod) {
  5953. if (mod && mod.__esModule) return mod;
  5954. var result = {};
  5955. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  5956. __setModuleDefault(result, mod);
  5957. return result;
  5958. };
  5959. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5960. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5961. return new (P || (P = Promise))(function (resolve, reject) {
  5962. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5963. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5964. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5965. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5966. });
  5967. };
  5968. Object.defineProperty(exports, "__esModule", { value: true });
  5969. exports.createCommandManager = exports.MinimumGitVersion = void 0;
  5970. const core = __importStar(__webpack_require__(470));
  5971. const exec = __importStar(__webpack_require__(986));
  5972. const fshelper = __importStar(__webpack_require__(618));
  5973. const io = __importStar(__webpack_require__(1));
  5974. const path = __importStar(__webpack_require__(622));
  5975. const refHelper = __importStar(__webpack_require__(227));
  5976. const regexpHelper = __importStar(__webpack_require__(528));
  5977. const retryHelper = __importStar(__webpack_require__(587));
  5978. const git_version_1 = __webpack_require__(559);
  5979. // Auth header not supported before 2.9
  5980. // Wire protocol v2 not supported before 2.18
  5981. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  5982. function createCommandManager(workingDirectory, lfs) {
  5983. return __awaiter(this, void 0, void 0, function* () {
  5984. return yield GitCommandManager.createCommandManager(workingDirectory, lfs);
  5985. });
  5986. }
  5987. exports.createCommandManager = createCommandManager;
  5988. class GitCommandManager {
  5989. // Private constructor; use createCommandManager()
  5990. constructor() {
  5991. this.gitEnv = {
  5992. GIT_TERMINAL_PROMPT: '0',
  5993. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  5994. };
  5995. this.gitPath = '';
  5996. this.lfs = false;
  5997. this.workingDirectory = '';
  5998. }
  5999. branchDelete(remote, branch) {
  6000. return __awaiter(this, void 0, void 0, function* () {
  6001. const args = ['branch', '--delete', '--force'];
  6002. if (remote) {
  6003. args.push('--remote');
  6004. }
  6005. args.push(branch);
  6006. yield this.execGit(args);
  6007. });
  6008. }
  6009. branchExists(remote, pattern) {
  6010. return __awaiter(this, void 0, void 0, function* () {
  6011. const args = ['branch', '--list'];
  6012. if (remote) {
  6013. args.push('--remote');
  6014. }
  6015. args.push(pattern);
  6016. const output = yield this.execGit(args);
  6017. return !!output.stdout.trim();
  6018. });
  6019. }
  6020. branchList(remote) {
  6021. return __awaiter(this, void 0, void 0, function* () {
  6022. const result = [];
  6023. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  6024. // "branch --list" is more difficult when in a detached HEAD state.
  6025. // Note, this implementation uses "rev-parse --symbolic-full-name" because there is a bug
  6026. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names.
  6027. const args = ['rev-parse', '--symbolic-full-name'];
  6028. if (remote) {
  6029. args.push('--remotes=origin');
  6030. }
  6031. else {
  6032. args.push('--branches');
  6033. }
  6034. const output = yield this.execGit(args);
  6035. for (let branch of output.stdout.trim().split('\n')) {
  6036. branch = branch.trim();
  6037. if (branch) {
  6038. if (branch.startsWith('refs/heads/')) {
  6039. branch = branch.substr('refs/heads/'.length);
  6040. }
  6041. else if (branch.startsWith('refs/remotes/')) {
  6042. branch = branch.substr('refs/remotes/'.length);
  6043. }
  6044. result.push(branch);
  6045. }
  6046. }
  6047. return result;
  6048. });
  6049. }
  6050. checkout(ref, startPoint) {
  6051. return __awaiter(this, void 0, void 0, function* () {
  6052. const args = ['checkout', '--progress', '--force'];
  6053. if (startPoint) {
  6054. args.push('-B', ref, startPoint);
  6055. }
  6056. else {
  6057. args.push(ref);
  6058. }
  6059. yield this.execGit(args);
  6060. });
  6061. }
  6062. checkoutDetach() {
  6063. return __awaiter(this, void 0, void 0, function* () {
  6064. const args = ['checkout', '--detach'];
  6065. yield this.execGit(args);
  6066. });
  6067. }
  6068. config(configKey, configValue, globalConfig, add) {
  6069. return __awaiter(this, void 0, void 0, function* () {
  6070. const args = ['config', globalConfig ? '--global' : '--local'];
  6071. if (add) {
  6072. args.push('--add');
  6073. }
  6074. args.push(...[configKey, configValue]);
  6075. yield this.execGit(args);
  6076. });
  6077. }
  6078. configExists(configKey, globalConfig) {
  6079. return __awaiter(this, void 0, void 0, function* () {
  6080. const pattern = regexpHelper.escape(configKey);
  6081. const output = yield this.execGit([
  6082. 'config',
  6083. globalConfig ? '--global' : '--local',
  6084. '--name-only',
  6085. '--get-regexp',
  6086. pattern
  6087. ], true);
  6088. return output.exitCode === 0;
  6089. });
  6090. }
  6091. fetch(refSpec, fetchDepth) {
  6092. return __awaiter(this, void 0, void 0, function* () {
  6093. const args = ['-c', 'protocol.version=2', 'fetch'];
  6094. if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
  6095. args.push('--no-tags');
  6096. }
  6097. args.push('--prune', '--progress', '--no-recurse-submodules');
  6098. if (fetchDepth && fetchDepth > 0) {
  6099. args.push(`--depth=${fetchDepth}`);
  6100. }
  6101. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  6102. args.push('--unshallow');
  6103. }
  6104. args.push('origin');
  6105. for (const arg of refSpec) {
  6106. args.push(arg);
  6107. }
  6108. const that = this;
  6109. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6110. yield that.execGit(args);
  6111. }));
  6112. });
  6113. }
  6114. getDefaultBranch(repositoryUrl) {
  6115. return __awaiter(this, void 0, void 0, function* () {
  6116. let output;
  6117. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6118. output = yield this.execGit([
  6119. 'ls-remote',
  6120. '--quiet',
  6121. '--exit-code',
  6122. '--symref',
  6123. repositoryUrl,
  6124. 'HEAD'
  6125. ]);
  6126. }));
  6127. if (output) {
  6128. // Satisfy compiler, will always be set
  6129. for (let line of output.stdout.trim().split('\n')) {
  6130. line = line.trim();
  6131. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  6132. return line
  6133. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  6134. .trim();
  6135. }
  6136. }
  6137. }
  6138. throw new Error('Unexpected output when retrieving default branch');
  6139. });
  6140. }
  6141. getWorkingDirectory() {
  6142. return this.workingDirectory;
  6143. }
  6144. init() {
  6145. return __awaiter(this, void 0, void 0, function* () {
  6146. yield this.execGit(['init', this.workingDirectory]);
  6147. });
  6148. }
  6149. isDetached() {
  6150. return __awaiter(this, void 0, void 0, function* () {
  6151. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  6152. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  6153. return !output.stdout.trim().startsWith('refs/heads/');
  6154. });
  6155. }
  6156. lfsFetch(ref) {
  6157. return __awaiter(this, void 0, void 0, function* () {
  6158. const args = ['lfs', 'fetch', 'origin', ref];
  6159. const that = this;
  6160. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6161. yield that.execGit(args);
  6162. }));
  6163. });
  6164. }
  6165. lfsInstall() {
  6166. return __awaiter(this, void 0, void 0, function* () {
  6167. yield this.execGit(['lfs', 'install', '--local']);
  6168. });
  6169. }
  6170. log1(format) {
  6171. return __awaiter(this, void 0, void 0, function* () {
  6172. var args = format ? ['log', '-1', format] : ['log', '-1'];
  6173. var silent = format ? false : true;
  6174. const output = yield this.execGit(args, false, silent);
  6175. return output.stdout;
  6176. });
  6177. }
  6178. remoteAdd(remoteName, remoteUrl) {
  6179. return __awaiter(this, void 0, void 0, function* () {
  6180. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  6181. });
  6182. }
  6183. removeEnvironmentVariable(name) {
  6184. delete this.gitEnv[name];
  6185. }
  6186. /**
  6187. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  6188. * For an annotated tag, the tag SHA is returned.
  6189. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  6190. * @returns {Promise<string>}
  6191. */
  6192. revParse(ref) {
  6193. return __awaiter(this, void 0, void 0, function* () {
  6194. const output = yield this.execGit(['rev-parse', ref]);
  6195. return output.stdout.trim();
  6196. });
  6197. }
  6198. setEnvironmentVariable(name, value) {
  6199. this.gitEnv[name] = value;
  6200. }
  6201. shaExists(sha) {
  6202. return __awaiter(this, void 0, void 0, function* () {
  6203. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  6204. const output = yield this.execGit(args, true);
  6205. return output.exitCode === 0;
  6206. });
  6207. }
  6208. submoduleForeach(command, recursive) {
  6209. return __awaiter(this, void 0, void 0, function* () {
  6210. const args = ['submodule', 'foreach'];
  6211. if (recursive) {
  6212. args.push('--recursive');
  6213. }
  6214. args.push(command);
  6215. const output = yield this.execGit(args);
  6216. return output.stdout;
  6217. });
  6218. }
  6219. submoduleSync(recursive) {
  6220. return __awaiter(this, void 0, void 0, function* () {
  6221. const args = ['submodule', 'sync'];
  6222. if (recursive) {
  6223. args.push('--recursive');
  6224. }
  6225. yield this.execGit(args);
  6226. });
  6227. }
  6228. submoduleUpdate(fetchDepth, recursive) {
  6229. return __awaiter(this, void 0, void 0, function* () {
  6230. const args = ['-c', 'protocol.version=2'];
  6231. args.push('submodule', 'update', '--init', '--force');
  6232. if (fetchDepth > 0) {
  6233. args.push(`--depth=${fetchDepth}`);
  6234. }
  6235. if (recursive) {
  6236. args.push('--recursive');
  6237. }
  6238. yield this.execGit(args);
  6239. });
  6240. }
  6241. tagExists(pattern) {
  6242. return __awaiter(this, void 0, void 0, function* () {
  6243. const output = yield this.execGit(['tag', '--list', pattern]);
  6244. return !!output.stdout.trim();
  6245. });
  6246. }
  6247. tryClean() {
  6248. return __awaiter(this, void 0, void 0, function* () {
  6249. const output = yield this.execGit(['clean', '-ffdx'], true);
  6250. return output.exitCode === 0;
  6251. });
  6252. }
  6253. tryConfigUnset(configKey, globalConfig) {
  6254. return __awaiter(this, void 0, void 0, function* () {
  6255. const output = yield this.execGit([
  6256. 'config',
  6257. globalConfig ? '--global' : '--local',
  6258. '--unset-all',
  6259. configKey
  6260. ], true);
  6261. return output.exitCode === 0;
  6262. });
  6263. }
  6264. tryDisableAutomaticGarbageCollection() {
  6265. return __awaiter(this, void 0, void 0, function* () {
  6266. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  6267. return output.exitCode === 0;
  6268. });
  6269. }
  6270. tryGetFetchUrl() {
  6271. return __awaiter(this, void 0, void 0, function* () {
  6272. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  6273. if (output.exitCode !== 0) {
  6274. return '';
  6275. }
  6276. const stdout = output.stdout.trim();
  6277. if (stdout.includes('\n')) {
  6278. return '';
  6279. }
  6280. return stdout;
  6281. });
  6282. }
  6283. tryReset() {
  6284. return __awaiter(this, void 0, void 0, function* () {
  6285. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  6286. return output.exitCode === 0;
  6287. });
  6288. }
  6289. static createCommandManager(workingDirectory, lfs) {
  6290. return __awaiter(this, void 0, void 0, function* () {
  6291. const result = new GitCommandManager();
  6292. yield result.initializeCommandManager(workingDirectory, lfs);
  6293. return result;
  6294. });
  6295. }
  6296. execGit(args, allowAllExitCodes = false, silent = false) {
  6297. return __awaiter(this, void 0, void 0, function* () {
  6298. fshelper.directoryExistsSync(this.workingDirectory, true);
  6299. const result = new GitOutput();
  6300. const env = {};
  6301. for (const key of Object.keys(process.env)) {
  6302. env[key] = process.env[key];
  6303. }
  6304. for (const key of Object.keys(this.gitEnv)) {
  6305. env[key] = this.gitEnv[key];
  6306. }
  6307. const stdout = [];
  6308. const options = {
  6309. cwd: this.workingDirectory,
  6310. env,
  6311. silent,
  6312. ignoreReturnCode: allowAllExitCodes,
  6313. listeners: {
  6314. stdout: (data) => {
  6315. stdout.push(data.toString());
  6316. }
  6317. }
  6318. };
  6319. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  6320. result.stdout = stdout.join('');
  6321. return result;
  6322. });
  6323. }
  6324. initializeCommandManager(workingDirectory, lfs) {
  6325. return __awaiter(this, void 0, void 0, function* () {
  6326. this.workingDirectory = workingDirectory;
  6327. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  6328. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  6329. this.lfs = lfs;
  6330. if (!this.lfs) {
  6331. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  6332. }
  6333. this.gitPath = yield io.which('git', true);
  6334. // Git version
  6335. core.debug('Getting git version');
  6336. let gitVersion = new git_version_1.GitVersion();
  6337. let gitOutput = yield this.execGit(['version']);
  6338. let stdout = gitOutput.stdout.trim();
  6339. if (!stdout.includes('\n')) {
  6340. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6341. if (match) {
  6342. gitVersion = new git_version_1.GitVersion(match[0]);
  6343. }
  6344. }
  6345. if (!gitVersion.isValid()) {
  6346. throw new Error('Unable to determine git version');
  6347. }
  6348. // Minimum git version
  6349. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  6350. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  6351. }
  6352. if (this.lfs) {
  6353. // Git-lfs version
  6354. core.debug('Getting git-lfs version');
  6355. let gitLfsVersion = new git_version_1.GitVersion();
  6356. const gitLfsPath = yield io.which('git-lfs', true);
  6357. gitOutput = yield this.execGit(['lfs', 'version']);
  6358. stdout = gitOutput.stdout.trim();
  6359. if (!stdout.includes('\n')) {
  6360. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6361. if (match) {
  6362. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  6363. }
  6364. }
  6365. if (!gitLfsVersion.isValid()) {
  6366. throw new Error('Unable to determine git-lfs version');
  6367. }
  6368. // Minimum git-lfs version
  6369. // Note:
  6370. // - Auth header not supported before 2.1
  6371. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  6372. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  6373. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  6374. }
  6375. }
  6376. // Set the user agent
  6377. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  6378. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  6379. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  6380. });
  6381. }
  6382. }
  6383. class GitOutput {
  6384. constructor() {
  6385. this.stdout = '';
  6386. this.exitCode = 0;
  6387. }
  6388. }
  6389. /***/ }),
  6390. /***/ 293:
  6391. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6392. "use strict";
  6393. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6394. if (k2 === undefined) k2 = k;
  6395. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6396. }) : (function(o, m, k, k2) {
  6397. if (k2 === undefined) k2 = k;
  6398. o[k2] = m[k];
  6399. }));
  6400. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6401. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6402. }) : function(o, v) {
  6403. o["default"] = v;
  6404. });
  6405. var __importStar = (this && this.__importStar) || function (mod) {
  6406. if (mod && mod.__esModule) return mod;
  6407. var result = {};
  6408. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6409. __setModuleDefault(result, mod);
  6410. return result;
  6411. };
  6412. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6413. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6414. return new (P || (P = Promise))(function (resolve, reject) {
  6415. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6416. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6417. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6418. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6419. });
  6420. };
  6421. Object.defineProperty(exports, "__esModule", { value: true });
  6422. exports.cleanup = exports.getSource = void 0;
  6423. const core = __importStar(__webpack_require__(470));
  6424. const fsHelper = __importStar(__webpack_require__(618));
  6425. const gitAuthHelper = __importStar(__webpack_require__(287));
  6426. const gitCommandManager = __importStar(__webpack_require__(289));
  6427. const gitDirectoryHelper = __importStar(__webpack_require__(438));
  6428. const githubApiHelper = __importStar(__webpack_require__(464));
  6429. const io = __importStar(__webpack_require__(1));
  6430. const path = __importStar(__webpack_require__(622));
  6431. const refHelper = __importStar(__webpack_require__(227));
  6432. const stateHelper = __importStar(__webpack_require__(153));
  6433. const urlHelper = __importStar(__webpack_require__(81));
  6434. function getSource(settings) {
  6435. return __awaiter(this, void 0, void 0, function* () {
  6436. // Repository URL
  6437. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  6438. const repositoryUrl = urlHelper.getFetchUrl(settings);
  6439. // Remove conflicting file path
  6440. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  6441. yield io.rmRF(settings.repositoryPath);
  6442. }
  6443. // Create directory
  6444. let isExisting = true;
  6445. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  6446. isExisting = false;
  6447. yield io.mkdirP(settings.repositoryPath);
  6448. }
  6449. // Git command manager
  6450. core.startGroup('Getting Git version info');
  6451. const git = yield getGitCommandManager(settings);
  6452. core.endGroup();
  6453. // Prepare existing directory, otherwise recreate
  6454. if (isExisting) {
  6455. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  6456. }
  6457. if (!git) {
  6458. // Downloading using REST API
  6459. core.info(`The repository will be downloaded using the GitHub REST API`);
  6460. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  6461. if (settings.submodules) {
  6462. 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.`);
  6463. }
  6464. else if (settings.sshKey) {
  6465. 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.`);
  6466. }
  6467. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath);
  6468. return;
  6469. }
  6470. // Save state for POST action
  6471. stateHelper.setRepositoryPath(settings.repositoryPath);
  6472. // Initialize the repository
  6473. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  6474. core.startGroup('Initializing the repository');
  6475. yield git.init();
  6476. yield git.remoteAdd('origin', repositoryUrl);
  6477. core.endGroup();
  6478. }
  6479. // Disable automatic garbage collection
  6480. core.startGroup('Disabling automatic garbage collection');
  6481. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  6482. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  6483. }
  6484. core.endGroup();
  6485. const authHelper = gitAuthHelper.createAuthHelper(git, settings);
  6486. try {
  6487. // Configure auth
  6488. core.startGroup('Setting up auth');
  6489. yield authHelper.configureAuth();
  6490. core.endGroup();
  6491. // Determine the default branch
  6492. if (!settings.ref && !settings.commit) {
  6493. core.startGroup('Determining the default branch');
  6494. if (settings.sshKey) {
  6495. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  6496. }
  6497. else {
  6498. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName);
  6499. }
  6500. core.endGroup();
  6501. }
  6502. // LFS install
  6503. if (settings.lfs) {
  6504. yield git.lfsInstall();
  6505. }
  6506. // Fetch
  6507. core.startGroup('Fetching the repository');
  6508. if (settings.fetchDepth <= 0) {
  6509. // Fetch all branches and tags
  6510. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  6511. yield git.fetch(refSpec);
  6512. // When all history is fetched, the ref we're interested in may have moved to a different
  6513. // commit (push or force push). If so, fetch again with a targeted refspec.
  6514. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  6515. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  6516. yield git.fetch(refSpec);
  6517. }
  6518. }
  6519. else {
  6520. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  6521. yield git.fetch(refSpec, settings.fetchDepth);
  6522. }
  6523. core.endGroup();
  6524. // Checkout info
  6525. core.startGroup('Determining the checkout info');
  6526. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  6527. core.endGroup();
  6528. // LFS fetch
  6529. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  6530. // Explicit lfs fetch will fetch lfs objects in parallel.
  6531. if (settings.lfs) {
  6532. core.startGroup('Fetching LFS objects');
  6533. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  6534. core.endGroup();
  6535. }
  6536. // Checkout
  6537. core.startGroup('Checking out the ref');
  6538. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  6539. core.endGroup();
  6540. // Submodules
  6541. if (settings.submodules) {
  6542. try {
  6543. // Temporarily override global config
  6544. core.startGroup('Setting up auth for fetching submodules');
  6545. yield authHelper.configureGlobalAuth();
  6546. core.endGroup();
  6547. // Checkout submodules
  6548. core.startGroup('Fetching submodules');
  6549. yield git.submoduleSync(settings.nestedSubmodules);
  6550. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  6551. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  6552. core.endGroup();
  6553. // Persist credentials
  6554. if (settings.persistCredentials) {
  6555. core.startGroup('Persisting credentials for submodules');
  6556. yield authHelper.configureSubmoduleAuth();
  6557. core.endGroup();
  6558. }
  6559. }
  6560. finally {
  6561. // Remove temporary global config override
  6562. yield authHelper.removeGlobalAuth();
  6563. }
  6564. }
  6565. // Get commit information
  6566. const commitInfo = yield git.log1();
  6567. // Log commit sha
  6568. yield git.log1("--format='%H'");
  6569. // Check for incorrect pull request merge commit
  6570. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit);
  6571. }
  6572. finally {
  6573. // Remove auth
  6574. if (!settings.persistCredentials) {
  6575. core.startGroup('Removing auth');
  6576. yield authHelper.removeAuth();
  6577. core.endGroup();
  6578. }
  6579. }
  6580. });
  6581. }
  6582. exports.getSource = getSource;
  6583. function cleanup(repositoryPath) {
  6584. return __awaiter(this, void 0, void 0, function* () {
  6585. // Repo exists?
  6586. if (!repositoryPath ||
  6587. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  6588. return;
  6589. }
  6590. let git;
  6591. try {
  6592. git = yield gitCommandManager.createCommandManager(repositoryPath, false);
  6593. }
  6594. catch (_a) {
  6595. return;
  6596. }
  6597. // Remove auth
  6598. const authHelper = gitAuthHelper.createAuthHelper(git);
  6599. yield authHelper.removeAuth();
  6600. });
  6601. }
  6602. exports.cleanup = cleanup;
  6603. function getGitCommandManager(settings) {
  6604. return __awaiter(this, void 0, void 0, function* () {
  6605. core.info(`Working directory is '${settings.repositoryPath}'`);
  6606. try {
  6607. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs);
  6608. }
  6609. catch (err) {
  6610. // Git is required for LFS
  6611. if (settings.lfs) {
  6612. throw err;
  6613. }
  6614. // Otherwise fallback to REST API
  6615. return undefined;
  6616. }
  6617. });
  6618. }
  6619. /***/ }),
  6620. /***/ 294:
  6621. /***/ (function(module, __unusedexports, __webpack_require__) {
  6622. module.exports = parseOptions;
  6623. const { Deprecation } = __webpack_require__(692);
  6624. const { getUserAgent } = __webpack_require__(796);
  6625. const once = __webpack_require__(969);
  6626. const pkg = __webpack_require__(215);
  6627. const deprecateOptionsTimeout = once((log, deprecation) =>
  6628. log.warn(deprecation)
  6629. );
  6630. const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation));
  6631. const deprecateOptionsHeaders = once((log, deprecation) =>
  6632. log.warn(deprecation)
  6633. );
  6634. function parseOptions(options, log, hook) {
  6635. if (options.headers) {
  6636. options.headers = Object.keys(options.headers).reduce((newObj, key) => {
  6637. newObj[key.toLowerCase()] = options.headers[key];
  6638. return newObj;
  6639. }, {});
  6640. }
  6641. const clientDefaults = {
  6642. headers: options.headers || {},
  6643. request: options.request || {},
  6644. mediaType: {
  6645. previews: [],
  6646. format: ""
  6647. }
  6648. };
  6649. if (options.baseUrl) {
  6650. clientDefaults.baseUrl = options.baseUrl;
  6651. }
  6652. if (options.userAgent) {
  6653. clientDefaults.headers["user-agent"] = options.userAgent;
  6654. }
  6655. if (options.previews) {
  6656. clientDefaults.mediaType.previews = options.previews;
  6657. }
  6658. if (options.timeZone) {
  6659. clientDefaults.headers["time-zone"] = options.timeZone;
  6660. }
  6661. if (options.timeout) {
  6662. deprecateOptionsTimeout(
  6663. log,
  6664. new Deprecation(
  6665. "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"
  6666. )
  6667. );
  6668. clientDefaults.request.timeout = options.timeout;
  6669. }
  6670. if (options.agent) {
  6671. deprecateOptionsAgent(
  6672. log,
  6673. new Deprecation(
  6674. "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"
  6675. )
  6676. );
  6677. clientDefaults.request.agent = options.agent;
  6678. }
  6679. if (options.headers) {
  6680. deprecateOptionsHeaders(
  6681. log,
  6682. new Deprecation(
  6683. "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"
  6684. )
  6685. );
  6686. }
  6687. const userAgentOption = clientDefaults.headers["user-agent"];
  6688. const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`;
  6689. clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent]
  6690. .filter(Boolean)
  6691. .join(" ");
  6692. clientDefaults.request.hook = hook.bind(null, "request");
  6693. return clientDefaults;
  6694. }
  6695. /***/ }),
  6696. /***/ 297:
  6697. /***/ (function(module) {
  6698. module.exports = class HttpError extends Error {
  6699. constructor (message, code, headers) {
  6700. super(message)
  6701. // Maintains proper stack trace (only available on V8)
  6702. /* istanbul ignore next */
  6703. if (Error.captureStackTrace) {
  6704. Error.captureStackTrace(this, this.constructor)
  6705. }
  6706. this.name = 'HttpError'
  6707. this.code = code
  6708. this.headers = headers
  6709. }
  6710. }
  6711. /***/ }),
  6712. /***/ 299:
  6713. /***/ (function(__unusedmodule, exports) {
  6714. "use strict";
  6715. Object.defineProperty(exports, '__esModule', { value: true });
  6716. const VERSION = "1.1.2";
  6717. /**
  6718. * Some “list” response that can be paginated have a different response structure
  6719. *
  6720. * They have a `total_count` key in the response (search also has `incomplete_results`,
  6721. * /installation/repositories also has `repository_selection`), as well as a key with
  6722. * the list of the items which name varies from endpoint to endpoint:
  6723. *
  6724. * - https://developer.github.com/v3/search/#example (key `items`)
  6725. * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
  6726. * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
  6727. * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
  6728. * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
  6729. *
  6730. * Octokit normalizes these responses so that paginated results are always returned following
  6731. * the same structure. One challenge is that if the list response has only one page, no Link
  6732. * header is provided, so this header alone is not sufficient to check wether a response is
  6733. * paginated or not. For the exceptions with the namespace, a fallback check for the route
  6734. * paths has to be added in order to normalize the response. We cannot check for the total_count
  6735. * property because it also exists in the response of Get the combined status for a specific ref.
  6736. */
  6737. 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))?([^/]|$)/];
  6738. function normalizePaginatedListResponse(octokit, url, response) {
  6739. const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
  6740. const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
  6741. if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
  6742. // to retrieve the same information.
  6743. const incompleteResults = response.data.incomplete_results;
  6744. const repositorySelection = response.data.repository_selection;
  6745. const totalCount = response.data.total_count;
  6746. delete response.data.incomplete_results;
  6747. delete response.data.repository_selection;
  6748. delete response.data.total_count;
  6749. const namespaceKey = Object.keys(response.data)[0];
  6750. const data = response.data[namespaceKey];
  6751. response.data = data;
  6752. if (typeof incompleteResults !== "undefined") {
  6753. response.data.incomplete_results = incompleteResults;
  6754. }
  6755. if (typeof repositorySelection !== "undefined") {
  6756. response.data.repository_selection = repositorySelection;
  6757. }
  6758. response.data.total_count = totalCount;
  6759. Object.defineProperty(response.data, namespaceKey, {
  6760. get() {
  6761. octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
  6762. return Array.from(data);
  6763. }
  6764. });
  6765. }
  6766. function iterator(octokit, route, parameters) {
  6767. const options = octokit.request.endpoint(route, parameters);
  6768. const method = options.method;
  6769. const headers = options.headers;
  6770. let url = options.url;
  6771. return {
  6772. [Symbol.asyncIterator]: () => ({
  6773. next() {
  6774. if (!url) {
  6775. return Promise.resolve({
  6776. done: true
  6777. });
  6778. }
  6779. return octokit.request({
  6780. method,
  6781. url,
  6782. headers
  6783. }).then(response => {
  6784. normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
  6785. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  6786. // sets `url` to undefined if "next" URL is not present or `link` header is not set
  6787. url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
  6788. return {
  6789. value: response
  6790. };
  6791. });
  6792. }
  6793. })
  6794. };
  6795. }
  6796. function paginate(octokit, route, parameters, mapFn) {
  6797. if (typeof parameters === "function") {
  6798. mapFn = parameters;
  6799. parameters = undefined;
  6800. }
  6801. return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
  6802. }
  6803. function gather(octokit, results, iterator, mapFn) {
  6804. return iterator.next().then(result => {
  6805. if (result.done) {
  6806. return results;
  6807. }
  6808. let earlyExit = false;
  6809. function done() {
  6810. earlyExit = true;
  6811. }
  6812. results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
  6813. if (earlyExit) {
  6814. return results;
  6815. }
  6816. return gather(octokit, results, iterator, mapFn);
  6817. });
  6818. }
  6819. /**
  6820. * @param octokit Octokit instance
  6821. * @param options Options passed to Octokit constructor
  6822. */
  6823. function paginateRest(octokit) {
  6824. return {
  6825. paginate: Object.assign(paginate.bind(null, octokit), {
  6826. iterator: iterator.bind(null, octokit)
  6827. })
  6828. };
  6829. }
  6830. paginateRest.VERSION = VERSION;
  6831. exports.paginateRest = paginateRest;
  6832. //# sourceMappingURL=index.js.map
  6833. /***/ }),
  6834. /***/ 323:
  6835. /***/ (function(module) {
  6836. "use strict";
  6837. var isStream = module.exports = function (stream) {
  6838. return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
  6839. };
  6840. isStream.writable = function (stream) {
  6841. return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
  6842. };
  6843. isStream.readable = function (stream) {
  6844. return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
  6845. };
  6846. isStream.duplex = function (stream) {
  6847. return isStream.writable(stream) && isStream.readable(stream);
  6848. };
  6849. isStream.transform = function (stream) {
  6850. return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
  6851. };
  6852. /***/ }),
  6853. /***/ 330:
  6854. /***/ (function(module, __unusedexports, __webpack_require__) {
  6855. module.exports = __webpack_require__(669).inspect;
  6856. /***/ }),
  6857. /***/ 335:
  6858. /***/ (function(module, __unusedexports, __webpack_require__) {
  6859. module.exports = __webpack_require__(179);
  6860. /***/ }),
  6861. /***/ 336:
  6862. /***/ (function(module, __unusedexports, __webpack_require__) {
  6863. module.exports = hasLastPage
  6864. const deprecate = __webpack_require__(370)
  6865. const getPageLinks = __webpack_require__(577)
  6866. function hasLastPage (link) {
  6867. deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  6868. return getPageLinks(link).last
  6869. }
  6870. /***/ }),
  6871. /***/ 348:
  6872. /***/ (function(module, __unusedexports, __webpack_require__) {
  6873. "use strict";
  6874. module.exports = validate;
  6875. const { RequestError } = __webpack_require__(497);
  6876. const get = __webpack_require__(854);
  6877. const set = __webpack_require__(883);
  6878. function validate(octokit, options) {
  6879. if (!options.request.validate) {
  6880. return;
  6881. }
  6882. const { validate: params } = options.request;
  6883. Object.keys(params).forEach(parameterName => {
  6884. const parameter = get(params, parameterName);
  6885. const expectedType = parameter.type;
  6886. let parentParameterName;
  6887. let parentValue;
  6888. let parentParamIsPresent = true;
  6889. let parentParameterIsArray = false;
  6890. if (/\./.test(parameterName)) {
  6891. parentParameterName = parameterName.replace(/\.[^.]+$/, "");
  6892. parentParameterIsArray = parentParameterName.slice(-2) === "[]";
  6893. if (parentParameterIsArray) {
  6894. parentParameterName = parentParameterName.slice(0, -2);
  6895. }
  6896. parentValue = get(options, parentParameterName);
  6897. parentParamIsPresent =
  6898. parentParameterName === "headers" ||
  6899. (typeof parentValue === "object" && parentValue !== null);
  6900. }
  6901. const values = parentParameterIsArray
  6902. ? (get(options, parentParameterName) || []).map(
  6903. value => value[parameterName.split(/\./).pop()]
  6904. )
  6905. : [get(options, parameterName)];
  6906. values.forEach((value, i) => {
  6907. const valueIsPresent = typeof value !== "undefined";
  6908. const valueIsNull = value === null;
  6909. const currentParameterName = parentParameterIsArray
  6910. ? parameterName.replace(/\[\]/, `[${i}]`)
  6911. : parameterName;
  6912. if (!parameter.required && !valueIsPresent) {
  6913. return;
  6914. }
  6915. // if the parent parameter is of type object but allows null
  6916. // then the child parameters can be ignored
  6917. if (!parentParamIsPresent) {
  6918. return;
  6919. }
  6920. if (parameter.allowNull && valueIsNull) {
  6921. return;
  6922. }
  6923. if (!parameter.allowNull && valueIsNull) {
  6924. throw new RequestError(
  6925. `'${currentParameterName}' cannot be null`,
  6926. 400,
  6927. {
  6928. request: options
  6929. }
  6930. );
  6931. }
  6932. if (parameter.required && !valueIsPresent) {
  6933. throw new RequestError(
  6934. `Empty value for parameter '${currentParameterName}': ${JSON.stringify(
  6935. value
  6936. )}`,
  6937. 400,
  6938. {
  6939. request: options
  6940. }
  6941. );
  6942. }
  6943. // parse to integer before checking for enum
  6944. // so that string "1" will match enum with number 1
  6945. if (expectedType === "integer") {
  6946. const unparsedValue = value;
  6947. value = parseInt(value, 10);
  6948. if (isNaN(value)) {
  6949. throw new RequestError(
  6950. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  6951. unparsedValue
  6952. )} is NaN`,
  6953. 400,
  6954. {
  6955. request: options
  6956. }
  6957. );
  6958. }
  6959. }
  6960. if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) {
  6961. throw new RequestError(
  6962. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  6963. value
  6964. )}`,
  6965. 400,
  6966. {
  6967. request: options
  6968. }
  6969. );
  6970. }
  6971. if (parameter.validation) {
  6972. const regex = new RegExp(parameter.validation);
  6973. if (!regex.test(value)) {
  6974. throw new RequestError(
  6975. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  6976. value
  6977. )}`,
  6978. 400,
  6979. {
  6980. request: options
  6981. }
  6982. );
  6983. }
  6984. }
  6985. if (expectedType === "object" && typeof value === "string") {
  6986. try {
  6987. value = JSON.parse(value);
  6988. } catch (exception) {
  6989. throw new RequestError(
  6990. `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(
  6991. value
  6992. )}`,
  6993. 400,
  6994. {
  6995. request: options
  6996. }
  6997. );
  6998. }
  6999. }
  7000. set(options, parameter.mapTo || currentParameterName, value);
  7001. });
  7002. });
  7003. return options;
  7004. }
  7005. /***/ }),
  7006. /***/ 349:
  7007. /***/ (function(module, __unusedexports, __webpack_require__) {
  7008. module.exports = authenticationRequestError;
  7009. const { RequestError } = __webpack_require__(497);
  7010. function authenticationRequestError(state, error, options) {
  7011. /* istanbul ignore next */
  7012. if (!error.headers) throw error;
  7013. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  7014. // handle "2FA required" error only
  7015. if (error.status !== 401 || !otpRequired) {
  7016. throw error;
  7017. }
  7018. if (
  7019. error.status === 401 &&
  7020. otpRequired &&
  7021. error.request &&
  7022. error.request.headers["x-github-otp"]
  7023. ) {
  7024. throw new RequestError(
  7025. "Invalid one-time password for two-factor authentication",
  7026. 401,
  7027. {
  7028. headers: error.headers,
  7029. request: options
  7030. }
  7031. );
  7032. }
  7033. if (typeof state.auth.on2fa !== "function") {
  7034. throw new RequestError(
  7035. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  7036. 401,
  7037. {
  7038. headers: error.headers,
  7039. request: options
  7040. }
  7041. );
  7042. }
  7043. return Promise.resolve()
  7044. .then(() => {
  7045. return state.auth.on2fa();
  7046. })
  7047. .then(oneTimePassword => {
  7048. const newOptions = Object.assign(options, {
  7049. headers: Object.assign(
  7050. { "x-github-otp": oneTimePassword },
  7051. options.headers
  7052. )
  7053. });
  7054. return state.octokit.request(newOptions);
  7055. });
  7056. }
  7057. /***/ }),
  7058. /***/ 353:
  7059. /***/ (function(module) {
  7060. "use strict";
  7061. /* eslint no-invalid-this: 1 */
  7062. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  7063. var slice = Array.prototype.slice;
  7064. var toStr = Object.prototype.toString;
  7065. var funcType = '[object Function]';
  7066. module.exports = function bind(that) {
  7067. var target = this;
  7068. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  7069. throw new TypeError(ERROR_MESSAGE + target);
  7070. }
  7071. var args = slice.call(arguments, 1);
  7072. var bound;
  7073. var binder = function () {
  7074. if (this instanceof bound) {
  7075. var result = target.apply(
  7076. this,
  7077. args.concat(slice.call(arguments))
  7078. );
  7079. if (Object(result) === result) {
  7080. return result;
  7081. }
  7082. return this;
  7083. } else {
  7084. return target.apply(
  7085. that,
  7086. args.concat(slice.call(arguments))
  7087. );
  7088. }
  7089. };
  7090. var boundLength = Math.max(0, target.length - args.length);
  7091. var boundArgs = [];
  7092. for (var i = 0; i < boundLength; i++) {
  7093. boundArgs.push('$' + i);
  7094. }
  7095. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  7096. if (target.prototype) {
  7097. var Empty = function Empty() {};
  7098. Empty.prototype = target.prototype;
  7099. bound.prototype = new Empty();
  7100. Empty.prototype = null;
  7101. }
  7102. return bound;
  7103. };
  7104. /***/ }),
  7105. /***/ 357:
  7106. /***/ (function(module) {
  7107. module.exports = require("assert");
  7108. /***/ }),
  7109. /***/ 363:
  7110. /***/ (function(module) {
  7111. module.exports = register
  7112. function register (state, name, method, options) {
  7113. if (typeof method !== 'function') {
  7114. throw new Error('method for before hook must be a function')
  7115. }
  7116. if (!options) {
  7117. options = {}
  7118. }
  7119. if (Array.isArray(name)) {
  7120. return name.reverse().reduce(function (callback, name) {
  7121. return register.bind(null, state, name, callback, options)
  7122. }, method)()
  7123. }
  7124. return Promise.resolve()
  7125. .then(function () {
  7126. if (!state.registry[name]) {
  7127. return method(options)
  7128. }
  7129. return (state.registry[name]).reduce(function (method, registered) {
  7130. return registered.hook.bind(null, method, options)
  7131. }, method)()
  7132. })
  7133. }
  7134. /***/ }),
  7135. /***/ 368:
  7136. /***/ (function(module) {
  7137. module.exports = function atob(str) {
  7138. return Buffer.from(str, 'base64').toString('binary')
  7139. }
  7140. /***/ }),
  7141. /***/ 370:
  7142. /***/ (function(module) {
  7143. module.exports = deprecate
  7144. const loggedMessages = {}
  7145. function deprecate (message) {
  7146. if (loggedMessages[message]) {
  7147. return
  7148. }
  7149. console.warn(`DEPRECATED (@octokit/rest): ${message}`)
  7150. loggedMessages[message] = 1
  7151. }
  7152. /***/ }),
  7153. /***/ 385:
  7154. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7155. "use strict";
  7156. Object.defineProperty(exports, '__esModule', { value: true });
  7157. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7158. var isPlainObject = _interopDefault(__webpack_require__(696));
  7159. var universalUserAgent = __webpack_require__(562);
  7160. function lowercaseKeys(object) {
  7161. if (!object) {
  7162. return {};
  7163. }
  7164. return Object.keys(object).reduce((newObj, key) => {
  7165. newObj[key.toLowerCase()] = object[key];
  7166. return newObj;
  7167. }, {});
  7168. }
  7169. function mergeDeep(defaults, options) {
  7170. const result = Object.assign({}, defaults);
  7171. Object.keys(options).forEach(key => {
  7172. if (isPlainObject(options[key])) {
  7173. if (!(key in defaults)) Object.assign(result, {
  7174. [key]: options[key]
  7175. });else result[key] = mergeDeep(defaults[key], options[key]);
  7176. } else {
  7177. Object.assign(result, {
  7178. [key]: options[key]
  7179. });
  7180. }
  7181. });
  7182. return result;
  7183. }
  7184. function merge(defaults, route, options) {
  7185. if (typeof route === "string") {
  7186. let [method, url] = route.split(" ");
  7187. options = Object.assign(url ? {
  7188. method,
  7189. url
  7190. } : {
  7191. url: method
  7192. }, options);
  7193. } else {
  7194. options = Object.assign({}, route);
  7195. } // lowercase header names before merging with defaults to avoid duplicates
  7196. options.headers = lowercaseKeys(options.headers);
  7197. const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
  7198. if (defaults && defaults.mediaType.previews.length) {
  7199. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  7200. }
  7201. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
  7202. return mergedOptions;
  7203. }
  7204. function addQueryParameters(url, parameters) {
  7205. const separator = /\?/.test(url) ? "&" : "?";
  7206. const names = Object.keys(parameters);
  7207. if (names.length === 0) {
  7208. return url;
  7209. }
  7210. return url + separator + names.map(name => {
  7211. if (name === "q") {
  7212. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  7213. }
  7214. return `${name}=${encodeURIComponent(parameters[name])}`;
  7215. }).join("&");
  7216. }
  7217. const urlVariableRegex = /\{[^}]+\}/g;
  7218. function removeNonChars(variableName) {
  7219. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  7220. }
  7221. function extractUrlVariableNames(url) {
  7222. const matches = url.match(urlVariableRegex);
  7223. if (!matches) {
  7224. return [];
  7225. }
  7226. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  7227. }
  7228. function omit(object, keysToOmit) {
  7229. return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
  7230. obj[key] = object[key];
  7231. return obj;
  7232. }, {});
  7233. }
  7234. // Based on https://github.com/bramstein/url-template, licensed under BSD
  7235. // TODO: create separate package.
  7236. //
  7237. // Copyright (c) 2012-2014, Bram Stein
  7238. // All rights reserved.
  7239. // Redistribution and use in source and binary forms, with or without
  7240. // modification, are permitted provided that the following conditions
  7241. // are met:
  7242. // 1. Redistributions of source code must retain the above copyright
  7243. // notice, this list of conditions and the following disclaimer.
  7244. // 2. Redistributions in binary form must reproduce the above copyright
  7245. // notice, this list of conditions and the following disclaimer in the
  7246. // documentation and/or other materials provided with the distribution.
  7247. // 3. The name of the author may not be used to endorse or promote products
  7248. // derived from this software without specific prior written permission.
  7249. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  7250. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  7251. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  7252. // EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  7253. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  7254. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  7255. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  7256. // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  7257. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  7258. // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  7259. /* istanbul ignore file */
  7260. function encodeReserved(str) {
  7261. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
  7262. if (!/%[0-9A-Fa-f]/.test(part)) {
  7263. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  7264. }
  7265. return part;
  7266. }).join("");
  7267. }
  7268. function encodeUnreserved(str) {
  7269. return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
  7270. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  7271. });
  7272. }
  7273. function encodeValue(operator, value, key) {
  7274. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  7275. if (key) {
  7276. return encodeUnreserved(key) + "=" + value;
  7277. } else {
  7278. return value;
  7279. }
  7280. }
  7281. function isDefined(value) {
  7282. return value !== undefined && value !== null;
  7283. }
  7284. function isKeyOperator(operator) {
  7285. return operator === ";" || operator === "&" || operator === "?";
  7286. }
  7287. function getValues(context, operator, key, modifier) {
  7288. var value = context[key],
  7289. result = [];
  7290. if (isDefined(value) && value !== "") {
  7291. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  7292. value = value.toString();
  7293. if (modifier && modifier !== "*") {
  7294. value = value.substring(0, parseInt(modifier, 10));
  7295. }
  7296. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7297. } else {
  7298. if (modifier === "*") {
  7299. if (Array.isArray(value)) {
  7300. value.filter(isDefined).forEach(function (value) {
  7301. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7302. });
  7303. } else {
  7304. Object.keys(value).forEach(function (k) {
  7305. if (isDefined(value[k])) {
  7306. result.push(encodeValue(operator, value[k], k));
  7307. }
  7308. });
  7309. }
  7310. } else {
  7311. const tmp = [];
  7312. if (Array.isArray(value)) {
  7313. value.filter(isDefined).forEach(function (value) {
  7314. tmp.push(encodeValue(operator, value));
  7315. });
  7316. } else {
  7317. Object.keys(value).forEach(function (k) {
  7318. if (isDefined(value[k])) {
  7319. tmp.push(encodeUnreserved(k));
  7320. tmp.push(encodeValue(operator, value[k].toString()));
  7321. }
  7322. });
  7323. }
  7324. if (isKeyOperator(operator)) {
  7325. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  7326. } else if (tmp.length !== 0) {
  7327. result.push(tmp.join(","));
  7328. }
  7329. }
  7330. }
  7331. } else {
  7332. if (operator === ";") {
  7333. if (isDefined(value)) {
  7334. result.push(encodeUnreserved(key));
  7335. }
  7336. } else if (value === "" && (operator === "&" || operator === "?")) {
  7337. result.push(encodeUnreserved(key) + "=");
  7338. } else if (value === "") {
  7339. result.push("");
  7340. }
  7341. }
  7342. return result;
  7343. }
  7344. function parseUrl(template) {
  7345. return {
  7346. expand: expand.bind(null, template)
  7347. };
  7348. }
  7349. function expand(template, context) {
  7350. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  7351. return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
  7352. if (expression) {
  7353. let operator = "";
  7354. const values = [];
  7355. if (operators.indexOf(expression.charAt(0)) !== -1) {
  7356. operator = expression.charAt(0);
  7357. expression = expression.substr(1);
  7358. }
  7359. expression.split(/,/g).forEach(function (variable) {
  7360. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  7361. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  7362. });
  7363. if (operator && operator !== "+") {
  7364. var separator = ",";
  7365. if (operator === "?") {
  7366. separator = "&";
  7367. } else if (operator !== "#") {
  7368. separator = operator;
  7369. }
  7370. return (values.length !== 0 ? operator : "") + values.join(separator);
  7371. } else {
  7372. return values.join(",");
  7373. }
  7374. } else {
  7375. return encodeReserved(literal);
  7376. }
  7377. });
  7378. }
  7379. function parse(options) {
  7380. // https://fetch.spec.whatwg.org/#methods
  7381. let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
  7382. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
  7383. let headers = Object.assign({}, options.headers);
  7384. let body;
  7385. let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
  7386. const urlVariableNames = extractUrlVariableNames(url);
  7387. url = parseUrl(url).expand(parameters);
  7388. if (!/^http/.test(url)) {
  7389. url = options.baseUrl + url;
  7390. }
  7391. const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
  7392. const remainingParameters = omit(parameters, omittedParameters);
  7393. const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
  7394. if (!isBinaryRequset) {
  7395. if (options.mediaType.format) {
  7396. // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
  7397. headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
  7398. }
  7399. if (options.mediaType.previews.length) {
  7400. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  7401. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
  7402. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  7403. return `application/vnd.github.${preview}-preview${format}`;
  7404. }).join(",");
  7405. }
  7406. } // for GET/HEAD requests, set URL query parameters from remaining parameters
  7407. // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
  7408. if (["GET", "HEAD"].includes(method)) {
  7409. url = addQueryParameters(url, remainingParameters);
  7410. } else {
  7411. if ("data" in remainingParameters) {
  7412. body = remainingParameters.data;
  7413. } else {
  7414. if (Object.keys(remainingParameters).length) {
  7415. body = remainingParameters;
  7416. } else {
  7417. headers["content-length"] = 0;
  7418. }
  7419. }
  7420. } // default content-type for JSON if body is set
  7421. if (!headers["content-type"] && typeof body !== "undefined") {
  7422. headers["content-type"] = "application/json; charset=utf-8";
  7423. } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
  7424. // fetch does not allow to set `content-length` header, but we can set body to an empty string
  7425. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  7426. body = "";
  7427. } // Only return body/request keys if present
  7428. return Object.assign({
  7429. method,
  7430. url,
  7431. headers
  7432. }, typeof body !== "undefined" ? {
  7433. body
  7434. } : null, options.request ? {
  7435. request: options.request
  7436. } : null);
  7437. }
  7438. function endpointWithDefaults(defaults, route, options) {
  7439. return parse(merge(defaults, route, options));
  7440. }
  7441. function withDefaults(oldDefaults, newDefaults) {
  7442. const DEFAULTS = merge(oldDefaults, newDefaults);
  7443. const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
  7444. return Object.assign(endpoint, {
  7445. DEFAULTS,
  7446. defaults: withDefaults.bind(null, DEFAULTS),
  7447. merge: merge.bind(null, DEFAULTS),
  7448. parse
  7449. });
  7450. }
  7451. const VERSION = "6.0.1";
  7452. const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
  7453. // So we use RequestParameters and add method as additional required property.
  7454. const DEFAULTS = {
  7455. method: "GET",
  7456. baseUrl: "https://api.github.com",
  7457. headers: {
  7458. accept: "application/vnd.github.v3+json",
  7459. "user-agent": userAgent
  7460. },
  7461. mediaType: {
  7462. format: "",
  7463. previews: []
  7464. }
  7465. };
  7466. const endpoint = withDefaults(null, DEFAULTS);
  7467. exports.endpoint = endpoint;
  7468. //# sourceMappingURL=index.js.map
  7469. /***/ }),
  7470. /***/ 386:
  7471. /***/ (function(module, __unusedexports, __webpack_require__) {
  7472. "use strict";
  7473. var stringify = __webpack_require__(897);
  7474. var parse = __webpack_require__(755);
  7475. var formats = __webpack_require__(13);
  7476. module.exports = {
  7477. formats: formats,
  7478. parse: parse,
  7479. stringify: stringify
  7480. };
  7481. /***/ }),
  7482. /***/ 389:
  7483. /***/ (function(module, __unusedexports, __webpack_require__) {
  7484. "use strict";
  7485. const fs = __webpack_require__(747);
  7486. const shebangCommand = __webpack_require__(866);
  7487. function readShebang(command) {
  7488. // Read the first 150 bytes from the file
  7489. const size = 150;
  7490. let buffer;
  7491. if (Buffer.alloc) {
  7492. // Node.js v4.5+ / v5.10+
  7493. buffer = Buffer.alloc(size);
  7494. } else {
  7495. // Old Node.js API
  7496. buffer = new Buffer(size);
  7497. buffer.fill(0); // zero-fill
  7498. }
  7499. let fd;
  7500. try {
  7501. fd = fs.openSync(command, 'r');
  7502. fs.readSync(fd, buffer, 0, size, 0);
  7503. fs.closeSync(fd);
  7504. } catch (e) { /* Empty */ }
  7505. // Attempt to extract shebang (null is returned if not a shebang)
  7506. return shebangCommand(buffer.toString());
  7507. }
  7508. module.exports = readShebang;
  7509. /***/ }),
  7510. /***/ 402:
  7511. /***/ (function(module, __unusedexports, __webpack_require__) {
  7512. module.exports = Octokit;
  7513. const { request } = __webpack_require__(753);
  7514. const Hook = __webpack_require__(523);
  7515. const parseClientOptions = __webpack_require__(294);
  7516. function Octokit(plugins, options) {
  7517. options = options || {};
  7518. const hook = new Hook.Collection();
  7519. const log = Object.assign(
  7520. {
  7521. debug: () => {},
  7522. info: () => {},
  7523. warn: console.warn,
  7524. error: console.error
  7525. },
  7526. options && options.log
  7527. );
  7528. const api = {
  7529. hook,
  7530. log,
  7531. request: request.defaults(parseClientOptions(options, log, hook))
  7532. };
  7533. plugins.forEach(pluginFunction => pluginFunction(api, options));
  7534. return api;
  7535. }
  7536. /***/ }),
  7537. /***/ 413:
  7538. /***/ (function(module) {
  7539. module.exports = require("stream");
  7540. /***/ }),
  7541. /***/ 417:
  7542. /***/ (function(module) {
  7543. module.exports = require("crypto");
  7544. /***/ }),
  7545. /***/ 427:
  7546. /***/ (function(module, __unusedexports, __webpack_require__) {
  7547. "use strict";
  7548. // Older verions of Node.js might not have `util.getSystemErrorName()`.
  7549. // In that case, fall back to a deprecated internal.
  7550. const util = __webpack_require__(669);
  7551. let uv;
  7552. if (typeof util.getSystemErrorName === 'function') {
  7553. module.exports = util.getSystemErrorName;
  7554. } else {
  7555. try {
  7556. uv = process.binding('uv');
  7557. if (typeof uv.errname !== 'function') {
  7558. throw new TypeError('uv.errname is not a function');
  7559. }
  7560. } catch (err) {
  7561. console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
  7562. uv = null;
  7563. }
  7564. module.exports = code => errname(uv, code);
  7565. }
  7566. // Used for testing the fallback behavior
  7567. module.exports.__test__ = errname;
  7568. function errname(uv, code) {
  7569. if (uv) {
  7570. return uv.errname(code);
  7571. }
  7572. if (!(code < 0)) {
  7573. throw new Error('err >= 0');
  7574. }
  7575. return `Unknown system error ${code}`;
  7576. }
  7577. /***/ }),
  7578. /***/ 430:
  7579. /***/ (function(module, __unusedexports, __webpack_require__) {
  7580. module.exports = octokitValidate;
  7581. const validate = __webpack_require__(348);
  7582. function octokitValidate(octokit) {
  7583. octokit.hook.before("request", validate.bind(null, octokit));
  7584. }
  7585. /***/ }),
  7586. /***/ 431:
  7587. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7588. "use strict";
  7589. var __importStar = (this && this.__importStar) || function (mod) {
  7590. if (mod && mod.__esModule) return mod;
  7591. var result = {};
  7592. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  7593. result["default"] = mod;
  7594. return result;
  7595. };
  7596. Object.defineProperty(exports, "__esModule", { value: true });
  7597. const os = __importStar(__webpack_require__(87));
  7598. const utils_1 = __webpack_require__(82);
  7599. /**
  7600. * Commands
  7601. *
  7602. * Command Format:
  7603. * ::name key=value,key=value::message
  7604. *
  7605. * Examples:
  7606. * ::warning::This is the message
  7607. * ::set-env name=MY_VAR::some value
  7608. */
  7609. function issueCommand(command, properties, message) {
  7610. const cmd = new Command(command, properties, message);
  7611. process.stdout.write(cmd.toString() + os.EOL);
  7612. }
  7613. exports.issueCommand = issueCommand;
  7614. function issue(name, message = '') {
  7615. issueCommand(name, {}, message);
  7616. }
  7617. exports.issue = issue;
  7618. const CMD_STRING = '::';
  7619. class Command {
  7620. constructor(command, properties, message) {
  7621. if (!command) {
  7622. command = 'missing.command';
  7623. }
  7624. this.command = command;
  7625. this.properties = properties;
  7626. this.message = message;
  7627. }
  7628. toString() {
  7629. let cmdStr = CMD_STRING + this.command;
  7630. if (this.properties && Object.keys(this.properties).length > 0) {
  7631. cmdStr += ' ';
  7632. let first = true;
  7633. for (const key in this.properties) {
  7634. if (this.properties.hasOwnProperty(key)) {
  7635. const val = this.properties[key];
  7636. if (val) {
  7637. if (first) {
  7638. first = false;
  7639. }
  7640. else {
  7641. cmdStr += ',';
  7642. }
  7643. cmdStr += `${key}=${escapeProperty(val)}`;
  7644. }
  7645. }
  7646. }
  7647. }
  7648. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  7649. return cmdStr;
  7650. }
  7651. }
  7652. function escapeData(s) {
  7653. return utils_1.toCommandValue(s)
  7654. .replace(/%/g, '%25')
  7655. .replace(/\r/g, '%0D')
  7656. .replace(/\n/g, '%0A');
  7657. }
  7658. function escapeProperty(s) {
  7659. return utils_1.toCommandValue(s)
  7660. .replace(/%/g, '%25')
  7661. .replace(/\r/g, '%0D')
  7662. .replace(/\n/g, '%0A')
  7663. .replace(/:/g, '%3A')
  7664. .replace(/,/g, '%2C');
  7665. }
  7666. //# sourceMappingURL=command.js.map
  7667. /***/ }),
  7668. /***/ 438:
  7669. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7670. "use strict";
  7671. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7672. if (k2 === undefined) k2 = k;
  7673. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7674. }) : (function(o, m, k, k2) {
  7675. if (k2 === undefined) k2 = k;
  7676. o[k2] = m[k];
  7677. }));
  7678. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  7679. Object.defineProperty(o, "default", { enumerable: true, value: v });
  7680. }) : function(o, v) {
  7681. o["default"] = v;
  7682. });
  7683. var __importStar = (this && this.__importStar) || function (mod) {
  7684. if (mod && mod.__esModule) return mod;
  7685. var result = {};
  7686. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  7687. __setModuleDefault(result, mod);
  7688. return result;
  7689. };
  7690. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7691. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  7692. return new (P || (P = Promise))(function (resolve, reject) {
  7693. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  7694. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7695. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7696. step((generator = generator.apply(thisArg, _arguments || [])).next());
  7697. });
  7698. };
  7699. Object.defineProperty(exports, "__esModule", { value: true });
  7700. exports.prepareExistingDirectory = void 0;
  7701. const assert = __importStar(__webpack_require__(357));
  7702. const core = __importStar(__webpack_require__(470));
  7703. const fs = __importStar(__webpack_require__(747));
  7704. const fsHelper = __importStar(__webpack_require__(618));
  7705. const io = __importStar(__webpack_require__(1));
  7706. const path = __importStar(__webpack_require__(622));
  7707. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  7708. var _a, _b;
  7709. return __awaiter(this, void 0, void 0, function* () {
  7710. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  7711. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  7712. // Indicates whether to delete the directory contents
  7713. let remove = false;
  7714. // Check whether using git or REST API
  7715. if (!git) {
  7716. remove = true;
  7717. }
  7718. // Fetch URL does not match
  7719. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  7720. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  7721. remove = true;
  7722. }
  7723. else {
  7724. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  7725. const lockPaths = [
  7726. path.join(repositoryPath, '.git', 'index.lock'),
  7727. path.join(repositoryPath, '.git', 'shallow.lock')
  7728. ];
  7729. for (const lockPath of lockPaths) {
  7730. try {
  7731. yield io.rmRF(lockPath);
  7732. }
  7733. catch (error) {
  7734. core.debug(`Unable to delete '${lockPath}'. ${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  7735. }
  7736. }
  7737. try {
  7738. core.startGroup('Removing previously created refs, to avoid conflicts');
  7739. // Checkout detached HEAD
  7740. if (!(yield git.isDetached())) {
  7741. yield git.checkoutDetach();
  7742. }
  7743. // Remove all refs/heads/*
  7744. let branches = yield git.branchList(false);
  7745. for (const branch of branches) {
  7746. yield git.branchDelete(false, branch);
  7747. }
  7748. // Remove any conflicting refs/remotes/origin/*
  7749. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  7750. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  7751. if (ref) {
  7752. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  7753. if (ref.startsWith('refs/heads/')) {
  7754. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  7755. const upperName1Slash = `${upperName1}/`;
  7756. branches = yield git.branchList(true);
  7757. for (const branch of branches) {
  7758. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  7759. const upperName2Slash = `${upperName2}/`;
  7760. if (upperName1.startsWith(upperName2Slash) ||
  7761. upperName2.startsWith(upperName1Slash)) {
  7762. yield git.branchDelete(true, branch);
  7763. }
  7764. }
  7765. }
  7766. }
  7767. core.endGroup();
  7768. // Clean
  7769. if (clean) {
  7770. core.startGroup('Cleaning the repository');
  7771. if (!(yield git.tryClean())) {
  7772. 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}'.`);
  7773. remove = true;
  7774. }
  7775. else if (!(yield git.tryReset())) {
  7776. remove = true;
  7777. }
  7778. core.endGroup();
  7779. if (remove) {
  7780. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  7781. }
  7782. }
  7783. }
  7784. catch (error) {
  7785. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  7786. remove = true;
  7787. }
  7788. }
  7789. if (remove) {
  7790. // Delete the contents of the directory. Don't delete the directory itself
  7791. // since it might be the current working directory.
  7792. core.info(`Deleting the contents of '${repositoryPath}'`);
  7793. for (const file of yield fs.promises.readdir(repositoryPath)) {
  7794. yield io.rmRF(path.join(repositoryPath, file));
  7795. }
  7796. }
  7797. });
  7798. }
  7799. exports.prepareExistingDirectory = prepareExistingDirectory;
  7800. /***/ }),
  7801. /***/ 453:
  7802. /***/ (function(module, __unusedexports, __webpack_require__) {
  7803. var once = __webpack_require__(969)
  7804. var eos = __webpack_require__(3)
  7805. var fs = __webpack_require__(747) // we only need fs to get the ReadStream and WriteStream prototypes
  7806. var noop = function () {}
  7807. var ancient = /^v?\.0/.test(process.version)
  7808. var isFn = function (fn) {
  7809. return typeof fn === 'function'
  7810. }
  7811. var isFS = function (stream) {
  7812. if (!ancient) return false // newer node version do not need to care about fs is a special way
  7813. if (!fs) return false // browser
  7814. return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
  7815. }
  7816. var isRequest = function (stream) {
  7817. return stream.setHeader && isFn(stream.abort)
  7818. }
  7819. var destroyer = function (stream, reading, writing, callback) {
  7820. callback = once(callback)
  7821. var closed = false
  7822. stream.on('close', function () {
  7823. closed = true
  7824. })
  7825. eos(stream, {readable: reading, writable: writing}, function (err) {
  7826. if (err) return callback(err)
  7827. closed = true
  7828. callback()
  7829. })
  7830. var destroyed = false
  7831. return function (err) {
  7832. if (closed) return
  7833. if (destroyed) return
  7834. destroyed = true
  7835. if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
  7836. if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
  7837. if (isFn(stream.destroy)) return stream.destroy()
  7838. callback(err || new Error('stream was destroyed'))
  7839. }
  7840. }
  7841. var call = function (fn) {
  7842. fn()
  7843. }
  7844. var pipe = function (from, to) {
  7845. return from.pipe(to)
  7846. }
  7847. var pump = function () {
  7848. var streams = Array.prototype.slice.call(arguments)
  7849. var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
  7850. if (Array.isArray(streams[0])) streams = streams[0]
  7851. if (streams.length < 2) throw new Error('pump requires two streams per minimum')
  7852. var error
  7853. var destroys = streams.map(function (stream, i) {
  7854. var reading = i < streams.length - 1
  7855. var writing = i > 0
  7856. return destroyer(stream, reading, writing, function (err) {
  7857. if (!error) error = err
  7858. if (err) destroys.forEach(call)
  7859. if (reading) return
  7860. destroys.forEach(call)
  7861. callback(error)
  7862. })
  7863. })
  7864. return streams.reduce(pipe)
  7865. }
  7866. module.exports = pump
  7867. /***/ }),
  7868. /***/ 454:
  7869. /***/ (function(module, exports, __webpack_require__) {
  7870. "use strict";
  7871. Object.defineProperty(exports, '__esModule', { value: true });
  7872. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7873. var Stream = _interopDefault(__webpack_require__(413));
  7874. var http = _interopDefault(__webpack_require__(605));
  7875. var Url = _interopDefault(__webpack_require__(835));
  7876. var whatwgUrl = _interopDefault(__webpack_require__(70));
  7877. var https = _interopDefault(__webpack_require__(34));
  7878. var zlib = _interopDefault(__webpack_require__(761));
  7879. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  7880. // fix for "Readable" isn't a named export issue
  7881. const Readable = Stream.Readable;
  7882. const BUFFER = Symbol('buffer');
  7883. const TYPE = Symbol('type');
  7884. class Blob {
  7885. constructor() {
  7886. this[TYPE] = '';
  7887. const blobParts = arguments[0];
  7888. const options = arguments[1];
  7889. const buffers = [];
  7890. let size = 0;
  7891. if (blobParts) {
  7892. const a = blobParts;
  7893. const length = Number(a.length);
  7894. for (let i = 0; i < length; i++) {
  7895. const element = a[i];
  7896. let buffer;
  7897. if (element instanceof Buffer) {
  7898. buffer = element;
  7899. } else if (ArrayBuffer.isView(element)) {
  7900. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  7901. } else if (element instanceof ArrayBuffer) {
  7902. buffer = Buffer.from(element);
  7903. } else if (element instanceof Blob) {
  7904. buffer = element[BUFFER];
  7905. } else {
  7906. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  7907. }
  7908. size += buffer.length;
  7909. buffers.push(buffer);
  7910. }
  7911. }
  7912. this[BUFFER] = Buffer.concat(buffers);
  7913. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  7914. if (type && !/[^\u0020-\u007E]/.test(type)) {
  7915. this[TYPE] = type;
  7916. }
  7917. }
  7918. get size() {
  7919. return this[BUFFER].length;
  7920. }
  7921. get type() {
  7922. return this[TYPE];
  7923. }
  7924. text() {
  7925. return Promise.resolve(this[BUFFER].toString());
  7926. }
  7927. arrayBuffer() {
  7928. const buf = this[BUFFER];
  7929. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  7930. return Promise.resolve(ab);
  7931. }
  7932. stream() {
  7933. const readable = new Readable();
  7934. readable._read = function () {};
  7935. readable.push(this[BUFFER]);
  7936. readable.push(null);
  7937. return readable;
  7938. }
  7939. toString() {
  7940. return '[object Blob]';
  7941. }
  7942. slice() {
  7943. const size = this.size;
  7944. const start = arguments[0];
  7945. const end = arguments[1];
  7946. let relativeStart, relativeEnd;
  7947. if (start === undefined) {
  7948. relativeStart = 0;
  7949. } else if (start < 0) {
  7950. relativeStart = Math.max(size + start, 0);
  7951. } else {
  7952. relativeStart = Math.min(start, size);
  7953. }
  7954. if (end === undefined) {
  7955. relativeEnd = size;
  7956. } else if (end < 0) {
  7957. relativeEnd = Math.max(size + end, 0);
  7958. } else {
  7959. relativeEnd = Math.min(end, size);
  7960. }
  7961. const span = Math.max(relativeEnd - relativeStart, 0);
  7962. const buffer = this[BUFFER];
  7963. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  7964. const blob = new Blob([], { type: arguments[2] });
  7965. blob[BUFFER] = slicedBuffer;
  7966. return blob;
  7967. }
  7968. }
  7969. Object.defineProperties(Blob.prototype, {
  7970. size: { enumerable: true },
  7971. type: { enumerable: true },
  7972. slice: { enumerable: true }
  7973. });
  7974. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  7975. value: 'Blob',
  7976. writable: false,
  7977. enumerable: false,
  7978. configurable: true
  7979. });
  7980. /**
  7981. * fetch-error.js
  7982. *
  7983. * FetchError interface for operational errors
  7984. */
  7985. /**
  7986. * Create FetchError instance
  7987. *
  7988. * @param String message Error message for human
  7989. * @param String type Error type for machine
  7990. * @param String systemError For Node.js system error
  7991. * @return FetchError
  7992. */
  7993. function FetchError(message, type, systemError) {
  7994. Error.call(this, message);
  7995. this.message = message;
  7996. this.type = type;
  7997. // when err.type is `system`, err.code contains system error code
  7998. if (systemError) {
  7999. this.code = this.errno = systemError.code;
  8000. }
  8001. // hide custom error implementation details from end-users
  8002. Error.captureStackTrace(this, this.constructor);
  8003. }
  8004. FetchError.prototype = Object.create(Error.prototype);
  8005. FetchError.prototype.constructor = FetchError;
  8006. FetchError.prototype.name = 'FetchError';
  8007. let convert;
  8008. try {
  8009. convert = __webpack_require__(18).convert;
  8010. } catch (e) {}
  8011. const INTERNALS = Symbol('Body internals');
  8012. // fix an issue where "PassThrough" isn't a named export for node <10
  8013. const PassThrough = Stream.PassThrough;
  8014. /**
  8015. * Body mixin
  8016. *
  8017. * Ref: https://fetch.spec.whatwg.org/#body
  8018. *
  8019. * @param Stream body Readable stream
  8020. * @param Object opts Response options
  8021. * @return Void
  8022. */
  8023. function Body(body) {
  8024. var _this = this;
  8025. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  8026. _ref$size = _ref.size;
  8027. let size = _ref$size === undefined ? 0 : _ref$size;
  8028. var _ref$timeout = _ref.timeout;
  8029. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  8030. if (body == null) {
  8031. // body is undefined or null
  8032. body = null;
  8033. } else if (isURLSearchParams(body)) {
  8034. // body is a URLSearchParams
  8035. body = Buffer.from(body.toString());
  8036. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8037. // body is ArrayBuffer
  8038. body = Buffer.from(body);
  8039. } else if (ArrayBuffer.isView(body)) {
  8040. // body is ArrayBufferView
  8041. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  8042. } else if (body instanceof Stream) ; else {
  8043. // none of the above
  8044. // coerce to string then buffer
  8045. body = Buffer.from(String(body));
  8046. }
  8047. this[INTERNALS] = {
  8048. body,
  8049. disturbed: false,
  8050. error: null
  8051. };
  8052. this.size = size;
  8053. this.timeout = timeout;
  8054. if (body instanceof Stream) {
  8055. body.on('error', function (err) {
  8056. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  8057. _this[INTERNALS].error = error;
  8058. });
  8059. }
  8060. }
  8061. Body.prototype = {
  8062. get body() {
  8063. return this[INTERNALS].body;
  8064. },
  8065. get bodyUsed() {
  8066. return this[INTERNALS].disturbed;
  8067. },
  8068. /**
  8069. * Decode response as ArrayBuffer
  8070. *
  8071. * @return Promise
  8072. */
  8073. arrayBuffer() {
  8074. return consumeBody.call(this).then(function (buf) {
  8075. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  8076. });
  8077. },
  8078. /**
  8079. * Return raw response as Blob
  8080. *
  8081. * @return Promise
  8082. */
  8083. blob() {
  8084. let ct = this.headers && this.headers.get('content-type') || '';
  8085. return consumeBody.call(this).then(function (buf) {
  8086. return Object.assign(
  8087. // Prevent copying
  8088. new Blob([], {
  8089. type: ct.toLowerCase()
  8090. }), {
  8091. [BUFFER]: buf
  8092. });
  8093. });
  8094. },
  8095. /**
  8096. * Decode response as json
  8097. *
  8098. * @return Promise
  8099. */
  8100. json() {
  8101. var _this2 = this;
  8102. return consumeBody.call(this).then(function (buffer) {
  8103. try {
  8104. return JSON.parse(buffer.toString());
  8105. } catch (err) {
  8106. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  8107. }
  8108. });
  8109. },
  8110. /**
  8111. * Decode response as text
  8112. *
  8113. * @return Promise
  8114. */
  8115. text() {
  8116. return consumeBody.call(this).then(function (buffer) {
  8117. return buffer.toString();
  8118. });
  8119. },
  8120. /**
  8121. * Decode response as buffer (non-spec api)
  8122. *
  8123. * @return Promise
  8124. */
  8125. buffer() {
  8126. return consumeBody.call(this);
  8127. },
  8128. /**
  8129. * Decode response as text, while automatically detecting the encoding and
  8130. * trying to decode to UTF-8 (non-spec api)
  8131. *
  8132. * @return Promise
  8133. */
  8134. textConverted() {
  8135. var _this3 = this;
  8136. return consumeBody.call(this).then(function (buffer) {
  8137. return convertBody(buffer, _this3.headers);
  8138. });
  8139. }
  8140. };
  8141. // In browsers, all properties are enumerable.
  8142. Object.defineProperties(Body.prototype, {
  8143. body: { enumerable: true },
  8144. bodyUsed: { enumerable: true },
  8145. arrayBuffer: { enumerable: true },
  8146. blob: { enumerable: true },
  8147. json: { enumerable: true },
  8148. text: { enumerable: true }
  8149. });
  8150. Body.mixIn = function (proto) {
  8151. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  8152. // istanbul ignore else: future proof
  8153. if (!(name in proto)) {
  8154. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  8155. Object.defineProperty(proto, name, desc);
  8156. }
  8157. }
  8158. };
  8159. /**
  8160. * Consume and convert an entire Body to a Buffer.
  8161. *
  8162. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  8163. *
  8164. * @return Promise
  8165. */
  8166. function consumeBody() {
  8167. var _this4 = this;
  8168. if (this[INTERNALS].disturbed) {
  8169. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  8170. }
  8171. this[INTERNALS].disturbed = true;
  8172. if (this[INTERNALS].error) {
  8173. return Body.Promise.reject(this[INTERNALS].error);
  8174. }
  8175. let body = this.body;
  8176. // body is null
  8177. if (body === null) {
  8178. return Body.Promise.resolve(Buffer.alloc(0));
  8179. }
  8180. // body is blob
  8181. if (isBlob(body)) {
  8182. body = body.stream();
  8183. }
  8184. // body is buffer
  8185. if (Buffer.isBuffer(body)) {
  8186. return Body.Promise.resolve(body);
  8187. }
  8188. // istanbul ignore if: should never happen
  8189. if (!(body instanceof Stream)) {
  8190. return Body.Promise.resolve(Buffer.alloc(0));
  8191. }
  8192. // body is stream
  8193. // get ready to actually consume the body
  8194. let accum = [];
  8195. let accumBytes = 0;
  8196. let abort = false;
  8197. return new Body.Promise(function (resolve, reject) {
  8198. let resTimeout;
  8199. // allow timeout on slow response body
  8200. if (_this4.timeout) {
  8201. resTimeout = setTimeout(function () {
  8202. abort = true;
  8203. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  8204. }, _this4.timeout);
  8205. }
  8206. // handle stream errors
  8207. body.on('error', function (err) {
  8208. if (err.name === 'AbortError') {
  8209. // if the request was aborted, reject with this Error
  8210. abort = true;
  8211. reject(err);
  8212. } else {
  8213. // other errors, such as incorrect content-encoding
  8214. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  8215. }
  8216. });
  8217. body.on('data', function (chunk) {
  8218. if (abort || chunk === null) {
  8219. return;
  8220. }
  8221. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  8222. abort = true;
  8223. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  8224. return;
  8225. }
  8226. accumBytes += chunk.length;
  8227. accum.push(chunk);
  8228. });
  8229. body.on('end', function () {
  8230. if (abort) {
  8231. return;
  8232. }
  8233. clearTimeout(resTimeout);
  8234. try {
  8235. resolve(Buffer.concat(accum, accumBytes));
  8236. } catch (err) {
  8237. // handle streams that have accumulated too much data (issue #414)
  8238. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  8239. }
  8240. });
  8241. });
  8242. }
  8243. /**
  8244. * Detect buffer encoding and convert to target encoding
  8245. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  8246. *
  8247. * @param Buffer buffer Incoming buffer
  8248. * @param String encoding Target encoding
  8249. * @return String
  8250. */
  8251. function convertBody(buffer, headers) {
  8252. if (typeof convert !== 'function') {
  8253. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  8254. }
  8255. const ct = headers.get('content-type');
  8256. let charset = 'utf-8';
  8257. let res, str;
  8258. // header
  8259. if (ct) {
  8260. res = /charset=([^;]*)/i.exec(ct);
  8261. }
  8262. // no charset in content type, peek at response body for at most 1024 bytes
  8263. str = buffer.slice(0, 1024).toString();
  8264. // html5
  8265. if (!res && str) {
  8266. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  8267. }
  8268. // html4
  8269. if (!res && str) {
  8270. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  8271. if (!res) {
  8272. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  8273. if (res) {
  8274. res.pop(); // drop last quote
  8275. }
  8276. }
  8277. if (res) {
  8278. res = /charset=(.*)/i.exec(res.pop());
  8279. }
  8280. }
  8281. // xml
  8282. if (!res && str) {
  8283. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  8284. }
  8285. // found charset
  8286. if (res) {
  8287. charset = res.pop();
  8288. // prevent decode issues when sites use incorrect encoding
  8289. // ref: https://hsivonen.fi/encoding-menu/
  8290. if (charset === 'gb2312' || charset === 'gbk') {
  8291. charset = 'gb18030';
  8292. }
  8293. }
  8294. // turn raw buffers into a single utf-8 buffer
  8295. return convert(buffer, 'UTF-8', charset).toString();
  8296. }
  8297. /**
  8298. * Detect a URLSearchParams object
  8299. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  8300. *
  8301. * @param Object obj Object to detect by type or brand
  8302. * @return String
  8303. */
  8304. function isURLSearchParams(obj) {
  8305. // Duck-typing as a necessary condition.
  8306. 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') {
  8307. return false;
  8308. }
  8309. // Brand-checking and more duck-typing as optional condition.
  8310. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  8311. }
  8312. /**
  8313. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  8314. * @param {*} obj
  8315. * @return {boolean}
  8316. */
  8317. function isBlob(obj) {
  8318. 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]);
  8319. }
  8320. /**
  8321. * Clone body given Res/Req instance
  8322. *
  8323. * @param Mixed instance Response or Request instance
  8324. * @return Mixed
  8325. */
  8326. function clone(instance) {
  8327. let p1, p2;
  8328. let body = instance.body;
  8329. // don't allow cloning a used body
  8330. if (instance.bodyUsed) {
  8331. throw new Error('cannot clone body after it is used');
  8332. }
  8333. // check that body is a stream and not form-data object
  8334. // note: we can't clone the form-data object without having it as a dependency
  8335. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  8336. // tee instance body
  8337. p1 = new PassThrough();
  8338. p2 = new PassThrough();
  8339. body.pipe(p1);
  8340. body.pipe(p2);
  8341. // set instance body to teed body and return the other teed body
  8342. instance[INTERNALS].body = p1;
  8343. body = p2;
  8344. }
  8345. return body;
  8346. }
  8347. /**
  8348. * Performs the operation "extract a `Content-Type` value from |object|" as
  8349. * specified in the specification:
  8350. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  8351. *
  8352. * This function assumes that instance.body is present.
  8353. *
  8354. * @param Mixed instance Any options.body input
  8355. */
  8356. function extractContentType(body) {
  8357. if (body === null) {
  8358. // body is null
  8359. return null;
  8360. } else if (typeof body === 'string') {
  8361. // body is string
  8362. return 'text/plain;charset=UTF-8';
  8363. } else if (isURLSearchParams(body)) {
  8364. // body is a URLSearchParams
  8365. return 'application/x-www-form-urlencoded;charset=UTF-8';
  8366. } else if (isBlob(body)) {
  8367. // body is blob
  8368. return body.type || null;
  8369. } else if (Buffer.isBuffer(body)) {
  8370. // body is buffer
  8371. return null;
  8372. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8373. // body is ArrayBuffer
  8374. return null;
  8375. } else if (ArrayBuffer.isView(body)) {
  8376. // body is ArrayBufferView
  8377. return null;
  8378. } else if (typeof body.getBoundary === 'function') {
  8379. // detect form data input from form-data module
  8380. return `multipart/form-data;boundary=${body.getBoundary()}`;
  8381. } else if (body instanceof Stream) {
  8382. // body is stream
  8383. // can't really do much about this
  8384. return null;
  8385. } else {
  8386. // Body constructor defaults other things to string
  8387. return 'text/plain;charset=UTF-8';
  8388. }
  8389. }
  8390. /**
  8391. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  8392. * For us, we have to explicitly get it with a function.
  8393. *
  8394. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  8395. *
  8396. * @param Body instance Instance of Body
  8397. * @return Number? Number of bytes, or null if not possible
  8398. */
  8399. function getTotalBytes(instance) {
  8400. const body = instance.body;
  8401. if (body === null) {
  8402. // body is null
  8403. return 0;
  8404. } else if (isBlob(body)) {
  8405. return body.size;
  8406. } else if (Buffer.isBuffer(body)) {
  8407. // body is buffer
  8408. return body.length;
  8409. } else if (body && typeof body.getLengthSync === 'function') {
  8410. // detect form data input from form-data module
  8411. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  8412. body.hasKnownLength && body.hasKnownLength()) {
  8413. // 2.x
  8414. return body.getLengthSync();
  8415. }
  8416. return null;
  8417. } else {
  8418. // body is stream
  8419. return null;
  8420. }
  8421. }
  8422. /**
  8423. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  8424. *
  8425. * @param Body instance Instance of Body
  8426. * @return Void
  8427. */
  8428. function writeToStream(dest, instance) {
  8429. const body = instance.body;
  8430. if (body === null) {
  8431. // body is null
  8432. dest.end();
  8433. } else if (isBlob(body)) {
  8434. body.stream().pipe(dest);
  8435. } else if (Buffer.isBuffer(body)) {
  8436. // body is buffer
  8437. dest.write(body);
  8438. dest.end();
  8439. } else {
  8440. // body is stream
  8441. body.pipe(dest);
  8442. }
  8443. }
  8444. // expose Promise
  8445. Body.Promise = global.Promise;
  8446. /**
  8447. * headers.js
  8448. *
  8449. * Headers class offers convenient helpers
  8450. */
  8451. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  8452. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  8453. function validateName(name) {
  8454. name = `${name}`;
  8455. if (invalidTokenRegex.test(name) || name === '') {
  8456. throw new TypeError(`${name} is not a legal HTTP header name`);
  8457. }
  8458. }
  8459. function validateValue(value) {
  8460. value = `${value}`;
  8461. if (invalidHeaderCharRegex.test(value)) {
  8462. throw new TypeError(`${value} is not a legal HTTP header value`);
  8463. }
  8464. }
  8465. /**
  8466. * Find the key in the map object given a header name.
  8467. *
  8468. * Returns undefined if not found.
  8469. *
  8470. * @param String name Header name
  8471. * @return String|Undefined
  8472. */
  8473. function find(map, name) {
  8474. name = name.toLowerCase();
  8475. for (const key in map) {
  8476. if (key.toLowerCase() === name) {
  8477. return key;
  8478. }
  8479. }
  8480. return undefined;
  8481. }
  8482. const MAP = Symbol('map');
  8483. class Headers {
  8484. /**
  8485. * Headers class
  8486. *
  8487. * @param Object headers Response headers
  8488. * @return Void
  8489. */
  8490. constructor() {
  8491. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  8492. this[MAP] = Object.create(null);
  8493. if (init instanceof Headers) {
  8494. const rawHeaders = init.raw();
  8495. const headerNames = Object.keys(rawHeaders);
  8496. for (const headerName of headerNames) {
  8497. for (const value of rawHeaders[headerName]) {
  8498. this.append(headerName, value);
  8499. }
  8500. }
  8501. return;
  8502. }
  8503. // We don't worry about converting prop to ByteString here as append()
  8504. // will handle it.
  8505. if (init == null) ; else if (typeof init === 'object') {
  8506. const method = init[Symbol.iterator];
  8507. if (method != null) {
  8508. if (typeof method !== 'function') {
  8509. throw new TypeError('Header pairs must be iterable');
  8510. }
  8511. // sequence<sequence<ByteString>>
  8512. // Note: per spec we have to first exhaust the lists then process them
  8513. const pairs = [];
  8514. for (const pair of init) {
  8515. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  8516. throw new TypeError('Each header pair must be iterable');
  8517. }
  8518. pairs.push(Array.from(pair));
  8519. }
  8520. for (const pair of pairs) {
  8521. if (pair.length !== 2) {
  8522. throw new TypeError('Each header pair must be a name/value tuple');
  8523. }
  8524. this.append(pair[0], pair[1]);
  8525. }
  8526. } else {
  8527. // record<ByteString, ByteString>
  8528. for (const key of Object.keys(init)) {
  8529. const value = init[key];
  8530. this.append(key, value);
  8531. }
  8532. }
  8533. } else {
  8534. throw new TypeError('Provided initializer must be an object');
  8535. }
  8536. }
  8537. /**
  8538. * Return combined header value given name
  8539. *
  8540. * @param String name Header name
  8541. * @return Mixed
  8542. */
  8543. get(name) {
  8544. name = `${name}`;
  8545. validateName(name);
  8546. const key = find(this[MAP], name);
  8547. if (key === undefined) {
  8548. return null;
  8549. }
  8550. return this[MAP][key].join(', ');
  8551. }
  8552. /**
  8553. * Iterate over all headers
  8554. *
  8555. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  8556. * @param Boolean thisArg `this` context for callback function
  8557. * @return Void
  8558. */
  8559. forEach(callback) {
  8560. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  8561. let pairs = getHeaders(this);
  8562. let i = 0;
  8563. while (i < pairs.length) {
  8564. var _pairs$i = pairs[i];
  8565. const name = _pairs$i[0],
  8566. value = _pairs$i[1];
  8567. callback.call(thisArg, value, name, this);
  8568. pairs = getHeaders(this);
  8569. i++;
  8570. }
  8571. }
  8572. /**
  8573. * Overwrite header values given name
  8574. *
  8575. * @param String name Header name
  8576. * @param String value Header value
  8577. * @return Void
  8578. */
  8579. set(name, value) {
  8580. name = `${name}`;
  8581. value = `${value}`;
  8582. validateName(name);
  8583. validateValue(value);
  8584. const key = find(this[MAP], name);
  8585. this[MAP][key !== undefined ? key : name] = [value];
  8586. }
  8587. /**
  8588. * Append a value onto existing header
  8589. *
  8590. * @param String name Header name
  8591. * @param String value Header value
  8592. * @return Void
  8593. */
  8594. append(name, value) {
  8595. name = `${name}`;
  8596. value = `${value}`;
  8597. validateName(name);
  8598. validateValue(value);
  8599. const key = find(this[MAP], name);
  8600. if (key !== undefined) {
  8601. this[MAP][key].push(value);
  8602. } else {
  8603. this[MAP][name] = [value];
  8604. }
  8605. }
  8606. /**
  8607. * Check for header name existence
  8608. *
  8609. * @param String name Header name
  8610. * @return Boolean
  8611. */
  8612. has(name) {
  8613. name = `${name}`;
  8614. validateName(name);
  8615. return find(this[MAP], name) !== undefined;
  8616. }
  8617. /**
  8618. * Delete all header values given name
  8619. *
  8620. * @param String name Header name
  8621. * @return Void
  8622. */
  8623. delete(name) {
  8624. name = `${name}`;
  8625. validateName(name);
  8626. const key = find(this[MAP], name);
  8627. if (key !== undefined) {
  8628. delete this[MAP][key];
  8629. }
  8630. }
  8631. /**
  8632. * Return raw headers (non-spec api)
  8633. *
  8634. * @return Object
  8635. */
  8636. raw() {
  8637. return this[MAP];
  8638. }
  8639. /**
  8640. * Get an iterator on keys.
  8641. *
  8642. * @return Iterator
  8643. */
  8644. keys() {
  8645. return createHeadersIterator(this, 'key');
  8646. }
  8647. /**
  8648. * Get an iterator on values.
  8649. *
  8650. * @return Iterator
  8651. */
  8652. values() {
  8653. return createHeadersIterator(this, 'value');
  8654. }
  8655. /**
  8656. * Get an iterator on entries.
  8657. *
  8658. * This is the default iterator of the Headers object.
  8659. *
  8660. * @return Iterator
  8661. */
  8662. [Symbol.iterator]() {
  8663. return createHeadersIterator(this, 'key+value');
  8664. }
  8665. }
  8666. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  8667. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  8668. value: 'Headers',
  8669. writable: false,
  8670. enumerable: false,
  8671. configurable: true
  8672. });
  8673. Object.defineProperties(Headers.prototype, {
  8674. get: { enumerable: true },
  8675. forEach: { enumerable: true },
  8676. set: { enumerable: true },
  8677. append: { enumerable: true },
  8678. has: { enumerable: true },
  8679. delete: { enumerable: true },
  8680. keys: { enumerable: true },
  8681. values: { enumerable: true },
  8682. entries: { enumerable: true }
  8683. });
  8684. function getHeaders(headers) {
  8685. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  8686. const keys = Object.keys(headers[MAP]).sort();
  8687. return keys.map(kind === 'key' ? function (k) {
  8688. return k.toLowerCase();
  8689. } : kind === 'value' ? function (k) {
  8690. return headers[MAP][k].join(', ');
  8691. } : function (k) {
  8692. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  8693. });
  8694. }
  8695. const INTERNAL = Symbol('internal');
  8696. function createHeadersIterator(target, kind) {
  8697. const iterator = Object.create(HeadersIteratorPrototype);
  8698. iterator[INTERNAL] = {
  8699. target,
  8700. kind,
  8701. index: 0
  8702. };
  8703. return iterator;
  8704. }
  8705. const HeadersIteratorPrototype = Object.setPrototypeOf({
  8706. next() {
  8707. // istanbul ignore if
  8708. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  8709. throw new TypeError('Value of `this` is not a HeadersIterator');
  8710. }
  8711. var _INTERNAL = this[INTERNAL];
  8712. const target = _INTERNAL.target,
  8713. kind = _INTERNAL.kind,
  8714. index = _INTERNAL.index;
  8715. const values = getHeaders(target, kind);
  8716. const len = values.length;
  8717. if (index >= len) {
  8718. return {
  8719. value: undefined,
  8720. done: true
  8721. };
  8722. }
  8723. this[INTERNAL].index = index + 1;
  8724. return {
  8725. value: values[index],
  8726. done: false
  8727. };
  8728. }
  8729. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  8730. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  8731. value: 'HeadersIterator',
  8732. writable: false,
  8733. enumerable: false,
  8734. configurable: true
  8735. });
  8736. /**
  8737. * Export the Headers object in a form that Node.js can consume.
  8738. *
  8739. * @param Headers headers
  8740. * @return Object
  8741. */
  8742. function exportNodeCompatibleHeaders(headers) {
  8743. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  8744. // http.request() only supports string as Host header. This hack makes
  8745. // specifying custom Host header possible.
  8746. const hostHeaderKey = find(headers[MAP], 'Host');
  8747. if (hostHeaderKey !== undefined) {
  8748. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  8749. }
  8750. return obj;
  8751. }
  8752. /**
  8753. * Create a Headers object from an object of headers, ignoring those that do
  8754. * not conform to HTTP grammar productions.
  8755. *
  8756. * @param Object obj Object of headers
  8757. * @return Headers
  8758. */
  8759. function createHeadersLenient(obj) {
  8760. const headers = new Headers();
  8761. for (const name of Object.keys(obj)) {
  8762. if (invalidTokenRegex.test(name)) {
  8763. continue;
  8764. }
  8765. if (Array.isArray(obj[name])) {
  8766. for (const val of obj[name]) {
  8767. if (invalidHeaderCharRegex.test(val)) {
  8768. continue;
  8769. }
  8770. if (headers[MAP][name] === undefined) {
  8771. headers[MAP][name] = [val];
  8772. } else {
  8773. headers[MAP][name].push(val);
  8774. }
  8775. }
  8776. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  8777. headers[MAP][name] = [obj[name]];
  8778. }
  8779. }
  8780. return headers;
  8781. }
  8782. const INTERNALS$1 = Symbol('Response internals');
  8783. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  8784. const STATUS_CODES = http.STATUS_CODES;
  8785. /**
  8786. * Response class
  8787. *
  8788. * @param Stream body Readable stream
  8789. * @param Object opts Response options
  8790. * @return Void
  8791. */
  8792. class Response {
  8793. constructor() {
  8794. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  8795. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8796. Body.call(this, body, opts);
  8797. const status = opts.status || 200;
  8798. const headers = new Headers(opts.headers);
  8799. if (body != null && !headers.has('Content-Type')) {
  8800. const contentType = extractContentType(body);
  8801. if (contentType) {
  8802. headers.append('Content-Type', contentType);
  8803. }
  8804. }
  8805. this[INTERNALS$1] = {
  8806. url: opts.url,
  8807. status,
  8808. statusText: opts.statusText || STATUS_CODES[status],
  8809. headers,
  8810. counter: opts.counter
  8811. };
  8812. }
  8813. get url() {
  8814. return this[INTERNALS$1].url || '';
  8815. }
  8816. get status() {
  8817. return this[INTERNALS$1].status;
  8818. }
  8819. /**
  8820. * Convenience property representing if the request ended normally
  8821. */
  8822. get ok() {
  8823. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  8824. }
  8825. get redirected() {
  8826. return this[INTERNALS$1].counter > 0;
  8827. }
  8828. get statusText() {
  8829. return this[INTERNALS$1].statusText;
  8830. }
  8831. get headers() {
  8832. return this[INTERNALS$1].headers;
  8833. }
  8834. /**
  8835. * Clone this response
  8836. *
  8837. * @return Response
  8838. */
  8839. clone() {
  8840. return new Response(clone(this), {
  8841. url: this.url,
  8842. status: this.status,
  8843. statusText: this.statusText,
  8844. headers: this.headers,
  8845. ok: this.ok,
  8846. redirected: this.redirected
  8847. });
  8848. }
  8849. }
  8850. Body.mixIn(Response.prototype);
  8851. Object.defineProperties(Response.prototype, {
  8852. url: { enumerable: true },
  8853. status: { enumerable: true },
  8854. ok: { enumerable: true },
  8855. redirected: { enumerable: true },
  8856. statusText: { enumerable: true },
  8857. headers: { enumerable: true },
  8858. clone: { enumerable: true }
  8859. });
  8860. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  8861. value: 'Response',
  8862. writable: false,
  8863. enumerable: false,
  8864. configurable: true
  8865. });
  8866. const INTERNALS$2 = Symbol('Request internals');
  8867. const URL = whatwgUrl.URL;
  8868. // fix an issue where "format", "parse" aren't a named export for node <10
  8869. const parse_url = Url.parse;
  8870. const format_url = Url.format;
  8871. /**
  8872. * Wrapper around `new URL` to handle arbitrary URLs
  8873. *
  8874. * @param {string} urlStr
  8875. * @return {void}
  8876. */
  8877. function parseURL(urlStr) {
  8878. /*
  8879. Check whether the URL is absolute or not
  8880. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  8881. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  8882. */
  8883. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  8884. urlStr = new URL(urlStr).toString();
  8885. }
  8886. // Fallback to old implementation for arbitrary URLs
  8887. return parse_url(urlStr);
  8888. }
  8889. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  8890. /**
  8891. * Check if a value is an instance of Request.
  8892. *
  8893. * @param Mixed input
  8894. * @return Boolean
  8895. */
  8896. function isRequest(input) {
  8897. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  8898. }
  8899. function isAbortSignal(signal) {
  8900. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  8901. return !!(proto && proto.constructor.name === 'AbortSignal');
  8902. }
  8903. /**
  8904. * Request class
  8905. *
  8906. * @param Mixed input Url or Request instance
  8907. * @param Object init Custom options
  8908. * @return Void
  8909. */
  8910. class Request {
  8911. constructor(input) {
  8912. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8913. let parsedURL;
  8914. // normalize input
  8915. if (!isRequest(input)) {
  8916. if (input && input.href) {
  8917. // in order to support Node.js' Url objects; though WHATWG's URL objects
  8918. // will fall into this branch also (since their `toString()` will return
  8919. // `href` property anyway)
  8920. parsedURL = parseURL(input.href);
  8921. } else {
  8922. // coerce input to a string before attempting to parse
  8923. parsedURL = parseURL(`${input}`);
  8924. }
  8925. input = {};
  8926. } else {
  8927. parsedURL = parseURL(input.url);
  8928. }
  8929. let method = init.method || input.method || 'GET';
  8930. method = method.toUpperCase();
  8931. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  8932. throw new TypeError('Request with GET/HEAD method cannot have body');
  8933. }
  8934. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  8935. Body.call(this, inputBody, {
  8936. timeout: init.timeout || input.timeout || 0,
  8937. size: init.size || input.size || 0
  8938. });
  8939. const headers = new Headers(init.headers || input.headers || {});
  8940. if (inputBody != null && !headers.has('Content-Type')) {
  8941. const contentType = extractContentType(inputBody);
  8942. if (contentType) {
  8943. headers.append('Content-Type', contentType);
  8944. }
  8945. }
  8946. let signal = isRequest(input) ? input.signal : null;
  8947. if ('signal' in init) signal = init.signal;
  8948. if (signal != null && !isAbortSignal(signal)) {
  8949. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  8950. }
  8951. this[INTERNALS$2] = {
  8952. method,
  8953. redirect: init.redirect || input.redirect || 'follow',
  8954. headers,
  8955. parsedURL,
  8956. signal
  8957. };
  8958. // node-fetch-only options
  8959. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  8960. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  8961. this.counter = init.counter || input.counter || 0;
  8962. this.agent = init.agent || input.agent;
  8963. }
  8964. get method() {
  8965. return this[INTERNALS$2].method;
  8966. }
  8967. get url() {
  8968. return format_url(this[INTERNALS$2].parsedURL);
  8969. }
  8970. get headers() {
  8971. return this[INTERNALS$2].headers;
  8972. }
  8973. get redirect() {
  8974. return this[INTERNALS$2].redirect;
  8975. }
  8976. get signal() {
  8977. return this[INTERNALS$2].signal;
  8978. }
  8979. /**
  8980. * Clone this request
  8981. *
  8982. * @return Request
  8983. */
  8984. clone() {
  8985. return new Request(this);
  8986. }
  8987. }
  8988. Body.mixIn(Request.prototype);
  8989. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  8990. value: 'Request',
  8991. writable: false,
  8992. enumerable: false,
  8993. configurable: true
  8994. });
  8995. Object.defineProperties(Request.prototype, {
  8996. method: { enumerable: true },
  8997. url: { enumerable: true },
  8998. headers: { enumerable: true },
  8999. redirect: { enumerable: true },
  9000. clone: { enumerable: true },
  9001. signal: { enumerable: true }
  9002. });
  9003. /**
  9004. * Convert a Request to Node.js http request options.
  9005. *
  9006. * @param Request A Request instance
  9007. * @return Object The options object to be passed to http.request
  9008. */
  9009. function getNodeRequestOptions(request) {
  9010. const parsedURL = request[INTERNALS$2].parsedURL;
  9011. const headers = new Headers(request[INTERNALS$2].headers);
  9012. // fetch step 1.3
  9013. if (!headers.has('Accept')) {
  9014. headers.set('Accept', '*/*');
  9015. }
  9016. // Basic fetch
  9017. if (!parsedURL.protocol || !parsedURL.hostname) {
  9018. throw new TypeError('Only absolute URLs are supported');
  9019. }
  9020. if (!/^https?:$/.test(parsedURL.protocol)) {
  9021. throw new TypeError('Only HTTP(S) protocols are supported');
  9022. }
  9023. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  9024. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  9025. }
  9026. // HTTP-network-or-cache fetch steps 2.4-2.7
  9027. let contentLengthValue = null;
  9028. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  9029. contentLengthValue = '0';
  9030. }
  9031. if (request.body != null) {
  9032. const totalBytes = getTotalBytes(request);
  9033. if (typeof totalBytes === 'number') {
  9034. contentLengthValue = String(totalBytes);
  9035. }
  9036. }
  9037. if (contentLengthValue) {
  9038. headers.set('Content-Length', contentLengthValue);
  9039. }
  9040. // HTTP-network-or-cache fetch step 2.11
  9041. if (!headers.has('User-Agent')) {
  9042. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  9043. }
  9044. // HTTP-network-or-cache fetch step 2.15
  9045. if (request.compress && !headers.has('Accept-Encoding')) {
  9046. headers.set('Accept-Encoding', 'gzip,deflate');
  9047. }
  9048. let agent = request.agent;
  9049. if (typeof agent === 'function') {
  9050. agent = agent(parsedURL);
  9051. }
  9052. if (!headers.has('Connection') && !agent) {
  9053. headers.set('Connection', 'close');
  9054. }
  9055. // HTTP-network fetch step 4.2
  9056. // chunked encoding is handled by Node.js
  9057. return Object.assign({}, parsedURL, {
  9058. method: request.method,
  9059. headers: exportNodeCompatibleHeaders(headers),
  9060. agent
  9061. });
  9062. }
  9063. /**
  9064. * abort-error.js
  9065. *
  9066. * AbortError interface for cancelled requests
  9067. */
  9068. /**
  9069. * Create AbortError instance
  9070. *
  9071. * @param String message Error message for human
  9072. * @return AbortError
  9073. */
  9074. function AbortError(message) {
  9075. Error.call(this, message);
  9076. this.type = 'aborted';
  9077. this.message = message;
  9078. // hide custom error implementation details from end-users
  9079. Error.captureStackTrace(this, this.constructor);
  9080. }
  9081. AbortError.prototype = Object.create(Error.prototype);
  9082. AbortError.prototype.constructor = AbortError;
  9083. AbortError.prototype.name = 'AbortError';
  9084. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  9085. const PassThrough$1 = Stream.PassThrough;
  9086. const resolve_url = Url.resolve;
  9087. /**
  9088. * Fetch function
  9089. *
  9090. * @param Mixed url Absolute url or Request instance
  9091. * @param Object opts Fetch options
  9092. * @return Promise
  9093. */
  9094. function fetch(url, opts) {
  9095. // allow custom promise
  9096. if (!fetch.Promise) {
  9097. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  9098. }
  9099. Body.Promise = fetch.Promise;
  9100. // wrap http.request into fetch
  9101. return new fetch.Promise(function (resolve, reject) {
  9102. // build request object
  9103. const request = new Request(url, opts);
  9104. const options = getNodeRequestOptions(request);
  9105. const send = (options.protocol === 'https:' ? https : http).request;
  9106. const signal = request.signal;
  9107. let response = null;
  9108. const abort = function abort() {
  9109. let error = new AbortError('The user aborted a request.');
  9110. reject(error);
  9111. if (request.body && request.body instanceof Stream.Readable) {
  9112. request.body.destroy(error);
  9113. }
  9114. if (!response || !response.body) return;
  9115. response.body.emit('error', error);
  9116. };
  9117. if (signal && signal.aborted) {
  9118. abort();
  9119. return;
  9120. }
  9121. const abortAndFinalize = function abortAndFinalize() {
  9122. abort();
  9123. finalize();
  9124. };
  9125. // send request
  9126. const req = send(options);
  9127. let reqTimeout;
  9128. if (signal) {
  9129. signal.addEventListener('abort', abortAndFinalize);
  9130. }
  9131. function finalize() {
  9132. req.abort();
  9133. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9134. clearTimeout(reqTimeout);
  9135. }
  9136. if (request.timeout) {
  9137. req.once('socket', function (socket) {
  9138. reqTimeout = setTimeout(function () {
  9139. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  9140. finalize();
  9141. }, request.timeout);
  9142. });
  9143. }
  9144. req.on('error', function (err) {
  9145. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  9146. finalize();
  9147. });
  9148. req.on('response', function (res) {
  9149. clearTimeout(reqTimeout);
  9150. const headers = createHeadersLenient(res.headers);
  9151. // HTTP fetch step 5
  9152. if (fetch.isRedirect(res.statusCode)) {
  9153. // HTTP fetch step 5.2
  9154. const location = headers.get('Location');
  9155. // HTTP fetch step 5.3
  9156. const locationURL = location === null ? null : resolve_url(request.url, location);
  9157. // HTTP fetch step 5.5
  9158. switch (request.redirect) {
  9159. case 'error':
  9160. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  9161. finalize();
  9162. return;
  9163. case 'manual':
  9164. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  9165. if (locationURL !== null) {
  9166. // handle corrupted header
  9167. try {
  9168. headers.set('Location', locationURL);
  9169. } catch (err) {
  9170. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  9171. reject(err);
  9172. }
  9173. }
  9174. break;
  9175. case 'follow':
  9176. // HTTP-redirect fetch step 2
  9177. if (locationURL === null) {
  9178. break;
  9179. }
  9180. // HTTP-redirect fetch step 5
  9181. if (request.counter >= request.follow) {
  9182. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  9183. finalize();
  9184. return;
  9185. }
  9186. // HTTP-redirect fetch step 6 (counter increment)
  9187. // Create a new Request object.
  9188. const requestOpts = {
  9189. headers: new Headers(request.headers),
  9190. follow: request.follow,
  9191. counter: request.counter + 1,
  9192. agent: request.agent,
  9193. compress: request.compress,
  9194. method: request.method,
  9195. body: request.body,
  9196. signal: request.signal,
  9197. timeout: request.timeout,
  9198. size: request.size
  9199. };
  9200. // HTTP-redirect fetch step 9
  9201. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  9202. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  9203. finalize();
  9204. return;
  9205. }
  9206. // HTTP-redirect fetch step 11
  9207. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  9208. requestOpts.method = 'GET';
  9209. requestOpts.body = undefined;
  9210. requestOpts.headers.delete('content-length');
  9211. }
  9212. // HTTP-redirect fetch step 15
  9213. resolve(fetch(new Request(locationURL, requestOpts)));
  9214. finalize();
  9215. return;
  9216. }
  9217. }
  9218. // prepare response
  9219. res.once('end', function () {
  9220. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9221. });
  9222. let body = res.pipe(new PassThrough$1());
  9223. const response_options = {
  9224. url: request.url,
  9225. status: res.statusCode,
  9226. statusText: res.statusMessage,
  9227. headers: headers,
  9228. size: request.size,
  9229. timeout: request.timeout,
  9230. counter: request.counter
  9231. };
  9232. // HTTP-network fetch step 12.1.1.3
  9233. const codings = headers.get('Content-Encoding');
  9234. // HTTP-network fetch step 12.1.1.4: handle content codings
  9235. // in following scenarios we ignore compression support
  9236. // 1. compression support is disabled
  9237. // 2. HEAD request
  9238. // 3. no Content-Encoding header
  9239. // 4. no content response (204)
  9240. // 5. content not modified response (304)
  9241. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  9242. response = new Response(body, response_options);
  9243. resolve(response);
  9244. return;
  9245. }
  9246. // For Node v6+
  9247. // Be less strict when decoding compressed responses, since sometimes
  9248. // servers send slightly invalid responses that are still accepted
  9249. // by common browsers.
  9250. // Always using Z_SYNC_FLUSH is what cURL does.
  9251. const zlibOptions = {
  9252. flush: zlib.Z_SYNC_FLUSH,
  9253. finishFlush: zlib.Z_SYNC_FLUSH
  9254. };
  9255. // for gzip
  9256. if (codings == 'gzip' || codings == 'x-gzip') {
  9257. body = body.pipe(zlib.createGunzip(zlibOptions));
  9258. response = new Response(body, response_options);
  9259. resolve(response);
  9260. return;
  9261. }
  9262. // for deflate
  9263. if (codings == 'deflate' || codings == 'x-deflate') {
  9264. // handle the infamous raw deflate response from old servers
  9265. // a hack for old IIS and Apache servers
  9266. const raw = res.pipe(new PassThrough$1());
  9267. raw.once('data', function (chunk) {
  9268. // see http://stackoverflow.com/questions/37519828
  9269. if ((chunk[0] & 0x0F) === 0x08) {
  9270. body = body.pipe(zlib.createInflate());
  9271. } else {
  9272. body = body.pipe(zlib.createInflateRaw());
  9273. }
  9274. response = new Response(body, response_options);
  9275. resolve(response);
  9276. });
  9277. return;
  9278. }
  9279. // for br
  9280. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  9281. body = body.pipe(zlib.createBrotliDecompress());
  9282. response = new Response(body, response_options);
  9283. resolve(response);
  9284. return;
  9285. }
  9286. // otherwise, use response as-is
  9287. response = new Response(body, response_options);
  9288. resolve(response);
  9289. });
  9290. writeToStream(req, request);
  9291. });
  9292. }
  9293. /**
  9294. * Redirect code matching
  9295. *
  9296. * @param Number code Status code
  9297. * @return Boolean
  9298. */
  9299. fetch.isRedirect = function (code) {
  9300. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  9301. };
  9302. // expose Promise
  9303. fetch.Promise = global.Promise;
  9304. module.exports = exports = fetch;
  9305. Object.defineProperty(exports, "__esModule", { value: true });
  9306. exports.default = exports;
  9307. exports.Headers = Headers;
  9308. exports.Request = Request;
  9309. exports.Response = Response;
  9310. exports.FetchError = FetchError;
  9311. /***/ }),
  9312. /***/ 462:
  9313. /***/ (function(module) {
  9314. "use strict";
  9315. // See http://www.robvanderwoude.com/escapechars.php
  9316. const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
  9317. function escapeCommand(arg) {
  9318. // Escape meta chars
  9319. arg = arg.replace(metaCharsRegExp, '^$1');
  9320. return arg;
  9321. }
  9322. function escapeArgument(arg, doubleEscapeMetaChars) {
  9323. // Convert to string
  9324. arg = `${arg}`;
  9325. // Algorithm below is based on https://qntm.org/cmd
  9326. // Sequence of backslashes followed by a double quote:
  9327. // double up all the backslashes and escape the double quote
  9328. arg = arg.replace(/(\\*)"/g, '$1$1\\"');
  9329. // Sequence of backslashes followed by the end of the string
  9330. // (which will become a double quote later):
  9331. // double up all the backslashes
  9332. arg = arg.replace(/(\\*)$/, '$1$1');
  9333. // All other backslashes occur literally
  9334. // Quote the whole thing:
  9335. arg = `"${arg}"`;
  9336. // Escape meta chars
  9337. arg = arg.replace(metaCharsRegExp, '^$1');
  9338. // Double escape meta chars if necessary
  9339. if (doubleEscapeMetaChars) {
  9340. arg = arg.replace(metaCharsRegExp, '^$1');
  9341. }
  9342. return arg;
  9343. }
  9344. module.exports.command = escapeCommand;
  9345. module.exports.argument = escapeArgument;
  9346. /***/ }),
  9347. /***/ 463:
  9348. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9349. "use strict";
  9350. Object.defineProperty(exports, '__esModule', { value: true });
  9351. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  9352. var deprecation = __webpack_require__(692);
  9353. var once = _interopDefault(__webpack_require__(969));
  9354. const logOnce = once(deprecation => console.warn(deprecation));
  9355. /**
  9356. * Error with extra properties to help with debugging
  9357. */
  9358. class RequestError extends Error {
  9359. constructor(message, statusCode, options) {
  9360. super(message); // Maintains proper stack trace (only available on V8)
  9361. /* istanbul ignore next */
  9362. if (Error.captureStackTrace) {
  9363. Error.captureStackTrace(this, this.constructor);
  9364. }
  9365. this.name = "HttpError";
  9366. this.status = statusCode;
  9367. Object.defineProperty(this, "code", {
  9368. get() {
  9369. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  9370. return statusCode;
  9371. }
  9372. });
  9373. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  9374. const requestCopy = Object.assign({}, options.request);
  9375. if (options.request.headers.authorization) {
  9376. requestCopy.headers = Object.assign({}, options.request.headers, {
  9377. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  9378. });
  9379. }
  9380. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  9381. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  9382. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  9383. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  9384. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  9385. this.request = requestCopy;
  9386. }
  9387. }
  9388. exports.RequestError = RequestError;
  9389. //# sourceMappingURL=index.js.map
  9390. /***/ }),
  9391. /***/ 464:
  9392. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9393. "use strict";
  9394. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  9395. if (k2 === undefined) k2 = k;
  9396. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  9397. }) : (function(o, m, k, k2) {
  9398. if (k2 === undefined) k2 = k;
  9399. o[k2] = m[k];
  9400. }));
  9401. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  9402. Object.defineProperty(o, "default", { enumerable: true, value: v });
  9403. }) : function(o, v) {
  9404. o["default"] = v;
  9405. });
  9406. var __importStar = (this && this.__importStar) || function (mod) {
  9407. if (mod && mod.__esModule) return mod;
  9408. var result = {};
  9409. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  9410. __setModuleDefault(result, mod);
  9411. return result;
  9412. };
  9413. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  9414. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  9415. return new (P || (P = Promise))(function (resolve, reject) {
  9416. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  9417. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  9418. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  9419. step((generator = generator.apply(thisArg, _arguments || [])).next());
  9420. });
  9421. };
  9422. var __importDefault = (this && this.__importDefault) || function (mod) {
  9423. return (mod && mod.__esModule) ? mod : { "default": mod };
  9424. };
  9425. Object.defineProperty(exports, "__esModule", { value: true });
  9426. exports.getDefaultBranch = exports.downloadRepository = void 0;
  9427. const assert = __importStar(__webpack_require__(357));
  9428. const core = __importStar(__webpack_require__(470));
  9429. const fs = __importStar(__webpack_require__(747));
  9430. const github = __importStar(__webpack_require__(469));
  9431. const io = __importStar(__webpack_require__(1));
  9432. const path = __importStar(__webpack_require__(622));
  9433. const retryHelper = __importStar(__webpack_require__(587));
  9434. const toolCache = __importStar(__webpack_require__(533));
  9435. const v4_1 = __importDefault(__webpack_require__(826));
  9436. const IS_WINDOWS = process.platform === 'win32';
  9437. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath) {
  9438. return __awaiter(this, void 0, void 0, function* () {
  9439. // Determine the default branch
  9440. if (!ref && !commit) {
  9441. core.info('Determining the default branch');
  9442. ref = yield getDefaultBranch(authToken, owner, repo);
  9443. }
  9444. // Download the archive
  9445. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9446. core.info('Downloading the archive');
  9447. return yield downloadArchive(authToken, owner, repo, ref, commit);
  9448. }));
  9449. // Write archive to disk
  9450. core.info('Writing archive to disk');
  9451. const uniqueId = (0, v4_1.default)();
  9452. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  9453. yield fs.promises.writeFile(archivePath, archiveData);
  9454. archiveData = Buffer.from(''); // Free memory
  9455. // Extract archive
  9456. core.info('Extracting the archive');
  9457. const extractPath = path.join(repositoryPath, uniqueId);
  9458. yield io.mkdirP(extractPath);
  9459. if (IS_WINDOWS) {
  9460. yield toolCache.extractZip(archivePath, extractPath);
  9461. }
  9462. else {
  9463. yield toolCache.extractTar(archivePath, extractPath);
  9464. }
  9465. yield io.rmRF(archivePath);
  9466. // Determine the path of the repository content. The archive contains
  9467. // a top-level folder and the repository content is inside.
  9468. const archiveFileNames = yield fs.promises.readdir(extractPath);
  9469. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  9470. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  9471. core.info(`Resolved version ${archiveVersion}`);
  9472. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  9473. // Move the files
  9474. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  9475. const sourcePath = path.join(tempRepositoryPath, fileName);
  9476. const targetPath = path.join(repositoryPath, fileName);
  9477. if (IS_WINDOWS) {
  9478. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  9479. }
  9480. else {
  9481. yield io.mv(sourcePath, targetPath);
  9482. }
  9483. }
  9484. yield io.rmRF(extractPath);
  9485. });
  9486. }
  9487. exports.downloadRepository = downloadRepository;
  9488. /**
  9489. * Looks up the default branch name
  9490. */
  9491. function getDefaultBranch(authToken, owner, repo) {
  9492. return __awaiter(this, void 0, void 0, function* () {
  9493. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9494. var _a;
  9495. core.info('Retrieving the default branch name');
  9496. const octokit = new github.GitHub(authToken);
  9497. let result;
  9498. try {
  9499. // Get the default branch from the repo info
  9500. const response = yield octokit.repos.get({ owner, repo });
  9501. result = response.data.default_branch;
  9502. assert.ok(result, 'default_branch cannot be empty');
  9503. }
  9504. catch (err) {
  9505. // Handle .wiki repo
  9506. if (((_a = err) === null || _a === void 0 ? void 0 : _a.status) === 404 &&
  9507. repo.toUpperCase().endsWith('.WIKI')) {
  9508. result = 'master';
  9509. }
  9510. // Otherwise error
  9511. else {
  9512. throw err;
  9513. }
  9514. }
  9515. // Print the default branch
  9516. core.info(`Default branch '${result}'`);
  9517. // Prefix with 'refs/heads'
  9518. if (!result.startsWith('refs/')) {
  9519. result = `refs/heads/${result}`;
  9520. }
  9521. return result;
  9522. }));
  9523. });
  9524. }
  9525. exports.getDefaultBranch = getDefaultBranch;
  9526. function downloadArchive(authToken, owner, repo, ref, commit) {
  9527. return __awaiter(this, void 0, void 0, function* () {
  9528. const octokit = new github.GitHub(authToken);
  9529. const params = {
  9530. owner: owner,
  9531. repo: repo,
  9532. archive_format: IS_WINDOWS ? 'zipball' : 'tarball',
  9533. ref: commit || ref
  9534. };
  9535. const response = yield octokit.repos.getArchiveLink(params);
  9536. if (response.status != 200) {
  9537. throw new Error(`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`);
  9538. }
  9539. return Buffer.from(response.data); // response.data is ArrayBuffer
  9540. });
  9541. }
  9542. /***/ }),
  9543. /***/ 469:
  9544. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9545. "use strict";
  9546. var __importStar = (this && this.__importStar) || function (mod) {
  9547. if (mod && mod.__esModule) return mod;
  9548. var result = {};
  9549. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  9550. result["default"] = mod;
  9551. return result;
  9552. };
  9553. Object.defineProperty(exports, "__esModule", { value: true });
  9554. // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
  9555. const graphql_1 = __webpack_require__(898);
  9556. const rest_1 = __webpack_require__(0);
  9557. const Context = __importStar(__webpack_require__(262));
  9558. const httpClient = __importStar(__webpack_require__(539));
  9559. // We need this in order to extend Octokit
  9560. rest_1.Octokit.prototype = new rest_1.Octokit();
  9561. exports.context = new Context.Context();
  9562. class GitHub extends rest_1.Octokit {
  9563. constructor(token, opts) {
  9564. super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
  9565. this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
  9566. }
  9567. /**
  9568. * Disambiguates the constructor overload parameters
  9569. */
  9570. static disambiguate(token, opts) {
  9571. return [
  9572. typeof token === 'string' ? token : '',
  9573. typeof token === 'object' ? token : opts || {}
  9574. ];
  9575. }
  9576. static getOctokitOptions(args) {
  9577. const token = args[0];
  9578. const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
  9579. // Base URL - GHES or Dotcom
  9580. options.baseUrl = options.baseUrl || this.getApiBaseUrl();
  9581. // Auth
  9582. const auth = GitHub.getAuthString(token, options);
  9583. if (auth) {
  9584. options.auth = auth;
  9585. }
  9586. // Proxy
  9587. const agent = GitHub.getProxyAgent(options.baseUrl, options);
  9588. if (agent) {
  9589. // Shallow clone - don't mutate the object provided by the caller
  9590. options.request = options.request ? Object.assign({}, options.request) : {};
  9591. // Set the agent
  9592. options.request.agent = agent;
  9593. }
  9594. return options;
  9595. }
  9596. static getGraphQL(args) {
  9597. const defaults = {};
  9598. defaults.baseUrl = this.getGraphQLBaseUrl();
  9599. const token = args[0];
  9600. const options = args[1];
  9601. // Authorization
  9602. const auth = this.getAuthString(token, options);
  9603. if (auth) {
  9604. defaults.headers = {
  9605. authorization: auth
  9606. };
  9607. }
  9608. // Proxy
  9609. const agent = GitHub.getProxyAgent(defaults.baseUrl, options);
  9610. if (agent) {
  9611. defaults.request = { agent };
  9612. }
  9613. return graphql_1.graphql.defaults(defaults);
  9614. }
  9615. static getAuthString(token, options) {
  9616. // Validate args
  9617. if (!token && !options.auth) {
  9618. throw new Error('Parameter token or opts.auth is required');
  9619. }
  9620. else if (token && options.auth) {
  9621. throw new Error('Parameters token and opts.auth may not both be specified');
  9622. }
  9623. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  9624. }
  9625. static getProxyAgent(destinationUrl, options) {
  9626. var _a;
  9627. if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
  9628. if (httpClient.getProxyUrl(destinationUrl)) {
  9629. const hc = new httpClient.HttpClient();
  9630. return hc.getAgent(destinationUrl);
  9631. }
  9632. }
  9633. return undefined;
  9634. }
  9635. static getApiBaseUrl() {
  9636. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  9637. }
  9638. static getGraphQLBaseUrl() {
  9639. let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql';
  9640. // Shouldn't be a trailing slash, but remove if so
  9641. if (url.endsWith('/')) {
  9642. url = url.substr(0, url.length - 1);
  9643. }
  9644. // Remove trailing "/graphql"
  9645. if (url.toUpperCase().endsWith('/GRAPHQL')) {
  9646. url = url.substr(0, url.length - '/graphql'.length);
  9647. }
  9648. return url;
  9649. }
  9650. }
  9651. exports.GitHub = GitHub;
  9652. //# sourceMappingURL=github.js.map
  9653. /***/ }),
  9654. /***/ 470:
  9655. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9656. "use strict";
  9657. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  9658. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  9659. return new (P || (P = Promise))(function (resolve, reject) {
  9660. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  9661. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  9662. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  9663. step((generator = generator.apply(thisArg, _arguments || [])).next());
  9664. });
  9665. };
  9666. var __importStar = (this && this.__importStar) || function (mod) {
  9667. if (mod && mod.__esModule) return mod;
  9668. var result = {};
  9669. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  9670. result["default"] = mod;
  9671. return result;
  9672. };
  9673. Object.defineProperty(exports, "__esModule", { value: true });
  9674. const command_1 = __webpack_require__(431);
  9675. const file_command_1 = __webpack_require__(102);
  9676. const utils_1 = __webpack_require__(82);
  9677. const os = __importStar(__webpack_require__(87));
  9678. const path = __importStar(__webpack_require__(622));
  9679. /**
  9680. * The code to exit an action
  9681. */
  9682. var ExitCode;
  9683. (function (ExitCode) {
  9684. /**
  9685. * A code indicating that the action was successful
  9686. */
  9687. ExitCode[ExitCode["Success"] = 0] = "Success";
  9688. /**
  9689. * A code indicating that the action was a failure
  9690. */
  9691. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  9692. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  9693. //-----------------------------------------------------------------------
  9694. // Variables
  9695. //-----------------------------------------------------------------------
  9696. /**
  9697. * Sets env variable for this action and future actions in the job
  9698. * @param name the name of the variable to set
  9699. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  9700. */
  9701. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  9702. function exportVariable(name, val) {
  9703. const convertedVal = utils_1.toCommandValue(val);
  9704. process.env[name] = convertedVal;
  9705. const filePath = process.env['GITHUB_ENV'] || '';
  9706. if (filePath) {
  9707. const delimiter = '_GitHubActionsFileCommandDelimeter_';
  9708. const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
  9709. file_command_1.issueCommand('ENV', commandValue);
  9710. }
  9711. else {
  9712. command_1.issueCommand('set-env', { name }, convertedVal);
  9713. }
  9714. }
  9715. exports.exportVariable = exportVariable;
  9716. /**
  9717. * Registers a secret which will get masked from logs
  9718. * @param secret value of the secret
  9719. */
  9720. function setSecret(secret) {
  9721. command_1.issueCommand('add-mask', {}, secret);
  9722. }
  9723. exports.setSecret = setSecret;
  9724. /**
  9725. * Prepends inputPath to the PATH (for this action and future actions)
  9726. * @param inputPath
  9727. */
  9728. function addPath(inputPath) {
  9729. const filePath = process.env['GITHUB_PATH'] || '';
  9730. if (filePath) {
  9731. file_command_1.issueCommand('PATH', inputPath);
  9732. }
  9733. else {
  9734. command_1.issueCommand('add-path', {}, inputPath);
  9735. }
  9736. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  9737. }
  9738. exports.addPath = addPath;
  9739. /**
  9740. * Gets the value of an input. The value is also trimmed.
  9741. *
  9742. * @param name name of the input to get
  9743. * @param options optional. See InputOptions.
  9744. * @returns string
  9745. */
  9746. function getInput(name, options) {
  9747. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  9748. if (options && options.required && !val) {
  9749. throw new Error(`Input required and not supplied: ${name}`);
  9750. }
  9751. return val.trim();
  9752. }
  9753. exports.getInput = getInput;
  9754. /**
  9755. * Sets the value of an output.
  9756. *
  9757. * @param name name of the output to set
  9758. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  9759. */
  9760. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  9761. function setOutput(name, value) {
  9762. command_1.issueCommand('set-output', { name }, value);
  9763. }
  9764. exports.setOutput = setOutput;
  9765. /**
  9766. * Enables or disables the echoing of commands into stdout for the rest of the step.
  9767. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  9768. *
  9769. */
  9770. function setCommandEcho(enabled) {
  9771. command_1.issue('echo', enabled ? 'on' : 'off');
  9772. }
  9773. exports.setCommandEcho = setCommandEcho;
  9774. //-----------------------------------------------------------------------
  9775. // Results
  9776. //-----------------------------------------------------------------------
  9777. /**
  9778. * Sets the action status to failed.
  9779. * When the action exits it will be with an exit code of 1
  9780. * @param message add error issue message
  9781. */
  9782. function setFailed(message) {
  9783. process.exitCode = ExitCode.Failure;
  9784. error(message);
  9785. }
  9786. exports.setFailed = setFailed;
  9787. //-----------------------------------------------------------------------
  9788. // Logging Commands
  9789. //-----------------------------------------------------------------------
  9790. /**
  9791. * Gets whether Actions Step Debug is on or not
  9792. */
  9793. function isDebug() {
  9794. return process.env['RUNNER_DEBUG'] === '1';
  9795. }
  9796. exports.isDebug = isDebug;
  9797. /**
  9798. * Writes debug message to user log
  9799. * @param message debug message
  9800. */
  9801. function debug(message) {
  9802. command_1.issueCommand('debug', {}, message);
  9803. }
  9804. exports.debug = debug;
  9805. /**
  9806. * Adds an error issue
  9807. * @param message error issue message. Errors will be converted to string via toString()
  9808. */
  9809. function error(message) {
  9810. command_1.issue('error', message instanceof Error ? message.toString() : message);
  9811. }
  9812. exports.error = error;
  9813. /**
  9814. * Adds an warning issue
  9815. * @param message warning issue message. Errors will be converted to string via toString()
  9816. */
  9817. function warning(message) {
  9818. command_1.issue('warning', message instanceof Error ? message.toString() : message);
  9819. }
  9820. exports.warning = warning;
  9821. /**
  9822. * Writes info to log with console.log.
  9823. * @param message info message
  9824. */
  9825. function info(message) {
  9826. process.stdout.write(message + os.EOL);
  9827. }
  9828. exports.info = info;
  9829. /**
  9830. * Begin an output group.
  9831. *
  9832. * Output until the next `groupEnd` will be foldable in this group
  9833. *
  9834. * @param name The name of the output group
  9835. */
  9836. function startGroup(name) {
  9837. command_1.issue('group', name);
  9838. }
  9839. exports.startGroup = startGroup;
  9840. /**
  9841. * End an output group.
  9842. */
  9843. function endGroup() {
  9844. command_1.issue('endgroup');
  9845. }
  9846. exports.endGroup = endGroup;
  9847. /**
  9848. * Wrap an asynchronous function call in a group.
  9849. *
  9850. * Returns the same type as the function itself.
  9851. *
  9852. * @param name The name of the group
  9853. * @param fn The function to wrap in the group
  9854. */
  9855. function group(name, fn) {
  9856. return __awaiter(this, void 0, void 0, function* () {
  9857. startGroup(name);
  9858. let result;
  9859. try {
  9860. result = yield fn();
  9861. }
  9862. finally {
  9863. endGroup();
  9864. }
  9865. return result;
  9866. });
  9867. }
  9868. exports.group = group;
  9869. //-----------------------------------------------------------------------
  9870. // Wrapper action state
  9871. //-----------------------------------------------------------------------
  9872. /**
  9873. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  9874. *
  9875. * @param name name of the state to store
  9876. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  9877. */
  9878. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  9879. function saveState(name, value) {
  9880. command_1.issueCommand('save-state', { name }, value);
  9881. }
  9882. exports.saveState = saveState;
  9883. /**
  9884. * Gets the value of an state set by this action's main execution.
  9885. *
  9886. * @param name name of the state to get
  9887. * @returns string
  9888. */
  9889. function getState(name) {
  9890. return process.env[`STATE_${name}`] || '';
  9891. }
  9892. exports.getState = getState;
  9893. //# sourceMappingURL=core.js.map
  9894. /***/ }),
  9895. /***/ 471:
  9896. /***/ (function(module, __unusedexports, __webpack_require__) {
  9897. module.exports = authenticationBeforeRequest;
  9898. const btoa = __webpack_require__(675);
  9899. const uniq = __webpack_require__(126);
  9900. function authenticationBeforeRequest(state, options) {
  9901. if (!state.auth.type) {
  9902. return;
  9903. }
  9904. if (state.auth.type === "basic") {
  9905. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  9906. options.headers.authorization = `Basic ${hash}`;
  9907. return;
  9908. }
  9909. if (state.auth.type === "token") {
  9910. options.headers.authorization = `token ${state.auth.token}`;
  9911. return;
  9912. }
  9913. if (state.auth.type === "app") {
  9914. options.headers.authorization = `Bearer ${state.auth.token}`;
  9915. const acceptHeaders = options.headers.accept
  9916. .split(",")
  9917. .concat("application/vnd.github.machine-man-preview+json");
  9918. options.headers.accept = uniq(acceptHeaders)
  9919. .filter(Boolean)
  9920. .join(",");
  9921. return;
  9922. }
  9923. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  9924. if (state.auth.token) {
  9925. options.url += `access_token=${encodeURIComponent(state.auth.token)}`;
  9926. return;
  9927. }
  9928. const key = encodeURIComponent(state.auth.key);
  9929. const secret = encodeURIComponent(state.auth.secret);
  9930. options.url += `client_id=${key}&client_secret=${secret}`;
  9931. }
  9932. /***/ }),
  9933. /***/ 482:
  9934. /***/ (function(module) {
  9935. 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"]];
  9936. /***/ }),
  9937. /***/ 489:
  9938. /***/ (function(module, __unusedexports, __webpack_require__) {
  9939. "use strict";
  9940. const path = __webpack_require__(622);
  9941. const which = __webpack_require__(814);
  9942. const pathKey = __webpack_require__(39)();
  9943. function resolveCommandAttempt(parsed, withoutPathExt) {
  9944. const cwd = process.cwd();
  9945. const hasCustomCwd = parsed.options.cwd != null;
  9946. // If a custom `cwd` was specified, we need to change the process cwd
  9947. // because `which` will do stat calls but does not support a custom cwd
  9948. if (hasCustomCwd) {
  9949. try {
  9950. process.chdir(parsed.options.cwd);
  9951. } catch (err) {
  9952. /* Empty */
  9953. }
  9954. }
  9955. let resolved;
  9956. try {
  9957. resolved = which.sync(parsed.command, {
  9958. path: (parsed.options.env || process.env)[pathKey],
  9959. pathExt: withoutPathExt ? path.delimiter : undefined,
  9960. });
  9961. } catch (e) {
  9962. /* Empty */
  9963. } finally {
  9964. process.chdir(cwd);
  9965. }
  9966. // If we successfully resolved, ensure that an absolute path is returned
  9967. // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
  9968. if (resolved) {
  9969. resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
  9970. }
  9971. return resolved;
  9972. }
  9973. function resolveCommand(parsed) {
  9974. return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
  9975. }
  9976. module.exports = resolveCommand;
  9977. /***/ }),
  9978. /***/ 497:
  9979. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9980. "use strict";
  9981. Object.defineProperty(exports, '__esModule', { value: true });
  9982. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  9983. var deprecation = __webpack_require__(692);
  9984. var once = _interopDefault(__webpack_require__(969));
  9985. const logOnce = once(deprecation => console.warn(deprecation));
  9986. /**
  9987. * Error with extra properties to help with debugging
  9988. */
  9989. class RequestError extends Error {
  9990. constructor(message, statusCode, options) {
  9991. super(message); // Maintains proper stack trace (only available on V8)
  9992. /* istanbul ignore next */
  9993. if (Error.captureStackTrace) {
  9994. Error.captureStackTrace(this, this.constructor);
  9995. }
  9996. this.name = "HttpError";
  9997. this.status = statusCode;
  9998. Object.defineProperty(this, "code", {
  9999. get() {
  10000. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  10001. return statusCode;
  10002. }
  10003. });
  10004. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  10005. const requestCopy = Object.assign({}, options.request);
  10006. if (options.request.headers.authorization) {
  10007. requestCopy.headers = Object.assign({}, options.request.headers, {
  10008. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  10009. });
  10010. }
  10011. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  10012. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  10013. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  10014. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  10015. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  10016. this.request = requestCopy;
  10017. }
  10018. }
  10019. exports.RequestError = RequestError;
  10020. //# sourceMappingURL=index.js.map
  10021. /***/ }),
  10022. /***/ 510:
  10023. /***/ (function(module) {
  10024. module.exports = addHook
  10025. function addHook (state, kind, name, hook) {
  10026. var orig = hook
  10027. if (!state.registry[name]) {
  10028. state.registry[name] = []
  10029. }
  10030. if (kind === 'before') {
  10031. hook = function (method, options) {
  10032. return Promise.resolve()
  10033. .then(orig.bind(null, options))
  10034. .then(method.bind(null, options))
  10035. }
  10036. }
  10037. if (kind === 'after') {
  10038. hook = function (method, options) {
  10039. var result
  10040. return Promise.resolve()
  10041. .then(method.bind(null, options))
  10042. .then(function (result_) {
  10043. result = result_
  10044. return orig(result, options)
  10045. })
  10046. .then(function () {
  10047. return result
  10048. })
  10049. }
  10050. }
  10051. if (kind === 'error') {
  10052. hook = function (method, options) {
  10053. return Promise.resolve()
  10054. .then(method.bind(null, options))
  10055. .catch(function (error) {
  10056. return orig(error, options)
  10057. })
  10058. }
  10059. }
  10060. state.registry[name].push({
  10061. hook: hook,
  10062. orig: orig
  10063. })
  10064. }
  10065. /***/ }),
  10066. /***/ 523:
  10067. /***/ (function(module, __unusedexports, __webpack_require__) {
  10068. var register = __webpack_require__(363)
  10069. var addHook = __webpack_require__(510)
  10070. var removeHook = __webpack_require__(763)
  10071. // bind with array of arguments: https://stackoverflow.com/a/21792913
  10072. var bind = Function.bind
  10073. var bindable = bind.bind(bind)
  10074. function bindApi (hook, state, name) {
  10075. var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
  10076. hook.api = { remove: removeHookRef }
  10077. hook.remove = removeHookRef
  10078. ;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
  10079. var args = name ? [state, kind, name] : [state, kind]
  10080. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
  10081. })
  10082. }
  10083. function HookSingular () {
  10084. var singularHookName = 'h'
  10085. var singularHookState = {
  10086. registry: {}
  10087. }
  10088. var singularHook = register.bind(null, singularHookState, singularHookName)
  10089. bindApi(singularHook, singularHookState, singularHookName)
  10090. return singularHook
  10091. }
  10092. function HookCollection () {
  10093. var state = {
  10094. registry: {}
  10095. }
  10096. var hook = register.bind(null, state)
  10097. bindApi(hook, state)
  10098. return hook
  10099. }
  10100. var collectionHookDeprecationMessageDisplayed = false
  10101. function Hook () {
  10102. if (!collectionHookDeprecationMessageDisplayed) {
  10103. console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
  10104. collectionHookDeprecationMessageDisplayed = true
  10105. }
  10106. return HookCollection()
  10107. }
  10108. Hook.Singular = HookSingular.bind()
  10109. Hook.Collection = HookCollection.bind()
  10110. module.exports = Hook
  10111. // expose constructors as a named property for TypeScript
  10112. module.exports.Hook = Hook
  10113. module.exports.Singular = Hook.Singular
  10114. module.exports.Collection = Hook.Collection
  10115. /***/ }),
  10116. /***/ 528:
  10117. /***/ (function(__unusedmodule, exports) {
  10118. "use strict";
  10119. Object.defineProperty(exports, "__esModule", { value: true });
  10120. exports.escape = void 0;
  10121. function escape(value) {
  10122. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  10123. return `\\${x}`;
  10124. });
  10125. }
  10126. exports.escape = escape;
  10127. /***/ }),
  10128. /***/ 529:
  10129. /***/ (function(module, __unusedexports, __webpack_require__) {
  10130. const factory = __webpack_require__(47);
  10131. module.exports = factory();
  10132. /***/ }),
  10133. /***/ 533:
  10134. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10135. "use strict";
  10136. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  10137. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  10138. return new (P || (P = Promise))(function (resolve, reject) {
  10139. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10140. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  10141. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  10142. step((generator = generator.apply(thisArg, _arguments || [])).next());
  10143. });
  10144. };
  10145. Object.defineProperty(exports, "__esModule", { value: true });
  10146. const core = __webpack_require__(470);
  10147. const io = __webpack_require__(1);
  10148. const fs = __webpack_require__(747);
  10149. const os = __webpack_require__(87);
  10150. const path = __webpack_require__(622);
  10151. const httpm = __webpack_require__(874);
  10152. const semver = __webpack_require__(656);
  10153. const uuidV4 = __webpack_require__(826);
  10154. const exec_1 = __webpack_require__(986);
  10155. const assert_1 = __webpack_require__(357);
  10156. class HTTPError extends Error {
  10157. constructor(httpStatusCode) {
  10158. super(`Unexpected HTTP response: ${httpStatusCode}`);
  10159. this.httpStatusCode = httpStatusCode;
  10160. Object.setPrototypeOf(this, new.target.prototype);
  10161. }
  10162. }
  10163. exports.HTTPError = HTTPError;
  10164. const IS_WINDOWS = process.platform === 'win32';
  10165. const userAgent = 'actions/tool-cache';
  10166. // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
  10167. let tempDirectory = process.env['RUNNER_TEMP'] || '';
  10168. let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
  10169. // If directories not found, place them in common temp locations
  10170. if (!tempDirectory || !cacheRoot) {
  10171. let baseLocation;
  10172. if (IS_WINDOWS) {
  10173. // On windows use the USERPROFILE env variable
  10174. baseLocation = process.env['USERPROFILE'] || 'C:\\';
  10175. }
  10176. else {
  10177. if (process.platform === 'darwin') {
  10178. baseLocation = '/Users';
  10179. }
  10180. else {
  10181. baseLocation = '/home';
  10182. }
  10183. }
  10184. if (!tempDirectory) {
  10185. tempDirectory = path.join(baseLocation, 'actions', 'temp');
  10186. }
  10187. if (!cacheRoot) {
  10188. cacheRoot = path.join(baseLocation, 'actions', 'cache');
  10189. }
  10190. }
  10191. /**
  10192. * Download a tool from an url and stream it into a file
  10193. *
  10194. * @param url url of tool to download
  10195. * @returns path to downloaded tool
  10196. */
  10197. function downloadTool(url) {
  10198. return __awaiter(this, void 0, void 0, function* () {
  10199. // Wrap in a promise so that we can resolve from within stream callbacks
  10200. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  10201. try {
  10202. const http = new httpm.HttpClient(userAgent, [], {
  10203. allowRetries: true,
  10204. maxRetries: 3
  10205. });
  10206. const destPath = path.join(tempDirectory, uuidV4());
  10207. yield io.mkdirP(tempDirectory);
  10208. core.debug(`Downloading ${url}`);
  10209. core.debug(`Downloading ${destPath}`);
  10210. if (fs.existsSync(destPath)) {
  10211. throw new Error(`Destination file path ${destPath} already exists`);
  10212. }
  10213. const response = yield http.get(url);
  10214. if (response.message.statusCode !== 200) {
  10215. const err = new HTTPError(response.message.statusCode);
  10216. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10217. throw err;
  10218. }
  10219. const file = fs.createWriteStream(destPath);
  10220. file.on('open', () => __awaiter(this, void 0, void 0, function* () {
  10221. try {
  10222. const stream = response.message.pipe(file);
  10223. stream.on('close', () => {
  10224. core.debug('download complete');
  10225. resolve(destPath);
  10226. });
  10227. }
  10228. catch (err) {
  10229. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10230. reject(err);
  10231. }
  10232. }));
  10233. file.on('error', err => {
  10234. file.end();
  10235. reject(err);
  10236. });
  10237. }
  10238. catch (err) {
  10239. reject(err);
  10240. }
  10241. }));
  10242. });
  10243. }
  10244. exports.downloadTool = downloadTool;
  10245. /**
  10246. * Extract a .7z file
  10247. *
  10248. * @param file path to the .7z file
  10249. * @param dest destination directory. Optional.
  10250. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  10251. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  10252. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  10253. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  10254. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  10255. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  10256. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  10257. * to 7zr.exe can be pass to this function.
  10258. * @returns path to the destination directory
  10259. */
  10260. function extract7z(file, dest, _7zPath) {
  10261. return __awaiter(this, void 0, void 0, function* () {
  10262. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  10263. assert_1.ok(file, 'parameter "file" is required');
  10264. dest = dest || (yield _createExtractFolder(dest));
  10265. const originalCwd = process.cwd();
  10266. process.chdir(dest);
  10267. if (_7zPath) {
  10268. try {
  10269. const args = [
  10270. 'x',
  10271. '-bb1',
  10272. '-bd',
  10273. '-sccUTF-8',
  10274. file
  10275. ];
  10276. const options = {
  10277. silent: true
  10278. };
  10279. yield exec_1.exec(`"${_7zPath}"`, args, options);
  10280. }
  10281. finally {
  10282. process.chdir(originalCwd);
  10283. }
  10284. }
  10285. else {
  10286. const escapedScript = path
  10287. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  10288. .replace(/'/g, "''")
  10289. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10290. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10291. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10292. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  10293. const args = [
  10294. '-NoLogo',
  10295. '-Sta',
  10296. '-NoProfile',
  10297. '-NonInteractive',
  10298. '-ExecutionPolicy',
  10299. 'Unrestricted',
  10300. '-Command',
  10301. command
  10302. ];
  10303. const options = {
  10304. silent: true
  10305. };
  10306. try {
  10307. const powershellPath = yield io.which('powershell', true);
  10308. yield exec_1.exec(`"${powershellPath}"`, args, options);
  10309. }
  10310. finally {
  10311. process.chdir(originalCwd);
  10312. }
  10313. }
  10314. return dest;
  10315. });
  10316. }
  10317. exports.extract7z = extract7z;
  10318. /**
  10319. * Extract a tar
  10320. *
  10321. * @param file path to the tar
  10322. * @param dest destination directory. Optional.
  10323. * @param flags flags for the tar. Optional.
  10324. * @returns path to the destination directory
  10325. */
  10326. function extractTar(file, dest, flags = 'xz') {
  10327. return __awaiter(this, void 0, void 0, function* () {
  10328. if (!file) {
  10329. throw new Error("parameter 'file' is required");
  10330. }
  10331. dest = dest || (yield _createExtractFolder(dest));
  10332. const tarPath = yield io.which('tar', true);
  10333. yield exec_1.exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file]);
  10334. return dest;
  10335. });
  10336. }
  10337. exports.extractTar = extractTar;
  10338. /**
  10339. * Extract a zip
  10340. *
  10341. * @param file path to the zip
  10342. * @param dest destination directory. Optional.
  10343. * @returns path to the destination directory
  10344. */
  10345. function extractZip(file, dest) {
  10346. return __awaiter(this, void 0, void 0, function* () {
  10347. if (!file) {
  10348. throw new Error("parameter 'file' is required");
  10349. }
  10350. dest = dest || (yield _createExtractFolder(dest));
  10351. if (IS_WINDOWS) {
  10352. yield extractZipWin(file, dest);
  10353. }
  10354. else {
  10355. yield extractZipNix(file, dest);
  10356. }
  10357. return dest;
  10358. });
  10359. }
  10360. exports.extractZip = extractZip;
  10361. function extractZipWin(file, dest) {
  10362. return __awaiter(this, void 0, void 0, function* () {
  10363. // build the powershell command
  10364. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10365. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10366. const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
  10367. // run powershell
  10368. const powershellPath = yield io.which('powershell');
  10369. const args = [
  10370. '-NoLogo',
  10371. '-Sta',
  10372. '-NoProfile',
  10373. '-NonInteractive',
  10374. '-ExecutionPolicy',
  10375. 'Unrestricted',
  10376. '-Command',
  10377. command
  10378. ];
  10379. yield exec_1.exec(`"${powershellPath}"`, args);
  10380. });
  10381. }
  10382. function extractZipNix(file, dest) {
  10383. return __awaiter(this, void 0, void 0, function* () {
  10384. const unzipPath = yield io.which('unzip');
  10385. yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
  10386. });
  10387. }
  10388. /**
  10389. * Caches a directory and installs it into the tool cacheDir
  10390. *
  10391. * @param sourceDir the directory to cache into tools
  10392. * @param tool tool name
  10393. * @param version version of the tool. semver format
  10394. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10395. */
  10396. function cacheDir(sourceDir, tool, version, arch) {
  10397. return __awaiter(this, void 0, void 0, function* () {
  10398. version = semver.clean(version) || version;
  10399. arch = arch || os.arch();
  10400. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10401. core.debug(`source dir: ${sourceDir}`);
  10402. if (!fs.statSync(sourceDir).isDirectory()) {
  10403. throw new Error('sourceDir is not a directory');
  10404. }
  10405. // Create the tool dir
  10406. const destPath = yield _createToolPath(tool, version, arch);
  10407. // copy each child item. do not move. move can fail on Windows
  10408. // due to anti-virus software having an open handle on a file.
  10409. for (const itemName of fs.readdirSync(sourceDir)) {
  10410. const s = path.join(sourceDir, itemName);
  10411. yield io.cp(s, destPath, { recursive: true });
  10412. }
  10413. // write .complete
  10414. _completeToolPath(tool, version, arch);
  10415. return destPath;
  10416. });
  10417. }
  10418. exports.cacheDir = cacheDir;
  10419. /**
  10420. * Caches a downloaded file (GUID) and installs it
  10421. * into the tool cache with a given targetName
  10422. *
  10423. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  10424. * @param targetFile the name of the file name in the tools directory
  10425. * @param tool tool name
  10426. * @param version version of the tool. semver format
  10427. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10428. */
  10429. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  10430. return __awaiter(this, void 0, void 0, function* () {
  10431. version = semver.clean(version) || version;
  10432. arch = arch || os.arch();
  10433. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10434. core.debug(`source file: ${sourceFile}`);
  10435. if (!fs.statSync(sourceFile).isFile()) {
  10436. throw new Error('sourceFile is not a file');
  10437. }
  10438. // create the tool dir
  10439. const destFolder = yield _createToolPath(tool, version, arch);
  10440. // copy instead of move. move can fail on Windows due to
  10441. // anti-virus software having an open handle on a file.
  10442. const destPath = path.join(destFolder, targetFile);
  10443. core.debug(`destination file ${destPath}`);
  10444. yield io.cp(sourceFile, destPath);
  10445. // write .complete
  10446. _completeToolPath(tool, version, arch);
  10447. return destFolder;
  10448. });
  10449. }
  10450. exports.cacheFile = cacheFile;
  10451. /**
  10452. * Finds the path to a tool version in the local installed tool cache
  10453. *
  10454. * @param toolName name of the tool
  10455. * @param versionSpec version of the tool
  10456. * @param arch optional arch. defaults to arch of computer
  10457. */
  10458. function find(toolName, versionSpec, arch) {
  10459. if (!toolName) {
  10460. throw new Error('toolName parameter is required');
  10461. }
  10462. if (!versionSpec) {
  10463. throw new Error('versionSpec parameter is required');
  10464. }
  10465. arch = arch || os.arch();
  10466. // attempt to resolve an explicit version
  10467. if (!_isExplicitVersion(versionSpec)) {
  10468. const localVersions = findAllVersions(toolName, arch);
  10469. const match = _evaluateVersions(localVersions, versionSpec);
  10470. versionSpec = match;
  10471. }
  10472. // check for the explicit version in the cache
  10473. let toolPath = '';
  10474. if (versionSpec) {
  10475. versionSpec = semver.clean(versionSpec) || '';
  10476. const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
  10477. core.debug(`checking cache: ${cachePath}`);
  10478. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  10479. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  10480. toolPath = cachePath;
  10481. }
  10482. else {
  10483. core.debug('not found');
  10484. }
  10485. }
  10486. return toolPath;
  10487. }
  10488. exports.find = find;
  10489. /**
  10490. * Finds the paths to all versions of a tool that are installed in the local tool cache
  10491. *
  10492. * @param toolName name of the tool
  10493. * @param arch optional arch. defaults to arch of computer
  10494. */
  10495. function findAllVersions(toolName, arch) {
  10496. const versions = [];
  10497. arch = arch || os.arch();
  10498. const toolPath = path.join(cacheRoot, toolName);
  10499. if (fs.existsSync(toolPath)) {
  10500. const children = fs.readdirSync(toolPath);
  10501. for (const child of children) {
  10502. if (_isExplicitVersion(child)) {
  10503. const fullPath = path.join(toolPath, child, arch || '');
  10504. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  10505. versions.push(child);
  10506. }
  10507. }
  10508. }
  10509. }
  10510. return versions;
  10511. }
  10512. exports.findAllVersions = findAllVersions;
  10513. function _createExtractFolder(dest) {
  10514. return __awaiter(this, void 0, void 0, function* () {
  10515. if (!dest) {
  10516. // create a temp dir
  10517. dest = path.join(tempDirectory, uuidV4());
  10518. }
  10519. yield io.mkdirP(dest);
  10520. return dest;
  10521. });
  10522. }
  10523. function _createToolPath(tool, version, arch) {
  10524. return __awaiter(this, void 0, void 0, function* () {
  10525. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  10526. core.debug(`destination ${folderPath}`);
  10527. const markerPath = `${folderPath}.complete`;
  10528. yield io.rmRF(folderPath);
  10529. yield io.rmRF(markerPath);
  10530. yield io.mkdirP(folderPath);
  10531. return folderPath;
  10532. });
  10533. }
  10534. function _completeToolPath(tool, version, arch) {
  10535. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  10536. const markerPath = `${folderPath}.complete`;
  10537. fs.writeFileSync(markerPath, '');
  10538. core.debug('finished caching tool');
  10539. }
  10540. function _isExplicitVersion(versionSpec) {
  10541. const c = semver.clean(versionSpec) || '';
  10542. core.debug(`isExplicit: ${c}`);
  10543. const valid = semver.valid(c) != null;
  10544. core.debug(`explicit? ${valid}`);
  10545. return valid;
  10546. }
  10547. function _evaluateVersions(versions, versionSpec) {
  10548. let version = '';
  10549. core.debug(`evaluating ${versions.length} versions`);
  10550. versions = versions.sort((a, b) => {
  10551. if (semver.gt(a, b)) {
  10552. return 1;
  10553. }
  10554. return -1;
  10555. });
  10556. for (let i = versions.length - 1; i >= 0; i--) {
  10557. const potential = versions[i];
  10558. const satisfied = semver.satisfies(potential, versionSpec);
  10559. if (satisfied) {
  10560. version = potential;
  10561. break;
  10562. }
  10563. }
  10564. if (version) {
  10565. core.debug(`matched: ${version}`);
  10566. }
  10567. else {
  10568. core.debug('match not found');
  10569. }
  10570. return version;
  10571. }
  10572. //# sourceMappingURL=tool-cache.js.map
  10573. /***/ }),
  10574. /***/ 536:
  10575. /***/ (function(module, __unusedexports, __webpack_require__) {
  10576. module.exports = hasFirstPage
  10577. const deprecate = __webpack_require__(370)
  10578. const getPageLinks = __webpack_require__(577)
  10579. function hasFirstPage (link) {
  10580. deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  10581. return getPageLinks(link).first
  10582. }
  10583. /***/ }),
  10584. /***/ 539:
  10585. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10586. "use strict";
  10587. Object.defineProperty(exports, "__esModule", { value: true });
  10588. const url = __webpack_require__(835);
  10589. const http = __webpack_require__(605);
  10590. const https = __webpack_require__(34);
  10591. const pm = __webpack_require__(950);
  10592. let tunnel;
  10593. var HttpCodes;
  10594. (function (HttpCodes) {
  10595. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  10596. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  10597. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  10598. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  10599. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  10600. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  10601. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  10602. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  10603. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  10604. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  10605. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  10606. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  10607. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  10608. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  10609. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  10610. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  10611. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  10612. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  10613. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  10614. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  10615. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  10616. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  10617. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  10618. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  10619. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  10620. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  10621. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  10622. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  10623. var Headers;
  10624. (function (Headers) {
  10625. Headers["Accept"] = "accept";
  10626. Headers["ContentType"] = "content-type";
  10627. })(Headers = exports.Headers || (exports.Headers = {}));
  10628. var MediaTypes;
  10629. (function (MediaTypes) {
  10630. MediaTypes["ApplicationJson"] = "application/json";
  10631. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  10632. /**
  10633. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  10634. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  10635. */
  10636. function getProxyUrl(serverUrl) {
  10637. let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
  10638. return proxyUrl ? proxyUrl.href : '';
  10639. }
  10640. exports.getProxyUrl = getProxyUrl;
  10641. const HttpRedirectCodes = [
  10642. HttpCodes.MovedPermanently,
  10643. HttpCodes.ResourceMoved,
  10644. HttpCodes.SeeOther,
  10645. HttpCodes.TemporaryRedirect,
  10646. HttpCodes.PermanentRedirect
  10647. ];
  10648. const HttpResponseRetryCodes = [
  10649. HttpCodes.BadGateway,
  10650. HttpCodes.ServiceUnavailable,
  10651. HttpCodes.GatewayTimeout
  10652. ];
  10653. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  10654. const ExponentialBackoffCeiling = 10;
  10655. const ExponentialBackoffTimeSlice = 5;
  10656. class HttpClientResponse {
  10657. constructor(message) {
  10658. this.message = message;
  10659. }
  10660. readBody() {
  10661. return new Promise(async (resolve, reject) => {
  10662. let output = Buffer.alloc(0);
  10663. this.message.on('data', (chunk) => {
  10664. output = Buffer.concat([output, chunk]);
  10665. });
  10666. this.message.on('end', () => {
  10667. resolve(output.toString());
  10668. });
  10669. });
  10670. }
  10671. }
  10672. exports.HttpClientResponse = HttpClientResponse;
  10673. function isHttps(requestUrl) {
  10674. let parsedUrl = url.parse(requestUrl);
  10675. return parsedUrl.protocol === 'https:';
  10676. }
  10677. exports.isHttps = isHttps;
  10678. class HttpClient {
  10679. constructor(userAgent, handlers, requestOptions) {
  10680. this._ignoreSslError = false;
  10681. this._allowRedirects = true;
  10682. this._allowRedirectDowngrade = false;
  10683. this._maxRedirects = 50;
  10684. this._allowRetries = false;
  10685. this._maxRetries = 1;
  10686. this._keepAlive = false;
  10687. this._disposed = false;
  10688. this.userAgent = userAgent;
  10689. this.handlers = handlers || [];
  10690. this.requestOptions = requestOptions;
  10691. if (requestOptions) {
  10692. if (requestOptions.ignoreSslError != null) {
  10693. this._ignoreSslError = requestOptions.ignoreSslError;
  10694. }
  10695. this._socketTimeout = requestOptions.socketTimeout;
  10696. if (requestOptions.allowRedirects != null) {
  10697. this._allowRedirects = requestOptions.allowRedirects;
  10698. }
  10699. if (requestOptions.allowRedirectDowngrade != null) {
  10700. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  10701. }
  10702. if (requestOptions.maxRedirects != null) {
  10703. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  10704. }
  10705. if (requestOptions.keepAlive != null) {
  10706. this._keepAlive = requestOptions.keepAlive;
  10707. }
  10708. if (requestOptions.allowRetries != null) {
  10709. this._allowRetries = requestOptions.allowRetries;
  10710. }
  10711. if (requestOptions.maxRetries != null) {
  10712. this._maxRetries = requestOptions.maxRetries;
  10713. }
  10714. }
  10715. }
  10716. options(requestUrl, additionalHeaders) {
  10717. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  10718. }
  10719. get(requestUrl, additionalHeaders) {
  10720. return this.request('GET', requestUrl, null, additionalHeaders || {});
  10721. }
  10722. del(requestUrl, additionalHeaders) {
  10723. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  10724. }
  10725. post(requestUrl, data, additionalHeaders) {
  10726. return this.request('POST', requestUrl, data, additionalHeaders || {});
  10727. }
  10728. patch(requestUrl, data, additionalHeaders) {
  10729. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  10730. }
  10731. put(requestUrl, data, additionalHeaders) {
  10732. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  10733. }
  10734. head(requestUrl, additionalHeaders) {
  10735. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  10736. }
  10737. sendStream(verb, requestUrl, stream, additionalHeaders) {
  10738. return this.request(verb, requestUrl, stream, additionalHeaders);
  10739. }
  10740. /**
  10741. * Gets a typed object from an endpoint
  10742. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  10743. */
  10744. async getJson(requestUrl, additionalHeaders = {}) {
  10745. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  10746. let res = await this.get(requestUrl, additionalHeaders);
  10747. return this._processResponse(res, this.requestOptions);
  10748. }
  10749. async postJson(requestUrl, obj, additionalHeaders = {}) {
  10750. let data = JSON.stringify(obj, null, 2);
  10751. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  10752. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  10753. let res = await this.post(requestUrl, data, additionalHeaders);
  10754. return this._processResponse(res, this.requestOptions);
  10755. }
  10756. async putJson(requestUrl, obj, additionalHeaders = {}) {
  10757. let data = JSON.stringify(obj, null, 2);
  10758. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  10759. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  10760. let res = await this.put(requestUrl, data, additionalHeaders);
  10761. return this._processResponse(res, this.requestOptions);
  10762. }
  10763. async patchJson(requestUrl, obj, additionalHeaders = {}) {
  10764. let data = JSON.stringify(obj, null, 2);
  10765. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  10766. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  10767. let res = await this.patch(requestUrl, data, additionalHeaders);
  10768. return this._processResponse(res, this.requestOptions);
  10769. }
  10770. /**
  10771. * Makes a raw http request.
  10772. * All other methods such as get, post, patch, and request ultimately call this.
  10773. * Prefer get, del, post and patch
  10774. */
  10775. async request(verb, requestUrl, data, headers) {
  10776. if (this._disposed) {
  10777. throw new Error('Client has already been disposed.');
  10778. }
  10779. let parsedUrl = url.parse(requestUrl);
  10780. let info = this._prepareRequest(verb, parsedUrl, headers);
  10781. // Only perform retries on reads since writes may not be idempotent.
  10782. let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
  10783. ? this._maxRetries + 1
  10784. : 1;
  10785. let numTries = 0;
  10786. let response;
  10787. while (numTries < maxTries) {
  10788. response = await this.requestRaw(info, data);
  10789. // Check if it's an authentication challenge
  10790. if (response &&
  10791. response.message &&
  10792. response.message.statusCode === HttpCodes.Unauthorized) {
  10793. let authenticationHandler;
  10794. for (let i = 0; i < this.handlers.length; i++) {
  10795. if (this.handlers[i].canHandleAuthentication(response)) {
  10796. authenticationHandler = this.handlers[i];
  10797. break;
  10798. }
  10799. }
  10800. if (authenticationHandler) {
  10801. return authenticationHandler.handleAuthentication(this, info, data);
  10802. }
  10803. else {
  10804. // We have received an unauthorized response but have no handlers to handle it.
  10805. // Let the response return to the caller.
  10806. return response;
  10807. }
  10808. }
  10809. let redirectsRemaining = this._maxRedirects;
  10810. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
  10811. this._allowRedirects &&
  10812. redirectsRemaining > 0) {
  10813. const redirectUrl = response.message.headers['location'];
  10814. if (!redirectUrl) {
  10815. // if there's no location to redirect to, we won't
  10816. break;
  10817. }
  10818. let parsedRedirectUrl = url.parse(redirectUrl);
  10819. if (parsedUrl.protocol == 'https:' &&
  10820. parsedUrl.protocol != parsedRedirectUrl.protocol &&
  10821. !this._allowRedirectDowngrade) {
  10822. 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.');
  10823. }
  10824. // we need to finish reading the response before reassigning response
  10825. // which will leak the open socket.
  10826. await response.readBody();
  10827. // strip authorization header if redirected to a different hostname
  10828. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  10829. for (let header in headers) {
  10830. // header names are case insensitive
  10831. if (header.toLowerCase() === 'authorization') {
  10832. delete headers[header];
  10833. }
  10834. }
  10835. }
  10836. // let's make the request with the new redirectUrl
  10837. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  10838. response = await this.requestRaw(info, data);
  10839. redirectsRemaining--;
  10840. }
  10841. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  10842. // If not a retry code, return immediately instead of retrying
  10843. return response;
  10844. }
  10845. numTries += 1;
  10846. if (numTries < maxTries) {
  10847. await response.readBody();
  10848. await this._performExponentialBackoff(numTries);
  10849. }
  10850. }
  10851. return response;
  10852. }
  10853. /**
  10854. * Needs to be called if keepAlive is set to true in request options.
  10855. */
  10856. dispose() {
  10857. if (this._agent) {
  10858. this._agent.destroy();
  10859. }
  10860. this._disposed = true;
  10861. }
  10862. /**
  10863. * Raw request.
  10864. * @param info
  10865. * @param data
  10866. */
  10867. requestRaw(info, data) {
  10868. return new Promise((resolve, reject) => {
  10869. let callbackForResult = function (err, res) {
  10870. if (err) {
  10871. reject(err);
  10872. }
  10873. resolve(res);
  10874. };
  10875. this.requestRawWithCallback(info, data, callbackForResult);
  10876. });
  10877. }
  10878. /**
  10879. * Raw request with callback.
  10880. * @param info
  10881. * @param data
  10882. * @param onResult
  10883. */
  10884. requestRawWithCallback(info, data, onResult) {
  10885. let socket;
  10886. if (typeof data === 'string') {
  10887. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  10888. }
  10889. let callbackCalled = false;
  10890. let handleResult = (err, res) => {
  10891. if (!callbackCalled) {
  10892. callbackCalled = true;
  10893. onResult(err, res);
  10894. }
  10895. };
  10896. let req = info.httpModule.request(info.options, (msg) => {
  10897. let res = new HttpClientResponse(msg);
  10898. handleResult(null, res);
  10899. });
  10900. req.on('socket', sock => {
  10901. socket = sock;
  10902. });
  10903. // If we ever get disconnected, we want the socket to timeout eventually
  10904. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  10905. if (socket) {
  10906. socket.end();
  10907. }
  10908. handleResult(new Error('Request timeout: ' + info.options.path), null);
  10909. });
  10910. req.on('error', function (err) {
  10911. // err has statusCode property
  10912. // res should have headers
  10913. handleResult(err, null);
  10914. });
  10915. if (data && typeof data === 'string') {
  10916. req.write(data, 'utf8');
  10917. }
  10918. if (data && typeof data !== 'string') {
  10919. data.on('close', function () {
  10920. req.end();
  10921. });
  10922. data.pipe(req);
  10923. }
  10924. else {
  10925. req.end();
  10926. }
  10927. }
  10928. /**
  10929. * Gets an http agent. This function is useful when you need an http agent that handles
  10930. * routing through a proxy server - depending upon the url and proxy environment variables.
  10931. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  10932. */
  10933. getAgent(serverUrl) {
  10934. let parsedUrl = url.parse(serverUrl);
  10935. return this._getAgent(parsedUrl);
  10936. }
  10937. _prepareRequest(method, requestUrl, headers) {
  10938. const info = {};
  10939. info.parsedUrl = requestUrl;
  10940. const usingSsl = info.parsedUrl.protocol === 'https:';
  10941. info.httpModule = usingSsl ? https : http;
  10942. const defaultPort = usingSsl ? 443 : 80;
  10943. info.options = {};
  10944. info.options.host = info.parsedUrl.hostname;
  10945. info.options.port = info.parsedUrl.port
  10946. ? parseInt(info.parsedUrl.port)
  10947. : defaultPort;
  10948. info.options.path =
  10949. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  10950. info.options.method = method;
  10951. info.options.headers = this._mergeHeaders(headers);
  10952. if (this.userAgent != null) {
  10953. info.options.headers['user-agent'] = this.userAgent;
  10954. }
  10955. info.options.agent = this._getAgent(info.parsedUrl);
  10956. // gives handlers an opportunity to participate
  10957. if (this.handlers) {
  10958. this.handlers.forEach(handler => {
  10959. handler.prepareRequest(info.options);
  10960. });
  10961. }
  10962. return info;
  10963. }
  10964. _mergeHeaders(headers) {
  10965. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  10966. if (this.requestOptions && this.requestOptions.headers) {
  10967. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  10968. }
  10969. return lowercaseKeys(headers || {});
  10970. }
  10971. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  10972. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  10973. let clientHeader;
  10974. if (this.requestOptions && this.requestOptions.headers) {
  10975. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  10976. }
  10977. return additionalHeaders[header] || clientHeader || _default;
  10978. }
  10979. _getAgent(parsedUrl) {
  10980. let agent;
  10981. let proxyUrl = pm.getProxyUrl(parsedUrl);
  10982. let useProxy = proxyUrl && proxyUrl.hostname;
  10983. if (this._keepAlive && useProxy) {
  10984. agent = this._proxyAgent;
  10985. }
  10986. if (this._keepAlive && !useProxy) {
  10987. agent = this._agent;
  10988. }
  10989. // if agent is already assigned use that agent.
  10990. if (!!agent) {
  10991. return agent;
  10992. }
  10993. const usingSsl = parsedUrl.protocol === 'https:';
  10994. let maxSockets = 100;
  10995. if (!!this.requestOptions) {
  10996. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  10997. }
  10998. if (useProxy) {
  10999. // If using proxy, need tunnel
  11000. if (!tunnel) {
  11001. tunnel = __webpack_require__(335);
  11002. }
  11003. const agentOptions = {
  11004. maxSockets: maxSockets,
  11005. keepAlive: this._keepAlive,
  11006. proxy: {
  11007. proxyAuth: proxyUrl.auth,
  11008. host: proxyUrl.hostname,
  11009. port: proxyUrl.port
  11010. }
  11011. };
  11012. let tunnelAgent;
  11013. const overHttps = proxyUrl.protocol === 'https:';
  11014. if (usingSsl) {
  11015. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  11016. }
  11017. else {
  11018. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  11019. }
  11020. agent = tunnelAgent(agentOptions);
  11021. this._proxyAgent = agent;
  11022. }
  11023. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  11024. if (this._keepAlive && !agent) {
  11025. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  11026. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  11027. this._agent = agent;
  11028. }
  11029. // if not using private agent and tunnel agent isn't setup then use global agent
  11030. if (!agent) {
  11031. agent = usingSsl ? https.globalAgent : http.globalAgent;
  11032. }
  11033. if (usingSsl && this._ignoreSslError) {
  11034. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  11035. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  11036. // we have to cast it to any and change it directly
  11037. agent.options = Object.assign(agent.options || {}, {
  11038. rejectUnauthorized: false
  11039. });
  11040. }
  11041. return agent;
  11042. }
  11043. _performExponentialBackoff(retryNumber) {
  11044. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  11045. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  11046. return new Promise(resolve => setTimeout(() => resolve(), ms));
  11047. }
  11048. static dateTimeDeserializer(key, value) {
  11049. if (typeof value === 'string') {
  11050. let a = new Date(value);
  11051. if (!isNaN(a.valueOf())) {
  11052. return a;
  11053. }
  11054. }
  11055. return value;
  11056. }
  11057. async _processResponse(res, options) {
  11058. return new Promise(async (resolve, reject) => {
  11059. const statusCode = res.message.statusCode;
  11060. const response = {
  11061. statusCode: statusCode,
  11062. result: null,
  11063. headers: {}
  11064. };
  11065. // not found leads to null obj returned
  11066. if (statusCode == HttpCodes.NotFound) {
  11067. resolve(response);
  11068. }
  11069. let obj;
  11070. let contents;
  11071. // get the result from the body
  11072. try {
  11073. contents = await res.readBody();
  11074. if (contents && contents.length > 0) {
  11075. if (options && options.deserializeDates) {
  11076. obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
  11077. }
  11078. else {
  11079. obj = JSON.parse(contents);
  11080. }
  11081. response.result = obj;
  11082. }
  11083. response.headers = res.message.headers;
  11084. }
  11085. catch (err) {
  11086. // Invalid resource (contents not json); leaving result obj null
  11087. }
  11088. // note that 3xx redirects are handled by the http layer.
  11089. if (statusCode > 299) {
  11090. let msg;
  11091. // if exception/error in body, attempt to get better error
  11092. if (obj && obj.message) {
  11093. msg = obj.message;
  11094. }
  11095. else if (contents && contents.length > 0) {
  11096. // it may be the case that the exception is in the body message as string
  11097. msg = contents;
  11098. }
  11099. else {
  11100. msg = 'Failed request: (' + statusCode + ')';
  11101. }
  11102. let err = new Error(msg);
  11103. // attach statusCode and body obj (if available) to the error object
  11104. err['statusCode'] = statusCode;
  11105. if (response.result) {
  11106. err['result'] = response.result;
  11107. }
  11108. reject(err);
  11109. }
  11110. else {
  11111. resolve(response);
  11112. }
  11113. });
  11114. }
  11115. }
  11116. exports.HttpClient = HttpClient;
  11117. /***/ }),
  11118. /***/ 550:
  11119. /***/ (function(module, __unusedexports, __webpack_require__) {
  11120. module.exports = getNextPage
  11121. const getPage = __webpack_require__(265)
  11122. function getNextPage (octokit, link, headers) {
  11123. return getPage(octokit, link, 'next', headers)
  11124. }
  11125. /***/ }),
  11126. /***/ 558:
  11127. /***/ (function(module, __unusedexports, __webpack_require__) {
  11128. module.exports = hasPreviousPage
  11129. const deprecate = __webpack_require__(370)
  11130. const getPageLinks = __webpack_require__(577)
  11131. function hasPreviousPage (link) {
  11132. deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  11133. return getPageLinks(link).prev
  11134. }
  11135. /***/ }),
  11136. /***/ 559:
  11137. /***/ (function(__unusedmodule, exports) {
  11138. "use strict";
  11139. Object.defineProperty(exports, "__esModule", { value: true });
  11140. exports.GitVersion = void 0;
  11141. class GitVersion {
  11142. /**
  11143. * Used for comparing the version of git and git-lfs against the minimum required version
  11144. * @param version the version string, e.g. 1.2 or 1.2.3
  11145. */
  11146. constructor(version) {
  11147. this.major = NaN;
  11148. this.minor = NaN;
  11149. this.patch = NaN;
  11150. if (version) {
  11151. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  11152. if (match) {
  11153. this.major = Number(match[1]);
  11154. this.minor = Number(match[2]);
  11155. if (match[4]) {
  11156. this.patch = Number(match[4]);
  11157. }
  11158. }
  11159. }
  11160. }
  11161. /**
  11162. * Compares the instance against a minimum required version
  11163. * @param minimum Minimum version
  11164. */
  11165. checkMinimum(minimum) {
  11166. if (!minimum.isValid()) {
  11167. throw new Error('Arg minimum is not a valid version');
  11168. }
  11169. // Major is insufficient
  11170. if (this.major < minimum.major) {
  11171. return false;
  11172. }
  11173. // Major is equal
  11174. if (this.major === minimum.major) {
  11175. // Minor is insufficient
  11176. if (this.minor < minimum.minor) {
  11177. return false;
  11178. }
  11179. // Minor is equal
  11180. if (this.minor === minimum.minor) {
  11181. // Patch is insufficient
  11182. if (this.patch && this.patch < (minimum.patch || 0)) {
  11183. return false;
  11184. }
  11185. }
  11186. }
  11187. return true;
  11188. }
  11189. /**
  11190. * Indicates whether the instance was constructed from a valid version string
  11191. */
  11192. isValid() {
  11193. return !isNaN(this.major);
  11194. }
  11195. /**
  11196. * Returns the version as a string, e.g. 1.2 or 1.2.3
  11197. */
  11198. toString() {
  11199. let result = '';
  11200. if (this.isValid()) {
  11201. result = `${this.major}.${this.minor}`;
  11202. if (!isNaN(this.patch)) {
  11203. result += `.${this.patch}`;
  11204. }
  11205. }
  11206. return result;
  11207. }
  11208. }
  11209. exports.GitVersion = GitVersion;
  11210. /***/ }),
  11211. /***/ 562:
  11212. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11213. "use strict";
  11214. Object.defineProperty(exports, '__esModule', { value: true });
  11215. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  11216. var osName = _interopDefault(__webpack_require__(2));
  11217. function getUserAgent() {
  11218. try {
  11219. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  11220. } catch (error) {
  11221. if (/wmic os get Caption/.test(error.message)) {
  11222. return "Windows <version undetectable>";
  11223. }
  11224. return "<environment undetectable>";
  11225. }
  11226. }
  11227. exports.getUserAgent = getUserAgent;
  11228. //# sourceMappingURL=index.js.map
  11229. /***/ }),
  11230. /***/ 563:
  11231. /***/ (function(module, __unusedexports, __webpack_require__) {
  11232. module.exports = getPreviousPage
  11233. const getPage = __webpack_require__(265)
  11234. function getPreviousPage (octokit, link, headers) {
  11235. return getPage(octokit, link, 'prev', headers)
  11236. }
  11237. /***/ }),
  11238. /***/ 568:
  11239. /***/ (function(module, __unusedexports, __webpack_require__) {
  11240. "use strict";
  11241. const path = __webpack_require__(622);
  11242. const niceTry = __webpack_require__(948);
  11243. const resolveCommand = __webpack_require__(489);
  11244. const escape = __webpack_require__(462);
  11245. const readShebang = __webpack_require__(389);
  11246. const semver = __webpack_require__(280);
  11247. const isWin = process.platform === 'win32';
  11248. const isExecutableRegExp = /\.(?:com|exe)$/i;
  11249. const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
  11250. // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
  11251. const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
  11252. function detectShebang(parsed) {
  11253. parsed.file = resolveCommand(parsed);
  11254. const shebang = parsed.file && readShebang(parsed.file);
  11255. if (shebang) {
  11256. parsed.args.unshift(parsed.file);
  11257. parsed.command = shebang;
  11258. return resolveCommand(parsed);
  11259. }
  11260. return parsed.file;
  11261. }
  11262. function parseNonShell(parsed) {
  11263. if (!isWin) {
  11264. return parsed;
  11265. }
  11266. // Detect & add support for shebangs
  11267. const commandFile = detectShebang(parsed);
  11268. // We don't need a shell if the command filename is an executable
  11269. const needsShell = !isExecutableRegExp.test(commandFile);
  11270. // If a shell is required, use cmd.exe and take care of escaping everything correctly
  11271. // Note that `forceShell` is an hidden option used only in tests
  11272. if (parsed.options.forceShell || needsShell) {
  11273. // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
  11274. // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
  11275. // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
  11276. // we need to double escape them
  11277. const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
  11278. // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
  11279. // This is necessary otherwise it will always fail with ENOENT in those cases
  11280. parsed.command = path.normalize(parsed.command);
  11281. // Escape command & arguments
  11282. parsed.command = escape.command(parsed.command);
  11283. parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
  11284. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11285. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11286. parsed.command = process.env.comspec || 'cmd.exe';
  11287. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11288. }
  11289. return parsed;
  11290. }
  11291. function parseShell(parsed) {
  11292. // If node supports the shell option, there's no need to mimic its behavior
  11293. if (supportsShellOption) {
  11294. return parsed;
  11295. }
  11296. // Mimic node shell option
  11297. // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
  11298. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11299. if (isWin) {
  11300. parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
  11301. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11302. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11303. } else {
  11304. if (typeof parsed.options.shell === 'string') {
  11305. parsed.command = parsed.options.shell;
  11306. } else if (process.platform === 'android') {
  11307. parsed.command = '/system/bin/sh';
  11308. } else {
  11309. parsed.command = '/bin/sh';
  11310. }
  11311. parsed.args = ['-c', shellCommand];
  11312. }
  11313. return parsed;
  11314. }
  11315. function parse(command, args, options) {
  11316. // Normalize arguments, similar to nodejs
  11317. if (args && !Array.isArray(args)) {
  11318. options = args;
  11319. args = null;
  11320. }
  11321. args = args ? args.slice(0) : []; // Clone array to avoid changing the original
  11322. options = Object.assign({}, options); // Clone object to avoid changing the original
  11323. // Build our parsed object
  11324. const parsed = {
  11325. command,
  11326. args,
  11327. options,
  11328. file: undefined,
  11329. original: {
  11330. command,
  11331. args,
  11332. },
  11333. };
  11334. // Delegate further parsing to shell or non-shell
  11335. return options.shell ? parseShell(parsed) : parseNonShell(parsed);
  11336. }
  11337. module.exports = parse;
  11338. /***/ }),
  11339. /***/ 577:
  11340. /***/ (function(module) {
  11341. module.exports = getPageLinks
  11342. function getPageLinks (link) {
  11343. link = link.link || link.headers.link || ''
  11344. const links = {}
  11345. // link format:
  11346. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  11347. link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
  11348. links[type] = uri
  11349. })
  11350. return links
  11351. }
  11352. /***/ }),
  11353. /***/ 581:
  11354. /***/ (function(module, __unusedexports, __webpack_require__) {
  11355. "use strict";
  11356. var formats = __webpack_require__(13);
  11357. var has = Object.prototype.hasOwnProperty;
  11358. var isArray = Array.isArray;
  11359. var hexTable = (function () {
  11360. var array = [];
  11361. for (var i = 0; i < 256; ++i) {
  11362. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  11363. }
  11364. return array;
  11365. }());
  11366. var compactQueue = function compactQueue(queue) {
  11367. while (queue.length > 1) {
  11368. var item = queue.pop();
  11369. var obj = item.obj[item.prop];
  11370. if (isArray(obj)) {
  11371. var compacted = [];
  11372. for (var j = 0; j < obj.length; ++j) {
  11373. if (typeof obj[j] !== 'undefined') {
  11374. compacted.push(obj[j]);
  11375. }
  11376. }
  11377. item.obj[item.prop] = compacted;
  11378. }
  11379. }
  11380. };
  11381. var arrayToObject = function arrayToObject(source, options) {
  11382. var obj = options && options.plainObjects ? Object.create(null) : {};
  11383. for (var i = 0; i < source.length; ++i) {
  11384. if (typeof source[i] !== 'undefined') {
  11385. obj[i] = source[i];
  11386. }
  11387. }
  11388. return obj;
  11389. };
  11390. var merge = function merge(target, source, options) {
  11391. /* eslint no-param-reassign: 0 */
  11392. if (!source) {
  11393. return target;
  11394. }
  11395. if (typeof source !== 'object') {
  11396. if (isArray(target)) {
  11397. target.push(source);
  11398. } else if (target && typeof target === 'object') {
  11399. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  11400. target[source] = true;
  11401. }
  11402. } else {
  11403. return [target, source];
  11404. }
  11405. return target;
  11406. }
  11407. if (!target || typeof target !== 'object') {
  11408. return [target].concat(source);
  11409. }
  11410. var mergeTarget = target;
  11411. if (isArray(target) && !isArray(source)) {
  11412. mergeTarget = arrayToObject(target, options);
  11413. }
  11414. if (isArray(target) && isArray(source)) {
  11415. source.forEach(function (item, i) {
  11416. if (has.call(target, i)) {
  11417. var targetItem = target[i];
  11418. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  11419. target[i] = merge(targetItem, item, options);
  11420. } else {
  11421. target.push(item);
  11422. }
  11423. } else {
  11424. target[i] = item;
  11425. }
  11426. });
  11427. return target;
  11428. }
  11429. return Object.keys(source).reduce(function (acc, key) {
  11430. var value = source[key];
  11431. if (has.call(acc, key)) {
  11432. acc[key] = merge(acc[key], value, options);
  11433. } else {
  11434. acc[key] = value;
  11435. }
  11436. return acc;
  11437. }, mergeTarget);
  11438. };
  11439. var assign = function assignSingleSource(target, source) {
  11440. return Object.keys(source).reduce(function (acc, key) {
  11441. acc[key] = source[key];
  11442. return acc;
  11443. }, target);
  11444. };
  11445. var decode = function (str, decoder, charset) {
  11446. var strWithoutPlus = str.replace(/\+/g, ' ');
  11447. if (charset === 'iso-8859-1') {
  11448. // unescape never throws, no try...catch needed:
  11449. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  11450. }
  11451. // utf-8
  11452. try {
  11453. return decodeURIComponent(strWithoutPlus);
  11454. } catch (e) {
  11455. return strWithoutPlus;
  11456. }
  11457. };
  11458. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  11459. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  11460. // It has been adapted here for stricter adherence to RFC 3986
  11461. if (str.length === 0) {
  11462. return str;
  11463. }
  11464. var string = str;
  11465. if (typeof str === 'symbol') {
  11466. string = Symbol.prototype.toString.call(str);
  11467. } else if (typeof str !== 'string') {
  11468. string = String(str);
  11469. }
  11470. if (charset === 'iso-8859-1') {
  11471. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  11472. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  11473. });
  11474. }
  11475. var out = '';
  11476. for (var i = 0; i < string.length; ++i) {
  11477. var c = string.charCodeAt(i);
  11478. if (
  11479. c === 0x2D // -
  11480. || c === 0x2E // .
  11481. || c === 0x5F // _
  11482. || c === 0x7E // ~
  11483. || (c >= 0x30 && c <= 0x39) // 0-9
  11484. || (c >= 0x41 && c <= 0x5A) // a-z
  11485. || (c >= 0x61 && c <= 0x7A) // A-Z
  11486. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  11487. ) {
  11488. out += string.charAt(i);
  11489. continue;
  11490. }
  11491. if (c < 0x80) {
  11492. out = out + hexTable[c];
  11493. continue;
  11494. }
  11495. if (c < 0x800) {
  11496. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  11497. continue;
  11498. }
  11499. if (c < 0xD800 || c >= 0xE000) {
  11500. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  11501. continue;
  11502. }
  11503. i += 1;
  11504. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  11505. out += hexTable[0xF0 | (c >> 18)]
  11506. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  11507. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  11508. + hexTable[0x80 | (c & 0x3F)];
  11509. }
  11510. return out;
  11511. };
  11512. var compact = function compact(value) {
  11513. var queue = [{ obj: { o: value }, prop: 'o' }];
  11514. var refs = [];
  11515. for (var i = 0; i < queue.length; ++i) {
  11516. var item = queue[i];
  11517. var obj = item.obj[item.prop];
  11518. var keys = Object.keys(obj);
  11519. for (var j = 0; j < keys.length; ++j) {
  11520. var key = keys[j];
  11521. var val = obj[key];
  11522. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  11523. queue.push({ obj: obj, prop: key });
  11524. refs.push(val);
  11525. }
  11526. }
  11527. }
  11528. compactQueue(queue);
  11529. return value;
  11530. };
  11531. var isRegExp = function isRegExp(obj) {
  11532. return Object.prototype.toString.call(obj) === '[object RegExp]';
  11533. };
  11534. var isBuffer = function isBuffer(obj) {
  11535. if (!obj || typeof obj !== 'object') {
  11536. return false;
  11537. }
  11538. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  11539. };
  11540. var combine = function combine(a, b) {
  11541. return [].concat(a, b);
  11542. };
  11543. var maybeMap = function maybeMap(val, fn) {
  11544. if (isArray(val)) {
  11545. var mapped = [];
  11546. for (var i = 0; i < val.length; i += 1) {
  11547. mapped.push(fn(val[i]));
  11548. }
  11549. return mapped;
  11550. }
  11551. return fn(val);
  11552. };
  11553. module.exports = {
  11554. arrayToObject: arrayToObject,
  11555. assign: assign,
  11556. combine: combine,
  11557. compact: compact,
  11558. decode: decode,
  11559. encode: encode,
  11560. isBuffer: isBuffer,
  11561. isRegExp: isRegExp,
  11562. maybeMap: maybeMap,
  11563. merge: merge
  11564. };
  11565. /***/ }),
  11566. /***/ 587:
  11567. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11568. "use strict";
  11569. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11570. if (k2 === undefined) k2 = k;
  11571. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11572. }) : (function(o, m, k, k2) {
  11573. if (k2 === undefined) k2 = k;
  11574. o[k2] = m[k];
  11575. }));
  11576. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11577. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11578. }) : function(o, v) {
  11579. o["default"] = v;
  11580. });
  11581. var __importStar = (this && this.__importStar) || function (mod) {
  11582. if (mod && mod.__esModule) return mod;
  11583. var result = {};
  11584. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11585. __setModuleDefault(result, mod);
  11586. return result;
  11587. };
  11588. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  11589. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  11590. return new (P || (P = Promise))(function (resolve, reject) {
  11591. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  11592. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  11593. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  11594. step((generator = generator.apply(thisArg, _arguments || [])).next());
  11595. });
  11596. };
  11597. Object.defineProperty(exports, "__esModule", { value: true });
  11598. exports.execute = exports.RetryHelper = void 0;
  11599. const core = __importStar(__webpack_require__(470));
  11600. const defaultMaxAttempts = 3;
  11601. const defaultMinSeconds = 10;
  11602. const defaultMaxSeconds = 20;
  11603. class RetryHelper {
  11604. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  11605. this.maxAttempts = maxAttempts;
  11606. this.minSeconds = Math.floor(minSeconds);
  11607. this.maxSeconds = Math.floor(maxSeconds);
  11608. if (this.minSeconds > this.maxSeconds) {
  11609. throw new Error('min seconds should be less than or equal to max seconds');
  11610. }
  11611. }
  11612. execute(action) {
  11613. var _a;
  11614. return __awaiter(this, void 0, void 0, function* () {
  11615. let attempt = 1;
  11616. while (attempt < this.maxAttempts) {
  11617. // Try
  11618. try {
  11619. return yield action();
  11620. }
  11621. catch (err) {
  11622. core.info((_a = err) === null || _a === void 0 ? void 0 : _a.message);
  11623. }
  11624. // Sleep
  11625. const seconds = this.getSleepAmount();
  11626. core.info(`Waiting ${seconds} seconds before trying again`);
  11627. yield this.sleep(seconds);
  11628. attempt++;
  11629. }
  11630. // Last attempt
  11631. return yield action();
  11632. });
  11633. }
  11634. getSleepAmount() {
  11635. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  11636. this.minSeconds);
  11637. }
  11638. sleep(seconds) {
  11639. return __awaiter(this, void 0, void 0, function* () {
  11640. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  11641. });
  11642. }
  11643. }
  11644. exports.RetryHelper = RetryHelper;
  11645. function execute(action) {
  11646. return __awaiter(this, void 0, void 0, function* () {
  11647. const retryHelper = new RetryHelper();
  11648. return yield retryHelper.execute(action);
  11649. });
  11650. }
  11651. exports.execute = execute;
  11652. /***/ }),
  11653. /***/ 605:
  11654. /***/ (function(module) {
  11655. module.exports = require("http");
  11656. /***/ }),
  11657. /***/ 614:
  11658. /***/ (function(module) {
  11659. module.exports = require("events");
  11660. /***/ }),
  11661. /***/ 618:
  11662. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11663. "use strict";
  11664. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11665. if (k2 === undefined) k2 = k;
  11666. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11667. }) : (function(o, m, k, k2) {
  11668. if (k2 === undefined) k2 = k;
  11669. o[k2] = m[k];
  11670. }));
  11671. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11672. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11673. }) : function(o, v) {
  11674. o["default"] = v;
  11675. });
  11676. var __importStar = (this && this.__importStar) || function (mod) {
  11677. if (mod && mod.__esModule) return mod;
  11678. var result = {};
  11679. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11680. __setModuleDefault(result, mod);
  11681. return result;
  11682. };
  11683. Object.defineProperty(exports, "__esModule", { value: true });
  11684. exports.fileExistsSync = exports.existsSync = exports.directoryExistsSync = void 0;
  11685. const fs = __importStar(__webpack_require__(747));
  11686. function directoryExistsSync(path, required) {
  11687. var _a, _b, _c;
  11688. if (!path) {
  11689. throw new Error("Arg 'path' must not be empty");
  11690. }
  11691. let stats;
  11692. try {
  11693. stats = fs.statSync(path);
  11694. }
  11695. catch (error) {
  11696. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  11697. if (!required) {
  11698. return false;
  11699. }
  11700. throw new Error(`Directory '${path}' does not exist`);
  11701. }
  11702. 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}`);
  11703. }
  11704. if (stats.isDirectory()) {
  11705. return true;
  11706. }
  11707. else if (!required) {
  11708. return false;
  11709. }
  11710. throw new Error(`Directory '${path}' does not exist`);
  11711. }
  11712. exports.directoryExistsSync = directoryExistsSync;
  11713. function existsSync(path) {
  11714. var _a, _b, _c;
  11715. if (!path) {
  11716. throw new Error("Arg 'path' must not be empty");
  11717. }
  11718. try {
  11719. fs.statSync(path);
  11720. }
  11721. catch (error) {
  11722. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  11723. return false;
  11724. }
  11725. 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}`);
  11726. }
  11727. return true;
  11728. }
  11729. exports.existsSync = existsSync;
  11730. function fileExistsSync(path) {
  11731. var _a, _b, _c;
  11732. if (!path) {
  11733. throw new Error("Arg 'path' must not be empty");
  11734. }
  11735. let stats;
  11736. try {
  11737. stats = fs.statSync(path);
  11738. }
  11739. catch (error) {
  11740. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  11741. return false;
  11742. }
  11743. 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}`);
  11744. }
  11745. if (!stats.isDirectory()) {
  11746. return true;
  11747. }
  11748. return false;
  11749. }
  11750. exports.fileExistsSync = fileExistsSync;
  11751. /***/ }),
  11752. /***/ 621:
  11753. /***/ (function(module, __unusedexports, __webpack_require__) {
  11754. "use strict";
  11755. const path = __webpack_require__(622);
  11756. const pathKey = __webpack_require__(39);
  11757. module.exports = opts => {
  11758. opts = Object.assign({
  11759. cwd: process.cwd(),
  11760. path: process.env[pathKey()]
  11761. }, opts);
  11762. let prev;
  11763. let pth = path.resolve(opts.cwd);
  11764. const ret = [];
  11765. while (prev !== pth) {
  11766. ret.push(path.join(pth, 'node_modules/.bin'));
  11767. prev = pth;
  11768. pth = path.resolve(pth, '..');
  11769. }
  11770. // ensure the running `node` binary is used
  11771. ret.push(path.dirname(process.execPath));
  11772. return ret.concat(opts.path).join(path.delimiter);
  11773. };
  11774. module.exports.env = opts => {
  11775. opts = Object.assign({
  11776. env: process.env
  11777. }, opts);
  11778. const env = Object.assign({}, opts.env);
  11779. const path = pathKey({env});
  11780. opts.path = env[path];
  11781. env[path] = module.exports(opts);
  11782. return env;
  11783. };
  11784. /***/ }),
  11785. /***/ 622:
  11786. /***/ (function(module) {
  11787. module.exports = require("path");
  11788. /***/ }),
  11789. /***/ 630:
  11790. /***/ (function(module, __unusedexports, __webpack_require__) {
  11791. "use strict";
  11792. var GetIntrinsic = __webpack_require__(915);
  11793. var callBind = __webpack_require__(749);
  11794. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  11795. module.exports = function callBoundIntrinsic(name, allowMissing) {
  11796. var intrinsic = GetIntrinsic(name, !!allowMissing);
  11797. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  11798. return callBind(intrinsic);
  11799. }
  11800. return intrinsic;
  11801. };
  11802. /***/ }),
  11803. /***/ 631:
  11804. /***/ (function(module) {
  11805. module.exports = require("net");
  11806. /***/ }),
  11807. /***/ 642:
  11808. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11809. "use strict";
  11810. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11811. if (k2 === undefined) k2 = k;
  11812. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11813. }) : (function(o, m, k, k2) {
  11814. if (k2 === undefined) k2 = k;
  11815. o[k2] = m[k];
  11816. }));
  11817. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11818. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11819. }) : function(o, v) {
  11820. o["default"] = v;
  11821. });
  11822. var __importStar = (this && this.__importStar) || function (mod) {
  11823. if (mod && mod.__esModule) return mod;
  11824. var result = {};
  11825. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11826. __setModuleDefault(result, mod);
  11827. return result;
  11828. };
  11829. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  11830. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  11831. return new (P || (P = Promise))(function (resolve, reject) {
  11832. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  11833. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  11834. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  11835. step((generator = generator.apply(thisArg, _arguments || [])).next());
  11836. });
  11837. };
  11838. Object.defineProperty(exports, "__esModule", { value: true });
  11839. exports.getOrganizationId = void 0;
  11840. const core = __importStar(__webpack_require__(470));
  11841. const fs = __importStar(__webpack_require__(747));
  11842. /**
  11843. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  11844. */
  11845. function getOrganizationId() {
  11846. var _a, _b;
  11847. return __awaiter(this, void 0, void 0, function* () {
  11848. try {
  11849. const eventPath = process.env.GITHUB_EVENT_PATH;
  11850. if (!eventPath) {
  11851. core.debug(`GITHUB_EVENT_PATH is not defined`);
  11852. return;
  11853. }
  11854. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  11855. const event = JSON.parse(content);
  11856. 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;
  11857. if (typeof id !== 'number') {
  11858. core.debug('Repository owner ID not found within GITHUB event info');
  11859. return;
  11860. }
  11861. return id;
  11862. }
  11863. catch (err) {
  11864. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err
  11865. .message || err}`);
  11866. }
  11867. });
  11868. }
  11869. exports.getOrganizationId = getOrganizationId;
  11870. /***/ }),
  11871. /***/ 649:
  11872. /***/ (function(module) {
  11873. "use strict";
  11874. module.exports.mixin = function mixin(target, source) {
  11875. const keys = Object.getOwnPropertyNames(source);
  11876. for (let i = 0; i < keys.length; ++i) {
  11877. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  11878. }
  11879. };
  11880. module.exports.wrapperSymbol = Symbol("wrapper");
  11881. module.exports.implSymbol = Symbol("impl");
  11882. module.exports.wrapperForImpl = function (impl) {
  11883. return impl[module.exports.wrapperSymbol];
  11884. };
  11885. module.exports.implForWrapper = function (wrapper) {
  11886. return wrapper[module.exports.implSymbol];
  11887. };
  11888. /***/ }),
  11889. /***/ 654:
  11890. /***/ (function(module) {
  11891. // This is not the set of all possible signals.
  11892. //
  11893. // It IS, however, the set of all signals that trigger
  11894. // an exit on either Linux or BSD systems. Linux is a
  11895. // superset of the signal names supported on BSD, and
  11896. // the unknown signals just fail to register, so we can
  11897. // catch that easily enough.
  11898. //
  11899. // Don't bother with SIGKILL. It's uncatchable, which
  11900. // means that we can't fire any callbacks anyway.
  11901. //
  11902. // If a user does happen to register a handler on a non-
  11903. // fatal signal like SIGWINCH or something, and then
  11904. // exit, it'll end up firing `process.emit('exit')`, so
  11905. // the handler will be fired anyway.
  11906. //
  11907. // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
  11908. // artificially, inherently leave the process in a
  11909. // state from which it is not safe to try and enter JS
  11910. // listeners.
  11911. module.exports = [
  11912. 'SIGABRT',
  11913. 'SIGALRM',
  11914. 'SIGHUP',
  11915. 'SIGINT',
  11916. 'SIGTERM'
  11917. ]
  11918. if (process.platform !== 'win32') {
  11919. module.exports.push(
  11920. 'SIGVTALRM',
  11921. 'SIGXCPU',
  11922. 'SIGXFSZ',
  11923. 'SIGUSR2',
  11924. 'SIGTRAP',
  11925. 'SIGSYS',
  11926. 'SIGQUIT',
  11927. 'SIGIOT'
  11928. // should detect profiler and enable/disable accordingly.
  11929. // see #21
  11930. // 'SIGPROF'
  11931. )
  11932. }
  11933. if (process.platform === 'linux') {
  11934. module.exports.push(
  11935. 'SIGIO',
  11936. 'SIGPOLL',
  11937. 'SIGPWR',
  11938. 'SIGSTKFLT',
  11939. 'SIGUNUSED'
  11940. )
  11941. }
  11942. /***/ }),
  11943. /***/ 656:
  11944. /***/ (function(module, exports) {
  11945. exports = module.exports = SemVer
  11946. var debug
  11947. /* istanbul ignore next */
  11948. if (typeof process === 'object' &&
  11949. process.env &&
  11950. process.env.NODE_DEBUG &&
  11951. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  11952. debug = function () {
  11953. var args = Array.prototype.slice.call(arguments, 0)
  11954. args.unshift('SEMVER')
  11955. console.log.apply(console, args)
  11956. }
  11957. } else {
  11958. debug = function () {}
  11959. }
  11960. // Note: this is the semver.org version of the spec that it implements
  11961. // Not necessarily the package version of this code.
  11962. exports.SEMVER_SPEC_VERSION = '2.0.0'
  11963. var MAX_LENGTH = 256
  11964. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  11965. /* istanbul ignore next */ 9007199254740991
  11966. // Max safe segment length for coercion.
  11967. var MAX_SAFE_COMPONENT_LENGTH = 16
  11968. // The actual regexps go on exports.re
  11969. var re = exports.re = []
  11970. var src = exports.src = []
  11971. var t = exports.tokens = {}
  11972. var R = 0
  11973. function tok (n) {
  11974. t[n] = R++
  11975. }
  11976. // The following Regular Expressions can be used for tokenizing,
  11977. // validating, and parsing SemVer version strings.
  11978. // ## Numeric Identifier
  11979. // A single `0`, or a non-zero digit followed by zero or more digits.
  11980. tok('NUMERICIDENTIFIER')
  11981. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  11982. tok('NUMERICIDENTIFIERLOOSE')
  11983. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  11984. // ## Non-numeric Identifier
  11985. // Zero or more digits, followed by a letter or hyphen, and then zero or
  11986. // more letters, digits, or hyphens.
  11987. tok('NONNUMERICIDENTIFIER')
  11988. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  11989. // ## Main Version
  11990. // Three dot-separated numeric identifiers.
  11991. tok('MAINVERSION')
  11992. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  11993. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  11994. '(' + src[t.NUMERICIDENTIFIER] + ')'
  11995. tok('MAINVERSIONLOOSE')
  11996. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  11997. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  11998. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  11999. // ## Pre-release Version Identifier
  12000. // A numeric identifier, or a non-numeric identifier.
  12001. tok('PRERELEASEIDENTIFIER')
  12002. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  12003. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12004. tok('PRERELEASEIDENTIFIERLOOSE')
  12005. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  12006. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12007. // ## Pre-release Version
  12008. // Hyphen, followed by one or more dot-separated pre-release version
  12009. // identifiers.
  12010. tok('PRERELEASE')
  12011. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  12012. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  12013. tok('PRERELEASELOOSE')
  12014. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  12015. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  12016. // ## Build Metadata Identifier
  12017. // Any combination of digits, letters, or hyphens.
  12018. tok('BUILDIDENTIFIER')
  12019. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  12020. // ## Build Metadata
  12021. // Plus sign, followed by one or more period-separated build metadata
  12022. // identifiers.
  12023. tok('BUILD')
  12024. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  12025. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  12026. // ## Full Version String
  12027. // A main version, followed optionally by a pre-release version and
  12028. // build metadata.
  12029. // Note that the only major, minor, patch, and pre-release sections of
  12030. // the version string are capturing groups. The build metadata is not a
  12031. // capturing group, because it should not ever be used in version
  12032. // comparison.
  12033. tok('FULL')
  12034. tok('FULLPLAIN')
  12035. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  12036. src[t.PRERELEASE] + '?' +
  12037. src[t.BUILD] + '?'
  12038. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  12039. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  12040. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  12041. // common in the npm registry.
  12042. tok('LOOSEPLAIN')
  12043. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  12044. src[t.PRERELEASELOOSE] + '?' +
  12045. src[t.BUILD] + '?'
  12046. tok('LOOSE')
  12047. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  12048. tok('GTLT')
  12049. src[t.GTLT] = '((?:<|>)?=?)'
  12050. // Something like "2.*" or "1.2.x".
  12051. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  12052. // Only the first item is strictly required.
  12053. tok('XRANGEIDENTIFIERLOOSE')
  12054. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  12055. tok('XRANGEIDENTIFIER')
  12056. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  12057. tok('XRANGEPLAIN')
  12058. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  12059. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12060. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12061. '(?:' + src[t.PRERELEASE] + ')?' +
  12062. src[t.BUILD] + '?' +
  12063. ')?)?'
  12064. tok('XRANGEPLAINLOOSE')
  12065. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12066. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12067. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12068. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  12069. src[t.BUILD] + '?' +
  12070. ')?)?'
  12071. tok('XRANGE')
  12072. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  12073. tok('XRANGELOOSE')
  12074. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  12075. // Coercion.
  12076. // Extract anything that could conceivably be a part of a valid semver
  12077. tok('COERCE')
  12078. src[t.COERCE] = '(^|[^\\d])' +
  12079. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  12080. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12081. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12082. '(?:$|[^\\d])'
  12083. tok('COERCERTL')
  12084. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  12085. // Tilde ranges.
  12086. // Meaning is "reasonably at or greater than"
  12087. tok('LONETILDE')
  12088. src[t.LONETILDE] = '(?:~>?)'
  12089. tok('TILDETRIM')
  12090. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  12091. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  12092. var tildeTrimReplace = '$1~'
  12093. tok('TILDE')
  12094. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  12095. tok('TILDELOOSE')
  12096. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  12097. // Caret ranges.
  12098. // Meaning is "at least and backwards compatible with"
  12099. tok('LONECARET')
  12100. src[t.LONECARET] = '(?:\\^)'
  12101. tok('CARETTRIM')
  12102. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  12103. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  12104. var caretTrimReplace = '$1^'
  12105. tok('CARET')
  12106. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  12107. tok('CARETLOOSE')
  12108. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  12109. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  12110. tok('COMPARATORLOOSE')
  12111. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  12112. tok('COMPARATOR')
  12113. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  12114. // An expression to strip any whitespace between the gtlt and the thing
  12115. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  12116. tok('COMPARATORTRIM')
  12117. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  12118. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  12119. // this one has to use the /g flag
  12120. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  12121. var comparatorTrimReplace = '$1$2$3'
  12122. // Something like `1.2.3 - 1.2.4`
  12123. // Note that these all use the loose form, because they'll be
  12124. // checked against either the strict or loose comparator form
  12125. // later.
  12126. tok('HYPHENRANGE')
  12127. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  12128. '\\s+-\\s+' +
  12129. '(' + src[t.XRANGEPLAIN] + ')' +
  12130. '\\s*$'
  12131. tok('HYPHENRANGELOOSE')
  12132. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12133. '\\s+-\\s+' +
  12134. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12135. '\\s*$'
  12136. // Star ranges basically just allow anything at all.
  12137. tok('STAR')
  12138. src[t.STAR] = '(<|>)?=?\\s*\\*'
  12139. // Compile to actual regexp objects.
  12140. // All are flag-free, unless they were created above with a flag.
  12141. for (var i = 0; i < R; i++) {
  12142. debug(i, src[i])
  12143. if (!re[i]) {
  12144. re[i] = new RegExp(src[i])
  12145. }
  12146. }
  12147. exports.parse = parse
  12148. function parse (version, options) {
  12149. if (!options || typeof options !== 'object') {
  12150. options = {
  12151. loose: !!options,
  12152. includePrerelease: false
  12153. }
  12154. }
  12155. if (version instanceof SemVer) {
  12156. return version
  12157. }
  12158. if (typeof version !== 'string') {
  12159. return null
  12160. }
  12161. if (version.length > MAX_LENGTH) {
  12162. return null
  12163. }
  12164. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  12165. if (!r.test(version)) {
  12166. return null
  12167. }
  12168. try {
  12169. return new SemVer(version, options)
  12170. } catch (er) {
  12171. return null
  12172. }
  12173. }
  12174. exports.valid = valid
  12175. function valid (version, options) {
  12176. var v = parse(version, options)
  12177. return v ? v.version : null
  12178. }
  12179. exports.clean = clean
  12180. function clean (version, options) {
  12181. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  12182. return s ? s.version : null
  12183. }
  12184. exports.SemVer = SemVer
  12185. function SemVer (version, options) {
  12186. if (!options || typeof options !== 'object') {
  12187. options = {
  12188. loose: !!options,
  12189. includePrerelease: false
  12190. }
  12191. }
  12192. if (version instanceof SemVer) {
  12193. if (version.loose === options.loose) {
  12194. return version
  12195. } else {
  12196. version = version.version
  12197. }
  12198. } else if (typeof version !== 'string') {
  12199. throw new TypeError('Invalid Version: ' + version)
  12200. }
  12201. if (version.length > MAX_LENGTH) {
  12202. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  12203. }
  12204. if (!(this instanceof SemVer)) {
  12205. return new SemVer(version, options)
  12206. }
  12207. debug('SemVer', version, options)
  12208. this.options = options
  12209. this.loose = !!options.loose
  12210. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  12211. if (!m) {
  12212. throw new TypeError('Invalid Version: ' + version)
  12213. }
  12214. this.raw = version
  12215. // these are actually numbers
  12216. this.major = +m[1]
  12217. this.minor = +m[2]
  12218. this.patch = +m[3]
  12219. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  12220. throw new TypeError('Invalid major version')
  12221. }
  12222. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  12223. throw new TypeError('Invalid minor version')
  12224. }
  12225. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  12226. throw new TypeError('Invalid patch version')
  12227. }
  12228. // numberify any prerelease numeric ids
  12229. if (!m[4]) {
  12230. this.prerelease = []
  12231. } else {
  12232. this.prerelease = m[4].split('.').map(function (id) {
  12233. if (/^[0-9]+$/.test(id)) {
  12234. var num = +id
  12235. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  12236. return num
  12237. }
  12238. }
  12239. return id
  12240. })
  12241. }
  12242. this.build = m[5] ? m[5].split('.') : []
  12243. this.format()
  12244. }
  12245. SemVer.prototype.format = function () {
  12246. this.version = this.major + '.' + this.minor + '.' + this.patch
  12247. if (this.prerelease.length) {
  12248. this.version += '-' + this.prerelease.join('.')
  12249. }
  12250. return this.version
  12251. }
  12252. SemVer.prototype.toString = function () {
  12253. return this.version
  12254. }
  12255. SemVer.prototype.compare = function (other) {
  12256. debug('SemVer.compare', this.version, this.options, other)
  12257. if (!(other instanceof SemVer)) {
  12258. other = new SemVer(other, this.options)
  12259. }
  12260. return this.compareMain(other) || this.comparePre(other)
  12261. }
  12262. SemVer.prototype.compareMain = function (other) {
  12263. if (!(other instanceof SemVer)) {
  12264. other = new SemVer(other, this.options)
  12265. }
  12266. return compareIdentifiers(this.major, other.major) ||
  12267. compareIdentifiers(this.minor, other.minor) ||
  12268. compareIdentifiers(this.patch, other.patch)
  12269. }
  12270. SemVer.prototype.comparePre = function (other) {
  12271. if (!(other instanceof SemVer)) {
  12272. other = new SemVer(other, this.options)
  12273. }
  12274. // NOT having a prerelease is > having one
  12275. if (this.prerelease.length && !other.prerelease.length) {
  12276. return -1
  12277. } else if (!this.prerelease.length && other.prerelease.length) {
  12278. return 1
  12279. } else if (!this.prerelease.length && !other.prerelease.length) {
  12280. return 0
  12281. }
  12282. var i = 0
  12283. do {
  12284. var a = this.prerelease[i]
  12285. var b = other.prerelease[i]
  12286. debug('prerelease compare', i, a, b)
  12287. if (a === undefined && b === undefined) {
  12288. return 0
  12289. } else if (b === undefined) {
  12290. return 1
  12291. } else if (a === undefined) {
  12292. return -1
  12293. } else if (a === b) {
  12294. continue
  12295. } else {
  12296. return compareIdentifiers(a, b)
  12297. }
  12298. } while (++i)
  12299. }
  12300. SemVer.prototype.compareBuild = function (other) {
  12301. if (!(other instanceof SemVer)) {
  12302. other = new SemVer(other, this.options)
  12303. }
  12304. var i = 0
  12305. do {
  12306. var a = this.build[i]
  12307. var b = other.build[i]
  12308. debug('prerelease compare', i, a, b)
  12309. if (a === undefined && b === undefined) {
  12310. return 0
  12311. } else if (b === undefined) {
  12312. return 1
  12313. } else if (a === undefined) {
  12314. return -1
  12315. } else if (a === b) {
  12316. continue
  12317. } else {
  12318. return compareIdentifiers(a, b)
  12319. }
  12320. } while (++i)
  12321. }
  12322. // preminor will bump the version up to the next minor release, and immediately
  12323. // down to pre-release. premajor and prepatch work the same way.
  12324. SemVer.prototype.inc = function (release, identifier) {
  12325. switch (release) {
  12326. case 'premajor':
  12327. this.prerelease.length = 0
  12328. this.patch = 0
  12329. this.minor = 0
  12330. this.major++
  12331. this.inc('pre', identifier)
  12332. break
  12333. case 'preminor':
  12334. this.prerelease.length = 0
  12335. this.patch = 0
  12336. this.minor++
  12337. this.inc('pre', identifier)
  12338. break
  12339. case 'prepatch':
  12340. // If this is already a prerelease, it will bump to the next version
  12341. // drop any prereleases that might already exist, since they are not
  12342. // relevant at this point.
  12343. this.prerelease.length = 0
  12344. this.inc('patch', identifier)
  12345. this.inc('pre', identifier)
  12346. break
  12347. // If the input is a non-prerelease version, this acts the same as
  12348. // prepatch.
  12349. case 'prerelease':
  12350. if (this.prerelease.length === 0) {
  12351. this.inc('patch', identifier)
  12352. }
  12353. this.inc('pre', identifier)
  12354. break
  12355. case 'major':
  12356. // If this is a pre-major version, bump up to the same major version.
  12357. // Otherwise increment major.
  12358. // 1.0.0-5 bumps to 1.0.0
  12359. // 1.1.0 bumps to 2.0.0
  12360. if (this.minor !== 0 ||
  12361. this.patch !== 0 ||
  12362. this.prerelease.length === 0) {
  12363. this.major++
  12364. }
  12365. this.minor = 0
  12366. this.patch = 0
  12367. this.prerelease = []
  12368. break
  12369. case 'minor':
  12370. // If this is a pre-minor version, bump up to the same minor version.
  12371. // Otherwise increment minor.
  12372. // 1.2.0-5 bumps to 1.2.0
  12373. // 1.2.1 bumps to 1.3.0
  12374. if (this.patch !== 0 || this.prerelease.length === 0) {
  12375. this.minor++
  12376. }
  12377. this.patch = 0
  12378. this.prerelease = []
  12379. break
  12380. case 'patch':
  12381. // If this is not a pre-release version, it will increment the patch.
  12382. // If it is a pre-release it will bump up to the same patch version.
  12383. // 1.2.0-5 patches to 1.2.0
  12384. // 1.2.0 patches to 1.2.1
  12385. if (this.prerelease.length === 0) {
  12386. this.patch++
  12387. }
  12388. this.prerelease = []
  12389. break
  12390. // This probably shouldn't be used publicly.
  12391. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  12392. case 'pre':
  12393. if (this.prerelease.length === 0) {
  12394. this.prerelease = [0]
  12395. } else {
  12396. var i = this.prerelease.length
  12397. while (--i >= 0) {
  12398. if (typeof this.prerelease[i] === 'number') {
  12399. this.prerelease[i]++
  12400. i = -2
  12401. }
  12402. }
  12403. if (i === -1) {
  12404. // didn't increment anything
  12405. this.prerelease.push(0)
  12406. }
  12407. }
  12408. if (identifier) {
  12409. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  12410. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  12411. if (this.prerelease[0] === identifier) {
  12412. if (isNaN(this.prerelease[1])) {
  12413. this.prerelease = [identifier, 0]
  12414. }
  12415. } else {
  12416. this.prerelease = [identifier, 0]
  12417. }
  12418. }
  12419. break
  12420. default:
  12421. throw new Error('invalid increment argument: ' + release)
  12422. }
  12423. this.format()
  12424. this.raw = this.version
  12425. return this
  12426. }
  12427. exports.inc = inc
  12428. function inc (version, release, loose, identifier) {
  12429. if (typeof (loose) === 'string') {
  12430. identifier = loose
  12431. loose = undefined
  12432. }
  12433. try {
  12434. return new SemVer(version, loose).inc(release, identifier).version
  12435. } catch (er) {
  12436. return null
  12437. }
  12438. }
  12439. exports.diff = diff
  12440. function diff (version1, version2) {
  12441. if (eq(version1, version2)) {
  12442. return null
  12443. } else {
  12444. var v1 = parse(version1)
  12445. var v2 = parse(version2)
  12446. var prefix = ''
  12447. if (v1.prerelease.length || v2.prerelease.length) {
  12448. prefix = 'pre'
  12449. var defaultResult = 'prerelease'
  12450. }
  12451. for (var key in v1) {
  12452. if (key === 'major' || key === 'minor' || key === 'patch') {
  12453. if (v1[key] !== v2[key]) {
  12454. return prefix + key
  12455. }
  12456. }
  12457. }
  12458. return defaultResult // may be undefined
  12459. }
  12460. }
  12461. exports.compareIdentifiers = compareIdentifiers
  12462. var numeric = /^[0-9]+$/
  12463. function compareIdentifiers (a, b) {
  12464. var anum = numeric.test(a)
  12465. var bnum = numeric.test(b)
  12466. if (anum && bnum) {
  12467. a = +a
  12468. b = +b
  12469. }
  12470. return a === b ? 0
  12471. : (anum && !bnum) ? -1
  12472. : (bnum && !anum) ? 1
  12473. : a < b ? -1
  12474. : 1
  12475. }
  12476. exports.rcompareIdentifiers = rcompareIdentifiers
  12477. function rcompareIdentifiers (a, b) {
  12478. return compareIdentifiers(b, a)
  12479. }
  12480. exports.major = major
  12481. function major (a, loose) {
  12482. return new SemVer(a, loose).major
  12483. }
  12484. exports.minor = minor
  12485. function minor (a, loose) {
  12486. return new SemVer(a, loose).minor
  12487. }
  12488. exports.patch = patch
  12489. function patch (a, loose) {
  12490. return new SemVer(a, loose).patch
  12491. }
  12492. exports.compare = compare
  12493. function compare (a, b, loose) {
  12494. return new SemVer(a, loose).compare(new SemVer(b, loose))
  12495. }
  12496. exports.compareLoose = compareLoose
  12497. function compareLoose (a, b) {
  12498. return compare(a, b, true)
  12499. }
  12500. exports.compareBuild = compareBuild
  12501. function compareBuild (a, b, loose) {
  12502. var versionA = new SemVer(a, loose)
  12503. var versionB = new SemVer(b, loose)
  12504. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  12505. }
  12506. exports.rcompare = rcompare
  12507. function rcompare (a, b, loose) {
  12508. return compare(b, a, loose)
  12509. }
  12510. exports.sort = sort
  12511. function sort (list, loose) {
  12512. return list.sort(function (a, b) {
  12513. return exports.compareBuild(a, b, loose)
  12514. })
  12515. }
  12516. exports.rsort = rsort
  12517. function rsort (list, loose) {
  12518. return list.sort(function (a, b) {
  12519. return exports.compareBuild(b, a, loose)
  12520. })
  12521. }
  12522. exports.gt = gt
  12523. function gt (a, b, loose) {
  12524. return compare(a, b, loose) > 0
  12525. }
  12526. exports.lt = lt
  12527. function lt (a, b, loose) {
  12528. return compare(a, b, loose) < 0
  12529. }
  12530. exports.eq = eq
  12531. function eq (a, b, loose) {
  12532. return compare(a, b, loose) === 0
  12533. }
  12534. exports.neq = neq
  12535. function neq (a, b, loose) {
  12536. return compare(a, b, loose) !== 0
  12537. }
  12538. exports.gte = gte
  12539. function gte (a, b, loose) {
  12540. return compare(a, b, loose) >= 0
  12541. }
  12542. exports.lte = lte
  12543. function lte (a, b, loose) {
  12544. return compare(a, b, loose) <= 0
  12545. }
  12546. exports.cmp = cmp
  12547. function cmp (a, op, b, loose) {
  12548. switch (op) {
  12549. case '===':
  12550. if (typeof a === 'object')
  12551. a = a.version
  12552. if (typeof b === 'object')
  12553. b = b.version
  12554. return a === b
  12555. case '!==':
  12556. if (typeof a === 'object')
  12557. a = a.version
  12558. if (typeof b === 'object')
  12559. b = b.version
  12560. return a !== b
  12561. case '':
  12562. case '=':
  12563. case '==':
  12564. return eq(a, b, loose)
  12565. case '!=':
  12566. return neq(a, b, loose)
  12567. case '>':
  12568. return gt(a, b, loose)
  12569. case '>=':
  12570. return gte(a, b, loose)
  12571. case '<':
  12572. return lt(a, b, loose)
  12573. case '<=':
  12574. return lte(a, b, loose)
  12575. default:
  12576. throw new TypeError('Invalid operator: ' + op)
  12577. }
  12578. }
  12579. exports.Comparator = Comparator
  12580. function Comparator (comp, options) {
  12581. if (!options || typeof options !== 'object') {
  12582. options = {
  12583. loose: !!options,
  12584. includePrerelease: false
  12585. }
  12586. }
  12587. if (comp instanceof Comparator) {
  12588. if (comp.loose === !!options.loose) {
  12589. return comp
  12590. } else {
  12591. comp = comp.value
  12592. }
  12593. }
  12594. if (!(this instanceof Comparator)) {
  12595. return new Comparator(comp, options)
  12596. }
  12597. debug('comparator', comp, options)
  12598. this.options = options
  12599. this.loose = !!options.loose
  12600. this.parse(comp)
  12601. if (this.semver === ANY) {
  12602. this.value = ''
  12603. } else {
  12604. this.value = this.operator + this.semver.version
  12605. }
  12606. debug('comp', this)
  12607. }
  12608. var ANY = {}
  12609. Comparator.prototype.parse = function (comp) {
  12610. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  12611. var m = comp.match(r)
  12612. if (!m) {
  12613. throw new TypeError('Invalid comparator: ' + comp)
  12614. }
  12615. this.operator = m[1] !== undefined ? m[1] : ''
  12616. if (this.operator === '=') {
  12617. this.operator = ''
  12618. }
  12619. // if it literally is just '>' or '' then allow anything.
  12620. if (!m[2]) {
  12621. this.semver = ANY
  12622. } else {
  12623. this.semver = new SemVer(m[2], this.options.loose)
  12624. }
  12625. }
  12626. Comparator.prototype.toString = function () {
  12627. return this.value
  12628. }
  12629. Comparator.prototype.test = function (version) {
  12630. debug('Comparator.test', version, this.options.loose)
  12631. if (this.semver === ANY || version === ANY) {
  12632. return true
  12633. }
  12634. if (typeof version === 'string') {
  12635. try {
  12636. version = new SemVer(version, this.options)
  12637. } catch (er) {
  12638. return false
  12639. }
  12640. }
  12641. return cmp(version, this.operator, this.semver, this.options)
  12642. }
  12643. Comparator.prototype.intersects = function (comp, options) {
  12644. if (!(comp instanceof Comparator)) {
  12645. throw new TypeError('a Comparator is required')
  12646. }
  12647. if (!options || typeof options !== 'object') {
  12648. options = {
  12649. loose: !!options,
  12650. includePrerelease: false
  12651. }
  12652. }
  12653. var rangeTmp
  12654. if (this.operator === '') {
  12655. if (this.value === '') {
  12656. return true
  12657. }
  12658. rangeTmp = new Range(comp.value, options)
  12659. return satisfies(this.value, rangeTmp, options)
  12660. } else if (comp.operator === '') {
  12661. if (comp.value === '') {
  12662. return true
  12663. }
  12664. rangeTmp = new Range(this.value, options)
  12665. return satisfies(comp.semver, rangeTmp, options)
  12666. }
  12667. var sameDirectionIncreasing =
  12668. (this.operator === '>=' || this.operator === '>') &&
  12669. (comp.operator === '>=' || comp.operator === '>')
  12670. var sameDirectionDecreasing =
  12671. (this.operator === '<=' || this.operator === '<') &&
  12672. (comp.operator === '<=' || comp.operator === '<')
  12673. var sameSemVer = this.semver.version === comp.semver.version
  12674. var differentDirectionsInclusive =
  12675. (this.operator === '>=' || this.operator === '<=') &&
  12676. (comp.operator === '>=' || comp.operator === '<=')
  12677. var oppositeDirectionsLessThan =
  12678. cmp(this.semver, '<', comp.semver, options) &&
  12679. ((this.operator === '>=' || this.operator === '>') &&
  12680. (comp.operator === '<=' || comp.operator === '<'))
  12681. var oppositeDirectionsGreaterThan =
  12682. cmp(this.semver, '>', comp.semver, options) &&
  12683. ((this.operator === '<=' || this.operator === '<') &&
  12684. (comp.operator === '>=' || comp.operator === '>'))
  12685. return sameDirectionIncreasing || sameDirectionDecreasing ||
  12686. (sameSemVer && differentDirectionsInclusive) ||
  12687. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  12688. }
  12689. exports.Range = Range
  12690. function Range (range, options) {
  12691. if (!options || typeof options !== 'object') {
  12692. options = {
  12693. loose: !!options,
  12694. includePrerelease: false
  12695. }
  12696. }
  12697. if (range instanceof Range) {
  12698. if (range.loose === !!options.loose &&
  12699. range.includePrerelease === !!options.includePrerelease) {
  12700. return range
  12701. } else {
  12702. return new Range(range.raw, options)
  12703. }
  12704. }
  12705. if (range instanceof Comparator) {
  12706. return new Range(range.value, options)
  12707. }
  12708. if (!(this instanceof Range)) {
  12709. return new Range(range, options)
  12710. }
  12711. this.options = options
  12712. this.loose = !!options.loose
  12713. this.includePrerelease = !!options.includePrerelease
  12714. // First, split based on boolean or ||
  12715. this.raw = range
  12716. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  12717. return this.parseRange(range.trim())
  12718. }, this).filter(function (c) {
  12719. // throw out any that are not relevant for whatever reason
  12720. return c.length
  12721. })
  12722. if (!this.set.length) {
  12723. throw new TypeError('Invalid SemVer Range: ' + range)
  12724. }
  12725. this.format()
  12726. }
  12727. Range.prototype.format = function () {
  12728. this.range = this.set.map(function (comps) {
  12729. return comps.join(' ').trim()
  12730. }).join('||').trim()
  12731. return this.range
  12732. }
  12733. Range.prototype.toString = function () {
  12734. return this.range
  12735. }
  12736. Range.prototype.parseRange = function (range) {
  12737. var loose = this.options.loose
  12738. range = range.trim()
  12739. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  12740. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  12741. range = range.replace(hr, hyphenReplace)
  12742. debug('hyphen replace', range)
  12743. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  12744. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  12745. debug('comparator trim', range, re[t.COMPARATORTRIM])
  12746. // `~ 1.2.3` => `~1.2.3`
  12747. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  12748. // `^ 1.2.3` => `^1.2.3`
  12749. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  12750. // normalize spaces
  12751. range = range.split(/\s+/).join(' ')
  12752. // At this point, the range is completely trimmed and
  12753. // ready to be split into comparators.
  12754. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  12755. var set = range.split(' ').map(function (comp) {
  12756. return parseComparator(comp, this.options)
  12757. }, this).join(' ').split(/\s+/)
  12758. if (this.options.loose) {
  12759. // in loose mode, throw out any that are not valid comparators
  12760. set = set.filter(function (comp) {
  12761. return !!comp.match(compRe)
  12762. })
  12763. }
  12764. set = set.map(function (comp) {
  12765. return new Comparator(comp, this.options)
  12766. }, this)
  12767. return set
  12768. }
  12769. Range.prototype.intersects = function (range, options) {
  12770. if (!(range instanceof Range)) {
  12771. throw new TypeError('a Range is required')
  12772. }
  12773. return this.set.some(function (thisComparators) {
  12774. return (
  12775. isSatisfiable(thisComparators, options) &&
  12776. range.set.some(function (rangeComparators) {
  12777. return (
  12778. isSatisfiable(rangeComparators, options) &&
  12779. thisComparators.every(function (thisComparator) {
  12780. return rangeComparators.every(function (rangeComparator) {
  12781. return thisComparator.intersects(rangeComparator, options)
  12782. })
  12783. })
  12784. )
  12785. })
  12786. )
  12787. })
  12788. }
  12789. // take a set of comparators and determine whether there
  12790. // exists a version which can satisfy it
  12791. function isSatisfiable (comparators, options) {
  12792. var result = true
  12793. var remainingComparators = comparators.slice()
  12794. var testComparator = remainingComparators.pop()
  12795. while (result && remainingComparators.length) {
  12796. result = remainingComparators.every(function (otherComparator) {
  12797. return testComparator.intersects(otherComparator, options)
  12798. })
  12799. testComparator = remainingComparators.pop()
  12800. }
  12801. return result
  12802. }
  12803. // Mostly just for testing and legacy API reasons
  12804. exports.toComparators = toComparators
  12805. function toComparators (range, options) {
  12806. return new Range(range, options).set.map(function (comp) {
  12807. return comp.map(function (c) {
  12808. return c.value
  12809. }).join(' ').trim().split(' ')
  12810. })
  12811. }
  12812. // comprised of xranges, tildes, stars, and gtlt's at this point.
  12813. // already replaced the hyphen ranges
  12814. // turn into a set of JUST comparators.
  12815. function parseComparator (comp, options) {
  12816. debug('comp', comp, options)
  12817. comp = replaceCarets(comp, options)
  12818. debug('caret', comp)
  12819. comp = replaceTildes(comp, options)
  12820. debug('tildes', comp)
  12821. comp = replaceXRanges(comp, options)
  12822. debug('xrange', comp)
  12823. comp = replaceStars(comp, options)
  12824. debug('stars', comp)
  12825. return comp
  12826. }
  12827. function isX (id) {
  12828. return !id || id.toLowerCase() === 'x' || id === '*'
  12829. }
  12830. // ~, ~> --> * (any, kinda silly)
  12831. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  12832. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  12833. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  12834. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  12835. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  12836. function replaceTildes (comp, options) {
  12837. return comp.trim().split(/\s+/).map(function (comp) {
  12838. return replaceTilde(comp, options)
  12839. }).join(' ')
  12840. }
  12841. function replaceTilde (comp, options) {
  12842. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  12843. return comp.replace(r, function (_, M, m, p, pr) {
  12844. debug('tilde', comp, _, M, m, p, pr)
  12845. var ret
  12846. if (isX(M)) {
  12847. ret = ''
  12848. } else if (isX(m)) {
  12849. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  12850. } else if (isX(p)) {
  12851. // ~1.2 == >=1.2.0 <1.3.0
  12852. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  12853. } else if (pr) {
  12854. debug('replaceTilde pr', pr)
  12855. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  12856. ' <' + M + '.' + (+m + 1) + '.0'
  12857. } else {
  12858. // ~1.2.3 == >=1.2.3 <1.3.0
  12859. ret = '>=' + M + '.' + m + '.' + p +
  12860. ' <' + M + '.' + (+m + 1) + '.0'
  12861. }
  12862. debug('tilde return', ret)
  12863. return ret
  12864. })
  12865. }
  12866. // ^ --> * (any, kinda silly)
  12867. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  12868. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  12869. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  12870. // ^1.2.3 --> >=1.2.3 <2.0.0
  12871. // ^1.2.0 --> >=1.2.0 <2.0.0
  12872. function replaceCarets (comp, options) {
  12873. return comp.trim().split(/\s+/).map(function (comp) {
  12874. return replaceCaret(comp, options)
  12875. }).join(' ')
  12876. }
  12877. function replaceCaret (comp, options) {
  12878. debug('caret', comp, options)
  12879. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  12880. return comp.replace(r, function (_, M, m, p, pr) {
  12881. debug('caret', comp, _, M, m, p, pr)
  12882. var ret
  12883. if (isX(M)) {
  12884. ret = ''
  12885. } else if (isX(m)) {
  12886. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  12887. } else if (isX(p)) {
  12888. if (M === '0') {
  12889. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  12890. } else {
  12891. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  12892. }
  12893. } else if (pr) {
  12894. debug('replaceCaret pr', pr)
  12895. if (M === '0') {
  12896. if (m === '0') {
  12897. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  12898. ' <' + M + '.' + m + '.' + (+p + 1)
  12899. } else {
  12900. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  12901. ' <' + M + '.' + (+m + 1) + '.0'
  12902. }
  12903. } else {
  12904. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  12905. ' <' + (+M + 1) + '.0.0'
  12906. }
  12907. } else {
  12908. debug('no pr')
  12909. if (M === '0') {
  12910. if (m === '0') {
  12911. ret = '>=' + M + '.' + m + '.' + p +
  12912. ' <' + M + '.' + m + '.' + (+p + 1)
  12913. } else {
  12914. ret = '>=' + M + '.' + m + '.' + p +
  12915. ' <' + M + '.' + (+m + 1) + '.0'
  12916. }
  12917. } else {
  12918. ret = '>=' + M + '.' + m + '.' + p +
  12919. ' <' + (+M + 1) + '.0.0'
  12920. }
  12921. }
  12922. debug('caret return', ret)
  12923. return ret
  12924. })
  12925. }
  12926. function replaceXRanges (comp, options) {
  12927. debug('replaceXRanges', comp, options)
  12928. return comp.split(/\s+/).map(function (comp) {
  12929. return replaceXRange(comp, options)
  12930. }).join(' ')
  12931. }
  12932. function replaceXRange (comp, options) {
  12933. comp = comp.trim()
  12934. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  12935. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  12936. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  12937. var xM = isX(M)
  12938. var xm = xM || isX(m)
  12939. var xp = xm || isX(p)
  12940. var anyX = xp
  12941. if (gtlt === '=' && anyX) {
  12942. gtlt = ''
  12943. }
  12944. // if we're including prereleases in the match, then we need
  12945. // to fix this to -0, the lowest possible prerelease value
  12946. pr = options.includePrerelease ? '-0' : ''
  12947. if (xM) {
  12948. if (gtlt === '>' || gtlt === '<') {
  12949. // nothing is allowed
  12950. ret = '<0.0.0-0'
  12951. } else {
  12952. // nothing is forbidden
  12953. ret = '*'
  12954. }
  12955. } else if (gtlt && anyX) {
  12956. // we know patch is an x, because we have any x at all.
  12957. // replace X with 0
  12958. if (xm) {
  12959. m = 0
  12960. }
  12961. p = 0
  12962. if (gtlt === '>') {
  12963. // >1 => >=2.0.0
  12964. // >1.2 => >=1.3.0
  12965. // >1.2.3 => >= 1.2.4
  12966. gtlt = '>='
  12967. if (xm) {
  12968. M = +M + 1
  12969. m = 0
  12970. p = 0
  12971. } else {
  12972. m = +m + 1
  12973. p = 0
  12974. }
  12975. } else if (gtlt === '<=') {
  12976. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  12977. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  12978. gtlt = '<'
  12979. if (xm) {
  12980. M = +M + 1
  12981. } else {
  12982. m = +m + 1
  12983. }
  12984. }
  12985. ret = gtlt + M + '.' + m + '.' + p + pr
  12986. } else if (xm) {
  12987. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  12988. } else if (xp) {
  12989. ret = '>=' + M + '.' + m + '.0' + pr +
  12990. ' <' + M + '.' + (+m + 1) + '.0' + pr
  12991. }
  12992. debug('xRange return', ret)
  12993. return ret
  12994. })
  12995. }
  12996. // Because * is AND-ed with everything else in the comparator,
  12997. // and '' means "any version", just remove the *s entirely.
  12998. function replaceStars (comp, options) {
  12999. debug('replaceStars', comp, options)
  13000. // Looseness is ignored here. star is always as loose as it gets!
  13001. return comp.trim().replace(re[t.STAR], '')
  13002. }
  13003. // This function is passed to string.replace(re[t.HYPHENRANGE])
  13004. // M, m, patch, prerelease, build
  13005. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  13006. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  13007. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  13008. function hyphenReplace ($0,
  13009. from, fM, fm, fp, fpr, fb,
  13010. to, tM, tm, tp, tpr, tb) {
  13011. if (isX(fM)) {
  13012. from = ''
  13013. } else if (isX(fm)) {
  13014. from = '>=' + fM + '.0.0'
  13015. } else if (isX(fp)) {
  13016. from = '>=' + fM + '.' + fm + '.0'
  13017. } else {
  13018. from = '>=' + from
  13019. }
  13020. if (isX(tM)) {
  13021. to = ''
  13022. } else if (isX(tm)) {
  13023. to = '<' + (+tM + 1) + '.0.0'
  13024. } else if (isX(tp)) {
  13025. to = '<' + tM + '.' + (+tm + 1) + '.0'
  13026. } else if (tpr) {
  13027. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  13028. } else {
  13029. to = '<=' + to
  13030. }
  13031. return (from + ' ' + to).trim()
  13032. }
  13033. // if ANY of the sets match ALL of its comparators, then pass
  13034. Range.prototype.test = function (version) {
  13035. if (!version) {
  13036. return false
  13037. }
  13038. if (typeof version === 'string') {
  13039. try {
  13040. version = new SemVer(version, this.options)
  13041. } catch (er) {
  13042. return false
  13043. }
  13044. }
  13045. for (var i = 0; i < this.set.length; i++) {
  13046. if (testSet(this.set[i], version, this.options)) {
  13047. return true
  13048. }
  13049. }
  13050. return false
  13051. }
  13052. function testSet (set, version, options) {
  13053. for (var i = 0; i < set.length; i++) {
  13054. if (!set[i].test(version)) {
  13055. return false
  13056. }
  13057. }
  13058. if (version.prerelease.length && !options.includePrerelease) {
  13059. // Find the set of versions that are allowed to have prereleases
  13060. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  13061. // That should allow `1.2.3-pr.2` to pass.
  13062. // However, `1.2.4-alpha.notready` should NOT be allowed,
  13063. // even though it's within the range set by the comparators.
  13064. for (i = 0; i < set.length; i++) {
  13065. debug(set[i].semver)
  13066. if (set[i].semver === ANY) {
  13067. continue
  13068. }
  13069. if (set[i].semver.prerelease.length > 0) {
  13070. var allowed = set[i].semver
  13071. if (allowed.major === version.major &&
  13072. allowed.minor === version.minor &&
  13073. allowed.patch === version.patch) {
  13074. return true
  13075. }
  13076. }
  13077. }
  13078. // Version has a -pre, but it's not one of the ones we like.
  13079. return false
  13080. }
  13081. return true
  13082. }
  13083. exports.satisfies = satisfies
  13084. function satisfies (version, range, options) {
  13085. try {
  13086. range = new Range(range, options)
  13087. } catch (er) {
  13088. return false
  13089. }
  13090. return range.test(version)
  13091. }
  13092. exports.maxSatisfying = maxSatisfying
  13093. function maxSatisfying (versions, range, options) {
  13094. var max = null
  13095. var maxSV = null
  13096. try {
  13097. var rangeObj = new Range(range, options)
  13098. } catch (er) {
  13099. return null
  13100. }
  13101. versions.forEach(function (v) {
  13102. if (rangeObj.test(v)) {
  13103. // satisfies(v, range, options)
  13104. if (!max || maxSV.compare(v) === -1) {
  13105. // compare(max, v, true)
  13106. max = v
  13107. maxSV = new SemVer(max, options)
  13108. }
  13109. }
  13110. })
  13111. return max
  13112. }
  13113. exports.minSatisfying = minSatisfying
  13114. function minSatisfying (versions, range, options) {
  13115. var min = null
  13116. var minSV = null
  13117. try {
  13118. var rangeObj = new Range(range, options)
  13119. } catch (er) {
  13120. return null
  13121. }
  13122. versions.forEach(function (v) {
  13123. if (rangeObj.test(v)) {
  13124. // satisfies(v, range, options)
  13125. if (!min || minSV.compare(v) === 1) {
  13126. // compare(min, v, true)
  13127. min = v
  13128. minSV = new SemVer(min, options)
  13129. }
  13130. }
  13131. })
  13132. return min
  13133. }
  13134. exports.minVersion = minVersion
  13135. function minVersion (range, loose) {
  13136. range = new Range(range, loose)
  13137. var minver = new SemVer('0.0.0')
  13138. if (range.test(minver)) {
  13139. return minver
  13140. }
  13141. minver = new SemVer('0.0.0-0')
  13142. if (range.test(minver)) {
  13143. return minver
  13144. }
  13145. minver = null
  13146. for (var i = 0; i < range.set.length; ++i) {
  13147. var comparators = range.set[i]
  13148. comparators.forEach(function (comparator) {
  13149. // Clone to avoid manipulating the comparator's semver object.
  13150. var compver = new SemVer(comparator.semver.version)
  13151. switch (comparator.operator) {
  13152. case '>':
  13153. if (compver.prerelease.length === 0) {
  13154. compver.patch++
  13155. } else {
  13156. compver.prerelease.push(0)
  13157. }
  13158. compver.raw = compver.format()
  13159. /* fallthrough */
  13160. case '':
  13161. case '>=':
  13162. if (!minver || gt(minver, compver)) {
  13163. minver = compver
  13164. }
  13165. break
  13166. case '<':
  13167. case '<=':
  13168. /* Ignore maximum versions */
  13169. break
  13170. /* istanbul ignore next */
  13171. default:
  13172. throw new Error('Unexpected operation: ' + comparator.operator)
  13173. }
  13174. })
  13175. }
  13176. if (minver && range.test(minver)) {
  13177. return minver
  13178. }
  13179. return null
  13180. }
  13181. exports.validRange = validRange
  13182. function validRange (range, options) {
  13183. try {
  13184. // Return '*' instead of '' so that truthiness works.
  13185. // This will throw if it's invalid anyway
  13186. return new Range(range, options).range || '*'
  13187. } catch (er) {
  13188. return null
  13189. }
  13190. }
  13191. // Determine if version is less than all the versions possible in the range
  13192. exports.ltr = ltr
  13193. function ltr (version, range, options) {
  13194. return outside(version, range, '<', options)
  13195. }
  13196. // Determine if version is greater than all the versions possible in the range.
  13197. exports.gtr = gtr
  13198. function gtr (version, range, options) {
  13199. return outside(version, range, '>', options)
  13200. }
  13201. exports.outside = outside
  13202. function outside (version, range, hilo, options) {
  13203. version = new SemVer(version, options)
  13204. range = new Range(range, options)
  13205. var gtfn, ltefn, ltfn, comp, ecomp
  13206. switch (hilo) {
  13207. case '>':
  13208. gtfn = gt
  13209. ltefn = lte
  13210. ltfn = lt
  13211. comp = '>'
  13212. ecomp = '>='
  13213. break
  13214. case '<':
  13215. gtfn = lt
  13216. ltefn = gte
  13217. ltfn = gt
  13218. comp = '<'
  13219. ecomp = '<='
  13220. break
  13221. default:
  13222. throw new TypeError('Must provide a hilo val of "<" or ">"')
  13223. }
  13224. // If it satisifes the range it is not outside
  13225. if (satisfies(version, range, options)) {
  13226. return false
  13227. }
  13228. // From now on, variable terms are as if we're in "gtr" mode.
  13229. // but note that everything is flipped for the "ltr" function.
  13230. for (var i = 0; i < range.set.length; ++i) {
  13231. var comparators = range.set[i]
  13232. var high = null
  13233. var low = null
  13234. comparators.forEach(function (comparator) {
  13235. if (comparator.semver === ANY) {
  13236. comparator = new Comparator('>=0.0.0')
  13237. }
  13238. high = high || comparator
  13239. low = low || comparator
  13240. if (gtfn(comparator.semver, high.semver, options)) {
  13241. high = comparator
  13242. } else if (ltfn(comparator.semver, low.semver, options)) {
  13243. low = comparator
  13244. }
  13245. })
  13246. // If the edge version comparator has a operator then our version
  13247. // isn't outside it
  13248. if (high.operator === comp || high.operator === ecomp) {
  13249. return false
  13250. }
  13251. // If the lowest version comparator has an operator and our version
  13252. // is less than it then it isn't higher than the range
  13253. if ((!low.operator || low.operator === comp) &&
  13254. ltefn(version, low.semver)) {
  13255. return false
  13256. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  13257. return false
  13258. }
  13259. }
  13260. return true
  13261. }
  13262. exports.prerelease = prerelease
  13263. function prerelease (version, options) {
  13264. var parsed = parse(version, options)
  13265. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  13266. }
  13267. exports.intersects = intersects
  13268. function intersects (r1, r2, options) {
  13269. r1 = new Range(r1, options)
  13270. r2 = new Range(r2, options)
  13271. return r1.intersects(r2)
  13272. }
  13273. exports.coerce = coerce
  13274. function coerce (version, options) {
  13275. if (version instanceof SemVer) {
  13276. return version
  13277. }
  13278. if (typeof version === 'number') {
  13279. version = String(version)
  13280. }
  13281. if (typeof version !== 'string') {
  13282. return null
  13283. }
  13284. options = options || {}
  13285. var match = null
  13286. if (!options.rtl) {
  13287. match = version.match(re[t.COERCE])
  13288. } else {
  13289. // Find the right-most coercible string that does not share
  13290. // a terminus with a more left-ward coercible string.
  13291. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  13292. //
  13293. // Walk through the string checking with a /g regexp
  13294. // Manually set the index so as to pick up overlapping matches.
  13295. // Stop when we get a match that ends at the string end, since no
  13296. // coercible string can be more right-ward without the same terminus.
  13297. var next
  13298. while ((next = re[t.COERCERTL].exec(version)) &&
  13299. (!match || match.index + match[0].length !== version.length)
  13300. ) {
  13301. if (!match ||
  13302. next.index + next[0].length !== match.index + match[0].length) {
  13303. match = next
  13304. }
  13305. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  13306. }
  13307. // leave it in a clean state
  13308. re[t.COERCERTL].lastIndex = -1
  13309. }
  13310. if (match === null) {
  13311. return null
  13312. }
  13313. return parse(match[2] +
  13314. '.' + (match[3] || '0') +
  13315. '.' + (match[4] || '0'), options)
  13316. }
  13317. /***/ }),
  13318. /***/ 669:
  13319. /***/ (function(module) {
  13320. module.exports = require("util");
  13321. /***/ }),
  13322. /***/ 672:
  13323. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  13324. "use strict";
  13325. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  13326. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  13327. return new (P || (P = Promise))(function (resolve, reject) {
  13328. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  13329. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  13330. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  13331. step((generator = generator.apply(thisArg, _arguments || [])).next());
  13332. });
  13333. };
  13334. var _a;
  13335. Object.defineProperty(exports, "__esModule", { value: true });
  13336. const assert_1 = __webpack_require__(357);
  13337. const fs = __webpack_require__(747);
  13338. const path = __webpack_require__(622);
  13339. _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;
  13340. exports.IS_WINDOWS = process.platform === 'win32';
  13341. function exists(fsPath) {
  13342. return __awaiter(this, void 0, void 0, function* () {
  13343. try {
  13344. yield exports.stat(fsPath);
  13345. }
  13346. catch (err) {
  13347. if (err.code === 'ENOENT') {
  13348. return false;
  13349. }
  13350. throw err;
  13351. }
  13352. return true;
  13353. });
  13354. }
  13355. exports.exists = exists;
  13356. function isDirectory(fsPath, useStat = false) {
  13357. return __awaiter(this, void 0, void 0, function* () {
  13358. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  13359. return stats.isDirectory();
  13360. });
  13361. }
  13362. exports.isDirectory = isDirectory;
  13363. /**
  13364. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  13365. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  13366. */
  13367. function isRooted(p) {
  13368. p = normalizeSeparators(p);
  13369. if (!p) {
  13370. throw new Error('isRooted() parameter "p" cannot be empty');
  13371. }
  13372. if (exports.IS_WINDOWS) {
  13373. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  13374. ); // e.g. C: or C:\hello
  13375. }
  13376. return p.startsWith('/');
  13377. }
  13378. exports.isRooted = isRooted;
  13379. /**
  13380. * Recursively create a directory at `fsPath`.
  13381. *
  13382. * This implementation is optimistic, meaning it attempts to create the full
  13383. * path first, and backs up the path stack from there.
  13384. *
  13385. * @param fsPath The path to create
  13386. * @param maxDepth The maximum recursion depth
  13387. * @param depth The current recursion depth
  13388. */
  13389. function mkdirP(fsPath, maxDepth = 1000, depth = 1) {
  13390. return __awaiter(this, void 0, void 0, function* () {
  13391. assert_1.ok(fsPath, 'a path argument must be provided');
  13392. fsPath = path.resolve(fsPath);
  13393. if (depth >= maxDepth)
  13394. return exports.mkdir(fsPath);
  13395. try {
  13396. yield exports.mkdir(fsPath);
  13397. return;
  13398. }
  13399. catch (err) {
  13400. switch (err.code) {
  13401. case 'ENOENT': {
  13402. yield mkdirP(path.dirname(fsPath), maxDepth, depth + 1);
  13403. yield exports.mkdir(fsPath);
  13404. return;
  13405. }
  13406. default: {
  13407. let stats;
  13408. try {
  13409. stats = yield exports.stat(fsPath);
  13410. }
  13411. catch (err2) {
  13412. throw err;
  13413. }
  13414. if (!stats.isDirectory())
  13415. throw err;
  13416. }
  13417. }
  13418. }
  13419. });
  13420. }
  13421. exports.mkdirP = mkdirP;
  13422. /**
  13423. * Best effort attempt to determine whether a file exists and is executable.
  13424. * @param filePath file path to check
  13425. * @param extensions additional file extensions to try
  13426. * @return if file exists and is executable, returns the file path. otherwise empty string.
  13427. */
  13428. function tryGetExecutablePath(filePath, extensions) {
  13429. return __awaiter(this, void 0, void 0, function* () {
  13430. let stats = undefined;
  13431. try {
  13432. // test file exists
  13433. stats = yield exports.stat(filePath);
  13434. }
  13435. catch (err) {
  13436. if (err.code !== 'ENOENT') {
  13437. // eslint-disable-next-line no-console
  13438. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  13439. }
  13440. }
  13441. if (stats && stats.isFile()) {
  13442. if (exports.IS_WINDOWS) {
  13443. // on Windows, test for valid extension
  13444. const upperExt = path.extname(filePath).toUpperCase();
  13445. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  13446. return filePath;
  13447. }
  13448. }
  13449. else {
  13450. if (isUnixExecutable(stats)) {
  13451. return filePath;
  13452. }
  13453. }
  13454. }
  13455. // try each extension
  13456. const originalFilePath = filePath;
  13457. for (const extension of extensions) {
  13458. filePath = originalFilePath + extension;
  13459. stats = undefined;
  13460. try {
  13461. stats = yield exports.stat(filePath);
  13462. }
  13463. catch (err) {
  13464. if (err.code !== 'ENOENT') {
  13465. // eslint-disable-next-line no-console
  13466. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  13467. }
  13468. }
  13469. if (stats && stats.isFile()) {
  13470. if (exports.IS_WINDOWS) {
  13471. // preserve the case of the actual file (since an extension was appended)
  13472. try {
  13473. const directory = path.dirname(filePath);
  13474. const upperName = path.basename(filePath).toUpperCase();
  13475. for (const actualName of yield exports.readdir(directory)) {
  13476. if (upperName === actualName.toUpperCase()) {
  13477. filePath = path.join(directory, actualName);
  13478. break;
  13479. }
  13480. }
  13481. }
  13482. catch (err) {
  13483. // eslint-disable-next-line no-console
  13484. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  13485. }
  13486. return filePath;
  13487. }
  13488. else {
  13489. if (isUnixExecutable(stats)) {
  13490. return filePath;
  13491. }
  13492. }
  13493. }
  13494. }
  13495. return '';
  13496. });
  13497. }
  13498. exports.tryGetExecutablePath = tryGetExecutablePath;
  13499. function normalizeSeparators(p) {
  13500. p = p || '';
  13501. if (exports.IS_WINDOWS) {
  13502. // convert slashes on Windows
  13503. p = p.replace(/\//g, '\\');
  13504. // remove redundant slashes
  13505. return p.replace(/\\\\+/g, '\\');
  13506. }
  13507. // remove redundant slashes
  13508. return p.replace(/\/\/+/g, '/');
  13509. }
  13510. // on Mac/Linux, test the execute bit
  13511. // R W X R W X R W X
  13512. // 256 128 64 32 16 8 4 2 1
  13513. function isUnixExecutable(stats) {
  13514. return ((stats.mode & 1) > 0 ||
  13515. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  13516. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  13517. }
  13518. //# sourceMappingURL=io-util.js.map
  13519. /***/ }),
  13520. /***/ 674:
  13521. /***/ (function(module, __unusedexports, __webpack_require__) {
  13522. module.exports = authenticate;
  13523. const { Deprecation } = __webpack_require__(692);
  13524. const once = __webpack_require__(969);
  13525. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  13526. function authenticate(state, options) {
  13527. deprecateAuthenticate(
  13528. state.octokit.log,
  13529. new Deprecation(
  13530. '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
  13531. )
  13532. );
  13533. if (!options) {
  13534. state.auth = false;
  13535. return;
  13536. }
  13537. switch (options.type) {
  13538. case "basic":
  13539. if (!options.username || !options.password) {
  13540. throw new Error(
  13541. "Basic authentication requires both a username and password to be set"
  13542. );
  13543. }
  13544. break;
  13545. case "oauth":
  13546. if (!options.token && !(options.key && options.secret)) {
  13547. throw new Error(
  13548. "OAuth2 authentication requires a token or key & secret to be set"
  13549. );
  13550. }
  13551. break;
  13552. case "token":
  13553. case "app":
  13554. if (!options.token) {
  13555. throw new Error("Token authentication requires a token to be set");
  13556. }
  13557. break;
  13558. default:
  13559. throw new Error(
  13560. "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
  13561. );
  13562. }
  13563. state.auth = options;
  13564. }
  13565. /***/ }),
  13566. /***/ 675:
  13567. /***/ (function(module) {
  13568. module.exports = function btoa(str) {
  13569. return new Buffer(str).toString('base64')
  13570. }
  13571. /***/ }),
  13572. /***/ 692:
  13573. /***/ (function(__unusedmodule, exports) {
  13574. "use strict";
  13575. Object.defineProperty(exports, '__esModule', { value: true });
  13576. class Deprecation extends Error {
  13577. constructor(message) {
  13578. super(message); // Maintains proper stack trace (only available on V8)
  13579. /* istanbul ignore next */
  13580. if (Error.captureStackTrace) {
  13581. Error.captureStackTrace(this, this.constructor);
  13582. }
  13583. this.name = 'Deprecation';
  13584. }
  13585. }
  13586. exports.Deprecation = Deprecation;
  13587. /***/ }),
  13588. /***/ 696:
  13589. /***/ (function(module) {
  13590. "use strict";
  13591. /*!
  13592. * isobject <https://github.com/jonschlinkert/isobject>
  13593. *
  13594. * Copyright (c) 2014-2017, Jon Schlinkert.
  13595. * Released under the MIT License.
  13596. */
  13597. function isObject(val) {
  13598. return val != null && typeof val === 'object' && Array.isArray(val) === false;
  13599. }
  13600. /*!
  13601. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  13602. *
  13603. * Copyright (c) 2014-2017, Jon Schlinkert.
  13604. * Released under the MIT License.
  13605. */
  13606. function isObjectObject(o) {
  13607. return isObject(o) === true
  13608. && Object.prototype.toString.call(o) === '[object Object]';
  13609. }
  13610. function isPlainObject(o) {
  13611. var ctor,prot;
  13612. if (isObjectObject(o) === false) return false;
  13613. // If has modified constructor
  13614. ctor = o.constructor;
  13615. if (typeof ctor !== 'function') return false;
  13616. // If has modified prototype
  13617. prot = ctor.prototype;
  13618. if (isObjectObject(prot) === false) return false;
  13619. // If constructor does not have an Object-specific method
  13620. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  13621. return false;
  13622. }
  13623. // Most likely a plain Object
  13624. return true;
  13625. }
  13626. module.exports = isPlainObject;
  13627. /***/ }),
  13628. /***/ 697:
  13629. /***/ (function(module) {
  13630. "use strict";
  13631. module.exports = (promise, onFinally) => {
  13632. onFinally = onFinally || (() => {});
  13633. return promise.then(
  13634. val => new Promise(resolve => {
  13635. resolve(onFinally());
  13636. }).then(() => val),
  13637. err => new Promise(resolve => {
  13638. resolve(onFinally());
  13639. }).then(() => {
  13640. throw err;
  13641. })
  13642. );
  13643. };
  13644. /***/ }),
  13645. /***/ 701:
  13646. /***/ (function(module, __unusedexports, __webpack_require__) {
  13647. "use strict";
  13648. var GetIntrinsic = __webpack_require__(915);
  13649. var callBound = __webpack_require__(630);
  13650. var inspect = __webpack_require__(26);
  13651. var $TypeError = GetIntrinsic('%TypeError%');
  13652. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  13653. var $Map = GetIntrinsic('%Map%', true);
  13654. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  13655. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  13656. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  13657. var $mapGet = callBound('Map.prototype.get', true);
  13658. var $mapSet = callBound('Map.prototype.set', true);
  13659. var $mapHas = callBound('Map.prototype.has', true);
  13660. /*
  13661. * This function traverses the list returning the node corresponding to the
  13662. * given key.
  13663. *
  13664. * That node is also moved to the head of the list, so that if it's accessed
  13665. * again we don't need to traverse the whole list. By doing so, all the recently
  13666. * used nodes can be accessed relatively quickly.
  13667. */
  13668. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  13669. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  13670. if (curr.key === key) {
  13671. prev.next = curr.next;
  13672. curr.next = list.next;
  13673. list.next = curr; // eslint-disable-line no-param-reassign
  13674. return curr;
  13675. }
  13676. }
  13677. };
  13678. var listGet = function (objects, key) {
  13679. var node = listGetNode(objects, key);
  13680. return node && node.value;
  13681. };
  13682. var listSet = function (objects, key, value) {
  13683. var node = listGetNode(objects, key);
  13684. if (node) {
  13685. node.value = value;
  13686. } else {
  13687. // Prepend the new node to the beginning of the list
  13688. objects.next = { // eslint-disable-line no-param-reassign
  13689. key: key,
  13690. next: objects.next,
  13691. value: value
  13692. };
  13693. }
  13694. };
  13695. var listHas = function (objects, key) {
  13696. return !!listGetNode(objects, key);
  13697. };
  13698. module.exports = function getSideChannel() {
  13699. var $wm;
  13700. var $m;
  13701. var $o;
  13702. var channel = {
  13703. assert: function (key) {
  13704. if (!channel.has(key)) {
  13705. throw new $TypeError('Side channel does not contain ' + inspect(key));
  13706. }
  13707. },
  13708. get: function (key) { // eslint-disable-line consistent-return
  13709. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  13710. if ($wm) {
  13711. return $weakMapGet($wm, key);
  13712. }
  13713. } else if ($Map) {
  13714. if ($m) {
  13715. return $mapGet($m, key);
  13716. }
  13717. } else {
  13718. if ($o) { // eslint-disable-line no-lonely-if
  13719. return listGet($o, key);
  13720. }
  13721. }
  13722. },
  13723. has: function (key) {
  13724. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  13725. if ($wm) {
  13726. return $weakMapHas($wm, key);
  13727. }
  13728. } else if ($Map) {
  13729. if ($m) {
  13730. return $mapHas($m, key);
  13731. }
  13732. } else {
  13733. if ($o) { // eslint-disable-line no-lonely-if
  13734. return listHas($o, key);
  13735. }
  13736. }
  13737. return false;
  13738. },
  13739. set: function (key, value) {
  13740. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  13741. if (!$wm) {
  13742. $wm = new $WeakMap();
  13743. }
  13744. $weakMapSet($wm, key, value);
  13745. } else if ($Map) {
  13746. if (!$m) {
  13747. $m = new $Map();
  13748. }
  13749. $mapSet($m, key, value);
  13750. } else {
  13751. if (!$o) {
  13752. /*
  13753. * Initialize the linked list as an empty node, so that we don't have
  13754. * to special-case handling of the first node: we can always refer to
  13755. * it as (previous node).next, instead of something like (list).head
  13756. */
  13757. $o = { key: {}, next: null };
  13758. }
  13759. listSet($o, key, value);
  13760. }
  13761. }
  13762. };
  13763. return channel;
  13764. };
  13765. /***/ }),
  13766. /***/ 722:
  13767. /***/ (function(module) {
  13768. /**
  13769. * Convert array of 16 byte values to UUID string format of the form:
  13770. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  13771. */
  13772. var byteToHex = [];
  13773. for (var i = 0; i < 256; ++i) {
  13774. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  13775. }
  13776. function bytesToUuid(buf, offset) {
  13777. var i = offset || 0;
  13778. var bth = byteToHex;
  13779. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  13780. return ([bth[buf[i++]], bth[buf[i++]],
  13781. bth[buf[i++]], bth[buf[i++]], '-',
  13782. bth[buf[i++]], bth[buf[i++]], '-',
  13783. bth[buf[i++]], bth[buf[i++]], '-',
  13784. bth[buf[i++]], bth[buf[i++]], '-',
  13785. bth[buf[i++]], bth[buf[i++]],
  13786. bth[buf[i++]], bth[buf[i++]],
  13787. bth[buf[i++]], bth[buf[i++]]]).join('');
  13788. }
  13789. module.exports = bytesToUuid;
  13790. /***/ }),
  13791. /***/ 729:
  13792. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  13793. "use strict";
  13794. // Copyright (c) Microsoft. All rights reserved.
  13795. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  13796. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  13797. return new (P || (P = Promise))(function (resolve, reject) {
  13798. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  13799. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  13800. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  13801. step((generator = generator.apply(thisArg, _arguments || [])).next());
  13802. });
  13803. };
  13804. Object.defineProperty(exports, "__esModule", { value: true });
  13805. const qs = __webpack_require__(386);
  13806. const url = __webpack_require__(835);
  13807. const path = __webpack_require__(622);
  13808. const zlib = __webpack_require__(761);
  13809. /**
  13810. * creates an url from a request url and optional base url (http://server:8080)
  13811. * @param {string} resource - a fully qualified url or relative path
  13812. * @param {string} baseUrl - an optional baseUrl (http://server:8080)
  13813. * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
  13814. * @return {string} - resultant url
  13815. */
  13816. function getUrl(resource, baseUrl, queryParams) {
  13817. const pathApi = path.posix || path;
  13818. let requestUrl = '';
  13819. if (!baseUrl) {
  13820. requestUrl = resource;
  13821. }
  13822. else if (!resource) {
  13823. requestUrl = baseUrl;
  13824. }
  13825. else {
  13826. const base = url.parse(baseUrl);
  13827. const resultantUrl = url.parse(resource);
  13828. // resource (specific per request) elements take priority
  13829. resultantUrl.protocol = resultantUrl.protocol || base.protocol;
  13830. resultantUrl.auth = resultantUrl.auth || base.auth;
  13831. resultantUrl.host = resultantUrl.host || base.host;
  13832. resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
  13833. if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
  13834. resultantUrl.pathname += '/';
  13835. }
  13836. requestUrl = url.format(resultantUrl);
  13837. }
  13838. return queryParams ?
  13839. getUrlWithParsedQueryParams(requestUrl, queryParams) :
  13840. requestUrl;
  13841. }
  13842. exports.getUrl = getUrl;
  13843. /**
  13844. *
  13845. * @param {string} requestUrl
  13846. * @param {IRequestQueryParams} queryParams
  13847. * @return {string} - Request's URL with Query Parameters appended/parsed.
  13848. */
  13849. function getUrlWithParsedQueryParams(requestUrl, queryParams) {
  13850. const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
  13851. const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
  13852. return `${url}${parsedQueryParams}`;
  13853. }
  13854. /**
  13855. * Build options for QueryParams Stringifying.
  13856. *
  13857. * @param {IRequestQueryParams} queryParams
  13858. * @return {object}
  13859. */
  13860. function buildParamsStringifyOptions(queryParams) {
  13861. let options = {
  13862. addQueryPrefix: true,
  13863. delimiter: (queryParams.options || {}).separator || '&',
  13864. allowDots: (queryParams.options || {}).shouldAllowDots || false,
  13865. arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
  13866. encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
  13867. };
  13868. return options;
  13869. }
  13870. /**
  13871. * Decompress/Decode gzip encoded JSON
  13872. * Using Node.js built-in zlib module
  13873. *
  13874. * @param {Buffer} buffer
  13875. * @param {string} charset? - optional; defaults to 'utf-8'
  13876. * @return {Promise<string>}
  13877. */
  13878. function decompressGzippedContent(buffer, charset) {
  13879. return __awaiter(this, void 0, void 0, function* () {
  13880. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  13881. zlib.gunzip(buffer, function (error, buffer) {
  13882. if (error) {
  13883. reject(error);
  13884. }
  13885. resolve(buffer.toString(charset || 'utf-8'));
  13886. });
  13887. }));
  13888. });
  13889. }
  13890. exports.decompressGzippedContent = decompressGzippedContent;
  13891. /**
  13892. * Builds a RegExp to test urls against for deciding
  13893. * wether to bypass proxy from an entry of the
  13894. * environment variable setting NO_PROXY
  13895. *
  13896. * @param {string} bypass
  13897. * @return {RegExp}
  13898. */
  13899. function buildProxyBypassRegexFromEnv(bypass) {
  13900. try {
  13901. // We need to keep this around for back-compat purposes
  13902. return new RegExp(bypass, 'i');
  13903. }
  13904. catch (err) {
  13905. if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
  13906. let wildcardEscaped = bypass.replace('*', '(.*)');
  13907. return new RegExp(wildcardEscaped, 'i');
  13908. }
  13909. throw err;
  13910. }
  13911. }
  13912. exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
  13913. /**
  13914. * Obtain Response's Content Charset.
  13915. * Through inspecting `content-type` response header.
  13916. * It Returns 'utf-8' if NO charset specified/matched.
  13917. *
  13918. * @param {IHttpClientResponse} response
  13919. * @return {string} - Content Encoding Charset; Default=utf-8
  13920. */
  13921. function obtainContentCharset(response) {
  13922. // Find the charset, if specified.
  13923. // Search for the `charset=CHARSET` string, not including `;,\r\n`
  13924. // Example: content-type: 'application/json;charset=utf-8'
  13925. // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
  13926. // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
  13927. // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
  13928. const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
  13929. const contentType = response.message.headers['content-type'] || '';
  13930. const matches = contentType.match(/charset=([^;,\r\n]+)/i);
  13931. return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
  13932. }
  13933. exports.obtainContentCharset = obtainContentCharset;
  13934. /***/ }),
  13935. /***/ 739:
  13936. /***/ (function(module, __unusedexports, __webpack_require__) {
  13937. "use strict";
  13938. var implementation = __webpack_require__(353);
  13939. module.exports = Function.prototype.bind || implementation;
  13940. /***/ }),
  13941. /***/ 742:
  13942. /***/ (function(module, __unusedexports, __webpack_require__) {
  13943. var fs = __webpack_require__(747)
  13944. var core
  13945. if (process.platform === 'win32' || global.TESTING_WINDOWS) {
  13946. core = __webpack_require__(818)
  13947. } else {
  13948. core = __webpack_require__(197)
  13949. }
  13950. module.exports = isexe
  13951. isexe.sync = sync
  13952. function isexe (path, options, cb) {
  13953. if (typeof options === 'function') {
  13954. cb = options
  13955. options = {}
  13956. }
  13957. if (!cb) {
  13958. if (typeof Promise !== 'function') {
  13959. throw new TypeError('callback not provided')
  13960. }
  13961. return new Promise(function (resolve, reject) {
  13962. isexe(path, options || {}, function (er, is) {
  13963. if (er) {
  13964. reject(er)
  13965. } else {
  13966. resolve(is)
  13967. }
  13968. })
  13969. })
  13970. }
  13971. core(path, options || {}, function (er, is) {
  13972. // ignore EACCES because that just means we aren't allowed to run it
  13973. if (er) {
  13974. if (er.code === 'EACCES' || options && options.ignoreErrors) {
  13975. er = null
  13976. is = false
  13977. }
  13978. }
  13979. cb(er, is)
  13980. })
  13981. }
  13982. function sync (path, options) {
  13983. // my kingdom for a filtered catch
  13984. try {
  13985. return core.sync(path, options || {})
  13986. } catch (er) {
  13987. if (options && options.ignoreErrors || er.code === 'EACCES') {
  13988. return false
  13989. } else {
  13990. throw er
  13991. }
  13992. }
  13993. }
  13994. /***/ }),
  13995. /***/ 747:
  13996. /***/ (function(module) {
  13997. module.exports = require("fs");
  13998. /***/ }),
  13999. /***/ 749:
  14000. /***/ (function(module, __unusedexports, __webpack_require__) {
  14001. "use strict";
  14002. var bind = __webpack_require__(739);
  14003. var GetIntrinsic = __webpack_require__(915);
  14004. var $apply = GetIntrinsic('%Function.prototype.apply%');
  14005. var $call = GetIntrinsic('%Function.prototype.call%');
  14006. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  14007. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  14008. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  14009. var $max = GetIntrinsic('%Math.max%');
  14010. if ($defineProperty) {
  14011. try {
  14012. $defineProperty({}, 'a', { value: 1 });
  14013. } catch (e) {
  14014. // IE 8 has a broken defineProperty
  14015. $defineProperty = null;
  14016. }
  14017. }
  14018. module.exports = function callBind(originalFunction) {
  14019. var func = $reflectApply(bind, $call, arguments);
  14020. if ($gOPD && $defineProperty) {
  14021. var desc = $gOPD(func, 'length');
  14022. if (desc.configurable) {
  14023. // original length, plus the receiver, minus any additional arguments (after the receiver)
  14024. $defineProperty(
  14025. func,
  14026. 'length',
  14027. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  14028. );
  14029. }
  14030. }
  14031. return func;
  14032. };
  14033. var applyBind = function applyBind() {
  14034. return $reflectApply(bind, $apply, arguments);
  14035. };
  14036. if ($defineProperty) {
  14037. $defineProperty(module.exports, 'apply', { value: applyBind });
  14038. } else {
  14039. module.exports.apply = applyBind;
  14040. }
  14041. /***/ }),
  14042. /***/ 753:
  14043. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14044. "use strict";
  14045. Object.defineProperty(exports, '__esModule', { value: true });
  14046. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  14047. var endpoint = __webpack_require__(385);
  14048. var universalUserAgent = __webpack_require__(211);
  14049. var isPlainObject = _interopDefault(__webpack_require__(696));
  14050. var nodeFetch = _interopDefault(__webpack_require__(454));
  14051. var requestError = __webpack_require__(463);
  14052. const VERSION = "5.4.2";
  14053. function getBufferResponse(response) {
  14054. return response.arrayBuffer();
  14055. }
  14056. function fetchWrapper(requestOptions) {
  14057. if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
  14058. requestOptions.body = JSON.stringify(requestOptions.body);
  14059. }
  14060. let headers = {};
  14061. let status;
  14062. let url;
  14063. const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
  14064. return fetch(requestOptions.url, Object.assign({
  14065. method: requestOptions.method,
  14066. body: requestOptions.body,
  14067. headers: requestOptions.headers,
  14068. redirect: requestOptions.redirect
  14069. }, requestOptions.request)).then(response => {
  14070. url = response.url;
  14071. status = response.status;
  14072. for (const keyAndValue of response.headers) {
  14073. headers[keyAndValue[0]] = keyAndValue[1];
  14074. }
  14075. if (status === 204 || status === 205) {
  14076. return;
  14077. } // GitHub API returns 200 for HEAD requests
  14078. if (requestOptions.method === "HEAD") {
  14079. if (status < 400) {
  14080. return;
  14081. }
  14082. throw new requestError.RequestError(response.statusText, status, {
  14083. headers,
  14084. request: requestOptions
  14085. });
  14086. }
  14087. if (status === 304) {
  14088. throw new requestError.RequestError("Not modified", status, {
  14089. headers,
  14090. request: requestOptions
  14091. });
  14092. }
  14093. if (status >= 400) {
  14094. return response.text().then(message => {
  14095. const error = new requestError.RequestError(message, status, {
  14096. headers,
  14097. request: requestOptions
  14098. });
  14099. try {
  14100. let responseBody = JSON.parse(error.message);
  14101. Object.assign(error, responseBody);
  14102. let errors = responseBody.errors; // Assumption `errors` would always be in Array format
  14103. error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
  14104. } catch (e) {// ignore, see octokit/rest.js#684
  14105. }
  14106. throw error;
  14107. });
  14108. }
  14109. const contentType = response.headers.get("content-type");
  14110. if (/application\/json/.test(contentType)) {
  14111. return response.json();
  14112. }
  14113. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  14114. return response.text();
  14115. }
  14116. return getBufferResponse(response);
  14117. }).then(data => {
  14118. return {
  14119. status,
  14120. url,
  14121. headers,
  14122. data
  14123. };
  14124. }).catch(error => {
  14125. if (error instanceof requestError.RequestError) {
  14126. throw error;
  14127. }
  14128. throw new requestError.RequestError(error.message, 500, {
  14129. headers,
  14130. request: requestOptions
  14131. });
  14132. });
  14133. }
  14134. function withDefaults(oldEndpoint, newDefaults) {
  14135. const endpoint = oldEndpoint.defaults(newDefaults);
  14136. const newApi = function (route, parameters) {
  14137. const endpointOptions = endpoint.merge(route, parameters);
  14138. if (!endpointOptions.request || !endpointOptions.request.hook) {
  14139. return fetchWrapper(endpoint.parse(endpointOptions));
  14140. }
  14141. const request = (route, parameters) => {
  14142. return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
  14143. };
  14144. Object.assign(request, {
  14145. endpoint,
  14146. defaults: withDefaults.bind(null, endpoint)
  14147. });
  14148. return endpointOptions.request.hook(request, endpointOptions);
  14149. };
  14150. return Object.assign(newApi, {
  14151. endpoint,
  14152. defaults: withDefaults.bind(null, endpoint)
  14153. });
  14154. }
  14155. const request = withDefaults(endpoint.endpoint, {
  14156. headers: {
  14157. "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  14158. }
  14159. });
  14160. exports.request = request;
  14161. //# sourceMappingURL=index.js.map
  14162. /***/ }),
  14163. /***/ 755:
  14164. /***/ (function(module, __unusedexports, __webpack_require__) {
  14165. "use strict";
  14166. var utils = __webpack_require__(581);
  14167. var has = Object.prototype.hasOwnProperty;
  14168. var isArray = Array.isArray;
  14169. var defaults = {
  14170. allowDots: false,
  14171. allowPrototypes: false,
  14172. allowSparse: false,
  14173. arrayLimit: 20,
  14174. charset: 'utf-8',
  14175. charsetSentinel: false,
  14176. comma: false,
  14177. decoder: utils.decode,
  14178. delimiter: '&',
  14179. depth: 5,
  14180. ignoreQueryPrefix: false,
  14181. interpretNumericEntities: false,
  14182. parameterLimit: 1000,
  14183. parseArrays: true,
  14184. plainObjects: false,
  14185. strictNullHandling: false
  14186. };
  14187. var interpretNumericEntities = function (str) {
  14188. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  14189. return String.fromCharCode(parseInt(numberStr, 10));
  14190. });
  14191. };
  14192. var parseArrayValue = function (val, options) {
  14193. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  14194. return val.split(',');
  14195. }
  14196. return val;
  14197. };
  14198. // This is what browsers will submit when the ✓ character occurs in an
  14199. // application/x-www-form-urlencoded body and the encoding of the page containing
  14200. // the form is iso-8859-1, or when the submitted form has an accept-charset
  14201. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  14202. // the ✓ character, such as us-ascii.
  14203. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  14204. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  14205. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  14206. var parseValues = function parseQueryStringValues(str, options) {
  14207. var obj = {};
  14208. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  14209. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  14210. var parts = cleanStr.split(options.delimiter, limit);
  14211. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  14212. var i;
  14213. var charset = options.charset;
  14214. if (options.charsetSentinel) {
  14215. for (i = 0; i < parts.length; ++i) {
  14216. if (parts[i].indexOf('utf8=') === 0) {
  14217. if (parts[i] === charsetSentinel) {
  14218. charset = 'utf-8';
  14219. } else if (parts[i] === isoSentinel) {
  14220. charset = 'iso-8859-1';
  14221. }
  14222. skipIndex = i;
  14223. i = parts.length; // The eslint settings do not allow break;
  14224. }
  14225. }
  14226. }
  14227. for (i = 0; i < parts.length; ++i) {
  14228. if (i === skipIndex) {
  14229. continue;
  14230. }
  14231. var part = parts[i];
  14232. var bracketEqualsPos = part.indexOf(']=');
  14233. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  14234. var key, val;
  14235. if (pos === -1) {
  14236. key = options.decoder(part, defaults.decoder, charset, 'key');
  14237. val = options.strictNullHandling ? null : '';
  14238. } else {
  14239. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  14240. val = utils.maybeMap(
  14241. parseArrayValue(part.slice(pos + 1), options),
  14242. function (encodedVal) {
  14243. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  14244. }
  14245. );
  14246. }
  14247. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  14248. val = interpretNumericEntities(val);
  14249. }
  14250. if (part.indexOf('[]=') > -1) {
  14251. val = isArray(val) ? [val] : val;
  14252. }
  14253. if (has.call(obj, key)) {
  14254. obj[key] = utils.combine(obj[key], val);
  14255. } else {
  14256. obj[key] = val;
  14257. }
  14258. }
  14259. return obj;
  14260. };
  14261. var parseObject = function (chain, val, options, valuesParsed) {
  14262. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  14263. for (var i = chain.length - 1; i >= 0; --i) {
  14264. var obj;
  14265. var root = chain[i];
  14266. if (root === '[]' && options.parseArrays) {
  14267. obj = [].concat(leaf);
  14268. } else {
  14269. obj = options.plainObjects ? Object.create(null) : {};
  14270. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  14271. var index = parseInt(cleanRoot, 10);
  14272. if (!options.parseArrays && cleanRoot === '') {
  14273. obj = { 0: leaf };
  14274. } else if (
  14275. !isNaN(index)
  14276. && root !== cleanRoot
  14277. && String(index) === cleanRoot
  14278. && index >= 0
  14279. && (options.parseArrays && index <= options.arrayLimit)
  14280. ) {
  14281. obj = [];
  14282. obj[index] = leaf;
  14283. } else {
  14284. obj[cleanRoot] = leaf;
  14285. }
  14286. }
  14287. leaf = obj;
  14288. }
  14289. return leaf;
  14290. };
  14291. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  14292. if (!givenKey) {
  14293. return;
  14294. }
  14295. // Transform dot notation to bracket notation
  14296. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  14297. // The regex chunks
  14298. var brackets = /(\[[^[\]]*])/;
  14299. var child = /(\[[^[\]]*])/g;
  14300. // Get the parent
  14301. var segment = options.depth > 0 && brackets.exec(key);
  14302. var parent = segment ? key.slice(0, segment.index) : key;
  14303. // Stash the parent if it exists
  14304. var keys = [];
  14305. if (parent) {
  14306. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  14307. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  14308. if (!options.allowPrototypes) {
  14309. return;
  14310. }
  14311. }
  14312. keys.push(parent);
  14313. }
  14314. // Loop through children appending to the array until we hit depth
  14315. var i = 0;
  14316. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  14317. i += 1;
  14318. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  14319. if (!options.allowPrototypes) {
  14320. return;
  14321. }
  14322. }
  14323. keys.push(segment[1]);
  14324. }
  14325. // If there's a remainder, just add whatever is left
  14326. if (segment) {
  14327. keys.push('[' + key.slice(segment.index) + ']');
  14328. }
  14329. return parseObject(keys, val, options, valuesParsed);
  14330. };
  14331. var normalizeParseOptions = function normalizeParseOptions(opts) {
  14332. if (!opts) {
  14333. return defaults;
  14334. }
  14335. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  14336. throw new TypeError('Decoder has to be a function.');
  14337. }
  14338. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  14339. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  14340. }
  14341. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  14342. return {
  14343. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  14344. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  14345. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  14346. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  14347. charset: charset,
  14348. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  14349. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  14350. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  14351. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  14352. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  14353. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  14354. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  14355. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  14356. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  14357. parseArrays: opts.parseArrays !== false,
  14358. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  14359. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  14360. };
  14361. };
  14362. module.exports = function (str, opts) {
  14363. var options = normalizeParseOptions(opts);
  14364. if (str === '' || str === null || typeof str === 'undefined') {
  14365. return options.plainObjects ? Object.create(null) : {};
  14366. }
  14367. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  14368. var obj = options.plainObjects ? Object.create(null) : {};
  14369. // Iterate over the keys and setup the new object
  14370. var keys = Object.keys(tempObj);
  14371. for (var i = 0; i < keys.length; ++i) {
  14372. var key = keys[i];
  14373. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  14374. obj = utils.merge(obj, newObj, options);
  14375. }
  14376. if (options.allowSparse === true) {
  14377. return obj;
  14378. }
  14379. return utils.compact(obj);
  14380. };
  14381. /***/ }),
  14382. /***/ 761:
  14383. /***/ (function(module) {
  14384. module.exports = require("zlib");
  14385. /***/ }),
  14386. /***/ 763:
  14387. /***/ (function(module) {
  14388. module.exports = removeHook
  14389. function removeHook (state, name, method) {
  14390. if (!state.registry[name]) {
  14391. return
  14392. }
  14393. var index = state.registry[name]
  14394. .map(function (registered) { return registered.orig })
  14395. .indexOf(method)
  14396. if (index === -1) {
  14397. return
  14398. }
  14399. state.registry[name].splice(index, 1)
  14400. }
  14401. /***/ }),
  14402. /***/ 768:
  14403. /***/ (function(module) {
  14404. "use strict";
  14405. module.exports = function (x) {
  14406. var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
  14407. var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
  14408. if (x[x.length - 1] === lf) {
  14409. x = x.slice(0, x.length - 1);
  14410. }
  14411. if (x[x.length - 1] === cr) {
  14412. x = x.slice(0, x.length - 1);
  14413. }
  14414. return x;
  14415. };
  14416. /***/ }),
  14417. /***/ 777:
  14418. /***/ (function(module, __unusedexports, __webpack_require__) {
  14419. module.exports = getFirstPage
  14420. const getPage = __webpack_require__(265)
  14421. function getFirstPage (octokit, link, headers) {
  14422. return getPage(octokit, link, 'first', headers)
  14423. }
  14424. /***/ }),
  14425. /***/ 782:
  14426. /***/ (function(module, __unusedexports, __webpack_require__) {
  14427. "use strict";
  14428. const conversions = __webpack_require__(149);
  14429. const utils = __webpack_require__(649);
  14430. const Impl = __webpack_require__(256);
  14431. const impl = utils.implSymbol;
  14432. function URL(url) {
  14433. if (!this || this[impl] || !(this instanceof URL)) {
  14434. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  14435. }
  14436. if (arguments.length < 1) {
  14437. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  14438. }
  14439. const args = [];
  14440. for (let i = 0; i < arguments.length && i < 2; ++i) {
  14441. args[i] = arguments[i];
  14442. }
  14443. args[0] = conversions["USVString"](args[0]);
  14444. if (args[1] !== undefined) {
  14445. args[1] = conversions["USVString"](args[1]);
  14446. }
  14447. module.exports.setup(this, args);
  14448. }
  14449. URL.prototype.toJSON = function toJSON() {
  14450. if (!this || !module.exports.is(this)) {
  14451. throw new TypeError("Illegal invocation");
  14452. }
  14453. const args = [];
  14454. for (let i = 0; i < arguments.length && i < 0; ++i) {
  14455. args[i] = arguments[i];
  14456. }
  14457. return this[impl].toJSON.apply(this[impl], args);
  14458. };
  14459. Object.defineProperty(URL.prototype, "href", {
  14460. get() {
  14461. return this[impl].href;
  14462. },
  14463. set(V) {
  14464. V = conversions["USVString"](V);
  14465. this[impl].href = V;
  14466. },
  14467. enumerable: true,
  14468. configurable: true
  14469. });
  14470. URL.prototype.toString = function () {
  14471. if (!this || !module.exports.is(this)) {
  14472. throw new TypeError("Illegal invocation");
  14473. }
  14474. return this.href;
  14475. };
  14476. Object.defineProperty(URL.prototype, "origin", {
  14477. get() {
  14478. return this[impl].origin;
  14479. },
  14480. enumerable: true,
  14481. configurable: true
  14482. });
  14483. Object.defineProperty(URL.prototype, "protocol", {
  14484. get() {
  14485. return this[impl].protocol;
  14486. },
  14487. set(V) {
  14488. V = conversions["USVString"](V);
  14489. this[impl].protocol = V;
  14490. },
  14491. enumerable: true,
  14492. configurable: true
  14493. });
  14494. Object.defineProperty(URL.prototype, "username", {
  14495. get() {
  14496. return this[impl].username;
  14497. },
  14498. set(V) {
  14499. V = conversions["USVString"](V);
  14500. this[impl].username = V;
  14501. },
  14502. enumerable: true,
  14503. configurable: true
  14504. });
  14505. Object.defineProperty(URL.prototype, "password", {
  14506. get() {
  14507. return this[impl].password;
  14508. },
  14509. set(V) {
  14510. V = conversions["USVString"](V);
  14511. this[impl].password = V;
  14512. },
  14513. enumerable: true,
  14514. configurable: true
  14515. });
  14516. Object.defineProperty(URL.prototype, "host", {
  14517. get() {
  14518. return this[impl].host;
  14519. },
  14520. set(V) {
  14521. V = conversions["USVString"](V);
  14522. this[impl].host = V;
  14523. },
  14524. enumerable: true,
  14525. configurable: true
  14526. });
  14527. Object.defineProperty(URL.prototype, "hostname", {
  14528. get() {
  14529. return this[impl].hostname;
  14530. },
  14531. set(V) {
  14532. V = conversions["USVString"](V);
  14533. this[impl].hostname = V;
  14534. },
  14535. enumerable: true,
  14536. configurable: true
  14537. });
  14538. Object.defineProperty(URL.prototype, "port", {
  14539. get() {
  14540. return this[impl].port;
  14541. },
  14542. set(V) {
  14543. V = conversions["USVString"](V);
  14544. this[impl].port = V;
  14545. },
  14546. enumerable: true,
  14547. configurable: true
  14548. });
  14549. Object.defineProperty(URL.prototype, "pathname", {
  14550. get() {
  14551. return this[impl].pathname;
  14552. },
  14553. set(V) {
  14554. V = conversions["USVString"](V);
  14555. this[impl].pathname = V;
  14556. },
  14557. enumerable: true,
  14558. configurable: true
  14559. });
  14560. Object.defineProperty(URL.prototype, "search", {
  14561. get() {
  14562. return this[impl].search;
  14563. },
  14564. set(V) {
  14565. V = conversions["USVString"](V);
  14566. this[impl].search = V;
  14567. },
  14568. enumerable: true,
  14569. configurable: true
  14570. });
  14571. Object.defineProperty(URL.prototype, "hash", {
  14572. get() {
  14573. return this[impl].hash;
  14574. },
  14575. set(V) {
  14576. V = conversions["USVString"](V);
  14577. this[impl].hash = V;
  14578. },
  14579. enumerable: true,
  14580. configurable: true
  14581. });
  14582. module.exports = {
  14583. is(obj) {
  14584. return !!obj && obj[impl] instanceof Impl.implementation;
  14585. },
  14586. create(constructorArgs, privateData) {
  14587. let obj = Object.create(URL.prototype);
  14588. this.setup(obj, constructorArgs, privateData);
  14589. return obj;
  14590. },
  14591. setup(obj, constructorArgs, privateData) {
  14592. if (!privateData) privateData = {};
  14593. privateData.wrapper = obj;
  14594. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  14595. obj[impl][utils.wrapperSymbol] = obj;
  14596. },
  14597. interface: URL,
  14598. expose: {
  14599. Window: { URL: URL },
  14600. Worker: { URL: URL }
  14601. }
  14602. };
  14603. /***/ }),
  14604. /***/ 796:
  14605. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14606. "use strict";
  14607. Object.defineProperty(exports, '__esModule', { value: true });
  14608. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  14609. var osName = _interopDefault(__webpack_require__(2));
  14610. function getUserAgent() {
  14611. try {
  14612. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  14613. } catch (error) {
  14614. if (/wmic os get Caption/.test(error.message)) {
  14615. return "Windows <version undetectable>";
  14616. }
  14617. throw error;
  14618. }
  14619. }
  14620. exports.getUserAgent = getUserAgent;
  14621. //# sourceMappingURL=index.js.map
  14622. /***/ }),
  14623. /***/ 813:
  14624. /***/ (function(__unusedmodule, exports) {
  14625. "use strict";
  14626. Object.defineProperty(exports, '__esModule', { value: true });
  14627. async function auth(token) {
  14628. const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
  14629. return {
  14630. type: "token",
  14631. token: token,
  14632. tokenType
  14633. };
  14634. }
  14635. /**
  14636. * Prefix token for usage in the Authorization header
  14637. *
  14638. * @param token OAuth token or JSON Web Token
  14639. */
  14640. function withAuthorizationPrefix(token) {
  14641. if (token.split(/\./).length === 3) {
  14642. return `bearer ${token}`;
  14643. }
  14644. return `token ${token}`;
  14645. }
  14646. async function hook(token, request, route, parameters) {
  14647. const endpoint = request.endpoint.merge(route, parameters);
  14648. endpoint.headers.authorization = withAuthorizationPrefix(token);
  14649. return request(endpoint);
  14650. }
  14651. const createTokenAuth = function createTokenAuth(token) {
  14652. if (!token) {
  14653. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  14654. }
  14655. if (typeof token !== "string") {
  14656. throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
  14657. }
  14658. token = token.replace(/^(token|bearer) +/i, "");
  14659. return Object.assign(auth.bind(null, token), {
  14660. hook: hook.bind(null, token)
  14661. });
  14662. };
  14663. exports.createTokenAuth = createTokenAuth;
  14664. //# sourceMappingURL=index.js.map
  14665. /***/ }),
  14666. /***/ 814:
  14667. /***/ (function(module, __unusedexports, __webpack_require__) {
  14668. module.exports = which
  14669. which.sync = whichSync
  14670. var isWindows = process.platform === 'win32' ||
  14671. process.env.OSTYPE === 'cygwin' ||
  14672. process.env.OSTYPE === 'msys'
  14673. var path = __webpack_require__(622)
  14674. var COLON = isWindows ? ';' : ':'
  14675. var isexe = __webpack_require__(742)
  14676. function getNotFoundError (cmd) {
  14677. var er = new Error('not found: ' + cmd)
  14678. er.code = 'ENOENT'
  14679. return er
  14680. }
  14681. function getPathInfo (cmd, opt) {
  14682. var colon = opt.colon || COLON
  14683. var pathEnv = opt.path || process.env.PATH || ''
  14684. var pathExt = ['']
  14685. pathEnv = pathEnv.split(colon)
  14686. var pathExtExe = ''
  14687. if (isWindows) {
  14688. pathEnv.unshift(process.cwd())
  14689. pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
  14690. pathExt = pathExtExe.split(colon)
  14691. // Always test the cmd itself first. isexe will check to make sure
  14692. // it's found in the pathExt set.
  14693. if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
  14694. pathExt.unshift('')
  14695. }
  14696. // If it has a slash, then we don't bother searching the pathenv.
  14697. // just check the file itself, and that's it.
  14698. if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
  14699. pathEnv = ['']
  14700. return {
  14701. env: pathEnv,
  14702. ext: pathExt,
  14703. extExe: pathExtExe
  14704. }
  14705. }
  14706. function which (cmd, opt, cb) {
  14707. if (typeof opt === 'function') {
  14708. cb = opt
  14709. opt = {}
  14710. }
  14711. var info = getPathInfo(cmd, opt)
  14712. var pathEnv = info.env
  14713. var pathExt = info.ext
  14714. var pathExtExe = info.extExe
  14715. var found = []
  14716. ;(function F (i, l) {
  14717. if (i === l) {
  14718. if (opt.all && found.length)
  14719. return cb(null, found)
  14720. else
  14721. return cb(getNotFoundError(cmd))
  14722. }
  14723. var pathPart = pathEnv[i]
  14724. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  14725. pathPart = pathPart.slice(1, -1)
  14726. var p = path.join(pathPart, cmd)
  14727. if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
  14728. p = cmd.slice(0, 2) + p
  14729. }
  14730. ;(function E (ii, ll) {
  14731. if (ii === ll) return F(i + 1, l)
  14732. var ext = pathExt[ii]
  14733. isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
  14734. if (!er && is) {
  14735. if (opt.all)
  14736. found.push(p + ext)
  14737. else
  14738. return cb(null, p + ext)
  14739. }
  14740. return E(ii + 1, ll)
  14741. })
  14742. })(0, pathExt.length)
  14743. })(0, pathEnv.length)
  14744. }
  14745. function whichSync (cmd, opt) {
  14746. opt = opt || {}
  14747. var info = getPathInfo(cmd, opt)
  14748. var pathEnv = info.env
  14749. var pathExt = info.ext
  14750. var pathExtExe = info.extExe
  14751. var found = []
  14752. for (var i = 0, l = pathEnv.length; i < l; i ++) {
  14753. var pathPart = pathEnv[i]
  14754. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  14755. pathPart = pathPart.slice(1, -1)
  14756. var p = path.join(pathPart, cmd)
  14757. if (!pathPart && /^\.[\\\/]/.test(cmd)) {
  14758. p = cmd.slice(0, 2) + p
  14759. }
  14760. for (var j = 0, ll = pathExt.length; j < ll; j ++) {
  14761. var cur = p + pathExt[j]
  14762. var is
  14763. try {
  14764. is = isexe.sync(cur, { pathExt: pathExtExe })
  14765. if (is) {
  14766. if (opt.all)
  14767. found.push(cur)
  14768. else
  14769. return cur
  14770. }
  14771. } catch (ex) {}
  14772. }
  14773. }
  14774. if (opt.all && found.length)
  14775. return found
  14776. if (opt.nothrow)
  14777. return null
  14778. throw getNotFoundError(cmd)
  14779. }
  14780. /***/ }),
  14781. /***/ 816:
  14782. /***/ (function(module) {
  14783. "use strict";
  14784. module.exports = /^#!.*/;
  14785. /***/ }),
  14786. /***/ 818:
  14787. /***/ (function(module, __unusedexports, __webpack_require__) {
  14788. module.exports = isexe
  14789. isexe.sync = sync
  14790. var fs = __webpack_require__(747)
  14791. function checkPathExt (path, options) {
  14792. var pathext = options.pathExt !== undefined ?
  14793. options.pathExt : process.env.PATHEXT
  14794. if (!pathext) {
  14795. return true
  14796. }
  14797. pathext = pathext.split(';')
  14798. if (pathext.indexOf('') !== -1) {
  14799. return true
  14800. }
  14801. for (var i = 0; i < pathext.length; i++) {
  14802. var p = pathext[i].toLowerCase()
  14803. if (p && path.substr(-p.length).toLowerCase() === p) {
  14804. return true
  14805. }
  14806. }
  14807. return false
  14808. }
  14809. function checkStat (stat, path, options) {
  14810. if (!stat.isSymbolicLink() && !stat.isFile()) {
  14811. return false
  14812. }
  14813. return checkPathExt(path, options)
  14814. }
  14815. function isexe (path, options, cb) {
  14816. fs.stat(path, function (er, stat) {
  14817. cb(er, er ? false : checkStat(stat, path, options))
  14818. })
  14819. }
  14820. function sync (path, options) {
  14821. return checkStat(fs.statSync(path), path, options)
  14822. }
  14823. /***/ }),
  14824. /***/ 821:
  14825. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14826. "use strict";
  14827. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  14828. if (k2 === undefined) k2 = k;
  14829. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  14830. }) : (function(o, m, k, k2) {
  14831. if (k2 === undefined) k2 = k;
  14832. o[k2] = m[k];
  14833. }));
  14834. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14835. Object.defineProperty(o, "default", { enumerable: true, value: v });
  14836. }) : function(o, v) {
  14837. o["default"] = v;
  14838. });
  14839. var __importStar = (this && this.__importStar) || function (mod) {
  14840. if (mod && mod.__esModule) return mod;
  14841. var result = {};
  14842. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  14843. __setModuleDefault(result, mod);
  14844. return result;
  14845. };
  14846. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14847. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14848. return new (P || (P = Promise))(function (resolve, reject) {
  14849. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14850. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14851. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14852. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14853. });
  14854. };
  14855. Object.defineProperty(exports, "__esModule", { value: true });
  14856. exports.getInputs = void 0;
  14857. const core = __importStar(__webpack_require__(470));
  14858. const fsHelper = __importStar(__webpack_require__(618));
  14859. const github = __importStar(__webpack_require__(469));
  14860. const path = __importStar(__webpack_require__(622));
  14861. const workflowContextHelper = __importStar(__webpack_require__(642));
  14862. function getInputs() {
  14863. return __awaiter(this, void 0, void 0, function* () {
  14864. const result = {};
  14865. // GitHub workspace
  14866. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  14867. if (!githubWorkspacePath) {
  14868. throw new Error('GITHUB_WORKSPACE not defined');
  14869. }
  14870. githubWorkspacePath = path.resolve(githubWorkspacePath);
  14871. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  14872. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  14873. // Qualified repository
  14874. const qualifiedRepository = core.getInput('repository') ||
  14875. `${github.context.repo.owner}/${github.context.repo.repo}`;
  14876. core.debug(`qualified repository = '${qualifiedRepository}'`);
  14877. const splitRepository = qualifiedRepository.split('/');
  14878. if (splitRepository.length !== 2 ||
  14879. !splitRepository[0] ||
  14880. !splitRepository[1]) {
  14881. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  14882. }
  14883. result.repositoryOwner = splitRepository[0];
  14884. result.repositoryName = splitRepository[1];
  14885. // Repository path
  14886. result.repositoryPath = core.getInput('path') || '.';
  14887. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  14888. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  14889. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  14890. }
  14891. // Workflow repository?
  14892. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  14893. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  14894. // Source branch, source version
  14895. result.ref = core.getInput('ref');
  14896. if (!result.ref) {
  14897. if (isWorkflowRepository) {
  14898. result.ref = github.context.ref;
  14899. result.commit = github.context.sha;
  14900. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  14901. // the ref is unqualifed like "main" instead of "refs/heads/main".
  14902. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  14903. result.ref = `refs/heads/${result.ref}`;
  14904. }
  14905. }
  14906. }
  14907. // SHA?
  14908. else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
  14909. result.commit = result.ref;
  14910. result.ref = '';
  14911. }
  14912. core.debug(`ref = '${result.ref}'`);
  14913. core.debug(`commit = '${result.commit}'`);
  14914. // Clean
  14915. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  14916. core.debug(`clean = ${result.clean}`);
  14917. // Fetch depth
  14918. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  14919. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  14920. result.fetchDepth = 0;
  14921. }
  14922. core.debug(`fetch depth = ${result.fetchDepth}`);
  14923. // LFS
  14924. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  14925. core.debug(`lfs = ${result.lfs}`);
  14926. // Submodules
  14927. result.submodules = false;
  14928. result.nestedSubmodules = false;
  14929. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  14930. if (submodulesString == 'RECURSIVE') {
  14931. result.submodules = true;
  14932. result.nestedSubmodules = true;
  14933. }
  14934. else if (submodulesString == 'TRUE') {
  14935. result.submodules = true;
  14936. }
  14937. core.debug(`submodules = ${result.submodules}`);
  14938. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  14939. // Auth token
  14940. result.authToken = core.getInput('token', { required: true });
  14941. // SSH
  14942. result.sshKey = core.getInput('ssh-key');
  14943. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  14944. result.sshStrict =
  14945. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  14946. // Persist credentials
  14947. result.persistCredentials =
  14948. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  14949. // Workflow organization ID
  14950. result.workflowOrganizationId = yield workflowContextHelper.getOrganizationId();
  14951. return result;
  14952. });
  14953. }
  14954. exports.getInputs = getInputs;
  14955. /***/ }),
  14956. /***/ 826:
  14957. /***/ (function(module, __unusedexports, __webpack_require__) {
  14958. var rng = __webpack_require__(139);
  14959. var bytesToUuid = __webpack_require__(722);
  14960. function v4(options, buf, offset) {
  14961. var i = buf && offset || 0;
  14962. if (typeof(options) == 'string') {
  14963. buf = options === 'binary' ? new Array(16) : null;
  14964. options = null;
  14965. }
  14966. options = options || {};
  14967. var rnds = options.random || (options.rng || rng)();
  14968. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  14969. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  14970. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  14971. // Copy bytes to buffer, if provided
  14972. if (buf) {
  14973. for (var ii = 0; ii < 16; ++ii) {
  14974. buf[i + ii] = rnds[ii];
  14975. }
  14976. }
  14977. return buf || bytesToUuid(rnds);
  14978. }
  14979. module.exports = v4;
  14980. /***/ }),
  14981. /***/ 835:
  14982. /***/ (function(module) {
  14983. module.exports = require("url");
  14984. /***/ }),
  14985. /***/ 842:
  14986. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14987. "use strict";
  14988. Object.defineProperty(exports, '__esModule', { value: true });
  14989. var deprecation = __webpack_require__(692);
  14990. var endpointsByScope = {
  14991. actions: {
  14992. cancelWorkflowRun: {
  14993. method: "POST",
  14994. params: {
  14995. owner: {
  14996. required: true,
  14997. type: "string"
  14998. },
  14999. repo: {
  15000. required: true,
  15001. type: "string"
  15002. },
  15003. run_id: {
  15004. required: true,
  15005. type: "integer"
  15006. }
  15007. },
  15008. url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
  15009. },
  15010. createOrUpdateSecretForRepo: {
  15011. method: "PUT",
  15012. params: {
  15013. encrypted_value: {
  15014. type: "string"
  15015. },
  15016. key_id: {
  15017. type: "string"
  15018. },
  15019. name: {
  15020. required: true,
  15021. type: "string"
  15022. },
  15023. owner: {
  15024. required: true,
  15025. type: "string"
  15026. },
  15027. repo: {
  15028. required: true,
  15029. type: "string"
  15030. }
  15031. },
  15032. url: "/repos/:owner/:repo/actions/secrets/:name"
  15033. },
  15034. createRegistrationToken: {
  15035. method: "POST",
  15036. params: {
  15037. owner: {
  15038. required: true,
  15039. type: "string"
  15040. },
  15041. repo: {
  15042. required: true,
  15043. type: "string"
  15044. }
  15045. },
  15046. url: "/repos/:owner/:repo/actions/runners/registration-token"
  15047. },
  15048. createRemoveToken: {
  15049. method: "POST",
  15050. params: {
  15051. owner: {
  15052. required: true,
  15053. type: "string"
  15054. },
  15055. repo: {
  15056. required: true,
  15057. type: "string"
  15058. }
  15059. },
  15060. url: "/repos/:owner/:repo/actions/runners/remove-token"
  15061. },
  15062. deleteArtifact: {
  15063. method: "DELETE",
  15064. params: {
  15065. artifact_id: {
  15066. required: true,
  15067. type: "integer"
  15068. },
  15069. owner: {
  15070. required: true,
  15071. type: "string"
  15072. },
  15073. repo: {
  15074. required: true,
  15075. type: "string"
  15076. }
  15077. },
  15078. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  15079. },
  15080. deleteSecretFromRepo: {
  15081. method: "DELETE",
  15082. params: {
  15083. name: {
  15084. required: true,
  15085. type: "string"
  15086. },
  15087. owner: {
  15088. required: true,
  15089. type: "string"
  15090. },
  15091. repo: {
  15092. required: true,
  15093. type: "string"
  15094. }
  15095. },
  15096. url: "/repos/:owner/:repo/actions/secrets/:name"
  15097. },
  15098. downloadArtifact: {
  15099. method: "GET",
  15100. params: {
  15101. archive_format: {
  15102. required: true,
  15103. type: "string"
  15104. },
  15105. artifact_id: {
  15106. required: true,
  15107. type: "integer"
  15108. },
  15109. owner: {
  15110. required: true,
  15111. type: "string"
  15112. },
  15113. repo: {
  15114. required: true,
  15115. type: "string"
  15116. }
  15117. },
  15118. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
  15119. },
  15120. getArtifact: {
  15121. method: "GET",
  15122. params: {
  15123. artifact_id: {
  15124. required: true,
  15125. type: "integer"
  15126. },
  15127. owner: {
  15128. required: true,
  15129. type: "string"
  15130. },
  15131. repo: {
  15132. required: true,
  15133. type: "string"
  15134. }
  15135. },
  15136. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  15137. },
  15138. getPublicKey: {
  15139. method: "GET",
  15140. params: {
  15141. owner: {
  15142. required: true,
  15143. type: "string"
  15144. },
  15145. repo: {
  15146. required: true,
  15147. type: "string"
  15148. }
  15149. },
  15150. url: "/repos/:owner/:repo/actions/secrets/public-key"
  15151. },
  15152. getSecret: {
  15153. method: "GET",
  15154. params: {
  15155. name: {
  15156. required: true,
  15157. type: "string"
  15158. },
  15159. owner: {
  15160. required: true,
  15161. type: "string"
  15162. },
  15163. page: {
  15164. type: "integer"
  15165. },
  15166. per_page: {
  15167. type: "integer"
  15168. },
  15169. repo: {
  15170. required: true,
  15171. type: "string"
  15172. }
  15173. },
  15174. url: "/repos/:owner/:repo/actions/secrets/:name"
  15175. },
  15176. getSelfHostedRunner: {
  15177. method: "GET",
  15178. params: {
  15179. owner: {
  15180. required: true,
  15181. type: "string"
  15182. },
  15183. repo: {
  15184. required: true,
  15185. type: "string"
  15186. },
  15187. runner_id: {
  15188. required: true,
  15189. type: "integer"
  15190. }
  15191. },
  15192. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  15193. },
  15194. getWorkflow: {
  15195. method: "GET",
  15196. params: {
  15197. owner: {
  15198. required: true,
  15199. type: "string"
  15200. },
  15201. repo: {
  15202. required: true,
  15203. type: "string"
  15204. },
  15205. workflow_id: {
  15206. required: true,
  15207. type: "integer"
  15208. }
  15209. },
  15210. url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
  15211. },
  15212. getWorkflowJob: {
  15213. method: "GET",
  15214. params: {
  15215. job_id: {
  15216. required: true,
  15217. type: "integer"
  15218. },
  15219. owner: {
  15220. required: true,
  15221. type: "string"
  15222. },
  15223. repo: {
  15224. required: true,
  15225. type: "string"
  15226. }
  15227. },
  15228. url: "/repos/:owner/:repo/actions/jobs/:job_id"
  15229. },
  15230. getWorkflowRun: {
  15231. method: "GET",
  15232. params: {
  15233. owner: {
  15234. required: true,
  15235. type: "string"
  15236. },
  15237. repo: {
  15238. required: true,
  15239. type: "string"
  15240. },
  15241. run_id: {
  15242. required: true,
  15243. type: "integer"
  15244. }
  15245. },
  15246. url: "/repos/:owner/:repo/actions/runs/:run_id"
  15247. },
  15248. listDownloadsForSelfHostedRunnerApplication: {
  15249. method: "GET",
  15250. params: {
  15251. owner: {
  15252. required: true,
  15253. type: "string"
  15254. },
  15255. repo: {
  15256. required: true,
  15257. type: "string"
  15258. }
  15259. },
  15260. url: "/repos/:owner/:repo/actions/runners/downloads"
  15261. },
  15262. listJobsForWorkflowRun: {
  15263. method: "GET",
  15264. params: {
  15265. owner: {
  15266. required: true,
  15267. type: "string"
  15268. },
  15269. page: {
  15270. type: "integer"
  15271. },
  15272. per_page: {
  15273. type: "integer"
  15274. },
  15275. repo: {
  15276. required: true,
  15277. type: "string"
  15278. },
  15279. run_id: {
  15280. required: true,
  15281. type: "integer"
  15282. }
  15283. },
  15284. url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
  15285. },
  15286. listRepoWorkflowRuns: {
  15287. method: "GET",
  15288. params: {
  15289. actor: {
  15290. type: "string"
  15291. },
  15292. branch: {
  15293. type: "string"
  15294. },
  15295. event: {
  15296. type: "string"
  15297. },
  15298. owner: {
  15299. required: true,
  15300. type: "string"
  15301. },
  15302. page: {
  15303. type: "integer"
  15304. },
  15305. per_page: {
  15306. type: "integer"
  15307. },
  15308. repo: {
  15309. required: true,
  15310. type: "string"
  15311. },
  15312. status: {
  15313. enum: ["completed", "status", "conclusion"],
  15314. type: "string"
  15315. }
  15316. },
  15317. url: "/repos/:owner/:repo/actions/runs"
  15318. },
  15319. listRepoWorkflows: {
  15320. method: "GET",
  15321. params: {
  15322. owner: {
  15323. required: true,
  15324. type: "string"
  15325. },
  15326. page: {
  15327. type: "integer"
  15328. },
  15329. per_page: {
  15330. type: "integer"
  15331. },
  15332. repo: {
  15333. required: true,
  15334. type: "string"
  15335. }
  15336. },
  15337. url: "/repos/:owner/:repo/actions/workflows"
  15338. },
  15339. listSecretsForRepo: {
  15340. method: "GET",
  15341. params: {
  15342. owner: {
  15343. required: true,
  15344. type: "string"
  15345. },
  15346. page: {
  15347. type: "integer"
  15348. },
  15349. per_page: {
  15350. type: "integer"
  15351. },
  15352. repo: {
  15353. required: true,
  15354. type: "string"
  15355. }
  15356. },
  15357. url: "/repos/:owner/:repo/actions/secrets"
  15358. },
  15359. listSelfHostedRunnersForRepo: {
  15360. method: "GET",
  15361. params: {
  15362. owner: {
  15363. required: true,
  15364. type: "string"
  15365. },
  15366. page: {
  15367. type: "integer"
  15368. },
  15369. per_page: {
  15370. type: "integer"
  15371. },
  15372. repo: {
  15373. required: true,
  15374. type: "string"
  15375. }
  15376. },
  15377. url: "/repos/:owner/:repo/actions/runners"
  15378. },
  15379. listWorkflowJobLogs: {
  15380. method: "GET",
  15381. params: {
  15382. job_id: {
  15383. required: true,
  15384. type: "integer"
  15385. },
  15386. owner: {
  15387. required: true,
  15388. type: "string"
  15389. },
  15390. page: {
  15391. type: "integer"
  15392. },
  15393. per_page: {
  15394. type: "integer"
  15395. },
  15396. repo: {
  15397. required: true,
  15398. type: "string"
  15399. }
  15400. },
  15401. url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
  15402. },
  15403. listWorkflowRunArtifacts: {
  15404. method: "GET",
  15405. params: {
  15406. owner: {
  15407. required: true,
  15408. type: "string"
  15409. },
  15410. page: {
  15411. type: "integer"
  15412. },
  15413. per_page: {
  15414. type: "integer"
  15415. },
  15416. repo: {
  15417. required: true,
  15418. type: "string"
  15419. },
  15420. run_id: {
  15421. required: true,
  15422. type: "integer"
  15423. }
  15424. },
  15425. url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
  15426. },
  15427. listWorkflowRunLogs: {
  15428. method: "GET",
  15429. params: {
  15430. owner: {
  15431. required: true,
  15432. type: "string"
  15433. },
  15434. page: {
  15435. type: "integer"
  15436. },
  15437. per_page: {
  15438. type: "integer"
  15439. },
  15440. repo: {
  15441. required: true,
  15442. type: "string"
  15443. },
  15444. run_id: {
  15445. required: true,
  15446. type: "integer"
  15447. }
  15448. },
  15449. url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
  15450. },
  15451. listWorkflowRuns: {
  15452. method: "GET",
  15453. params: {
  15454. actor: {
  15455. type: "string"
  15456. },
  15457. branch: {
  15458. type: "string"
  15459. },
  15460. event: {
  15461. type: "string"
  15462. },
  15463. owner: {
  15464. required: true,
  15465. type: "string"
  15466. },
  15467. page: {
  15468. type: "integer"
  15469. },
  15470. per_page: {
  15471. type: "integer"
  15472. },
  15473. repo: {
  15474. required: true,
  15475. type: "string"
  15476. },
  15477. status: {
  15478. enum: ["completed", "status", "conclusion"],
  15479. type: "string"
  15480. },
  15481. workflow_id: {
  15482. required: true,
  15483. type: "integer"
  15484. }
  15485. },
  15486. url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
  15487. },
  15488. reRunWorkflow: {
  15489. method: "POST",
  15490. params: {
  15491. owner: {
  15492. required: true,
  15493. type: "string"
  15494. },
  15495. repo: {
  15496. required: true,
  15497. type: "string"
  15498. },
  15499. run_id: {
  15500. required: true,
  15501. type: "integer"
  15502. }
  15503. },
  15504. url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
  15505. },
  15506. removeSelfHostedRunner: {
  15507. method: "DELETE",
  15508. params: {
  15509. owner: {
  15510. required: true,
  15511. type: "string"
  15512. },
  15513. repo: {
  15514. required: true,
  15515. type: "string"
  15516. },
  15517. runner_id: {
  15518. required: true,
  15519. type: "integer"
  15520. }
  15521. },
  15522. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  15523. }
  15524. },
  15525. activity: {
  15526. checkStarringRepo: {
  15527. method: "GET",
  15528. params: {
  15529. owner: {
  15530. required: true,
  15531. type: "string"
  15532. },
  15533. repo: {
  15534. required: true,
  15535. type: "string"
  15536. }
  15537. },
  15538. url: "/user/starred/:owner/:repo"
  15539. },
  15540. deleteRepoSubscription: {
  15541. method: "DELETE",
  15542. params: {
  15543. owner: {
  15544. required: true,
  15545. type: "string"
  15546. },
  15547. repo: {
  15548. required: true,
  15549. type: "string"
  15550. }
  15551. },
  15552. url: "/repos/:owner/:repo/subscription"
  15553. },
  15554. deleteThreadSubscription: {
  15555. method: "DELETE",
  15556. params: {
  15557. thread_id: {
  15558. required: true,
  15559. type: "integer"
  15560. }
  15561. },
  15562. url: "/notifications/threads/:thread_id/subscription"
  15563. },
  15564. getRepoSubscription: {
  15565. method: "GET",
  15566. params: {
  15567. owner: {
  15568. required: true,
  15569. type: "string"
  15570. },
  15571. repo: {
  15572. required: true,
  15573. type: "string"
  15574. }
  15575. },
  15576. url: "/repos/:owner/:repo/subscription"
  15577. },
  15578. getThread: {
  15579. method: "GET",
  15580. params: {
  15581. thread_id: {
  15582. required: true,
  15583. type: "integer"
  15584. }
  15585. },
  15586. url: "/notifications/threads/:thread_id"
  15587. },
  15588. getThreadSubscription: {
  15589. method: "GET",
  15590. params: {
  15591. thread_id: {
  15592. required: true,
  15593. type: "integer"
  15594. }
  15595. },
  15596. url: "/notifications/threads/:thread_id/subscription"
  15597. },
  15598. listEventsForOrg: {
  15599. method: "GET",
  15600. params: {
  15601. org: {
  15602. required: true,
  15603. type: "string"
  15604. },
  15605. page: {
  15606. type: "integer"
  15607. },
  15608. per_page: {
  15609. type: "integer"
  15610. },
  15611. username: {
  15612. required: true,
  15613. type: "string"
  15614. }
  15615. },
  15616. url: "/users/:username/events/orgs/:org"
  15617. },
  15618. listEventsForUser: {
  15619. method: "GET",
  15620. params: {
  15621. page: {
  15622. type: "integer"
  15623. },
  15624. per_page: {
  15625. type: "integer"
  15626. },
  15627. username: {
  15628. required: true,
  15629. type: "string"
  15630. }
  15631. },
  15632. url: "/users/:username/events"
  15633. },
  15634. listFeeds: {
  15635. method: "GET",
  15636. params: {},
  15637. url: "/feeds"
  15638. },
  15639. listNotifications: {
  15640. method: "GET",
  15641. params: {
  15642. all: {
  15643. type: "boolean"
  15644. },
  15645. before: {
  15646. type: "string"
  15647. },
  15648. page: {
  15649. type: "integer"
  15650. },
  15651. participating: {
  15652. type: "boolean"
  15653. },
  15654. per_page: {
  15655. type: "integer"
  15656. },
  15657. since: {
  15658. type: "string"
  15659. }
  15660. },
  15661. url: "/notifications"
  15662. },
  15663. listNotificationsForRepo: {
  15664. method: "GET",
  15665. params: {
  15666. all: {
  15667. type: "boolean"
  15668. },
  15669. before: {
  15670. type: "string"
  15671. },
  15672. owner: {
  15673. required: true,
  15674. type: "string"
  15675. },
  15676. page: {
  15677. type: "integer"
  15678. },
  15679. participating: {
  15680. type: "boolean"
  15681. },
  15682. per_page: {
  15683. type: "integer"
  15684. },
  15685. repo: {
  15686. required: true,
  15687. type: "string"
  15688. },
  15689. since: {
  15690. type: "string"
  15691. }
  15692. },
  15693. url: "/repos/:owner/:repo/notifications"
  15694. },
  15695. listPublicEvents: {
  15696. method: "GET",
  15697. params: {
  15698. page: {
  15699. type: "integer"
  15700. },
  15701. per_page: {
  15702. type: "integer"
  15703. }
  15704. },
  15705. url: "/events"
  15706. },
  15707. listPublicEventsForOrg: {
  15708. method: "GET",
  15709. params: {
  15710. org: {
  15711. required: true,
  15712. type: "string"
  15713. },
  15714. page: {
  15715. type: "integer"
  15716. },
  15717. per_page: {
  15718. type: "integer"
  15719. }
  15720. },
  15721. url: "/orgs/:org/events"
  15722. },
  15723. listPublicEventsForRepoNetwork: {
  15724. method: "GET",
  15725. params: {
  15726. owner: {
  15727. required: true,
  15728. type: "string"
  15729. },
  15730. page: {
  15731. type: "integer"
  15732. },
  15733. per_page: {
  15734. type: "integer"
  15735. },
  15736. repo: {
  15737. required: true,
  15738. type: "string"
  15739. }
  15740. },
  15741. url: "/networks/:owner/:repo/events"
  15742. },
  15743. listPublicEventsForUser: {
  15744. method: "GET",
  15745. params: {
  15746. page: {
  15747. type: "integer"
  15748. },
  15749. per_page: {
  15750. type: "integer"
  15751. },
  15752. username: {
  15753. required: true,
  15754. type: "string"
  15755. }
  15756. },
  15757. url: "/users/:username/events/public"
  15758. },
  15759. listReceivedEventsForUser: {
  15760. method: "GET",
  15761. params: {
  15762. page: {
  15763. type: "integer"
  15764. },
  15765. per_page: {
  15766. type: "integer"
  15767. },
  15768. username: {
  15769. required: true,
  15770. type: "string"
  15771. }
  15772. },
  15773. url: "/users/:username/received_events"
  15774. },
  15775. listReceivedPublicEventsForUser: {
  15776. method: "GET",
  15777. params: {
  15778. page: {
  15779. type: "integer"
  15780. },
  15781. per_page: {
  15782. type: "integer"
  15783. },
  15784. username: {
  15785. required: true,
  15786. type: "string"
  15787. }
  15788. },
  15789. url: "/users/:username/received_events/public"
  15790. },
  15791. listRepoEvents: {
  15792. method: "GET",
  15793. params: {
  15794. owner: {
  15795. required: true,
  15796. type: "string"
  15797. },
  15798. page: {
  15799. type: "integer"
  15800. },
  15801. per_page: {
  15802. type: "integer"
  15803. },
  15804. repo: {
  15805. required: true,
  15806. type: "string"
  15807. }
  15808. },
  15809. url: "/repos/:owner/:repo/events"
  15810. },
  15811. listReposStarredByAuthenticatedUser: {
  15812. method: "GET",
  15813. params: {
  15814. direction: {
  15815. enum: ["asc", "desc"],
  15816. type: "string"
  15817. },
  15818. page: {
  15819. type: "integer"
  15820. },
  15821. per_page: {
  15822. type: "integer"
  15823. },
  15824. sort: {
  15825. enum: ["created", "updated"],
  15826. type: "string"
  15827. }
  15828. },
  15829. url: "/user/starred"
  15830. },
  15831. listReposStarredByUser: {
  15832. method: "GET",
  15833. params: {
  15834. direction: {
  15835. enum: ["asc", "desc"],
  15836. type: "string"
  15837. },
  15838. page: {
  15839. type: "integer"
  15840. },
  15841. per_page: {
  15842. type: "integer"
  15843. },
  15844. sort: {
  15845. enum: ["created", "updated"],
  15846. type: "string"
  15847. },
  15848. username: {
  15849. required: true,
  15850. type: "string"
  15851. }
  15852. },
  15853. url: "/users/:username/starred"
  15854. },
  15855. listReposWatchedByUser: {
  15856. method: "GET",
  15857. params: {
  15858. page: {
  15859. type: "integer"
  15860. },
  15861. per_page: {
  15862. type: "integer"
  15863. },
  15864. username: {
  15865. required: true,
  15866. type: "string"
  15867. }
  15868. },
  15869. url: "/users/:username/subscriptions"
  15870. },
  15871. listStargazersForRepo: {
  15872. method: "GET",
  15873. params: {
  15874. owner: {
  15875. required: true,
  15876. type: "string"
  15877. },
  15878. page: {
  15879. type: "integer"
  15880. },
  15881. per_page: {
  15882. type: "integer"
  15883. },
  15884. repo: {
  15885. required: true,
  15886. type: "string"
  15887. }
  15888. },
  15889. url: "/repos/:owner/:repo/stargazers"
  15890. },
  15891. listWatchedReposForAuthenticatedUser: {
  15892. method: "GET",
  15893. params: {
  15894. page: {
  15895. type: "integer"
  15896. },
  15897. per_page: {
  15898. type: "integer"
  15899. }
  15900. },
  15901. url: "/user/subscriptions"
  15902. },
  15903. listWatchersForRepo: {
  15904. method: "GET",
  15905. params: {
  15906. owner: {
  15907. required: true,
  15908. type: "string"
  15909. },
  15910. page: {
  15911. type: "integer"
  15912. },
  15913. per_page: {
  15914. type: "integer"
  15915. },
  15916. repo: {
  15917. required: true,
  15918. type: "string"
  15919. }
  15920. },
  15921. url: "/repos/:owner/:repo/subscribers"
  15922. },
  15923. markAsRead: {
  15924. method: "PUT",
  15925. params: {
  15926. last_read_at: {
  15927. type: "string"
  15928. }
  15929. },
  15930. url: "/notifications"
  15931. },
  15932. markNotificationsAsReadForRepo: {
  15933. method: "PUT",
  15934. params: {
  15935. last_read_at: {
  15936. type: "string"
  15937. },
  15938. owner: {
  15939. required: true,
  15940. type: "string"
  15941. },
  15942. repo: {
  15943. required: true,
  15944. type: "string"
  15945. }
  15946. },
  15947. url: "/repos/:owner/:repo/notifications"
  15948. },
  15949. markThreadAsRead: {
  15950. method: "PATCH",
  15951. params: {
  15952. thread_id: {
  15953. required: true,
  15954. type: "integer"
  15955. }
  15956. },
  15957. url: "/notifications/threads/:thread_id"
  15958. },
  15959. setRepoSubscription: {
  15960. method: "PUT",
  15961. params: {
  15962. ignored: {
  15963. type: "boolean"
  15964. },
  15965. owner: {
  15966. required: true,
  15967. type: "string"
  15968. },
  15969. repo: {
  15970. required: true,
  15971. type: "string"
  15972. },
  15973. subscribed: {
  15974. type: "boolean"
  15975. }
  15976. },
  15977. url: "/repos/:owner/:repo/subscription"
  15978. },
  15979. setThreadSubscription: {
  15980. method: "PUT",
  15981. params: {
  15982. ignored: {
  15983. type: "boolean"
  15984. },
  15985. thread_id: {
  15986. required: true,
  15987. type: "integer"
  15988. }
  15989. },
  15990. url: "/notifications/threads/:thread_id/subscription"
  15991. },
  15992. starRepo: {
  15993. method: "PUT",
  15994. params: {
  15995. owner: {
  15996. required: true,
  15997. type: "string"
  15998. },
  15999. repo: {
  16000. required: true,
  16001. type: "string"
  16002. }
  16003. },
  16004. url: "/user/starred/:owner/:repo"
  16005. },
  16006. unstarRepo: {
  16007. method: "DELETE",
  16008. params: {
  16009. owner: {
  16010. required: true,
  16011. type: "string"
  16012. },
  16013. repo: {
  16014. required: true,
  16015. type: "string"
  16016. }
  16017. },
  16018. url: "/user/starred/:owner/:repo"
  16019. }
  16020. },
  16021. apps: {
  16022. addRepoToInstallation: {
  16023. headers: {
  16024. accept: "application/vnd.github.machine-man-preview+json"
  16025. },
  16026. method: "PUT",
  16027. params: {
  16028. installation_id: {
  16029. required: true,
  16030. type: "integer"
  16031. },
  16032. repository_id: {
  16033. required: true,
  16034. type: "integer"
  16035. }
  16036. },
  16037. url: "/user/installations/:installation_id/repositories/:repository_id"
  16038. },
  16039. checkAccountIsAssociatedWithAny: {
  16040. method: "GET",
  16041. params: {
  16042. account_id: {
  16043. required: true,
  16044. type: "integer"
  16045. }
  16046. },
  16047. url: "/marketplace_listing/accounts/:account_id"
  16048. },
  16049. checkAccountIsAssociatedWithAnyStubbed: {
  16050. method: "GET",
  16051. params: {
  16052. account_id: {
  16053. required: true,
  16054. type: "integer"
  16055. }
  16056. },
  16057. url: "/marketplace_listing/stubbed/accounts/:account_id"
  16058. },
  16059. checkAuthorization: {
  16060. deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
  16061. method: "GET",
  16062. params: {
  16063. access_token: {
  16064. required: true,
  16065. type: "string"
  16066. },
  16067. client_id: {
  16068. required: true,
  16069. type: "string"
  16070. }
  16071. },
  16072. url: "/applications/:client_id/tokens/:access_token"
  16073. },
  16074. checkToken: {
  16075. headers: {
  16076. accept: "application/vnd.github.doctor-strange-preview+json"
  16077. },
  16078. method: "POST",
  16079. params: {
  16080. access_token: {
  16081. type: "string"
  16082. },
  16083. client_id: {
  16084. required: true,
  16085. type: "string"
  16086. }
  16087. },
  16088. url: "/applications/:client_id/token"
  16089. },
  16090. createContentAttachment: {
  16091. headers: {
  16092. accept: "application/vnd.github.corsair-preview+json"
  16093. },
  16094. method: "POST",
  16095. params: {
  16096. body: {
  16097. required: true,
  16098. type: "string"
  16099. },
  16100. content_reference_id: {
  16101. required: true,
  16102. type: "integer"
  16103. },
  16104. title: {
  16105. required: true,
  16106. type: "string"
  16107. }
  16108. },
  16109. url: "/content_references/:content_reference_id/attachments"
  16110. },
  16111. createFromManifest: {
  16112. headers: {
  16113. accept: "application/vnd.github.fury-preview+json"
  16114. },
  16115. method: "POST",
  16116. params: {
  16117. code: {
  16118. required: true,
  16119. type: "string"
  16120. }
  16121. },
  16122. url: "/app-manifests/:code/conversions"
  16123. },
  16124. createInstallationToken: {
  16125. headers: {
  16126. accept: "application/vnd.github.machine-man-preview+json"
  16127. },
  16128. method: "POST",
  16129. params: {
  16130. installation_id: {
  16131. required: true,
  16132. type: "integer"
  16133. },
  16134. permissions: {
  16135. type: "object"
  16136. },
  16137. repository_ids: {
  16138. type: "integer[]"
  16139. }
  16140. },
  16141. url: "/app/installations/:installation_id/access_tokens"
  16142. },
  16143. deleteAuthorization: {
  16144. headers: {
  16145. accept: "application/vnd.github.doctor-strange-preview+json"
  16146. },
  16147. method: "DELETE",
  16148. params: {
  16149. access_token: {
  16150. type: "string"
  16151. },
  16152. client_id: {
  16153. required: true,
  16154. type: "string"
  16155. }
  16156. },
  16157. url: "/applications/:client_id/grant"
  16158. },
  16159. deleteInstallation: {
  16160. headers: {
  16161. accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
  16162. },
  16163. method: "DELETE",
  16164. params: {
  16165. installation_id: {
  16166. required: true,
  16167. type: "integer"
  16168. }
  16169. },
  16170. url: "/app/installations/:installation_id"
  16171. },
  16172. deleteToken: {
  16173. headers: {
  16174. accept: "application/vnd.github.doctor-strange-preview+json"
  16175. },
  16176. method: "DELETE",
  16177. params: {
  16178. access_token: {
  16179. type: "string"
  16180. },
  16181. client_id: {
  16182. required: true,
  16183. type: "string"
  16184. }
  16185. },
  16186. url: "/applications/:client_id/token"
  16187. },
  16188. findOrgInstallation: {
  16189. deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
  16190. headers: {
  16191. accept: "application/vnd.github.machine-man-preview+json"
  16192. },
  16193. method: "GET",
  16194. params: {
  16195. org: {
  16196. required: true,
  16197. type: "string"
  16198. }
  16199. },
  16200. url: "/orgs/:org/installation"
  16201. },
  16202. findRepoInstallation: {
  16203. deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
  16204. headers: {
  16205. accept: "application/vnd.github.machine-man-preview+json"
  16206. },
  16207. method: "GET",
  16208. params: {
  16209. owner: {
  16210. required: true,
  16211. type: "string"
  16212. },
  16213. repo: {
  16214. required: true,
  16215. type: "string"
  16216. }
  16217. },
  16218. url: "/repos/:owner/:repo/installation"
  16219. },
  16220. findUserInstallation: {
  16221. deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
  16222. headers: {
  16223. accept: "application/vnd.github.machine-man-preview+json"
  16224. },
  16225. method: "GET",
  16226. params: {
  16227. username: {
  16228. required: true,
  16229. type: "string"
  16230. }
  16231. },
  16232. url: "/users/:username/installation"
  16233. },
  16234. getAuthenticated: {
  16235. headers: {
  16236. accept: "application/vnd.github.machine-man-preview+json"
  16237. },
  16238. method: "GET",
  16239. params: {},
  16240. url: "/app"
  16241. },
  16242. getBySlug: {
  16243. headers: {
  16244. accept: "application/vnd.github.machine-man-preview+json"
  16245. },
  16246. method: "GET",
  16247. params: {
  16248. app_slug: {
  16249. required: true,
  16250. type: "string"
  16251. }
  16252. },
  16253. url: "/apps/:app_slug"
  16254. },
  16255. getInstallation: {
  16256. headers: {
  16257. accept: "application/vnd.github.machine-man-preview+json"
  16258. },
  16259. method: "GET",
  16260. params: {
  16261. installation_id: {
  16262. required: true,
  16263. type: "integer"
  16264. }
  16265. },
  16266. url: "/app/installations/:installation_id"
  16267. },
  16268. getOrgInstallation: {
  16269. headers: {
  16270. accept: "application/vnd.github.machine-man-preview+json"
  16271. },
  16272. method: "GET",
  16273. params: {
  16274. org: {
  16275. required: true,
  16276. type: "string"
  16277. }
  16278. },
  16279. url: "/orgs/:org/installation"
  16280. },
  16281. getRepoInstallation: {
  16282. headers: {
  16283. accept: "application/vnd.github.machine-man-preview+json"
  16284. },
  16285. method: "GET",
  16286. params: {
  16287. owner: {
  16288. required: true,
  16289. type: "string"
  16290. },
  16291. repo: {
  16292. required: true,
  16293. type: "string"
  16294. }
  16295. },
  16296. url: "/repos/:owner/:repo/installation"
  16297. },
  16298. getUserInstallation: {
  16299. headers: {
  16300. accept: "application/vnd.github.machine-man-preview+json"
  16301. },
  16302. method: "GET",
  16303. params: {
  16304. username: {
  16305. required: true,
  16306. type: "string"
  16307. }
  16308. },
  16309. url: "/users/:username/installation"
  16310. },
  16311. listAccountsUserOrOrgOnPlan: {
  16312. method: "GET",
  16313. params: {
  16314. direction: {
  16315. enum: ["asc", "desc"],
  16316. type: "string"
  16317. },
  16318. page: {
  16319. type: "integer"
  16320. },
  16321. per_page: {
  16322. type: "integer"
  16323. },
  16324. plan_id: {
  16325. required: true,
  16326. type: "integer"
  16327. },
  16328. sort: {
  16329. enum: ["created", "updated"],
  16330. type: "string"
  16331. }
  16332. },
  16333. url: "/marketplace_listing/plans/:plan_id/accounts"
  16334. },
  16335. listAccountsUserOrOrgOnPlanStubbed: {
  16336. method: "GET",
  16337. params: {
  16338. direction: {
  16339. enum: ["asc", "desc"],
  16340. type: "string"
  16341. },
  16342. page: {
  16343. type: "integer"
  16344. },
  16345. per_page: {
  16346. type: "integer"
  16347. },
  16348. plan_id: {
  16349. required: true,
  16350. type: "integer"
  16351. },
  16352. sort: {
  16353. enum: ["created", "updated"],
  16354. type: "string"
  16355. }
  16356. },
  16357. url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
  16358. },
  16359. listInstallationReposForAuthenticatedUser: {
  16360. headers: {
  16361. accept: "application/vnd.github.machine-man-preview+json"
  16362. },
  16363. method: "GET",
  16364. params: {
  16365. installation_id: {
  16366. required: true,
  16367. type: "integer"
  16368. },
  16369. page: {
  16370. type: "integer"
  16371. },
  16372. per_page: {
  16373. type: "integer"
  16374. }
  16375. },
  16376. url: "/user/installations/:installation_id/repositories"
  16377. },
  16378. listInstallations: {
  16379. headers: {
  16380. accept: "application/vnd.github.machine-man-preview+json"
  16381. },
  16382. method: "GET",
  16383. params: {
  16384. page: {
  16385. type: "integer"
  16386. },
  16387. per_page: {
  16388. type: "integer"
  16389. }
  16390. },
  16391. url: "/app/installations"
  16392. },
  16393. listInstallationsForAuthenticatedUser: {
  16394. headers: {
  16395. accept: "application/vnd.github.machine-man-preview+json"
  16396. },
  16397. method: "GET",
  16398. params: {
  16399. page: {
  16400. type: "integer"
  16401. },
  16402. per_page: {
  16403. type: "integer"
  16404. }
  16405. },
  16406. url: "/user/installations"
  16407. },
  16408. listMarketplacePurchasesForAuthenticatedUser: {
  16409. method: "GET",
  16410. params: {
  16411. page: {
  16412. type: "integer"
  16413. },
  16414. per_page: {
  16415. type: "integer"
  16416. }
  16417. },
  16418. url: "/user/marketplace_purchases"
  16419. },
  16420. listMarketplacePurchasesForAuthenticatedUserStubbed: {
  16421. method: "GET",
  16422. params: {
  16423. page: {
  16424. type: "integer"
  16425. },
  16426. per_page: {
  16427. type: "integer"
  16428. }
  16429. },
  16430. url: "/user/marketplace_purchases/stubbed"
  16431. },
  16432. listPlans: {
  16433. method: "GET",
  16434. params: {
  16435. page: {
  16436. type: "integer"
  16437. },
  16438. per_page: {
  16439. type: "integer"
  16440. }
  16441. },
  16442. url: "/marketplace_listing/plans"
  16443. },
  16444. listPlansStubbed: {
  16445. method: "GET",
  16446. params: {
  16447. page: {
  16448. type: "integer"
  16449. },
  16450. per_page: {
  16451. type: "integer"
  16452. }
  16453. },
  16454. url: "/marketplace_listing/stubbed/plans"
  16455. },
  16456. listRepos: {
  16457. headers: {
  16458. accept: "application/vnd.github.machine-man-preview+json"
  16459. },
  16460. method: "GET",
  16461. params: {
  16462. page: {
  16463. type: "integer"
  16464. },
  16465. per_page: {
  16466. type: "integer"
  16467. }
  16468. },
  16469. url: "/installation/repositories"
  16470. },
  16471. removeRepoFromInstallation: {
  16472. headers: {
  16473. accept: "application/vnd.github.machine-man-preview+json"
  16474. },
  16475. method: "DELETE",
  16476. params: {
  16477. installation_id: {
  16478. required: true,
  16479. type: "integer"
  16480. },
  16481. repository_id: {
  16482. required: true,
  16483. type: "integer"
  16484. }
  16485. },
  16486. url: "/user/installations/:installation_id/repositories/:repository_id"
  16487. },
  16488. resetAuthorization: {
  16489. deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
  16490. method: "POST",
  16491. params: {
  16492. access_token: {
  16493. required: true,
  16494. type: "string"
  16495. },
  16496. client_id: {
  16497. required: true,
  16498. type: "string"
  16499. }
  16500. },
  16501. url: "/applications/:client_id/tokens/:access_token"
  16502. },
  16503. resetToken: {
  16504. headers: {
  16505. accept: "application/vnd.github.doctor-strange-preview+json"
  16506. },
  16507. method: "PATCH",
  16508. params: {
  16509. access_token: {
  16510. type: "string"
  16511. },
  16512. client_id: {
  16513. required: true,
  16514. type: "string"
  16515. }
  16516. },
  16517. url: "/applications/:client_id/token"
  16518. },
  16519. revokeAuthorizationForApplication: {
  16520. deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
  16521. method: "DELETE",
  16522. params: {
  16523. access_token: {
  16524. required: true,
  16525. type: "string"
  16526. },
  16527. client_id: {
  16528. required: true,
  16529. type: "string"
  16530. }
  16531. },
  16532. url: "/applications/:client_id/tokens/:access_token"
  16533. },
  16534. revokeGrantForApplication: {
  16535. deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
  16536. method: "DELETE",
  16537. params: {
  16538. access_token: {
  16539. required: true,
  16540. type: "string"
  16541. },
  16542. client_id: {
  16543. required: true,
  16544. type: "string"
  16545. }
  16546. },
  16547. url: "/applications/:client_id/grants/:access_token"
  16548. },
  16549. revokeInstallationToken: {
  16550. headers: {
  16551. accept: "application/vnd.github.gambit-preview+json"
  16552. },
  16553. method: "DELETE",
  16554. params: {},
  16555. url: "/installation/token"
  16556. }
  16557. },
  16558. checks: {
  16559. create: {
  16560. headers: {
  16561. accept: "application/vnd.github.antiope-preview+json"
  16562. },
  16563. method: "POST",
  16564. params: {
  16565. actions: {
  16566. type: "object[]"
  16567. },
  16568. "actions[].description": {
  16569. required: true,
  16570. type: "string"
  16571. },
  16572. "actions[].identifier": {
  16573. required: true,
  16574. type: "string"
  16575. },
  16576. "actions[].label": {
  16577. required: true,
  16578. type: "string"
  16579. },
  16580. completed_at: {
  16581. type: "string"
  16582. },
  16583. conclusion: {
  16584. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  16585. type: "string"
  16586. },
  16587. details_url: {
  16588. type: "string"
  16589. },
  16590. external_id: {
  16591. type: "string"
  16592. },
  16593. head_sha: {
  16594. required: true,
  16595. type: "string"
  16596. },
  16597. name: {
  16598. required: true,
  16599. type: "string"
  16600. },
  16601. output: {
  16602. type: "object"
  16603. },
  16604. "output.annotations": {
  16605. type: "object[]"
  16606. },
  16607. "output.annotations[].annotation_level": {
  16608. enum: ["notice", "warning", "failure"],
  16609. required: true,
  16610. type: "string"
  16611. },
  16612. "output.annotations[].end_column": {
  16613. type: "integer"
  16614. },
  16615. "output.annotations[].end_line": {
  16616. required: true,
  16617. type: "integer"
  16618. },
  16619. "output.annotations[].message": {
  16620. required: true,
  16621. type: "string"
  16622. },
  16623. "output.annotations[].path": {
  16624. required: true,
  16625. type: "string"
  16626. },
  16627. "output.annotations[].raw_details": {
  16628. type: "string"
  16629. },
  16630. "output.annotations[].start_column": {
  16631. type: "integer"
  16632. },
  16633. "output.annotations[].start_line": {
  16634. required: true,
  16635. type: "integer"
  16636. },
  16637. "output.annotations[].title": {
  16638. type: "string"
  16639. },
  16640. "output.images": {
  16641. type: "object[]"
  16642. },
  16643. "output.images[].alt": {
  16644. required: true,
  16645. type: "string"
  16646. },
  16647. "output.images[].caption": {
  16648. type: "string"
  16649. },
  16650. "output.images[].image_url": {
  16651. required: true,
  16652. type: "string"
  16653. },
  16654. "output.summary": {
  16655. required: true,
  16656. type: "string"
  16657. },
  16658. "output.text": {
  16659. type: "string"
  16660. },
  16661. "output.title": {
  16662. required: true,
  16663. type: "string"
  16664. },
  16665. owner: {
  16666. required: true,
  16667. type: "string"
  16668. },
  16669. repo: {
  16670. required: true,
  16671. type: "string"
  16672. },
  16673. started_at: {
  16674. type: "string"
  16675. },
  16676. status: {
  16677. enum: ["queued", "in_progress", "completed"],
  16678. type: "string"
  16679. }
  16680. },
  16681. url: "/repos/:owner/:repo/check-runs"
  16682. },
  16683. createSuite: {
  16684. headers: {
  16685. accept: "application/vnd.github.antiope-preview+json"
  16686. },
  16687. method: "POST",
  16688. params: {
  16689. head_sha: {
  16690. required: true,
  16691. type: "string"
  16692. },
  16693. owner: {
  16694. required: true,
  16695. type: "string"
  16696. },
  16697. repo: {
  16698. required: true,
  16699. type: "string"
  16700. }
  16701. },
  16702. url: "/repos/:owner/:repo/check-suites"
  16703. },
  16704. get: {
  16705. headers: {
  16706. accept: "application/vnd.github.antiope-preview+json"
  16707. },
  16708. method: "GET",
  16709. params: {
  16710. check_run_id: {
  16711. required: true,
  16712. type: "integer"
  16713. },
  16714. owner: {
  16715. required: true,
  16716. type: "string"
  16717. },
  16718. repo: {
  16719. required: true,
  16720. type: "string"
  16721. }
  16722. },
  16723. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  16724. },
  16725. getSuite: {
  16726. headers: {
  16727. accept: "application/vnd.github.antiope-preview+json"
  16728. },
  16729. method: "GET",
  16730. params: {
  16731. check_suite_id: {
  16732. required: true,
  16733. type: "integer"
  16734. },
  16735. owner: {
  16736. required: true,
  16737. type: "string"
  16738. },
  16739. repo: {
  16740. required: true,
  16741. type: "string"
  16742. }
  16743. },
  16744. url: "/repos/:owner/:repo/check-suites/:check_suite_id"
  16745. },
  16746. listAnnotations: {
  16747. headers: {
  16748. accept: "application/vnd.github.antiope-preview+json"
  16749. },
  16750. method: "GET",
  16751. params: {
  16752. check_run_id: {
  16753. required: true,
  16754. type: "integer"
  16755. },
  16756. owner: {
  16757. required: true,
  16758. type: "string"
  16759. },
  16760. page: {
  16761. type: "integer"
  16762. },
  16763. per_page: {
  16764. type: "integer"
  16765. },
  16766. repo: {
  16767. required: true,
  16768. type: "string"
  16769. }
  16770. },
  16771. url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
  16772. },
  16773. listForRef: {
  16774. headers: {
  16775. accept: "application/vnd.github.antiope-preview+json"
  16776. },
  16777. method: "GET",
  16778. params: {
  16779. check_name: {
  16780. type: "string"
  16781. },
  16782. filter: {
  16783. enum: ["latest", "all"],
  16784. type: "string"
  16785. },
  16786. owner: {
  16787. required: true,
  16788. type: "string"
  16789. },
  16790. page: {
  16791. type: "integer"
  16792. },
  16793. per_page: {
  16794. type: "integer"
  16795. },
  16796. ref: {
  16797. required: true,
  16798. type: "string"
  16799. },
  16800. repo: {
  16801. required: true,
  16802. type: "string"
  16803. },
  16804. status: {
  16805. enum: ["queued", "in_progress", "completed"],
  16806. type: "string"
  16807. }
  16808. },
  16809. url: "/repos/:owner/:repo/commits/:ref/check-runs"
  16810. },
  16811. listForSuite: {
  16812. headers: {
  16813. accept: "application/vnd.github.antiope-preview+json"
  16814. },
  16815. method: "GET",
  16816. params: {
  16817. check_name: {
  16818. type: "string"
  16819. },
  16820. check_suite_id: {
  16821. required: true,
  16822. type: "integer"
  16823. },
  16824. filter: {
  16825. enum: ["latest", "all"],
  16826. type: "string"
  16827. },
  16828. owner: {
  16829. required: true,
  16830. type: "string"
  16831. },
  16832. page: {
  16833. type: "integer"
  16834. },
  16835. per_page: {
  16836. type: "integer"
  16837. },
  16838. repo: {
  16839. required: true,
  16840. type: "string"
  16841. },
  16842. status: {
  16843. enum: ["queued", "in_progress", "completed"],
  16844. type: "string"
  16845. }
  16846. },
  16847. url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
  16848. },
  16849. listSuitesForRef: {
  16850. headers: {
  16851. accept: "application/vnd.github.antiope-preview+json"
  16852. },
  16853. method: "GET",
  16854. params: {
  16855. app_id: {
  16856. type: "integer"
  16857. },
  16858. check_name: {
  16859. type: "string"
  16860. },
  16861. owner: {
  16862. required: true,
  16863. type: "string"
  16864. },
  16865. page: {
  16866. type: "integer"
  16867. },
  16868. per_page: {
  16869. type: "integer"
  16870. },
  16871. ref: {
  16872. required: true,
  16873. type: "string"
  16874. },
  16875. repo: {
  16876. required: true,
  16877. type: "string"
  16878. }
  16879. },
  16880. url: "/repos/:owner/:repo/commits/:ref/check-suites"
  16881. },
  16882. rerequestSuite: {
  16883. headers: {
  16884. accept: "application/vnd.github.antiope-preview+json"
  16885. },
  16886. method: "POST",
  16887. params: {
  16888. check_suite_id: {
  16889. required: true,
  16890. type: "integer"
  16891. },
  16892. owner: {
  16893. required: true,
  16894. type: "string"
  16895. },
  16896. repo: {
  16897. required: true,
  16898. type: "string"
  16899. }
  16900. },
  16901. url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
  16902. },
  16903. setSuitesPreferences: {
  16904. headers: {
  16905. accept: "application/vnd.github.antiope-preview+json"
  16906. },
  16907. method: "PATCH",
  16908. params: {
  16909. auto_trigger_checks: {
  16910. type: "object[]"
  16911. },
  16912. "auto_trigger_checks[].app_id": {
  16913. required: true,
  16914. type: "integer"
  16915. },
  16916. "auto_trigger_checks[].setting": {
  16917. required: true,
  16918. type: "boolean"
  16919. },
  16920. owner: {
  16921. required: true,
  16922. type: "string"
  16923. },
  16924. repo: {
  16925. required: true,
  16926. type: "string"
  16927. }
  16928. },
  16929. url: "/repos/:owner/:repo/check-suites/preferences"
  16930. },
  16931. update: {
  16932. headers: {
  16933. accept: "application/vnd.github.antiope-preview+json"
  16934. },
  16935. method: "PATCH",
  16936. params: {
  16937. actions: {
  16938. type: "object[]"
  16939. },
  16940. "actions[].description": {
  16941. required: true,
  16942. type: "string"
  16943. },
  16944. "actions[].identifier": {
  16945. required: true,
  16946. type: "string"
  16947. },
  16948. "actions[].label": {
  16949. required: true,
  16950. type: "string"
  16951. },
  16952. check_run_id: {
  16953. required: true,
  16954. type: "integer"
  16955. },
  16956. completed_at: {
  16957. type: "string"
  16958. },
  16959. conclusion: {
  16960. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  16961. type: "string"
  16962. },
  16963. details_url: {
  16964. type: "string"
  16965. },
  16966. external_id: {
  16967. type: "string"
  16968. },
  16969. name: {
  16970. type: "string"
  16971. },
  16972. output: {
  16973. type: "object"
  16974. },
  16975. "output.annotations": {
  16976. type: "object[]"
  16977. },
  16978. "output.annotations[].annotation_level": {
  16979. enum: ["notice", "warning", "failure"],
  16980. required: true,
  16981. type: "string"
  16982. },
  16983. "output.annotations[].end_column": {
  16984. type: "integer"
  16985. },
  16986. "output.annotations[].end_line": {
  16987. required: true,
  16988. type: "integer"
  16989. },
  16990. "output.annotations[].message": {
  16991. required: true,
  16992. type: "string"
  16993. },
  16994. "output.annotations[].path": {
  16995. required: true,
  16996. type: "string"
  16997. },
  16998. "output.annotations[].raw_details": {
  16999. type: "string"
  17000. },
  17001. "output.annotations[].start_column": {
  17002. type: "integer"
  17003. },
  17004. "output.annotations[].start_line": {
  17005. required: true,
  17006. type: "integer"
  17007. },
  17008. "output.annotations[].title": {
  17009. type: "string"
  17010. },
  17011. "output.images": {
  17012. type: "object[]"
  17013. },
  17014. "output.images[].alt": {
  17015. required: true,
  17016. type: "string"
  17017. },
  17018. "output.images[].caption": {
  17019. type: "string"
  17020. },
  17021. "output.images[].image_url": {
  17022. required: true,
  17023. type: "string"
  17024. },
  17025. "output.summary": {
  17026. required: true,
  17027. type: "string"
  17028. },
  17029. "output.text": {
  17030. type: "string"
  17031. },
  17032. "output.title": {
  17033. type: "string"
  17034. },
  17035. owner: {
  17036. required: true,
  17037. type: "string"
  17038. },
  17039. repo: {
  17040. required: true,
  17041. type: "string"
  17042. },
  17043. started_at: {
  17044. type: "string"
  17045. },
  17046. status: {
  17047. enum: ["queued", "in_progress", "completed"],
  17048. type: "string"
  17049. }
  17050. },
  17051. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  17052. }
  17053. },
  17054. codesOfConduct: {
  17055. getConductCode: {
  17056. headers: {
  17057. accept: "application/vnd.github.scarlet-witch-preview+json"
  17058. },
  17059. method: "GET",
  17060. params: {
  17061. key: {
  17062. required: true,
  17063. type: "string"
  17064. }
  17065. },
  17066. url: "/codes_of_conduct/:key"
  17067. },
  17068. getForRepo: {
  17069. headers: {
  17070. accept: "application/vnd.github.scarlet-witch-preview+json"
  17071. },
  17072. method: "GET",
  17073. params: {
  17074. owner: {
  17075. required: true,
  17076. type: "string"
  17077. },
  17078. repo: {
  17079. required: true,
  17080. type: "string"
  17081. }
  17082. },
  17083. url: "/repos/:owner/:repo/community/code_of_conduct"
  17084. },
  17085. listConductCodes: {
  17086. headers: {
  17087. accept: "application/vnd.github.scarlet-witch-preview+json"
  17088. },
  17089. method: "GET",
  17090. params: {},
  17091. url: "/codes_of_conduct"
  17092. }
  17093. },
  17094. emojis: {
  17095. get: {
  17096. method: "GET",
  17097. params: {},
  17098. url: "/emojis"
  17099. }
  17100. },
  17101. gists: {
  17102. checkIsStarred: {
  17103. method: "GET",
  17104. params: {
  17105. gist_id: {
  17106. required: true,
  17107. type: "string"
  17108. }
  17109. },
  17110. url: "/gists/:gist_id/star"
  17111. },
  17112. create: {
  17113. method: "POST",
  17114. params: {
  17115. description: {
  17116. type: "string"
  17117. },
  17118. files: {
  17119. required: true,
  17120. type: "object"
  17121. },
  17122. "files.content": {
  17123. type: "string"
  17124. },
  17125. public: {
  17126. type: "boolean"
  17127. }
  17128. },
  17129. url: "/gists"
  17130. },
  17131. createComment: {
  17132. method: "POST",
  17133. params: {
  17134. body: {
  17135. required: true,
  17136. type: "string"
  17137. },
  17138. gist_id: {
  17139. required: true,
  17140. type: "string"
  17141. }
  17142. },
  17143. url: "/gists/:gist_id/comments"
  17144. },
  17145. delete: {
  17146. method: "DELETE",
  17147. params: {
  17148. gist_id: {
  17149. required: true,
  17150. type: "string"
  17151. }
  17152. },
  17153. url: "/gists/:gist_id"
  17154. },
  17155. deleteComment: {
  17156. method: "DELETE",
  17157. params: {
  17158. comment_id: {
  17159. required: true,
  17160. type: "integer"
  17161. },
  17162. gist_id: {
  17163. required: true,
  17164. type: "string"
  17165. }
  17166. },
  17167. url: "/gists/:gist_id/comments/:comment_id"
  17168. },
  17169. fork: {
  17170. method: "POST",
  17171. params: {
  17172. gist_id: {
  17173. required: true,
  17174. type: "string"
  17175. }
  17176. },
  17177. url: "/gists/:gist_id/forks"
  17178. },
  17179. get: {
  17180. method: "GET",
  17181. params: {
  17182. gist_id: {
  17183. required: true,
  17184. type: "string"
  17185. }
  17186. },
  17187. url: "/gists/:gist_id"
  17188. },
  17189. getComment: {
  17190. method: "GET",
  17191. params: {
  17192. comment_id: {
  17193. required: true,
  17194. type: "integer"
  17195. },
  17196. gist_id: {
  17197. required: true,
  17198. type: "string"
  17199. }
  17200. },
  17201. url: "/gists/:gist_id/comments/:comment_id"
  17202. },
  17203. getRevision: {
  17204. method: "GET",
  17205. params: {
  17206. gist_id: {
  17207. required: true,
  17208. type: "string"
  17209. },
  17210. sha: {
  17211. required: true,
  17212. type: "string"
  17213. }
  17214. },
  17215. url: "/gists/:gist_id/:sha"
  17216. },
  17217. list: {
  17218. method: "GET",
  17219. params: {
  17220. page: {
  17221. type: "integer"
  17222. },
  17223. per_page: {
  17224. type: "integer"
  17225. },
  17226. since: {
  17227. type: "string"
  17228. }
  17229. },
  17230. url: "/gists"
  17231. },
  17232. listComments: {
  17233. method: "GET",
  17234. params: {
  17235. gist_id: {
  17236. required: true,
  17237. type: "string"
  17238. },
  17239. page: {
  17240. type: "integer"
  17241. },
  17242. per_page: {
  17243. type: "integer"
  17244. }
  17245. },
  17246. url: "/gists/:gist_id/comments"
  17247. },
  17248. listCommits: {
  17249. method: "GET",
  17250. params: {
  17251. gist_id: {
  17252. required: true,
  17253. type: "string"
  17254. },
  17255. page: {
  17256. type: "integer"
  17257. },
  17258. per_page: {
  17259. type: "integer"
  17260. }
  17261. },
  17262. url: "/gists/:gist_id/commits"
  17263. },
  17264. listForks: {
  17265. method: "GET",
  17266. params: {
  17267. gist_id: {
  17268. required: true,
  17269. type: "string"
  17270. },
  17271. page: {
  17272. type: "integer"
  17273. },
  17274. per_page: {
  17275. type: "integer"
  17276. }
  17277. },
  17278. url: "/gists/:gist_id/forks"
  17279. },
  17280. listPublic: {
  17281. method: "GET",
  17282. params: {
  17283. page: {
  17284. type: "integer"
  17285. },
  17286. per_page: {
  17287. type: "integer"
  17288. },
  17289. since: {
  17290. type: "string"
  17291. }
  17292. },
  17293. url: "/gists/public"
  17294. },
  17295. listPublicForUser: {
  17296. method: "GET",
  17297. params: {
  17298. page: {
  17299. type: "integer"
  17300. },
  17301. per_page: {
  17302. type: "integer"
  17303. },
  17304. since: {
  17305. type: "string"
  17306. },
  17307. username: {
  17308. required: true,
  17309. type: "string"
  17310. }
  17311. },
  17312. url: "/users/:username/gists"
  17313. },
  17314. listStarred: {
  17315. method: "GET",
  17316. params: {
  17317. page: {
  17318. type: "integer"
  17319. },
  17320. per_page: {
  17321. type: "integer"
  17322. },
  17323. since: {
  17324. type: "string"
  17325. }
  17326. },
  17327. url: "/gists/starred"
  17328. },
  17329. star: {
  17330. method: "PUT",
  17331. params: {
  17332. gist_id: {
  17333. required: true,
  17334. type: "string"
  17335. }
  17336. },
  17337. url: "/gists/:gist_id/star"
  17338. },
  17339. unstar: {
  17340. method: "DELETE",
  17341. params: {
  17342. gist_id: {
  17343. required: true,
  17344. type: "string"
  17345. }
  17346. },
  17347. url: "/gists/:gist_id/star"
  17348. },
  17349. update: {
  17350. method: "PATCH",
  17351. params: {
  17352. description: {
  17353. type: "string"
  17354. },
  17355. files: {
  17356. type: "object"
  17357. },
  17358. "files.content": {
  17359. type: "string"
  17360. },
  17361. "files.filename": {
  17362. type: "string"
  17363. },
  17364. gist_id: {
  17365. required: true,
  17366. type: "string"
  17367. }
  17368. },
  17369. url: "/gists/:gist_id"
  17370. },
  17371. updateComment: {
  17372. method: "PATCH",
  17373. params: {
  17374. body: {
  17375. required: true,
  17376. type: "string"
  17377. },
  17378. comment_id: {
  17379. required: true,
  17380. type: "integer"
  17381. },
  17382. gist_id: {
  17383. required: true,
  17384. type: "string"
  17385. }
  17386. },
  17387. url: "/gists/:gist_id/comments/:comment_id"
  17388. }
  17389. },
  17390. git: {
  17391. createBlob: {
  17392. method: "POST",
  17393. params: {
  17394. content: {
  17395. required: true,
  17396. type: "string"
  17397. },
  17398. encoding: {
  17399. type: "string"
  17400. },
  17401. owner: {
  17402. required: true,
  17403. type: "string"
  17404. },
  17405. repo: {
  17406. required: true,
  17407. type: "string"
  17408. }
  17409. },
  17410. url: "/repos/:owner/:repo/git/blobs"
  17411. },
  17412. createCommit: {
  17413. method: "POST",
  17414. params: {
  17415. author: {
  17416. type: "object"
  17417. },
  17418. "author.date": {
  17419. type: "string"
  17420. },
  17421. "author.email": {
  17422. type: "string"
  17423. },
  17424. "author.name": {
  17425. type: "string"
  17426. },
  17427. committer: {
  17428. type: "object"
  17429. },
  17430. "committer.date": {
  17431. type: "string"
  17432. },
  17433. "committer.email": {
  17434. type: "string"
  17435. },
  17436. "committer.name": {
  17437. type: "string"
  17438. },
  17439. message: {
  17440. required: true,
  17441. type: "string"
  17442. },
  17443. owner: {
  17444. required: true,
  17445. type: "string"
  17446. },
  17447. parents: {
  17448. required: true,
  17449. type: "string[]"
  17450. },
  17451. repo: {
  17452. required: true,
  17453. type: "string"
  17454. },
  17455. signature: {
  17456. type: "string"
  17457. },
  17458. tree: {
  17459. required: true,
  17460. type: "string"
  17461. }
  17462. },
  17463. url: "/repos/:owner/:repo/git/commits"
  17464. },
  17465. createRef: {
  17466. method: "POST",
  17467. params: {
  17468. owner: {
  17469. required: true,
  17470. type: "string"
  17471. },
  17472. ref: {
  17473. required: true,
  17474. type: "string"
  17475. },
  17476. repo: {
  17477. required: true,
  17478. type: "string"
  17479. },
  17480. sha: {
  17481. required: true,
  17482. type: "string"
  17483. }
  17484. },
  17485. url: "/repos/:owner/:repo/git/refs"
  17486. },
  17487. createTag: {
  17488. method: "POST",
  17489. params: {
  17490. message: {
  17491. required: true,
  17492. type: "string"
  17493. },
  17494. object: {
  17495. required: true,
  17496. type: "string"
  17497. },
  17498. owner: {
  17499. required: true,
  17500. type: "string"
  17501. },
  17502. repo: {
  17503. required: true,
  17504. type: "string"
  17505. },
  17506. tag: {
  17507. required: true,
  17508. type: "string"
  17509. },
  17510. tagger: {
  17511. type: "object"
  17512. },
  17513. "tagger.date": {
  17514. type: "string"
  17515. },
  17516. "tagger.email": {
  17517. type: "string"
  17518. },
  17519. "tagger.name": {
  17520. type: "string"
  17521. },
  17522. type: {
  17523. enum: ["commit", "tree", "blob"],
  17524. required: true,
  17525. type: "string"
  17526. }
  17527. },
  17528. url: "/repos/:owner/:repo/git/tags"
  17529. },
  17530. createTree: {
  17531. method: "POST",
  17532. params: {
  17533. base_tree: {
  17534. type: "string"
  17535. },
  17536. owner: {
  17537. required: true,
  17538. type: "string"
  17539. },
  17540. repo: {
  17541. required: true,
  17542. type: "string"
  17543. },
  17544. tree: {
  17545. required: true,
  17546. type: "object[]"
  17547. },
  17548. "tree[].content": {
  17549. type: "string"
  17550. },
  17551. "tree[].mode": {
  17552. enum: ["100644", "100755", "040000", "160000", "120000"],
  17553. type: "string"
  17554. },
  17555. "tree[].path": {
  17556. type: "string"
  17557. },
  17558. "tree[].sha": {
  17559. allowNull: true,
  17560. type: "string"
  17561. },
  17562. "tree[].type": {
  17563. enum: ["blob", "tree", "commit"],
  17564. type: "string"
  17565. }
  17566. },
  17567. url: "/repos/:owner/:repo/git/trees"
  17568. },
  17569. deleteRef: {
  17570. method: "DELETE",
  17571. params: {
  17572. owner: {
  17573. required: true,
  17574. type: "string"
  17575. },
  17576. ref: {
  17577. required: true,
  17578. type: "string"
  17579. },
  17580. repo: {
  17581. required: true,
  17582. type: "string"
  17583. }
  17584. },
  17585. url: "/repos/:owner/:repo/git/refs/:ref"
  17586. },
  17587. getBlob: {
  17588. method: "GET",
  17589. params: {
  17590. file_sha: {
  17591. required: true,
  17592. type: "string"
  17593. },
  17594. owner: {
  17595. required: true,
  17596. type: "string"
  17597. },
  17598. repo: {
  17599. required: true,
  17600. type: "string"
  17601. }
  17602. },
  17603. url: "/repos/:owner/:repo/git/blobs/:file_sha"
  17604. },
  17605. getCommit: {
  17606. method: "GET",
  17607. params: {
  17608. commit_sha: {
  17609. required: true,
  17610. type: "string"
  17611. },
  17612. owner: {
  17613. required: true,
  17614. type: "string"
  17615. },
  17616. repo: {
  17617. required: true,
  17618. type: "string"
  17619. }
  17620. },
  17621. url: "/repos/:owner/:repo/git/commits/:commit_sha"
  17622. },
  17623. getRef: {
  17624. method: "GET",
  17625. params: {
  17626. owner: {
  17627. required: true,
  17628. type: "string"
  17629. },
  17630. ref: {
  17631. required: true,
  17632. type: "string"
  17633. },
  17634. repo: {
  17635. required: true,
  17636. type: "string"
  17637. }
  17638. },
  17639. url: "/repos/:owner/:repo/git/ref/:ref"
  17640. },
  17641. getTag: {
  17642. method: "GET",
  17643. params: {
  17644. owner: {
  17645. required: true,
  17646. type: "string"
  17647. },
  17648. repo: {
  17649. required: true,
  17650. type: "string"
  17651. },
  17652. tag_sha: {
  17653. required: true,
  17654. type: "string"
  17655. }
  17656. },
  17657. url: "/repos/:owner/:repo/git/tags/:tag_sha"
  17658. },
  17659. getTree: {
  17660. method: "GET",
  17661. params: {
  17662. owner: {
  17663. required: true,
  17664. type: "string"
  17665. },
  17666. recursive: {
  17667. enum: ["1"],
  17668. type: "integer"
  17669. },
  17670. repo: {
  17671. required: true,
  17672. type: "string"
  17673. },
  17674. tree_sha: {
  17675. required: true,
  17676. type: "string"
  17677. }
  17678. },
  17679. url: "/repos/:owner/:repo/git/trees/:tree_sha"
  17680. },
  17681. listMatchingRefs: {
  17682. method: "GET",
  17683. params: {
  17684. owner: {
  17685. required: true,
  17686. type: "string"
  17687. },
  17688. page: {
  17689. type: "integer"
  17690. },
  17691. per_page: {
  17692. type: "integer"
  17693. },
  17694. ref: {
  17695. required: true,
  17696. type: "string"
  17697. },
  17698. repo: {
  17699. required: true,
  17700. type: "string"
  17701. }
  17702. },
  17703. url: "/repos/:owner/:repo/git/matching-refs/:ref"
  17704. },
  17705. listRefs: {
  17706. method: "GET",
  17707. params: {
  17708. namespace: {
  17709. type: "string"
  17710. },
  17711. owner: {
  17712. required: true,
  17713. type: "string"
  17714. },
  17715. page: {
  17716. type: "integer"
  17717. },
  17718. per_page: {
  17719. type: "integer"
  17720. },
  17721. repo: {
  17722. required: true,
  17723. type: "string"
  17724. }
  17725. },
  17726. url: "/repos/:owner/:repo/git/refs/:namespace"
  17727. },
  17728. updateRef: {
  17729. method: "PATCH",
  17730. params: {
  17731. force: {
  17732. type: "boolean"
  17733. },
  17734. owner: {
  17735. required: true,
  17736. type: "string"
  17737. },
  17738. ref: {
  17739. required: true,
  17740. type: "string"
  17741. },
  17742. repo: {
  17743. required: true,
  17744. type: "string"
  17745. },
  17746. sha: {
  17747. required: true,
  17748. type: "string"
  17749. }
  17750. },
  17751. url: "/repos/:owner/:repo/git/refs/:ref"
  17752. }
  17753. },
  17754. gitignore: {
  17755. getTemplate: {
  17756. method: "GET",
  17757. params: {
  17758. name: {
  17759. required: true,
  17760. type: "string"
  17761. }
  17762. },
  17763. url: "/gitignore/templates/:name"
  17764. },
  17765. listTemplates: {
  17766. method: "GET",
  17767. params: {},
  17768. url: "/gitignore/templates"
  17769. }
  17770. },
  17771. interactions: {
  17772. addOrUpdateRestrictionsForOrg: {
  17773. headers: {
  17774. accept: "application/vnd.github.sombra-preview+json"
  17775. },
  17776. method: "PUT",
  17777. params: {
  17778. limit: {
  17779. enum: ["existing_users", "contributors_only", "collaborators_only"],
  17780. required: true,
  17781. type: "string"
  17782. },
  17783. org: {
  17784. required: true,
  17785. type: "string"
  17786. }
  17787. },
  17788. url: "/orgs/:org/interaction-limits"
  17789. },
  17790. addOrUpdateRestrictionsForRepo: {
  17791. headers: {
  17792. accept: "application/vnd.github.sombra-preview+json"
  17793. },
  17794. method: "PUT",
  17795. params: {
  17796. limit: {
  17797. enum: ["existing_users", "contributors_only", "collaborators_only"],
  17798. required: true,
  17799. type: "string"
  17800. },
  17801. owner: {
  17802. required: true,
  17803. type: "string"
  17804. },
  17805. repo: {
  17806. required: true,
  17807. type: "string"
  17808. }
  17809. },
  17810. url: "/repos/:owner/:repo/interaction-limits"
  17811. },
  17812. getRestrictionsForOrg: {
  17813. headers: {
  17814. accept: "application/vnd.github.sombra-preview+json"
  17815. },
  17816. method: "GET",
  17817. params: {
  17818. org: {
  17819. required: true,
  17820. type: "string"
  17821. }
  17822. },
  17823. url: "/orgs/:org/interaction-limits"
  17824. },
  17825. getRestrictionsForRepo: {
  17826. headers: {
  17827. accept: "application/vnd.github.sombra-preview+json"
  17828. },
  17829. method: "GET",
  17830. params: {
  17831. owner: {
  17832. required: true,
  17833. type: "string"
  17834. },
  17835. repo: {
  17836. required: true,
  17837. type: "string"
  17838. }
  17839. },
  17840. url: "/repos/:owner/:repo/interaction-limits"
  17841. },
  17842. removeRestrictionsForOrg: {
  17843. headers: {
  17844. accept: "application/vnd.github.sombra-preview+json"
  17845. },
  17846. method: "DELETE",
  17847. params: {
  17848. org: {
  17849. required: true,
  17850. type: "string"
  17851. }
  17852. },
  17853. url: "/orgs/:org/interaction-limits"
  17854. },
  17855. removeRestrictionsForRepo: {
  17856. headers: {
  17857. accept: "application/vnd.github.sombra-preview+json"
  17858. },
  17859. method: "DELETE",
  17860. params: {
  17861. owner: {
  17862. required: true,
  17863. type: "string"
  17864. },
  17865. repo: {
  17866. required: true,
  17867. type: "string"
  17868. }
  17869. },
  17870. url: "/repos/:owner/:repo/interaction-limits"
  17871. }
  17872. },
  17873. issues: {
  17874. addAssignees: {
  17875. method: "POST",
  17876. params: {
  17877. assignees: {
  17878. type: "string[]"
  17879. },
  17880. issue_number: {
  17881. required: true,
  17882. type: "integer"
  17883. },
  17884. number: {
  17885. alias: "issue_number",
  17886. deprecated: true,
  17887. type: "integer"
  17888. },
  17889. owner: {
  17890. required: true,
  17891. type: "string"
  17892. },
  17893. repo: {
  17894. required: true,
  17895. type: "string"
  17896. }
  17897. },
  17898. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  17899. },
  17900. addLabels: {
  17901. method: "POST",
  17902. params: {
  17903. issue_number: {
  17904. required: true,
  17905. type: "integer"
  17906. },
  17907. labels: {
  17908. required: true,
  17909. type: "string[]"
  17910. },
  17911. number: {
  17912. alias: "issue_number",
  17913. deprecated: true,
  17914. type: "integer"
  17915. },
  17916. owner: {
  17917. required: true,
  17918. type: "string"
  17919. },
  17920. repo: {
  17921. required: true,
  17922. type: "string"
  17923. }
  17924. },
  17925. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  17926. },
  17927. checkAssignee: {
  17928. method: "GET",
  17929. params: {
  17930. assignee: {
  17931. required: true,
  17932. type: "string"
  17933. },
  17934. owner: {
  17935. required: true,
  17936. type: "string"
  17937. },
  17938. repo: {
  17939. required: true,
  17940. type: "string"
  17941. }
  17942. },
  17943. url: "/repos/:owner/:repo/assignees/:assignee"
  17944. },
  17945. create: {
  17946. method: "POST",
  17947. params: {
  17948. assignee: {
  17949. type: "string"
  17950. },
  17951. assignees: {
  17952. type: "string[]"
  17953. },
  17954. body: {
  17955. type: "string"
  17956. },
  17957. labels: {
  17958. type: "string[]"
  17959. },
  17960. milestone: {
  17961. type: "integer"
  17962. },
  17963. owner: {
  17964. required: true,
  17965. type: "string"
  17966. },
  17967. repo: {
  17968. required: true,
  17969. type: "string"
  17970. },
  17971. title: {
  17972. required: true,
  17973. type: "string"
  17974. }
  17975. },
  17976. url: "/repos/:owner/:repo/issues"
  17977. },
  17978. createComment: {
  17979. method: "POST",
  17980. params: {
  17981. body: {
  17982. required: true,
  17983. type: "string"
  17984. },
  17985. issue_number: {
  17986. required: true,
  17987. type: "integer"
  17988. },
  17989. number: {
  17990. alias: "issue_number",
  17991. deprecated: true,
  17992. type: "integer"
  17993. },
  17994. owner: {
  17995. required: true,
  17996. type: "string"
  17997. },
  17998. repo: {
  17999. required: true,
  18000. type: "string"
  18001. }
  18002. },
  18003. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  18004. },
  18005. createLabel: {
  18006. method: "POST",
  18007. params: {
  18008. color: {
  18009. required: true,
  18010. type: "string"
  18011. },
  18012. description: {
  18013. type: "string"
  18014. },
  18015. name: {
  18016. required: true,
  18017. type: "string"
  18018. },
  18019. owner: {
  18020. required: true,
  18021. type: "string"
  18022. },
  18023. repo: {
  18024. required: true,
  18025. type: "string"
  18026. }
  18027. },
  18028. url: "/repos/:owner/:repo/labels"
  18029. },
  18030. createMilestone: {
  18031. method: "POST",
  18032. params: {
  18033. description: {
  18034. type: "string"
  18035. },
  18036. due_on: {
  18037. type: "string"
  18038. },
  18039. owner: {
  18040. required: true,
  18041. type: "string"
  18042. },
  18043. repo: {
  18044. required: true,
  18045. type: "string"
  18046. },
  18047. state: {
  18048. enum: ["open", "closed"],
  18049. type: "string"
  18050. },
  18051. title: {
  18052. required: true,
  18053. type: "string"
  18054. }
  18055. },
  18056. url: "/repos/:owner/:repo/milestones"
  18057. },
  18058. deleteComment: {
  18059. method: "DELETE",
  18060. params: {
  18061. comment_id: {
  18062. required: true,
  18063. type: "integer"
  18064. },
  18065. owner: {
  18066. required: true,
  18067. type: "string"
  18068. },
  18069. repo: {
  18070. required: true,
  18071. type: "string"
  18072. }
  18073. },
  18074. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  18075. },
  18076. deleteLabel: {
  18077. method: "DELETE",
  18078. params: {
  18079. name: {
  18080. required: true,
  18081. type: "string"
  18082. },
  18083. owner: {
  18084. required: true,
  18085. type: "string"
  18086. },
  18087. repo: {
  18088. required: true,
  18089. type: "string"
  18090. }
  18091. },
  18092. url: "/repos/:owner/:repo/labels/:name"
  18093. },
  18094. deleteMilestone: {
  18095. method: "DELETE",
  18096. params: {
  18097. milestone_number: {
  18098. required: true,
  18099. type: "integer"
  18100. },
  18101. number: {
  18102. alias: "milestone_number",
  18103. deprecated: true,
  18104. type: "integer"
  18105. },
  18106. owner: {
  18107. required: true,
  18108. type: "string"
  18109. },
  18110. repo: {
  18111. required: true,
  18112. type: "string"
  18113. }
  18114. },
  18115. url: "/repos/:owner/:repo/milestones/:milestone_number"
  18116. },
  18117. get: {
  18118. method: "GET",
  18119. params: {
  18120. issue_number: {
  18121. required: true,
  18122. type: "integer"
  18123. },
  18124. number: {
  18125. alias: "issue_number",
  18126. deprecated: true,
  18127. type: "integer"
  18128. },
  18129. owner: {
  18130. required: true,
  18131. type: "string"
  18132. },
  18133. repo: {
  18134. required: true,
  18135. type: "string"
  18136. }
  18137. },
  18138. url: "/repos/:owner/:repo/issues/:issue_number"
  18139. },
  18140. getComment: {
  18141. method: "GET",
  18142. params: {
  18143. comment_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/issues/comments/:comment_id"
  18157. },
  18158. getEvent: {
  18159. method: "GET",
  18160. params: {
  18161. event_id: {
  18162. required: true,
  18163. type: "integer"
  18164. },
  18165. owner: {
  18166. required: true,
  18167. type: "string"
  18168. },
  18169. repo: {
  18170. required: true,
  18171. type: "string"
  18172. }
  18173. },
  18174. url: "/repos/:owner/:repo/issues/events/:event_id"
  18175. },
  18176. getLabel: {
  18177. method: "GET",
  18178. params: {
  18179. name: {
  18180. required: true,
  18181. type: "string"
  18182. },
  18183. owner: {
  18184. required: true,
  18185. type: "string"
  18186. },
  18187. repo: {
  18188. required: true,
  18189. type: "string"
  18190. }
  18191. },
  18192. url: "/repos/:owner/:repo/labels/:name"
  18193. },
  18194. getMilestone: {
  18195. method: "GET",
  18196. params: {
  18197. milestone_number: {
  18198. required: true,
  18199. type: "integer"
  18200. },
  18201. number: {
  18202. alias: "milestone_number",
  18203. deprecated: true,
  18204. type: "integer"
  18205. },
  18206. owner: {
  18207. required: true,
  18208. type: "string"
  18209. },
  18210. repo: {
  18211. required: true,
  18212. type: "string"
  18213. }
  18214. },
  18215. url: "/repos/:owner/:repo/milestones/:milestone_number"
  18216. },
  18217. list: {
  18218. method: "GET",
  18219. params: {
  18220. direction: {
  18221. enum: ["asc", "desc"],
  18222. type: "string"
  18223. },
  18224. filter: {
  18225. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  18226. type: "string"
  18227. },
  18228. labels: {
  18229. type: "string"
  18230. },
  18231. page: {
  18232. type: "integer"
  18233. },
  18234. per_page: {
  18235. type: "integer"
  18236. },
  18237. since: {
  18238. type: "string"
  18239. },
  18240. sort: {
  18241. enum: ["created", "updated", "comments"],
  18242. type: "string"
  18243. },
  18244. state: {
  18245. enum: ["open", "closed", "all"],
  18246. type: "string"
  18247. }
  18248. },
  18249. url: "/issues"
  18250. },
  18251. listAssignees: {
  18252. method: "GET",
  18253. params: {
  18254. owner: {
  18255. required: true,
  18256. type: "string"
  18257. },
  18258. page: {
  18259. type: "integer"
  18260. },
  18261. per_page: {
  18262. type: "integer"
  18263. },
  18264. repo: {
  18265. required: true,
  18266. type: "string"
  18267. }
  18268. },
  18269. url: "/repos/:owner/:repo/assignees"
  18270. },
  18271. listComments: {
  18272. method: "GET",
  18273. params: {
  18274. issue_number: {
  18275. required: true,
  18276. type: "integer"
  18277. },
  18278. number: {
  18279. alias: "issue_number",
  18280. deprecated: true,
  18281. type: "integer"
  18282. },
  18283. owner: {
  18284. required: true,
  18285. type: "string"
  18286. },
  18287. page: {
  18288. type: "integer"
  18289. },
  18290. per_page: {
  18291. type: "integer"
  18292. },
  18293. repo: {
  18294. required: true,
  18295. type: "string"
  18296. },
  18297. since: {
  18298. type: "string"
  18299. }
  18300. },
  18301. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  18302. },
  18303. listCommentsForRepo: {
  18304. method: "GET",
  18305. params: {
  18306. direction: {
  18307. enum: ["asc", "desc"],
  18308. type: "string"
  18309. },
  18310. owner: {
  18311. required: true,
  18312. type: "string"
  18313. },
  18314. repo: {
  18315. required: true,
  18316. type: "string"
  18317. },
  18318. since: {
  18319. type: "string"
  18320. },
  18321. sort: {
  18322. enum: ["created", "updated"],
  18323. type: "string"
  18324. }
  18325. },
  18326. url: "/repos/:owner/:repo/issues/comments"
  18327. },
  18328. listEvents: {
  18329. method: "GET",
  18330. params: {
  18331. issue_number: {
  18332. required: true,
  18333. type: "integer"
  18334. },
  18335. number: {
  18336. alias: "issue_number",
  18337. deprecated: true,
  18338. type: "integer"
  18339. },
  18340. owner: {
  18341. required: true,
  18342. type: "string"
  18343. },
  18344. page: {
  18345. type: "integer"
  18346. },
  18347. per_page: {
  18348. type: "integer"
  18349. },
  18350. repo: {
  18351. required: true,
  18352. type: "string"
  18353. }
  18354. },
  18355. url: "/repos/:owner/:repo/issues/:issue_number/events"
  18356. },
  18357. listEventsForRepo: {
  18358. method: "GET",
  18359. params: {
  18360. owner: {
  18361. required: true,
  18362. type: "string"
  18363. },
  18364. page: {
  18365. type: "integer"
  18366. },
  18367. per_page: {
  18368. type: "integer"
  18369. },
  18370. repo: {
  18371. required: true,
  18372. type: "string"
  18373. }
  18374. },
  18375. url: "/repos/:owner/:repo/issues/events"
  18376. },
  18377. listEventsForTimeline: {
  18378. headers: {
  18379. accept: "application/vnd.github.mockingbird-preview+json"
  18380. },
  18381. method: "GET",
  18382. params: {
  18383. issue_number: {
  18384. required: true,
  18385. type: "integer"
  18386. },
  18387. number: {
  18388. alias: "issue_number",
  18389. deprecated: true,
  18390. type: "integer"
  18391. },
  18392. owner: {
  18393. required: true,
  18394. type: "string"
  18395. },
  18396. page: {
  18397. type: "integer"
  18398. },
  18399. per_page: {
  18400. type: "integer"
  18401. },
  18402. repo: {
  18403. required: true,
  18404. type: "string"
  18405. }
  18406. },
  18407. url: "/repos/:owner/:repo/issues/:issue_number/timeline"
  18408. },
  18409. listForAuthenticatedUser: {
  18410. method: "GET",
  18411. params: {
  18412. direction: {
  18413. enum: ["asc", "desc"],
  18414. type: "string"
  18415. },
  18416. filter: {
  18417. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  18418. type: "string"
  18419. },
  18420. labels: {
  18421. type: "string"
  18422. },
  18423. page: {
  18424. type: "integer"
  18425. },
  18426. per_page: {
  18427. type: "integer"
  18428. },
  18429. since: {
  18430. type: "string"
  18431. },
  18432. sort: {
  18433. enum: ["created", "updated", "comments"],
  18434. type: "string"
  18435. },
  18436. state: {
  18437. enum: ["open", "closed", "all"],
  18438. type: "string"
  18439. }
  18440. },
  18441. url: "/user/issues"
  18442. },
  18443. listForOrg: {
  18444. method: "GET",
  18445. params: {
  18446. direction: {
  18447. enum: ["asc", "desc"],
  18448. type: "string"
  18449. },
  18450. filter: {
  18451. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  18452. type: "string"
  18453. },
  18454. labels: {
  18455. type: "string"
  18456. },
  18457. org: {
  18458. required: true,
  18459. type: "string"
  18460. },
  18461. page: {
  18462. type: "integer"
  18463. },
  18464. per_page: {
  18465. type: "integer"
  18466. },
  18467. since: {
  18468. type: "string"
  18469. },
  18470. sort: {
  18471. enum: ["created", "updated", "comments"],
  18472. type: "string"
  18473. },
  18474. state: {
  18475. enum: ["open", "closed", "all"],
  18476. type: "string"
  18477. }
  18478. },
  18479. url: "/orgs/:org/issues"
  18480. },
  18481. listForRepo: {
  18482. method: "GET",
  18483. params: {
  18484. assignee: {
  18485. type: "string"
  18486. },
  18487. creator: {
  18488. type: "string"
  18489. },
  18490. direction: {
  18491. enum: ["asc", "desc"],
  18492. type: "string"
  18493. },
  18494. labels: {
  18495. type: "string"
  18496. },
  18497. mentioned: {
  18498. type: "string"
  18499. },
  18500. milestone: {
  18501. type: "string"
  18502. },
  18503. owner: {
  18504. required: true,
  18505. type: "string"
  18506. },
  18507. page: {
  18508. type: "integer"
  18509. },
  18510. per_page: {
  18511. type: "integer"
  18512. },
  18513. repo: {
  18514. required: true,
  18515. type: "string"
  18516. },
  18517. since: {
  18518. type: "string"
  18519. },
  18520. sort: {
  18521. enum: ["created", "updated", "comments"],
  18522. type: "string"
  18523. },
  18524. state: {
  18525. enum: ["open", "closed", "all"],
  18526. type: "string"
  18527. }
  18528. },
  18529. url: "/repos/:owner/:repo/issues"
  18530. },
  18531. listLabelsForMilestone: {
  18532. method: "GET",
  18533. params: {
  18534. milestone_number: {
  18535. required: true,
  18536. type: "integer"
  18537. },
  18538. number: {
  18539. alias: "milestone_number",
  18540. deprecated: true,
  18541. type: "integer"
  18542. },
  18543. owner: {
  18544. required: true,
  18545. type: "string"
  18546. },
  18547. page: {
  18548. type: "integer"
  18549. },
  18550. per_page: {
  18551. type: "integer"
  18552. },
  18553. repo: {
  18554. required: true,
  18555. type: "string"
  18556. }
  18557. },
  18558. url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
  18559. },
  18560. listLabelsForRepo: {
  18561. method: "GET",
  18562. params: {
  18563. owner: {
  18564. required: true,
  18565. type: "string"
  18566. },
  18567. page: {
  18568. type: "integer"
  18569. },
  18570. per_page: {
  18571. type: "integer"
  18572. },
  18573. repo: {
  18574. required: true,
  18575. type: "string"
  18576. }
  18577. },
  18578. url: "/repos/:owner/:repo/labels"
  18579. },
  18580. listLabelsOnIssue: {
  18581. method: "GET",
  18582. params: {
  18583. issue_number: {
  18584. required: true,
  18585. type: "integer"
  18586. },
  18587. number: {
  18588. alias: "issue_number",
  18589. deprecated: true,
  18590. type: "integer"
  18591. },
  18592. owner: {
  18593. required: true,
  18594. type: "string"
  18595. },
  18596. page: {
  18597. type: "integer"
  18598. },
  18599. per_page: {
  18600. type: "integer"
  18601. },
  18602. repo: {
  18603. required: true,
  18604. type: "string"
  18605. }
  18606. },
  18607. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  18608. },
  18609. listMilestonesForRepo: {
  18610. method: "GET",
  18611. params: {
  18612. direction: {
  18613. enum: ["asc", "desc"],
  18614. type: "string"
  18615. },
  18616. owner: {
  18617. required: true,
  18618. type: "string"
  18619. },
  18620. page: {
  18621. type: "integer"
  18622. },
  18623. per_page: {
  18624. type: "integer"
  18625. },
  18626. repo: {
  18627. required: true,
  18628. type: "string"
  18629. },
  18630. sort: {
  18631. enum: ["due_on", "completeness"],
  18632. type: "string"
  18633. },
  18634. state: {
  18635. enum: ["open", "closed", "all"],
  18636. type: "string"
  18637. }
  18638. },
  18639. url: "/repos/:owner/:repo/milestones"
  18640. },
  18641. lock: {
  18642. method: "PUT",
  18643. params: {
  18644. issue_number: {
  18645. required: true,
  18646. type: "integer"
  18647. },
  18648. lock_reason: {
  18649. enum: ["off-topic", "too heated", "resolved", "spam"],
  18650. type: "string"
  18651. },
  18652. number: {
  18653. alias: "issue_number",
  18654. deprecated: true,
  18655. type: "integer"
  18656. },
  18657. owner: {
  18658. required: true,
  18659. type: "string"
  18660. },
  18661. repo: {
  18662. required: true,
  18663. type: "string"
  18664. }
  18665. },
  18666. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  18667. },
  18668. removeAssignees: {
  18669. method: "DELETE",
  18670. params: {
  18671. assignees: {
  18672. type: "string[]"
  18673. },
  18674. issue_number: {
  18675. required: true,
  18676. type: "integer"
  18677. },
  18678. number: {
  18679. alias: "issue_number",
  18680. deprecated: true,
  18681. type: "integer"
  18682. },
  18683. owner: {
  18684. required: true,
  18685. type: "string"
  18686. },
  18687. repo: {
  18688. required: true,
  18689. type: "string"
  18690. }
  18691. },
  18692. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  18693. },
  18694. removeLabel: {
  18695. method: "DELETE",
  18696. params: {
  18697. issue_number: {
  18698. required: true,
  18699. type: "integer"
  18700. },
  18701. name: {
  18702. required: true,
  18703. type: "string"
  18704. },
  18705. number: {
  18706. alias: "issue_number",
  18707. deprecated: true,
  18708. type: "integer"
  18709. },
  18710. owner: {
  18711. required: true,
  18712. type: "string"
  18713. },
  18714. repo: {
  18715. required: true,
  18716. type: "string"
  18717. }
  18718. },
  18719. url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
  18720. },
  18721. removeLabels: {
  18722. method: "DELETE",
  18723. params: {
  18724. issue_number: {
  18725. required: true,
  18726. type: "integer"
  18727. },
  18728. number: {
  18729. alias: "issue_number",
  18730. deprecated: true,
  18731. type: "integer"
  18732. },
  18733. owner: {
  18734. required: true,
  18735. type: "string"
  18736. },
  18737. repo: {
  18738. required: true,
  18739. type: "string"
  18740. }
  18741. },
  18742. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  18743. },
  18744. replaceLabels: {
  18745. method: "PUT",
  18746. params: {
  18747. issue_number: {
  18748. required: true,
  18749. type: "integer"
  18750. },
  18751. labels: {
  18752. type: "string[]"
  18753. },
  18754. number: {
  18755. alias: "issue_number",
  18756. deprecated: true,
  18757. type: "integer"
  18758. },
  18759. owner: {
  18760. required: true,
  18761. type: "string"
  18762. },
  18763. repo: {
  18764. required: true,
  18765. type: "string"
  18766. }
  18767. },
  18768. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  18769. },
  18770. unlock: {
  18771. method: "DELETE",
  18772. params: {
  18773. issue_number: {
  18774. required: true,
  18775. type: "integer"
  18776. },
  18777. number: {
  18778. alias: "issue_number",
  18779. deprecated: true,
  18780. type: "integer"
  18781. },
  18782. owner: {
  18783. required: true,
  18784. type: "string"
  18785. },
  18786. repo: {
  18787. required: true,
  18788. type: "string"
  18789. }
  18790. },
  18791. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  18792. },
  18793. update: {
  18794. method: "PATCH",
  18795. params: {
  18796. assignee: {
  18797. type: "string"
  18798. },
  18799. assignees: {
  18800. type: "string[]"
  18801. },
  18802. body: {
  18803. type: "string"
  18804. },
  18805. issue_number: {
  18806. required: true,
  18807. type: "integer"
  18808. },
  18809. labels: {
  18810. type: "string[]"
  18811. },
  18812. milestone: {
  18813. allowNull: true,
  18814. type: "integer"
  18815. },
  18816. number: {
  18817. alias: "issue_number",
  18818. deprecated: true,
  18819. type: "integer"
  18820. },
  18821. owner: {
  18822. required: true,
  18823. type: "string"
  18824. },
  18825. repo: {
  18826. required: true,
  18827. type: "string"
  18828. },
  18829. state: {
  18830. enum: ["open", "closed"],
  18831. type: "string"
  18832. },
  18833. title: {
  18834. type: "string"
  18835. }
  18836. },
  18837. url: "/repos/:owner/:repo/issues/:issue_number"
  18838. },
  18839. updateComment: {
  18840. method: "PATCH",
  18841. params: {
  18842. body: {
  18843. required: true,
  18844. type: "string"
  18845. },
  18846. comment_id: {
  18847. required: true,
  18848. type: "integer"
  18849. },
  18850. owner: {
  18851. required: true,
  18852. type: "string"
  18853. },
  18854. repo: {
  18855. required: true,
  18856. type: "string"
  18857. }
  18858. },
  18859. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  18860. },
  18861. updateLabel: {
  18862. method: "PATCH",
  18863. params: {
  18864. color: {
  18865. type: "string"
  18866. },
  18867. current_name: {
  18868. required: true,
  18869. type: "string"
  18870. },
  18871. description: {
  18872. type: "string"
  18873. },
  18874. name: {
  18875. type: "string"
  18876. },
  18877. owner: {
  18878. required: true,
  18879. type: "string"
  18880. },
  18881. repo: {
  18882. required: true,
  18883. type: "string"
  18884. }
  18885. },
  18886. url: "/repos/:owner/:repo/labels/:current_name"
  18887. },
  18888. updateMilestone: {
  18889. method: "PATCH",
  18890. params: {
  18891. description: {
  18892. type: "string"
  18893. },
  18894. due_on: {
  18895. type: "string"
  18896. },
  18897. milestone_number: {
  18898. required: true,
  18899. type: "integer"
  18900. },
  18901. number: {
  18902. alias: "milestone_number",
  18903. deprecated: true,
  18904. type: "integer"
  18905. },
  18906. owner: {
  18907. required: true,
  18908. type: "string"
  18909. },
  18910. repo: {
  18911. required: true,
  18912. type: "string"
  18913. },
  18914. state: {
  18915. enum: ["open", "closed"],
  18916. type: "string"
  18917. },
  18918. title: {
  18919. type: "string"
  18920. }
  18921. },
  18922. url: "/repos/:owner/:repo/milestones/:milestone_number"
  18923. }
  18924. },
  18925. licenses: {
  18926. get: {
  18927. method: "GET",
  18928. params: {
  18929. license: {
  18930. required: true,
  18931. type: "string"
  18932. }
  18933. },
  18934. url: "/licenses/:license"
  18935. },
  18936. getForRepo: {
  18937. method: "GET",
  18938. params: {
  18939. owner: {
  18940. required: true,
  18941. type: "string"
  18942. },
  18943. repo: {
  18944. required: true,
  18945. type: "string"
  18946. }
  18947. },
  18948. url: "/repos/:owner/:repo/license"
  18949. },
  18950. list: {
  18951. deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
  18952. method: "GET",
  18953. params: {},
  18954. url: "/licenses"
  18955. },
  18956. listCommonlyUsed: {
  18957. method: "GET",
  18958. params: {},
  18959. url: "/licenses"
  18960. }
  18961. },
  18962. markdown: {
  18963. render: {
  18964. method: "POST",
  18965. params: {
  18966. context: {
  18967. type: "string"
  18968. },
  18969. mode: {
  18970. enum: ["markdown", "gfm"],
  18971. type: "string"
  18972. },
  18973. text: {
  18974. required: true,
  18975. type: "string"
  18976. }
  18977. },
  18978. url: "/markdown"
  18979. },
  18980. renderRaw: {
  18981. headers: {
  18982. "content-type": "text/plain; charset=utf-8"
  18983. },
  18984. method: "POST",
  18985. params: {
  18986. data: {
  18987. mapTo: "data",
  18988. required: true,
  18989. type: "string"
  18990. }
  18991. },
  18992. url: "/markdown/raw"
  18993. }
  18994. },
  18995. meta: {
  18996. get: {
  18997. method: "GET",
  18998. params: {},
  18999. url: "/meta"
  19000. }
  19001. },
  19002. migrations: {
  19003. cancelImport: {
  19004. method: "DELETE",
  19005. params: {
  19006. owner: {
  19007. required: true,
  19008. type: "string"
  19009. },
  19010. repo: {
  19011. required: true,
  19012. type: "string"
  19013. }
  19014. },
  19015. url: "/repos/:owner/:repo/import"
  19016. },
  19017. deleteArchiveForAuthenticatedUser: {
  19018. headers: {
  19019. accept: "application/vnd.github.wyandotte-preview+json"
  19020. },
  19021. method: "DELETE",
  19022. params: {
  19023. migration_id: {
  19024. required: true,
  19025. type: "integer"
  19026. }
  19027. },
  19028. url: "/user/migrations/:migration_id/archive"
  19029. },
  19030. deleteArchiveForOrg: {
  19031. headers: {
  19032. accept: "application/vnd.github.wyandotte-preview+json"
  19033. },
  19034. method: "DELETE",
  19035. params: {
  19036. migration_id: {
  19037. required: true,
  19038. type: "integer"
  19039. },
  19040. org: {
  19041. required: true,
  19042. type: "string"
  19043. }
  19044. },
  19045. url: "/orgs/:org/migrations/:migration_id/archive"
  19046. },
  19047. downloadArchiveForOrg: {
  19048. headers: {
  19049. accept: "application/vnd.github.wyandotte-preview+json"
  19050. },
  19051. method: "GET",
  19052. params: {
  19053. migration_id: {
  19054. required: true,
  19055. type: "integer"
  19056. },
  19057. org: {
  19058. required: true,
  19059. type: "string"
  19060. }
  19061. },
  19062. url: "/orgs/:org/migrations/:migration_id/archive"
  19063. },
  19064. getArchiveForAuthenticatedUser: {
  19065. headers: {
  19066. accept: "application/vnd.github.wyandotte-preview+json"
  19067. },
  19068. method: "GET",
  19069. params: {
  19070. migration_id: {
  19071. required: true,
  19072. type: "integer"
  19073. }
  19074. },
  19075. url: "/user/migrations/:migration_id/archive"
  19076. },
  19077. getArchiveForOrg: {
  19078. deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
  19079. headers: {
  19080. accept: "application/vnd.github.wyandotte-preview+json"
  19081. },
  19082. method: "GET",
  19083. params: {
  19084. migration_id: {
  19085. required: true,
  19086. type: "integer"
  19087. },
  19088. org: {
  19089. required: true,
  19090. type: "string"
  19091. }
  19092. },
  19093. url: "/orgs/:org/migrations/:migration_id/archive"
  19094. },
  19095. getCommitAuthors: {
  19096. method: "GET",
  19097. params: {
  19098. owner: {
  19099. required: true,
  19100. type: "string"
  19101. },
  19102. repo: {
  19103. required: true,
  19104. type: "string"
  19105. },
  19106. since: {
  19107. type: "string"
  19108. }
  19109. },
  19110. url: "/repos/:owner/:repo/import/authors"
  19111. },
  19112. getImportProgress: {
  19113. method: "GET",
  19114. params: {
  19115. owner: {
  19116. required: true,
  19117. type: "string"
  19118. },
  19119. repo: {
  19120. required: true,
  19121. type: "string"
  19122. }
  19123. },
  19124. url: "/repos/:owner/:repo/import"
  19125. },
  19126. getLargeFiles: {
  19127. method: "GET",
  19128. params: {
  19129. owner: {
  19130. required: true,
  19131. type: "string"
  19132. },
  19133. repo: {
  19134. required: true,
  19135. type: "string"
  19136. }
  19137. },
  19138. url: "/repos/:owner/:repo/import/large_files"
  19139. },
  19140. getStatusForAuthenticatedUser: {
  19141. headers: {
  19142. accept: "application/vnd.github.wyandotte-preview+json"
  19143. },
  19144. method: "GET",
  19145. params: {
  19146. migration_id: {
  19147. required: true,
  19148. type: "integer"
  19149. }
  19150. },
  19151. url: "/user/migrations/:migration_id"
  19152. },
  19153. getStatusForOrg: {
  19154. headers: {
  19155. accept: "application/vnd.github.wyandotte-preview+json"
  19156. },
  19157. method: "GET",
  19158. params: {
  19159. migration_id: {
  19160. required: true,
  19161. type: "integer"
  19162. },
  19163. org: {
  19164. required: true,
  19165. type: "string"
  19166. }
  19167. },
  19168. url: "/orgs/:org/migrations/:migration_id"
  19169. },
  19170. listForAuthenticatedUser: {
  19171. headers: {
  19172. accept: "application/vnd.github.wyandotte-preview+json"
  19173. },
  19174. method: "GET",
  19175. params: {
  19176. page: {
  19177. type: "integer"
  19178. },
  19179. per_page: {
  19180. type: "integer"
  19181. }
  19182. },
  19183. url: "/user/migrations"
  19184. },
  19185. listForOrg: {
  19186. headers: {
  19187. accept: "application/vnd.github.wyandotte-preview+json"
  19188. },
  19189. method: "GET",
  19190. params: {
  19191. org: {
  19192. required: true,
  19193. type: "string"
  19194. },
  19195. page: {
  19196. type: "integer"
  19197. },
  19198. per_page: {
  19199. type: "integer"
  19200. }
  19201. },
  19202. url: "/orgs/:org/migrations"
  19203. },
  19204. listReposForOrg: {
  19205. headers: {
  19206. accept: "application/vnd.github.wyandotte-preview+json"
  19207. },
  19208. method: "GET",
  19209. params: {
  19210. migration_id: {
  19211. required: true,
  19212. type: "integer"
  19213. },
  19214. org: {
  19215. required: true,
  19216. type: "string"
  19217. },
  19218. page: {
  19219. type: "integer"
  19220. },
  19221. per_page: {
  19222. type: "integer"
  19223. }
  19224. },
  19225. url: "/orgs/:org/migrations/:migration_id/repositories"
  19226. },
  19227. listReposForUser: {
  19228. headers: {
  19229. accept: "application/vnd.github.wyandotte-preview+json"
  19230. },
  19231. method: "GET",
  19232. params: {
  19233. migration_id: {
  19234. required: true,
  19235. type: "integer"
  19236. },
  19237. page: {
  19238. type: "integer"
  19239. },
  19240. per_page: {
  19241. type: "integer"
  19242. }
  19243. },
  19244. url: "/user/:migration_id/repositories"
  19245. },
  19246. mapCommitAuthor: {
  19247. method: "PATCH",
  19248. params: {
  19249. author_id: {
  19250. required: true,
  19251. type: "integer"
  19252. },
  19253. email: {
  19254. type: "string"
  19255. },
  19256. name: {
  19257. type: "string"
  19258. },
  19259. owner: {
  19260. required: true,
  19261. type: "string"
  19262. },
  19263. repo: {
  19264. required: true,
  19265. type: "string"
  19266. }
  19267. },
  19268. url: "/repos/:owner/:repo/import/authors/:author_id"
  19269. },
  19270. setLfsPreference: {
  19271. method: "PATCH",
  19272. params: {
  19273. owner: {
  19274. required: true,
  19275. type: "string"
  19276. },
  19277. repo: {
  19278. required: true,
  19279. type: "string"
  19280. },
  19281. use_lfs: {
  19282. enum: ["opt_in", "opt_out"],
  19283. required: true,
  19284. type: "string"
  19285. }
  19286. },
  19287. url: "/repos/:owner/:repo/import/lfs"
  19288. },
  19289. startForAuthenticatedUser: {
  19290. method: "POST",
  19291. params: {
  19292. exclude_attachments: {
  19293. type: "boolean"
  19294. },
  19295. lock_repositories: {
  19296. type: "boolean"
  19297. },
  19298. repositories: {
  19299. required: true,
  19300. type: "string[]"
  19301. }
  19302. },
  19303. url: "/user/migrations"
  19304. },
  19305. startForOrg: {
  19306. method: "POST",
  19307. params: {
  19308. exclude_attachments: {
  19309. type: "boolean"
  19310. },
  19311. lock_repositories: {
  19312. type: "boolean"
  19313. },
  19314. org: {
  19315. required: true,
  19316. type: "string"
  19317. },
  19318. repositories: {
  19319. required: true,
  19320. type: "string[]"
  19321. }
  19322. },
  19323. url: "/orgs/:org/migrations"
  19324. },
  19325. startImport: {
  19326. method: "PUT",
  19327. params: {
  19328. owner: {
  19329. required: true,
  19330. type: "string"
  19331. },
  19332. repo: {
  19333. required: true,
  19334. type: "string"
  19335. },
  19336. tfvc_project: {
  19337. type: "string"
  19338. },
  19339. vcs: {
  19340. enum: ["subversion", "git", "mercurial", "tfvc"],
  19341. type: "string"
  19342. },
  19343. vcs_password: {
  19344. type: "string"
  19345. },
  19346. vcs_url: {
  19347. required: true,
  19348. type: "string"
  19349. },
  19350. vcs_username: {
  19351. type: "string"
  19352. }
  19353. },
  19354. url: "/repos/:owner/:repo/import"
  19355. },
  19356. unlockRepoForAuthenticatedUser: {
  19357. headers: {
  19358. accept: "application/vnd.github.wyandotte-preview+json"
  19359. },
  19360. method: "DELETE",
  19361. params: {
  19362. migration_id: {
  19363. required: true,
  19364. type: "integer"
  19365. },
  19366. repo_name: {
  19367. required: true,
  19368. type: "string"
  19369. }
  19370. },
  19371. url: "/user/migrations/:migration_id/repos/:repo_name/lock"
  19372. },
  19373. unlockRepoForOrg: {
  19374. headers: {
  19375. accept: "application/vnd.github.wyandotte-preview+json"
  19376. },
  19377. method: "DELETE",
  19378. params: {
  19379. migration_id: {
  19380. required: true,
  19381. type: "integer"
  19382. },
  19383. org: {
  19384. required: true,
  19385. type: "string"
  19386. },
  19387. repo_name: {
  19388. required: true,
  19389. type: "string"
  19390. }
  19391. },
  19392. url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
  19393. },
  19394. updateImport: {
  19395. method: "PATCH",
  19396. params: {
  19397. owner: {
  19398. required: true,
  19399. type: "string"
  19400. },
  19401. repo: {
  19402. required: true,
  19403. type: "string"
  19404. },
  19405. vcs_password: {
  19406. type: "string"
  19407. },
  19408. vcs_username: {
  19409. type: "string"
  19410. }
  19411. },
  19412. url: "/repos/:owner/:repo/import"
  19413. }
  19414. },
  19415. oauthAuthorizations: {
  19416. checkAuthorization: {
  19417. deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
  19418. method: "GET",
  19419. params: {
  19420. access_token: {
  19421. required: true,
  19422. type: "string"
  19423. },
  19424. client_id: {
  19425. required: true,
  19426. type: "string"
  19427. }
  19428. },
  19429. url: "/applications/:client_id/tokens/:access_token"
  19430. },
  19431. createAuthorization: {
  19432. deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
  19433. method: "POST",
  19434. params: {
  19435. client_id: {
  19436. type: "string"
  19437. },
  19438. client_secret: {
  19439. type: "string"
  19440. },
  19441. fingerprint: {
  19442. type: "string"
  19443. },
  19444. note: {
  19445. required: true,
  19446. type: "string"
  19447. },
  19448. note_url: {
  19449. type: "string"
  19450. },
  19451. scopes: {
  19452. type: "string[]"
  19453. }
  19454. },
  19455. url: "/authorizations"
  19456. },
  19457. deleteAuthorization: {
  19458. deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
  19459. method: "DELETE",
  19460. params: {
  19461. authorization_id: {
  19462. required: true,
  19463. type: "integer"
  19464. }
  19465. },
  19466. url: "/authorizations/:authorization_id"
  19467. },
  19468. deleteGrant: {
  19469. deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
  19470. method: "DELETE",
  19471. params: {
  19472. grant_id: {
  19473. required: true,
  19474. type: "integer"
  19475. }
  19476. },
  19477. url: "/applications/grants/:grant_id"
  19478. },
  19479. getAuthorization: {
  19480. deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
  19481. method: "GET",
  19482. params: {
  19483. authorization_id: {
  19484. required: true,
  19485. type: "integer"
  19486. }
  19487. },
  19488. url: "/authorizations/:authorization_id"
  19489. },
  19490. getGrant: {
  19491. deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
  19492. method: "GET",
  19493. params: {
  19494. grant_id: {
  19495. required: true,
  19496. type: "integer"
  19497. }
  19498. },
  19499. url: "/applications/grants/:grant_id"
  19500. },
  19501. getOrCreateAuthorizationForApp: {
  19502. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
  19503. method: "PUT",
  19504. params: {
  19505. client_id: {
  19506. required: true,
  19507. type: "string"
  19508. },
  19509. client_secret: {
  19510. required: true,
  19511. type: "string"
  19512. },
  19513. fingerprint: {
  19514. type: "string"
  19515. },
  19516. note: {
  19517. type: "string"
  19518. },
  19519. note_url: {
  19520. type: "string"
  19521. },
  19522. scopes: {
  19523. type: "string[]"
  19524. }
  19525. },
  19526. url: "/authorizations/clients/:client_id"
  19527. },
  19528. getOrCreateAuthorizationForAppAndFingerprint: {
  19529. 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",
  19530. method: "PUT",
  19531. params: {
  19532. client_id: {
  19533. required: true,
  19534. type: "string"
  19535. },
  19536. client_secret: {
  19537. required: true,
  19538. type: "string"
  19539. },
  19540. fingerprint: {
  19541. required: true,
  19542. type: "string"
  19543. },
  19544. note: {
  19545. type: "string"
  19546. },
  19547. note_url: {
  19548. type: "string"
  19549. },
  19550. scopes: {
  19551. type: "string[]"
  19552. }
  19553. },
  19554. url: "/authorizations/clients/:client_id/:fingerprint"
  19555. },
  19556. getOrCreateAuthorizationForAppFingerprint: {
  19557. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
  19558. method: "PUT",
  19559. params: {
  19560. client_id: {
  19561. required: true,
  19562. type: "string"
  19563. },
  19564. client_secret: {
  19565. required: true,
  19566. type: "string"
  19567. },
  19568. fingerprint: {
  19569. required: true,
  19570. type: "string"
  19571. },
  19572. note: {
  19573. type: "string"
  19574. },
  19575. note_url: {
  19576. type: "string"
  19577. },
  19578. scopes: {
  19579. type: "string[]"
  19580. }
  19581. },
  19582. url: "/authorizations/clients/:client_id/:fingerprint"
  19583. },
  19584. listAuthorizations: {
  19585. deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
  19586. method: "GET",
  19587. params: {
  19588. page: {
  19589. type: "integer"
  19590. },
  19591. per_page: {
  19592. type: "integer"
  19593. }
  19594. },
  19595. url: "/authorizations"
  19596. },
  19597. listGrants: {
  19598. deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
  19599. method: "GET",
  19600. params: {
  19601. page: {
  19602. type: "integer"
  19603. },
  19604. per_page: {
  19605. type: "integer"
  19606. }
  19607. },
  19608. url: "/applications/grants"
  19609. },
  19610. resetAuthorization: {
  19611. deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
  19612. method: "POST",
  19613. params: {
  19614. access_token: {
  19615. required: true,
  19616. type: "string"
  19617. },
  19618. client_id: {
  19619. required: true,
  19620. type: "string"
  19621. }
  19622. },
  19623. url: "/applications/:client_id/tokens/:access_token"
  19624. },
  19625. revokeAuthorizationForApplication: {
  19626. deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
  19627. method: "DELETE",
  19628. params: {
  19629. access_token: {
  19630. required: true,
  19631. type: "string"
  19632. },
  19633. client_id: {
  19634. required: true,
  19635. type: "string"
  19636. }
  19637. },
  19638. url: "/applications/:client_id/tokens/:access_token"
  19639. },
  19640. revokeGrantForApplication: {
  19641. deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
  19642. method: "DELETE",
  19643. params: {
  19644. access_token: {
  19645. required: true,
  19646. type: "string"
  19647. },
  19648. client_id: {
  19649. required: true,
  19650. type: "string"
  19651. }
  19652. },
  19653. url: "/applications/:client_id/grants/:access_token"
  19654. },
  19655. updateAuthorization: {
  19656. deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
  19657. method: "PATCH",
  19658. params: {
  19659. add_scopes: {
  19660. type: "string[]"
  19661. },
  19662. authorization_id: {
  19663. required: true,
  19664. type: "integer"
  19665. },
  19666. fingerprint: {
  19667. type: "string"
  19668. },
  19669. note: {
  19670. type: "string"
  19671. },
  19672. note_url: {
  19673. type: "string"
  19674. },
  19675. remove_scopes: {
  19676. type: "string[]"
  19677. },
  19678. scopes: {
  19679. type: "string[]"
  19680. }
  19681. },
  19682. url: "/authorizations/:authorization_id"
  19683. }
  19684. },
  19685. orgs: {
  19686. addOrUpdateMembership: {
  19687. method: "PUT",
  19688. params: {
  19689. org: {
  19690. required: true,
  19691. type: "string"
  19692. },
  19693. role: {
  19694. enum: ["admin", "member"],
  19695. type: "string"
  19696. },
  19697. username: {
  19698. required: true,
  19699. type: "string"
  19700. }
  19701. },
  19702. url: "/orgs/:org/memberships/:username"
  19703. },
  19704. blockUser: {
  19705. method: "PUT",
  19706. params: {
  19707. org: {
  19708. required: true,
  19709. type: "string"
  19710. },
  19711. username: {
  19712. required: true,
  19713. type: "string"
  19714. }
  19715. },
  19716. url: "/orgs/:org/blocks/:username"
  19717. },
  19718. checkBlockedUser: {
  19719. method: "GET",
  19720. params: {
  19721. org: {
  19722. required: true,
  19723. type: "string"
  19724. },
  19725. username: {
  19726. required: true,
  19727. type: "string"
  19728. }
  19729. },
  19730. url: "/orgs/:org/blocks/:username"
  19731. },
  19732. checkMembership: {
  19733. method: "GET",
  19734. params: {
  19735. org: {
  19736. required: true,
  19737. type: "string"
  19738. },
  19739. username: {
  19740. required: true,
  19741. type: "string"
  19742. }
  19743. },
  19744. url: "/orgs/:org/members/:username"
  19745. },
  19746. checkPublicMembership: {
  19747. method: "GET",
  19748. params: {
  19749. org: {
  19750. required: true,
  19751. type: "string"
  19752. },
  19753. username: {
  19754. required: true,
  19755. type: "string"
  19756. }
  19757. },
  19758. url: "/orgs/:org/public_members/:username"
  19759. },
  19760. concealMembership: {
  19761. method: "DELETE",
  19762. params: {
  19763. org: {
  19764. required: true,
  19765. type: "string"
  19766. },
  19767. username: {
  19768. required: true,
  19769. type: "string"
  19770. }
  19771. },
  19772. url: "/orgs/:org/public_members/:username"
  19773. },
  19774. convertMemberToOutsideCollaborator: {
  19775. method: "PUT",
  19776. params: {
  19777. org: {
  19778. required: true,
  19779. type: "string"
  19780. },
  19781. username: {
  19782. required: true,
  19783. type: "string"
  19784. }
  19785. },
  19786. url: "/orgs/:org/outside_collaborators/:username"
  19787. },
  19788. createHook: {
  19789. method: "POST",
  19790. params: {
  19791. active: {
  19792. type: "boolean"
  19793. },
  19794. config: {
  19795. required: true,
  19796. type: "object"
  19797. },
  19798. "config.content_type": {
  19799. type: "string"
  19800. },
  19801. "config.insecure_ssl": {
  19802. type: "string"
  19803. },
  19804. "config.secret": {
  19805. type: "string"
  19806. },
  19807. "config.url": {
  19808. required: true,
  19809. type: "string"
  19810. },
  19811. events: {
  19812. type: "string[]"
  19813. },
  19814. name: {
  19815. required: true,
  19816. type: "string"
  19817. },
  19818. org: {
  19819. required: true,
  19820. type: "string"
  19821. }
  19822. },
  19823. url: "/orgs/:org/hooks"
  19824. },
  19825. createInvitation: {
  19826. method: "POST",
  19827. params: {
  19828. email: {
  19829. type: "string"
  19830. },
  19831. invitee_id: {
  19832. type: "integer"
  19833. },
  19834. org: {
  19835. required: true,
  19836. type: "string"
  19837. },
  19838. role: {
  19839. enum: ["admin", "direct_member", "billing_manager"],
  19840. type: "string"
  19841. },
  19842. team_ids: {
  19843. type: "integer[]"
  19844. }
  19845. },
  19846. url: "/orgs/:org/invitations"
  19847. },
  19848. deleteHook: {
  19849. method: "DELETE",
  19850. params: {
  19851. hook_id: {
  19852. required: true,
  19853. type: "integer"
  19854. },
  19855. org: {
  19856. required: true,
  19857. type: "string"
  19858. }
  19859. },
  19860. url: "/orgs/:org/hooks/:hook_id"
  19861. },
  19862. get: {
  19863. method: "GET",
  19864. params: {
  19865. org: {
  19866. required: true,
  19867. type: "string"
  19868. }
  19869. },
  19870. url: "/orgs/:org"
  19871. },
  19872. getHook: {
  19873. method: "GET",
  19874. params: {
  19875. hook_id: {
  19876. required: true,
  19877. type: "integer"
  19878. },
  19879. org: {
  19880. required: true,
  19881. type: "string"
  19882. }
  19883. },
  19884. url: "/orgs/:org/hooks/:hook_id"
  19885. },
  19886. getMembership: {
  19887. method: "GET",
  19888. params: {
  19889. org: {
  19890. required: true,
  19891. type: "string"
  19892. },
  19893. username: {
  19894. required: true,
  19895. type: "string"
  19896. }
  19897. },
  19898. url: "/orgs/:org/memberships/:username"
  19899. },
  19900. getMembershipForAuthenticatedUser: {
  19901. method: "GET",
  19902. params: {
  19903. org: {
  19904. required: true,
  19905. type: "string"
  19906. }
  19907. },
  19908. url: "/user/memberships/orgs/:org"
  19909. },
  19910. list: {
  19911. method: "GET",
  19912. params: {
  19913. page: {
  19914. type: "integer"
  19915. },
  19916. per_page: {
  19917. type: "integer"
  19918. },
  19919. since: {
  19920. type: "integer"
  19921. }
  19922. },
  19923. url: "/organizations"
  19924. },
  19925. listBlockedUsers: {
  19926. method: "GET",
  19927. params: {
  19928. org: {
  19929. required: true,
  19930. type: "string"
  19931. }
  19932. },
  19933. url: "/orgs/:org/blocks"
  19934. },
  19935. listForAuthenticatedUser: {
  19936. method: "GET",
  19937. params: {
  19938. page: {
  19939. type: "integer"
  19940. },
  19941. per_page: {
  19942. type: "integer"
  19943. }
  19944. },
  19945. url: "/user/orgs"
  19946. },
  19947. listForUser: {
  19948. method: "GET",
  19949. params: {
  19950. page: {
  19951. type: "integer"
  19952. },
  19953. per_page: {
  19954. type: "integer"
  19955. },
  19956. username: {
  19957. required: true,
  19958. type: "string"
  19959. }
  19960. },
  19961. url: "/users/:username/orgs"
  19962. },
  19963. listHooks: {
  19964. method: "GET",
  19965. params: {
  19966. org: {
  19967. required: true,
  19968. type: "string"
  19969. },
  19970. page: {
  19971. type: "integer"
  19972. },
  19973. per_page: {
  19974. type: "integer"
  19975. }
  19976. },
  19977. url: "/orgs/:org/hooks"
  19978. },
  19979. listInstallations: {
  19980. headers: {
  19981. accept: "application/vnd.github.machine-man-preview+json"
  19982. },
  19983. method: "GET",
  19984. params: {
  19985. org: {
  19986. required: true,
  19987. type: "string"
  19988. },
  19989. page: {
  19990. type: "integer"
  19991. },
  19992. per_page: {
  19993. type: "integer"
  19994. }
  19995. },
  19996. url: "/orgs/:org/installations"
  19997. },
  19998. listInvitationTeams: {
  19999. method: "GET",
  20000. params: {
  20001. invitation_id: {
  20002. required: true,
  20003. type: "integer"
  20004. },
  20005. org: {
  20006. required: true,
  20007. type: "string"
  20008. },
  20009. page: {
  20010. type: "integer"
  20011. },
  20012. per_page: {
  20013. type: "integer"
  20014. }
  20015. },
  20016. url: "/orgs/:org/invitations/:invitation_id/teams"
  20017. },
  20018. listMembers: {
  20019. method: "GET",
  20020. params: {
  20021. filter: {
  20022. enum: ["2fa_disabled", "all"],
  20023. type: "string"
  20024. },
  20025. org: {
  20026. required: true,
  20027. type: "string"
  20028. },
  20029. page: {
  20030. type: "integer"
  20031. },
  20032. per_page: {
  20033. type: "integer"
  20034. },
  20035. role: {
  20036. enum: ["all", "admin", "member"],
  20037. type: "string"
  20038. }
  20039. },
  20040. url: "/orgs/:org/members"
  20041. },
  20042. listMemberships: {
  20043. method: "GET",
  20044. params: {
  20045. page: {
  20046. type: "integer"
  20047. },
  20048. per_page: {
  20049. type: "integer"
  20050. },
  20051. state: {
  20052. enum: ["active", "pending"],
  20053. type: "string"
  20054. }
  20055. },
  20056. url: "/user/memberships/orgs"
  20057. },
  20058. listOutsideCollaborators: {
  20059. method: "GET",
  20060. params: {
  20061. filter: {
  20062. enum: ["2fa_disabled", "all"],
  20063. type: "string"
  20064. },
  20065. org: {
  20066. required: true,
  20067. type: "string"
  20068. },
  20069. page: {
  20070. type: "integer"
  20071. },
  20072. per_page: {
  20073. type: "integer"
  20074. }
  20075. },
  20076. url: "/orgs/:org/outside_collaborators"
  20077. },
  20078. listPendingInvitations: {
  20079. method: "GET",
  20080. params: {
  20081. org: {
  20082. required: true,
  20083. type: "string"
  20084. },
  20085. page: {
  20086. type: "integer"
  20087. },
  20088. per_page: {
  20089. type: "integer"
  20090. }
  20091. },
  20092. url: "/orgs/:org/invitations"
  20093. },
  20094. listPublicMembers: {
  20095. method: "GET",
  20096. params: {
  20097. org: {
  20098. required: true,
  20099. type: "string"
  20100. },
  20101. page: {
  20102. type: "integer"
  20103. },
  20104. per_page: {
  20105. type: "integer"
  20106. }
  20107. },
  20108. url: "/orgs/:org/public_members"
  20109. },
  20110. pingHook: {
  20111. method: "POST",
  20112. params: {
  20113. hook_id: {
  20114. required: true,
  20115. type: "integer"
  20116. },
  20117. org: {
  20118. required: true,
  20119. type: "string"
  20120. }
  20121. },
  20122. url: "/orgs/:org/hooks/:hook_id/pings"
  20123. },
  20124. publicizeMembership: {
  20125. method: "PUT",
  20126. params: {
  20127. org: {
  20128. required: true,
  20129. type: "string"
  20130. },
  20131. username: {
  20132. required: true,
  20133. type: "string"
  20134. }
  20135. },
  20136. url: "/orgs/:org/public_members/:username"
  20137. },
  20138. removeMember: {
  20139. method: "DELETE",
  20140. params: {
  20141. org: {
  20142. required: true,
  20143. type: "string"
  20144. },
  20145. username: {
  20146. required: true,
  20147. type: "string"
  20148. }
  20149. },
  20150. url: "/orgs/:org/members/:username"
  20151. },
  20152. removeMembership: {
  20153. method: "DELETE",
  20154. params: {
  20155. org: {
  20156. required: true,
  20157. type: "string"
  20158. },
  20159. username: {
  20160. required: true,
  20161. type: "string"
  20162. }
  20163. },
  20164. url: "/orgs/:org/memberships/:username"
  20165. },
  20166. removeOutsideCollaborator: {
  20167. method: "DELETE",
  20168. params: {
  20169. org: {
  20170. required: true,
  20171. type: "string"
  20172. },
  20173. username: {
  20174. required: true,
  20175. type: "string"
  20176. }
  20177. },
  20178. url: "/orgs/:org/outside_collaborators/:username"
  20179. },
  20180. unblockUser: {
  20181. method: "DELETE",
  20182. params: {
  20183. org: {
  20184. required: true,
  20185. type: "string"
  20186. },
  20187. username: {
  20188. required: true,
  20189. type: "string"
  20190. }
  20191. },
  20192. url: "/orgs/:org/blocks/:username"
  20193. },
  20194. update: {
  20195. method: "PATCH",
  20196. params: {
  20197. billing_email: {
  20198. type: "string"
  20199. },
  20200. company: {
  20201. type: "string"
  20202. },
  20203. default_repository_permission: {
  20204. enum: ["read", "write", "admin", "none"],
  20205. type: "string"
  20206. },
  20207. description: {
  20208. type: "string"
  20209. },
  20210. email: {
  20211. type: "string"
  20212. },
  20213. has_organization_projects: {
  20214. type: "boolean"
  20215. },
  20216. has_repository_projects: {
  20217. type: "boolean"
  20218. },
  20219. location: {
  20220. type: "string"
  20221. },
  20222. members_allowed_repository_creation_type: {
  20223. enum: ["all", "private", "none"],
  20224. type: "string"
  20225. },
  20226. members_can_create_internal_repositories: {
  20227. type: "boolean"
  20228. },
  20229. members_can_create_private_repositories: {
  20230. type: "boolean"
  20231. },
  20232. members_can_create_public_repositories: {
  20233. type: "boolean"
  20234. },
  20235. members_can_create_repositories: {
  20236. type: "boolean"
  20237. },
  20238. name: {
  20239. type: "string"
  20240. },
  20241. org: {
  20242. required: true,
  20243. type: "string"
  20244. }
  20245. },
  20246. url: "/orgs/:org"
  20247. },
  20248. updateHook: {
  20249. method: "PATCH",
  20250. params: {
  20251. active: {
  20252. type: "boolean"
  20253. },
  20254. config: {
  20255. type: "object"
  20256. },
  20257. "config.content_type": {
  20258. type: "string"
  20259. },
  20260. "config.insecure_ssl": {
  20261. type: "string"
  20262. },
  20263. "config.secret": {
  20264. type: "string"
  20265. },
  20266. "config.url": {
  20267. required: true,
  20268. type: "string"
  20269. },
  20270. events: {
  20271. type: "string[]"
  20272. },
  20273. hook_id: {
  20274. required: true,
  20275. type: "integer"
  20276. },
  20277. org: {
  20278. required: true,
  20279. type: "string"
  20280. }
  20281. },
  20282. url: "/orgs/:org/hooks/:hook_id"
  20283. },
  20284. updateMembership: {
  20285. method: "PATCH",
  20286. params: {
  20287. org: {
  20288. required: true,
  20289. type: "string"
  20290. },
  20291. state: {
  20292. enum: ["active"],
  20293. required: true,
  20294. type: "string"
  20295. }
  20296. },
  20297. url: "/user/memberships/orgs/:org"
  20298. }
  20299. },
  20300. projects: {
  20301. addCollaborator: {
  20302. headers: {
  20303. accept: "application/vnd.github.inertia-preview+json"
  20304. },
  20305. method: "PUT",
  20306. params: {
  20307. permission: {
  20308. enum: ["read", "write", "admin"],
  20309. type: "string"
  20310. },
  20311. project_id: {
  20312. required: true,
  20313. type: "integer"
  20314. },
  20315. username: {
  20316. required: true,
  20317. type: "string"
  20318. }
  20319. },
  20320. url: "/projects/:project_id/collaborators/:username"
  20321. },
  20322. createCard: {
  20323. headers: {
  20324. accept: "application/vnd.github.inertia-preview+json"
  20325. },
  20326. method: "POST",
  20327. params: {
  20328. column_id: {
  20329. required: true,
  20330. type: "integer"
  20331. },
  20332. content_id: {
  20333. type: "integer"
  20334. },
  20335. content_type: {
  20336. type: "string"
  20337. },
  20338. note: {
  20339. type: "string"
  20340. }
  20341. },
  20342. url: "/projects/columns/:column_id/cards"
  20343. },
  20344. createColumn: {
  20345. headers: {
  20346. accept: "application/vnd.github.inertia-preview+json"
  20347. },
  20348. method: "POST",
  20349. params: {
  20350. name: {
  20351. required: true,
  20352. type: "string"
  20353. },
  20354. project_id: {
  20355. required: true,
  20356. type: "integer"
  20357. }
  20358. },
  20359. url: "/projects/:project_id/columns"
  20360. },
  20361. createForAuthenticatedUser: {
  20362. headers: {
  20363. accept: "application/vnd.github.inertia-preview+json"
  20364. },
  20365. method: "POST",
  20366. params: {
  20367. body: {
  20368. type: "string"
  20369. },
  20370. name: {
  20371. required: true,
  20372. type: "string"
  20373. }
  20374. },
  20375. url: "/user/projects"
  20376. },
  20377. createForOrg: {
  20378. headers: {
  20379. accept: "application/vnd.github.inertia-preview+json"
  20380. },
  20381. method: "POST",
  20382. params: {
  20383. body: {
  20384. type: "string"
  20385. },
  20386. name: {
  20387. required: true,
  20388. type: "string"
  20389. },
  20390. org: {
  20391. required: true,
  20392. type: "string"
  20393. }
  20394. },
  20395. url: "/orgs/:org/projects"
  20396. },
  20397. createForRepo: {
  20398. headers: {
  20399. accept: "application/vnd.github.inertia-preview+json"
  20400. },
  20401. method: "POST",
  20402. params: {
  20403. body: {
  20404. type: "string"
  20405. },
  20406. name: {
  20407. required: true,
  20408. type: "string"
  20409. },
  20410. owner: {
  20411. required: true,
  20412. type: "string"
  20413. },
  20414. repo: {
  20415. required: true,
  20416. type: "string"
  20417. }
  20418. },
  20419. url: "/repos/:owner/:repo/projects"
  20420. },
  20421. delete: {
  20422. headers: {
  20423. accept: "application/vnd.github.inertia-preview+json"
  20424. },
  20425. method: "DELETE",
  20426. params: {
  20427. project_id: {
  20428. required: true,
  20429. type: "integer"
  20430. }
  20431. },
  20432. url: "/projects/:project_id"
  20433. },
  20434. deleteCard: {
  20435. headers: {
  20436. accept: "application/vnd.github.inertia-preview+json"
  20437. },
  20438. method: "DELETE",
  20439. params: {
  20440. card_id: {
  20441. required: true,
  20442. type: "integer"
  20443. }
  20444. },
  20445. url: "/projects/columns/cards/:card_id"
  20446. },
  20447. deleteColumn: {
  20448. headers: {
  20449. accept: "application/vnd.github.inertia-preview+json"
  20450. },
  20451. method: "DELETE",
  20452. params: {
  20453. column_id: {
  20454. required: true,
  20455. type: "integer"
  20456. }
  20457. },
  20458. url: "/projects/columns/:column_id"
  20459. },
  20460. get: {
  20461. headers: {
  20462. accept: "application/vnd.github.inertia-preview+json"
  20463. },
  20464. method: "GET",
  20465. params: {
  20466. project_id: {
  20467. required: true,
  20468. type: "integer"
  20469. }
  20470. },
  20471. url: "/projects/:project_id"
  20472. },
  20473. getCard: {
  20474. headers: {
  20475. accept: "application/vnd.github.inertia-preview+json"
  20476. },
  20477. method: "GET",
  20478. params: {
  20479. card_id: {
  20480. required: true,
  20481. type: "integer"
  20482. }
  20483. },
  20484. url: "/projects/columns/cards/:card_id"
  20485. },
  20486. getColumn: {
  20487. headers: {
  20488. accept: "application/vnd.github.inertia-preview+json"
  20489. },
  20490. method: "GET",
  20491. params: {
  20492. column_id: {
  20493. required: true,
  20494. type: "integer"
  20495. }
  20496. },
  20497. url: "/projects/columns/:column_id"
  20498. },
  20499. listCards: {
  20500. headers: {
  20501. accept: "application/vnd.github.inertia-preview+json"
  20502. },
  20503. method: "GET",
  20504. params: {
  20505. archived_state: {
  20506. enum: ["all", "archived", "not_archived"],
  20507. type: "string"
  20508. },
  20509. column_id: {
  20510. required: true,
  20511. type: "integer"
  20512. },
  20513. page: {
  20514. type: "integer"
  20515. },
  20516. per_page: {
  20517. type: "integer"
  20518. }
  20519. },
  20520. url: "/projects/columns/:column_id/cards"
  20521. },
  20522. listCollaborators: {
  20523. headers: {
  20524. accept: "application/vnd.github.inertia-preview+json"
  20525. },
  20526. method: "GET",
  20527. params: {
  20528. affiliation: {
  20529. enum: ["outside", "direct", "all"],
  20530. type: "string"
  20531. },
  20532. page: {
  20533. type: "integer"
  20534. },
  20535. per_page: {
  20536. type: "integer"
  20537. },
  20538. project_id: {
  20539. required: true,
  20540. type: "integer"
  20541. }
  20542. },
  20543. url: "/projects/:project_id/collaborators"
  20544. },
  20545. listColumns: {
  20546. headers: {
  20547. accept: "application/vnd.github.inertia-preview+json"
  20548. },
  20549. method: "GET",
  20550. params: {
  20551. page: {
  20552. type: "integer"
  20553. },
  20554. per_page: {
  20555. type: "integer"
  20556. },
  20557. project_id: {
  20558. required: true,
  20559. type: "integer"
  20560. }
  20561. },
  20562. url: "/projects/:project_id/columns"
  20563. },
  20564. listForOrg: {
  20565. headers: {
  20566. accept: "application/vnd.github.inertia-preview+json"
  20567. },
  20568. method: "GET",
  20569. params: {
  20570. org: {
  20571. required: true,
  20572. type: "string"
  20573. },
  20574. page: {
  20575. type: "integer"
  20576. },
  20577. per_page: {
  20578. type: "integer"
  20579. },
  20580. state: {
  20581. enum: ["open", "closed", "all"],
  20582. type: "string"
  20583. }
  20584. },
  20585. url: "/orgs/:org/projects"
  20586. },
  20587. listForRepo: {
  20588. headers: {
  20589. accept: "application/vnd.github.inertia-preview+json"
  20590. },
  20591. method: "GET",
  20592. params: {
  20593. owner: {
  20594. required: true,
  20595. type: "string"
  20596. },
  20597. page: {
  20598. type: "integer"
  20599. },
  20600. per_page: {
  20601. type: "integer"
  20602. },
  20603. repo: {
  20604. required: true,
  20605. type: "string"
  20606. },
  20607. state: {
  20608. enum: ["open", "closed", "all"],
  20609. type: "string"
  20610. }
  20611. },
  20612. url: "/repos/:owner/:repo/projects"
  20613. },
  20614. listForUser: {
  20615. headers: {
  20616. accept: "application/vnd.github.inertia-preview+json"
  20617. },
  20618. method: "GET",
  20619. params: {
  20620. page: {
  20621. type: "integer"
  20622. },
  20623. per_page: {
  20624. type: "integer"
  20625. },
  20626. state: {
  20627. enum: ["open", "closed", "all"],
  20628. type: "string"
  20629. },
  20630. username: {
  20631. required: true,
  20632. type: "string"
  20633. }
  20634. },
  20635. url: "/users/:username/projects"
  20636. },
  20637. moveCard: {
  20638. headers: {
  20639. accept: "application/vnd.github.inertia-preview+json"
  20640. },
  20641. method: "POST",
  20642. params: {
  20643. card_id: {
  20644. required: true,
  20645. type: "integer"
  20646. },
  20647. column_id: {
  20648. type: "integer"
  20649. },
  20650. position: {
  20651. required: true,
  20652. type: "string",
  20653. validation: "^(top|bottom|after:\\d+)$"
  20654. }
  20655. },
  20656. url: "/projects/columns/cards/:card_id/moves"
  20657. },
  20658. moveColumn: {
  20659. headers: {
  20660. accept: "application/vnd.github.inertia-preview+json"
  20661. },
  20662. method: "POST",
  20663. params: {
  20664. column_id: {
  20665. required: true,
  20666. type: "integer"
  20667. },
  20668. position: {
  20669. required: true,
  20670. type: "string",
  20671. validation: "^(first|last|after:\\d+)$"
  20672. }
  20673. },
  20674. url: "/projects/columns/:column_id/moves"
  20675. },
  20676. removeCollaborator: {
  20677. headers: {
  20678. accept: "application/vnd.github.inertia-preview+json"
  20679. },
  20680. method: "DELETE",
  20681. params: {
  20682. project_id: {
  20683. required: true,
  20684. type: "integer"
  20685. },
  20686. username: {
  20687. required: true,
  20688. type: "string"
  20689. }
  20690. },
  20691. url: "/projects/:project_id/collaborators/:username"
  20692. },
  20693. reviewUserPermissionLevel: {
  20694. headers: {
  20695. accept: "application/vnd.github.inertia-preview+json"
  20696. },
  20697. method: "GET",
  20698. params: {
  20699. project_id: {
  20700. required: true,
  20701. type: "integer"
  20702. },
  20703. username: {
  20704. required: true,
  20705. type: "string"
  20706. }
  20707. },
  20708. url: "/projects/:project_id/collaborators/:username/permission"
  20709. },
  20710. update: {
  20711. headers: {
  20712. accept: "application/vnd.github.inertia-preview+json"
  20713. },
  20714. method: "PATCH",
  20715. params: {
  20716. body: {
  20717. type: "string"
  20718. },
  20719. name: {
  20720. type: "string"
  20721. },
  20722. organization_permission: {
  20723. type: "string"
  20724. },
  20725. private: {
  20726. type: "boolean"
  20727. },
  20728. project_id: {
  20729. required: true,
  20730. type: "integer"
  20731. },
  20732. state: {
  20733. enum: ["open", "closed"],
  20734. type: "string"
  20735. }
  20736. },
  20737. url: "/projects/:project_id"
  20738. },
  20739. updateCard: {
  20740. headers: {
  20741. accept: "application/vnd.github.inertia-preview+json"
  20742. },
  20743. method: "PATCH",
  20744. params: {
  20745. archived: {
  20746. type: "boolean"
  20747. },
  20748. card_id: {
  20749. required: true,
  20750. type: "integer"
  20751. },
  20752. note: {
  20753. type: "string"
  20754. }
  20755. },
  20756. url: "/projects/columns/cards/:card_id"
  20757. },
  20758. updateColumn: {
  20759. headers: {
  20760. accept: "application/vnd.github.inertia-preview+json"
  20761. },
  20762. method: "PATCH",
  20763. params: {
  20764. column_id: {
  20765. required: true,
  20766. type: "integer"
  20767. },
  20768. name: {
  20769. required: true,
  20770. type: "string"
  20771. }
  20772. },
  20773. url: "/projects/columns/:column_id"
  20774. }
  20775. },
  20776. pulls: {
  20777. checkIfMerged: {
  20778. method: "GET",
  20779. params: {
  20780. number: {
  20781. alias: "pull_number",
  20782. deprecated: true,
  20783. type: "integer"
  20784. },
  20785. owner: {
  20786. required: true,
  20787. type: "string"
  20788. },
  20789. pull_number: {
  20790. required: true,
  20791. type: "integer"
  20792. },
  20793. repo: {
  20794. required: true,
  20795. type: "string"
  20796. }
  20797. },
  20798. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  20799. },
  20800. create: {
  20801. method: "POST",
  20802. params: {
  20803. base: {
  20804. required: true,
  20805. type: "string"
  20806. },
  20807. body: {
  20808. type: "string"
  20809. },
  20810. draft: {
  20811. type: "boolean"
  20812. },
  20813. head: {
  20814. required: true,
  20815. type: "string"
  20816. },
  20817. maintainer_can_modify: {
  20818. type: "boolean"
  20819. },
  20820. owner: {
  20821. required: true,
  20822. type: "string"
  20823. },
  20824. repo: {
  20825. required: true,
  20826. type: "string"
  20827. },
  20828. title: {
  20829. required: true,
  20830. type: "string"
  20831. }
  20832. },
  20833. url: "/repos/:owner/:repo/pulls"
  20834. },
  20835. createComment: {
  20836. method: "POST",
  20837. params: {
  20838. body: {
  20839. required: true,
  20840. type: "string"
  20841. },
  20842. commit_id: {
  20843. required: true,
  20844. type: "string"
  20845. },
  20846. in_reply_to: {
  20847. deprecated: true,
  20848. 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.",
  20849. type: "integer"
  20850. },
  20851. line: {
  20852. type: "integer"
  20853. },
  20854. number: {
  20855. alias: "pull_number",
  20856. deprecated: true,
  20857. type: "integer"
  20858. },
  20859. owner: {
  20860. required: true,
  20861. type: "string"
  20862. },
  20863. path: {
  20864. required: true,
  20865. type: "string"
  20866. },
  20867. position: {
  20868. type: "integer"
  20869. },
  20870. pull_number: {
  20871. required: true,
  20872. type: "integer"
  20873. },
  20874. repo: {
  20875. required: true,
  20876. type: "string"
  20877. },
  20878. side: {
  20879. enum: ["LEFT", "RIGHT"],
  20880. type: "string"
  20881. },
  20882. start_line: {
  20883. type: "integer"
  20884. },
  20885. start_side: {
  20886. enum: ["LEFT", "RIGHT", "side"],
  20887. type: "string"
  20888. }
  20889. },
  20890. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  20891. },
  20892. createCommentReply: {
  20893. deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
  20894. method: "POST",
  20895. params: {
  20896. body: {
  20897. required: true,
  20898. type: "string"
  20899. },
  20900. commit_id: {
  20901. required: true,
  20902. type: "string"
  20903. },
  20904. in_reply_to: {
  20905. deprecated: true,
  20906. 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.",
  20907. type: "integer"
  20908. },
  20909. line: {
  20910. type: "integer"
  20911. },
  20912. number: {
  20913. alias: "pull_number",
  20914. deprecated: true,
  20915. type: "integer"
  20916. },
  20917. owner: {
  20918. required: true,
  20919. type: "string"
  20920. },
  20921. path: {
  20922. required: true,
  20923. type: "string"
  20924. },
  20925. position: {
  20926. type: "integer"
  20927. },
  20928. pull_number: {
  20929. required: true,
  20930. type: "integer"
  20931. },
  20932. repo: {
  20933. required: true,
  20934. type: "string"
  20935. },
  20936. side: {
  20937. enum: ["LEFT", "RIGHT"],
  20938. type: "string"
  20939. },
  20940. start_line: {
  20941. type: "integer"
  20942. },
  20943. start_side: {
  20944. enum: ["LEFT", "RIGHT", "side"],
  20945. type: "string"
  20946. }
  20947. },
  20948. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  20949. },
  20950. createFromIssue: {
  20951. deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
  20952. method: "POST",
  20953. params: {
  20954. base: {
  20955. required: true,
  20956. type: "string"
  20957. },
  20958. draft: {
  20959. type: "boolean"
  20960. },
  20961. head: {
  20962. required: true,
  20963. type: "string"
  20964. },
  20965. issue: {
  20966. required: true,
  20967. type: "integer"
  20968. },
  20969. maintainer_can_modify: {
  20970. type: "boolean"
  20971. },
  20972. owner: {
  20973. required: true,
  20974. type: "string"
  20975. },
  20976. repo: {
  20977. required: true,
  20978. type: "string"
  20979. }
  20980. },
  20981. url: "/repos/:owner/:repo/pulls"
  20982. },
  20983. createReview: {
  20984. method: "POST",
  20985. params: {
  20986. body: {
  20987. type: "string"
  20988. },
  20989. comments: {
  20990. type: "object[]"
  20991. },
  20992. "comments[].body": {
  20993. required: true,
  20994. type: "string"
  20995. },
  20996. "comments[].path": {
  20997. required: true,
  20998. type: "string"
  20999. },
  21000. "comments[].position": {
  21001. required: true,
  21002. type: "integer"
  21003. },
  21004. commit_id: {
  21005. type: "string"
  21006. },
  21007. event: {
  21008. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  21009. type: "string"
  21010. },
  21011. number: {
  21012. alias: "pull_number",
  21013. deprecated: true,
  21014. type: "integer"
  21015. },
  21016. owner: {
  21017. required: true,
  21018. type: "string"
  21019. },
  21020. pull_number: {
  21021. required: true,
  21022. type: "integer"
  21023. },
  21024. repo: {
  21025. required: true,
  21026. type: "string"
  21027. }
  21028. },
  21029. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  21030. },
  21031. createReviewCommentReply: {
  21032. method: "POST",
  21033. params: {
  21034. body: {
  21035. required: true,
  21036. type: "string"
  21037. },
  21038. comment_id: {
  21039. required: true,
  21040. type: "integer"
  21041. },
  21042. owner: {
  21043. required: true,
  21044. type: "string"
  21045. },
  21046. pull_number: {
  21047. required: true,
  21048. type: "integer"
  21049. },
  21050. repo: {
  21051. required: true,
  21052. type: "string"
  21053. }
  21054. },
  21055. url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
  21056. },
  21057. createReviewRequest: {
  21058. method: "POST",
  21059. params: {
  21060. number: {
  21061. alias: "pull_number",
  21062. deprecated: true,
  21063. type: "integer"
  21064. },
  21065. owner: {
  21066. required: true,
  21067. type: "string"
  21068. },
  21069. pull_number: {
  21070. required: true,
  21071. type: "integer"
  21072. },
  21073. repo: {
  21074. required: true,
  21075. type: "string"
  21076. },
  21077. reviewers: {
  21078. type: "string[]"
  21079. },
  21080. team_reviewers: {
  21081. type: "string[]"
  21082. }
  21083. },
  21084. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  21085. },
  21086. deleteComment: {
  21087. method: "DELETE",
  21088. params: {
  21089. comment_id: {
  21090. required: true,
  21091. type: "integer"
  21092. },
  21093. owner: {
  21094. required: true,
  21095. type: "string"
  21096. },
  21097. repo: {
  21098. required: true,
  21099. type: "string"
  21100. }
  21101. },
  21102. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  21103. },
  21104. deletePendingReview: {
  21105. method: "DELETE",
  21106. params: {
  21107. number: {
  21108. alias: "pull_number",
  21109. deprecated: true,
  21110. type: "integer"
  21111. },
  21112. owner: {
  21113. required: true,
  21114. type: "string"
  21115. },
  21116. pull_number: {
  21117. required: true,
  21118. type: "integer"
  21119. },
  21120. repo: {
  21121. required: true,
  21122. type: "string"
  21123. },
  21124. review_id: {
  21125. required: true,
  21126. type: "integer"
  21127. }
  21128. },
  21129. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  21130. },
  21131. deleteReviewRequest: {
  21132. method: "DELETE",
  21133. params: {
  21134. number: {
  21135. alias: "pull_number",
  21136. deprecated: true,
  21137. type: "integer"
  21138. },
  21139. owner: {
  21140. required: true,
  21141. type: "string"
  21142. },
  21143. pull_number: {
  21144. required: true,
  21145. type: "integer"
  21146. },
  21147. repo: {
  21148. required: true,
  21149. type: "string"
  21150. },
  21151. reviewers: {
  21152. type: "string[]"
  21153. },
  21154. team_reviewers: {
  21155. type: "string[]"
  21156. }
  21157. },
  21158. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  21159. },
  21160. dismissReview: {
  21161. method: "PUT",
  21162. params: {
  21163. message: {
  21164. required: true,
  21165. type: "string"
  21166. },
  21167. number: {
  21168. alias: "pull_number",
  21169. deprecated: true,
  21170. type: "integer"
  21171. },
  21172. owner: {
  21173. required: true,
  21174. type: "string"
  21175. },
  21176. pull_number: {
  21177. required: true,
  21178. type: "integer"
  21179. },
  21180. repo: {
  21181. required: true,
  21182. type: "string"
  21183. },
  21184. review_id: {
  21185. required: true,
  21186. type: "integer"
  21187. }
  21188. },
  21189. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
  21190. },
  21191. get: {
  21192. method: "GET",
  21193. params: {
  21194. number: {
  21195. alias: "pull_number",
  21196. deprecated: true,
  21197. type: "integer"
  21198. },
  21199. owner: {
  21200. required: true,
  21201. type: "string"
  21202. },
  21203. pull_number: {
  21204. required: true,
  21205. type: "integer"
  21206. },
  21207. repo: {
  21208. required: true,
  21209. type: "string"
  21210. }
  21211. },
  21212. url: "/repos/:owner/:repo/pulls/:pull_number"
  21213. },
  21214. getComment: {
  21215. method: "GET",
  21216. params: {
  21217. comment_id: {
  21218. required: true,
  21219. type: "integer"
  21220. },
  21221. owner: {
  21222. required: true,
  21223. type: "string"
  21224. },
  21225. repo: {
  21226. required: true,
  21227. type: "string"
  21228. }
  21229. },
  21230. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  21231. },
  21232. getCommentsForReview: {
  21233. method: "GET",
  21234. params: {
  21235. number: {
  21236. alias: "pull_number",
  21237. deprecated: true,
  21238. type: "integer"
  21239. },
  21240. owner: {
  21241. required: true,
  21242. type: "string"
  21243. },
  21244. page: {
  21245. type: "integer"
  21246. },
  21247. per_page: {
  21248. type: "integer"
  21249. },
  21250. pull_number: {
  21251. required: true,
  21252. type: "integer"
  21253. },
  21254. repo: {
  21255. required: true,
  21256. type: "string"
  21257. },
  21258. review_id: {
  21259. required: true,
  21260. type: "integer"
  21261. }
  21262. },
  21263. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
  21264. },
  21265. getReview: {
  21266. method: "GET",
  21267. params: {
  21268. number: {
  21269. alias: "pull_number",
  21270. deprecated: true,
  21271. type: "integer"
  21272. },
  21273. owner: {
  21274. required: true,
  21275. type: "string"
  21276. },
  21277. pull_number: {
  21278. required: true,
  21279. type: "integer"
  21280. },
  21281. repo: {
  21282. required: true,
  21283. type: "string"
  21284. },
  21285. review_id: {
  21286. required: true,
  21287. type: "integer"
  21288. }
  21289. },
  21290. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  21291. },
  21292. list: {
  21293. method: "GET",
  21294. params: {
  21295. base: {
  21296. type: "string"
  21297. },
  21298. direction: {
  21299. enum: ["asc", "desc"],
  21300. type: "string"
  21301. },
  21302. head: {
  21303. type: "string"
  21304. },
  21305. owner: {
  21306. required: true,
  21307. type: "string"
  21308. },
  21309. page: {
  21310. type: "integer"
  21311. },
  21312. per_page: {
  21313. type: "integer"
  21314. },
  21315. repo: {
  21316. required: true,
  21317. type: "string"
  21318. },
  21319. sort: {
  21320. enum: ["created", "updated", "popularity", "long-running"],
  21321. type: "string"
  21322. },
  21323. state: {
  21324. enum: ["open", "closed", "all"],
  21325. type: "string"
  21326. }
  21327. },
  21328. url: "/repos/:owner/:repo/pulls"
  21329. },
  21330. listComments: {
  21331. method: "GET",
  21332. params: {
  21333. direction: {
  21334. enum: ["asc", "desc"],
  21335. type: "string"
  21336. },
  21337. number: {
  21338. alias: "pull_number",
  21339. deprecated: true,
  21340. type: "integer"
  21341. },
  21342. owner: {
  21343. required: true,
  21344. type: "string"
  21345. },
  21346. page: {
  21347. type: "integer"
  21348. },
  21349. per_page: {
  21350. type: "integer"
  21351. },
  21352. pull_number: {
  21353. required: true,
  21354. type: "integer"
  21355. },
  21356. repo: {
  21357. required: true,
  21358. type: "string"
  21359. },
  21360. since: {
  21361. type: "string"
  21362. },
  21363. sort: {
  21364. enum: ["created", "updated"],
  21365. type: "string"
  21366. }
  21367. },
  21368. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  21369. },
  21370. listCommentsForRepo: {
  21371. method: "GET",
  21372. params: {
  21373. direction: {
  21374. enum: ["asc", "desc"],
  21375. type: "string"
  21376. },
  21377. owner: {
  21378. required: true,
  21379. type: "string"
  21380. },
  21381. page: {
  21382. type: "integer"
  21383. },
  21384. per_page: {
  21385. type: "integer"
  21386. },
  21387. repo: {
  21388. required: true,
  21389. type: "string"
  21390. },
  21391. since: {
  21392. type: "string"
  21393. },
  21394. sort: {
  21395. enum: ["created", "updated"],
  21396. type: "string"
  21397. }
  21398. },
  21399. url: "/repos/:owner/:repo/pulls/comments"
  21400. },
  21401. listCommits: {
  21402. method: "GET",
  21403. params: {
  21404. number: {
  21405. alias: "pull_number",
  21406. deprecated: true,
  21407. type: "integer"
  21408. },
  21409. owner: {
  21410. required: true,
  21411. type: "string"
  21412. },
  21413. page: {
  21414. type: "integer"
  21415. },
  21416. per_page: {
  21417. type: "integer"
  21418. },
  21419. pull_number: {
  21420. required: true,
  21421. type: "integer"
  21422. },
  21423. repo: {
  21424. required: true,
  21425. type: "string"
  21426. }
  21427. },
  21428. url: "/repos/:owner/:repo/pulls/:pull_number/commits"
  21429. },
  21430. listFiles: {
  21431. method: "GET",
  21432. params: {
  21433. number: {
  21434. alias: "pull_number",
  21435. deprecated: true,
  21436. type: "integer"
  21437. },
  21438. owner: {
  21439. required: true,
  21440. type: "string"
  21441. },
  21442. page: {
  21443. type: "integer"
  21444. },
  21445. per_page: {
  21446. type: "integer"
  21447. },
  21448. pull_number: {
  21449. required: true,
  21450. type: "integer"
  21451. },
  21452. repo: {
  21453. required: true,
  21454. type: "string"
  21455. }
  21456. },
  21457. url: "/repos/:owner/:repo/pulls/:pull_number/files"
  21458. },
  21459. listReviewRequests: {
  21460. method: "GET",
  21461. params: {
  21462. number: {
  21463. alias: "pull_number",
  21464. deprecated: true,
  21465. type: "integer"
  21466. },
  21467. owner: {
  21468. required: true,
  21469. type: "string"
  21470. },
  21471. page: {
  21472. type: "integer"
  21473. },
  21474. per_page: {
  21475. type: "integer"
  21476. },
  21477. pull_number: {
  21478. required: true,
  21479. type: "integer"
  21480. },
  21481. repo: {
  21482. required: true,
  21483. type: "string"
  21484. }
  21485. },
  21486. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  21487. },
  21488. listReviews: {
  21489. method: "GET",
  21490. params: {
  21491. number: {
  21492. alias: "pull_number",
  21493. deprecated: true,
  21494. type: "integer"
  21495. },
  21496. owner: {
  21497. required: true,
  21498. type: "string"
  21499. },
  21500. page: {
  21501. type: "integer"
  21502. },
  21503. per_page: {
  21504. type: "integer"
  21505. },
  21506. pull_number: {
  21507. required: true,
  21508. type: "integer"
  21509. },
  21510. repo: {
  21511. required: true,
  21512. type: "string"
  21513. }
  21514. },
  21515. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  21516. },
  21517. merge: {
  21518. method: "PUT",
  21519. params: {
  21520. commit_message: {
  21521. type: "string"
  21522. },
  21523. commit_title: {
  21524. type: "string"
  21525. },
  21526. merge_method: {
  21527. enum: ["merge", "squash", "rebase"],
  21528. type: "string"
  21529. },
  21530. number: {
  21531. alias: "pull_number",
  21532. deprecated: true,
  21533. type: "integer"
  21534. },
  21535. owner: {
  21536. required: true,
  21537. type: "string"
  21538. },
  21539. pull_number: {
  21540. required: true,
  21541. type: "integer"
  21542. },
  21543. repo: {
  21544. required: true,
  21545. type: "string"
  21546. },
  21547. sha: {
  21548. type: "string"
  21549. }
  21550. },
  21551. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  21552. },
  21553. submitReview: {
  21554. method: "POST",
  21555. params: {
  21556. body: {
  21557. type: "string"
  21558. },
  21559. event: {
  21560. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  21561. required: true,
  21562. type: "string"
  21563. },
  21564. number: {
  21565. alias: "pull_number",
  21566. deprecated: true,
  21567. type: "integer"
  21568. },
  21569. owner: {
  21570. required: true,
  21571. type: "string"
  21572. },
  21573. pull_number: {
  21574. required: true,
  21575. type: "integer"
  21576. },
  21577. repo: {
  21578. required: true,
  21579. type: "string"
  21580. },
  21581. review_id: {
  21582. required: true,
  21583. type: "integer"
  21584. }
  21585. },
  21586. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
  21587. },
  21588. update: {
  21589. method: "PATCH",
  21590. params: {
  21591. base: {
  21592. type: "string"
  21593. },
  21594. body: {
  21595. type: "string"
  21596. },
  21597. maintainer_can_modify: {
  21598. type: "boolean"
  21599. },
  21600. number: {
  21601. alias: "pull_number",
  21602. deprecated: true,
  21603. type: "integer"
  21604. },
  21605. owner: {
  21606. required: true,
  21607. type: "string"
  21608. },
  21609. pull_number: {
  21610. required: true,
  21611. type: "integer"
  21612. },
  21613. repo: {
  21614. required: true,
  21615. type: "string"
  21616. },
  21617. state: {
  21618. enum: ["open", "closed"],
  21619. type: "string"
  21620. },
  21621. title: {
  21622. type: "string"
  21623. }
  21624. },
  21625. url: "/repos/:owner/:repo/pulls/:pull_number"
  21626. },
  21627. updateBranch: {
  21628. headers: {
  21629. accept: "application/vnd.github.lydian-preview+json"
  21630. },
  21631. method: "PUT",
  21632. params: {
  21633. expected_head_sha: {
  21634. type: "string"
  21635. },
  21636. owner: {
  21637. required: true,
  21638. type: "string"
  21639. },
  21640. pull_number: {
  21641. required: true,
  21642. type: "integer"
  21643. },
  21644. repo: {
  21645. required: true,
  21646. type: "string"
  21647. }
  21648. },
  21649. url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
  21650. },
  21651. updateComment: {
  21652. method: "PATCH",
  21653. params: {
  21654. body: {
  21655. required: true,
  21656. type: "string"
  21657. },
  21658. comment_id: {
  21659. required: true,
  21660. type: "integer"
  21661. },
  21662. owner: {
  21663. required: true,
  21664. type: "string"
  21665. },
  21666. repo: {
  21667. required: true,
  21668. type: "string"
  21669. }
  21670. },
  21671. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  21672. },
  21673. updateReview: {
  21674. method: "PUT",
  21675. params: {
  21676. body: {
  21677. required: true,
  21678. type: "string"
  21679. },
  21680. number: {
  21681. alias: "pull_number",
  21682. deprecated: true,
  21683. type: "integer"
  21684. },
  21685. owner: {
  21686. required: true,
  21687. type: "string"
  21688. },
  21689. pull_number: {
  21690. required: true,
  21691. type: "integer"
  21692. },
  21693. repo: {
  21694. required: true,
  21695. type: "string"
  21696. },
  21697. review_id: {
  21698. required: true,
  21699. type: "integer"
  21700. }
  21701. },
  21702. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  21703. }
  21704. },
  21705. rateLimit: {
  21706. get: {
  21707. method: "GET",
  21708. params: {},
  21709. url: "/rate_limit"
  21710. }
  21711. },
  21712. reactions: {
  21713. createForCommitComment: {
  21714. headers: {
  21715. accept: "application/vnd.github.squirrel-girl-preview+json"
  21716. },
  21717. method: "POST",
  21718. params: {
  21719. comment_id: {
  21720. required: true,
  21721. type: "integer"
  21722. },
  21723. content: {
  21724. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21725. required: true,
  21726. type: "string"
  21727. },
  21728. owner: {
  21729. required: true,
  21730. type: "string"
  21731. },
  21732. repo: {
  21733. required: true,
  21734. type: "string"
  21735. }
  21736. },
  21737. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  21738. },
  21739. createForIssue: {
  21740. headers: {
  21741. accept: "application/vnd.github.squirrel-girl-preview+json"
  21742. },
  21743. method: "POST",
  21744. params: {
  21745. content: {
  21746. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21747. required: true,
  21748. type: "string"
  21749. },
  21750. issue_number: {
  21751. required: true,
  21752. type: "integer"
  21753. },
  21754. number: {
  21755. alias: "issue_number",
  21756. deprecated: true,
  21757. type: "integer"
  21758. },
  21759. owner: {
  21760. required: true,
  21761. type: "string"
  21762. },
  21763. repo: {
  21764. required: true,
  21765. type: "string"
  21766. }
  21767. },
  21768. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  21769. },
  21770. createForIssueComment: {
  21771. headers: {
  21772. accept: "application/vnd.github.squirrel-girl-preview+json"
  21773. },
  21774. method: "POST",
  21775. params: {
  21776. comment_id: {
  21777. required: true,
  21778. type: "integer"
  21779. },
  21780. content: {
  21781. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21782. required: true,
  21783. type: "string"
  21784. },
  21785. owner: {
  21786. required: true,
  21787. type: "string"
  21788. },
  21789. repo: {
  21790. required: true,
  21791. type: "string"
  21792. }
  21793. },
  21794. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  21795. },
  21796. createForPullRequestReviewComment: {
  21797. headers: {
  21798. accept: "application/vnd.github.squirrel-girl-preview+json"
  21799. },
  21800. method: "POST",
  21801. params: {
  21802. comment_id: {
  21803. required: true,
  21804. type: "integer"
  21805. },
  21806. content: {
  21807. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21808. required: true,
  21809. type: "string"
  21810. },
  21811. owner: {
  21812. required: true,
  21813. type: "string"
  21814. },
  21815. repo: {
  21816. required: true,
  21817. type: "string"
  21818. }
  21819. },
  21820. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  21821. },
  21822. createForTeamDiscussion: {
  21823. deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
  21824. headers: {
  21825. accept: "application/vnd.github.squirrel-girl-preview+json"
  21826. },
  21827. method: "POST",
  21828. params: {
  21829. content: {
  21830. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21831. required: true,
  21832. type: "string"
  21833. },
  21834. discussion_number: {
  21835. required: true,
  21836. type: "integer"
  21837. },
  21838. team_id: {
  21839. required: true,
  21840. type: "integer"
  21841. }
  21842. },
  21843. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  21844. },
  21845. createForTeamDiscussionComment: {
  21846. deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
  21847. headers: {
  21848. accept: "application/vnd.github.squirrel-girl-preview+json"
  21849. },
  21850. method: "POST",
  21851. params: {
  21852. comment_number: {
  21853. required: true,
  21854. type: "integer"
  21855. },
  21856. content: {
  21857. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21858. required: true,
  21859. type: "string"
  21860. },
  21861. discussion_number: {
  21862. required: true,
  21863. type: "integer"
  21864. },
  21865. team_id: {
  21866. required: true,
  21867. type: "integer"
  21868. }
  21869. },
  21870. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  21871. },
  21872. createForTeamDiscussionCommentInOrg: {
  21873. headers: {
  21874. accept: "application/vnd.github.squirrel-girl-preview+json"
  21875. },
  21876. method: "POST",
  21877. params: {
  21878. comment_number: {
  21879. required: true,
  21880. type: "integer"
  21881. },
  21882. content: {
  21883. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21884. required: true,
  21885. type: "string"
  21886. },
  21887. discussion_number: {
  21888. required: true,
  21889. type: "integer"
  21890. },
  21891. org: {
  21892. required: true,
  21893. type: "string"
  21894. },
  21895. team_slug: {
  21896. required: true,
  21897. type: "string"
  21898. }
  21899. },
  21900. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  21901. },
  21902. createForTeamDiscussionCommentLegacy: {
  21903. deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
  21904. headers: {
  21905. accept: "application/vnd.github.squirrel-girl-preview+json"
  21906. },
  21907. method: "POST",
  21908. params: {
  21909. comment_number: {
  21910. required: true,
  21911. type: "integer"
  21912. },
  21913. content: {
  21914. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21915. required: true,
  21916. type: "string"
  21917. },
  21918. discussion_number: {
  21919. required: true,
  21920. type: "integer"
  21921. },
  21922. team_id: {
  21923. required: true,
  21924. type: "integer"
  21925. }
  21926. },
  21927. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  21928. },
  21929. createForTeamDiscussionInOrg: {
  21930. headers: {
  21931. accept: "application/vnd.github.squirrel-girl-preview+json"
  21932. },
  21933. method: "POST",
  21934. params: {
  21935. content: {
  21936. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21937. required: true,
  21938. type: "string"
  21939. },
  21940. discussion_number: {
  21941. required: true,
  21942. type: "integer"
  21943. },
  21944. org: {
  21945. required: true,
  21946. type: "string"
  21947. },
  21948. team_slug: {
  21949. required: true,
  21950. type: "string"
  21951. }
  21952. },
  21953. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  21954. },
  21955. createForTeamDiscussionLegacy: {
  21956. deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
  21957. headers: {
  21958. accept: "application/vnd.github.squirrel-girl-preview+json"
  21959. },
  21960. method: "POST",
  21961. params: {
  21962. content: {
  21963. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  21964. required: true,
  21965. type: "string"
  21966. },
  21967. discussion_number: {
  21968. required: true,
  21969. type: "integer"
  21970. },
  21971. team_id: {
  21972. required: true,
  21973. type: "integer"
  21974. }
  21975. },
  21976. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  21977. },
  21978. delete: {
  21979. headers: {
  21980. accept: "application/vnd.github.squirrel-girl-preview+json"
  21981. },
  21982. method: "DELETE",
  21983. params: {
  21984. reaction_id: {
  21985. required: true,
  21986. type: "integer"
  21987. }
  21988. },
  21989. url: "/reactions/:reaction_id"
  21990. },
  21991. listForCommitComment: {
  21992. headers: {
  21993. accept: "application/vnd.github.squirrel-girl-preview+json"
  21994. },
  21995. method: "GET",
  21996. params: {
  21997. comment_id: {
  21998. required: true,
  21999. type: "integer"
  22000. },
  22001. content: {
  22002. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22003. type: "string"
  22004. },
  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. },
  22020. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  22021. },
  22022. listForIssue: {
  22023. headers: {
  22024. accept: "application/vnd.github.squirrel-girl-preview+json"
  22025. },
  22026. method: "GET",
  22027. params: {
  22028. content: {
  22029. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22030. type: "string"
  22031. },
  22032. issue_number: {
  22033. required: true,
  22034. type: "integer"
  22035. },
  22036. number: {
  22037. alias: "issue_number",
  22038. deprecated: true,
  22039. type: "integer"
  22040. },
  22041. owner: {
  22042. required: true,
  22043. type: "string"
  22044. },
  22045. page: {
  22046. type: "integer"
  22047. },
  22048. per_page: {
  22049. type: "integer"
  22050. },
  22051. repo: {
  22052. required: true,
  22053. type: "string"
  22054. }
  22055. },
  22056. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  22057. },
  22058. listForIssueComment: {
  22059. headers: {
  22060. accept: "application/vnd.github.squirrel-girl-preview+json"
  22061. },
  22062. method: "GET",
  22063. params: {
  22064. comment_id: {
  22065. required: true,
  22066. type: "integer"
  22067. },
  22068. content: {
  22069. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22070. type: "string"
  22071. },
  22072. owner: {
  22073. required: true,
  22074. type: "string"
  22075. },
  22076. page: {
  22077. type: "integer"
  22078. },
  22079. per_page: {
  22080. type: "integer"
  22081. },
  22082. repo: {
  22083. required: true,
  22084. type: "string"
  22085. }
  22086. },
  22087. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  22088. },
  22089. listForPullRequestReviewComment: {
  22090. headers: {
  22091. accept: "application/vnd.github.squirrel-girl-preview+json"
  22092. },
  22093. method: "GET",
  22094. params: {
  22095. comment_id: {
  22096. required: true,
  22097. type: "integer"
  22098. },
  22099. content: {
  22100. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22101. type: "string"
  22102. },
  22103. owner: {
  22104. required: true,
  22105. type: "string"
  22106. },
  22107. page: {
  22108. type: "integer"
  22109. },
  22110. per_page: {
  22111. type: "integer"
  22112. },
  22113. repo: {
  22114. required: true,
  22115. type: "string"
  22116. }
  22117. },
  22118. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  22119. },
  22120. listForTeamDiscussion: {
  22121. deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
  22122. headers: {
  22123. accept: "application/vnd.github.squirrel-girl-preview+json"
  22124. },
  22125. method: "GET",
  22126. params: {
  22127. content: {
  22128. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22129. type: "string"
  22130. },
  22131. discussion_number: {
  22132. required: true,
  22133. type: "integer"
  22134. },
  22135. page: {
  22136. type: "integer"
  22137. },
  22138. per_page: {
  22139. type: "integer"
  22140. },
  22141. team_id: {
  22142. required: true,
  22143. type: "integer"
  22144. }
  22145. },
  22146. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  22147. },
  22148. listForTeamDiscussionComment: {
  22149. deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
  22150. headers: {
  22151. accept: "application/vnd.github.squirrel-girl-preview+json"
  22152. },
  22153. method: "GET",
  22154. params: {
  22155. comment_number: {
  22156. required: true,
  22157. type: "integer"
  22158. },
  22159. content: {
  22160. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22161. type: "string"
  22162. },
  22163. discussion_number: {
  22164. required: true,
  22165. type: "integer"
  22166. },
  22167. page: {
  22168. type: "integer"
  22169. },
  22170. per_page: {
  22171. type: "integer"
  22172. },
  22173. team_id: {
  22174. required: true,
  22175. type: "integer"
  22176. }
  22177. },
  22178. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  22179. },
  22180. listForTeamDiscussionCommentInOrg: {
  22181. headers: {
  22182. accept: "application/vnd.github.squirrel-girl-preview+json"
  22183. },
  22184. method: "GET",
  22185. params: {
  22186. comment_number: {
  22187. required: true,
  22188. type: "integer"
  22189. },
  22190. content: {
  22191. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22192. type: "string"
  22193. },
  22194. discussion_number: {
  22195. required: true,
  22196. type: "integer"
  22197. },
  22198. org: {
  22199. required: true,
  22200. type: "string"
  22201. },
  22202. page: {
  22203. type: "integer"
  22204. },
  22205. per_page: {
  22206. type: "integer"
  22207. },
  22208. team_slug: {
  22209. required: true,
  22210. type: "string"
  22211. }
  22212. },
  22213. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  22214. },
  22215. listForTeamDiscussionCommentLegacy: {
  22216. deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
  22217. headers: {
  22218. accept: "application/vnd.github.squirrel-girl-preview+json"
  22219. },
  22220. method: "GET",
  22221. params: {
  22222. comment_number: {
  22223. required: true,
  22224. type: "integer"
  22225. },
  22226. content: {
  22227. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22228. type: "string"
  22229. },
  22230. discussion_number: {
  22231. required: true,
  22232. type: "integer"
  22233. },
  22234. page: {
  22235. type: "integer"
  22236. },
  22237. per_page: {
  22238. type: "integer"
  22239. },
  22240. team_id: {
  22241. required: true,
  22242. type: "integer"
  22243. }
  22244. },
  22245. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  22246. },
  22247. listForTeamDiscussionInOrg: {
  22248. headers: {
  22249. accept: "application/vnd.github.squirrel-girl-preview+json"
  22250. },
  22251. method: "GET",
  22252. params: {
  22253. content: {
  22254. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22255. type: "string"
  22256. },
  22257. discussion_number: {
  22258. required: true,
  22259. type: "integer"
  22260. },
  22261. org: {
  22262. required: true,
  22263. type: "string"
  22264. },
  22265. page: {
  22266. type: "integer"
  22267. },
  22268. per_page: {
  22269. type: "integer"
  22270. },
  22271. team_slug: {
  22272. required: true,
  22273. type: "string"
  22274. }
  22275. },
  22276. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  22277. },
  22278. listForTeamDiscussionLegacy: {
  22279. deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
  22280. headers: {
  22281. accept: "application/vnd.github.squirrel-girl-preview+json"
  22282. },
  22283. method: "GET",
  22284. params: {
  22285. content: {
  22286. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22287. type: "string"
  22288. },
  22289. discussion_number: {
  22290. required: true,
  22291. type: "integer"
  22292. },
  22293. page: {
  22294. type: "integer"
  22295. },
  22296. per_page: {
  22297. type: "integer"
  22298. },
  22299. team_id: {
  22300. required: true,
  22301. type: "integer"
  22302. }
  22303. },
  22304. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  22305. }
  22306. },
  22307. repos: {
  22308. acceptInvitation: {
  22309. method: "PATCH",
  22310. params: {
  22311. invitation_id: {
  22312. required: true,
  22313. type: "integer"
  22314. }
  22315. },
  22316. url: "/user/repository_invitations/:invitation_id"
  22317. },
  22318. addCollaborator: {
  22319. method: "PUT",
  22320. params: {
  22321. owner: {
  22322. required: true,
  22323. type: "string"
  22324. },
  22325. permission: {
  22326. enum: ["pull", "push", "admin"],
  22327. type: "string"
  22328. },
  22329. repo: {
  22330. required: true,
  22331. type: "string"
  22332. },
  22333. username: {
  22334. required: true,
  22335. type: "string"
  22336. }
  22337. },
  22338. url: "/repos/:owner/:repo/collaborators/:username"
  22339. },
  22340. addDeployKey: {
  22341. method: "POST",
  22342. params: {
  22343. key: {
  22344. required: true,
  22345. type: "string"
  22346. },
  22347. owner: {
  22348. required: true,
  22349. type: "string"
  22350. },
  22351. read_only: {
  22352. type: "boolean"
  22353. },
  22354. repo: {
  22355. required: true,
  22356. type: "string"
  22357. },
  22358. title: {
  22359. type: "string"
  22360. }
  22361. },
  22362. url: "/repos/:owner/:repo/keys"
  22363. },
  22364. addProtectedBranchAdminEnforcement: {
  22365. method: "POST",
  22366. params: {
  22367. branch: {
  22368. required: true,
  22369. type: "string"
  22370. },
  22371. owner: {
  22372. required: true,
  22373. type: "string"
  22374. },
  22375. repo: {
  22376. required: true,
  22377. type: "string"
  22378. }
  22379. },
  22380. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  22381. },
  22382. addProtectedBranchAppRestrictions: {
  22383. method: "POST",
  22384. params: {
  22385. apps: {
  22386. mapTo: "data",
  22387. required: true,
  22388. type: "string[]"
  22389. },
  22390. branch: {
  22391. required: true,
  22392. type: "string"
  22393. },
  22394. owner: {
  22395. required: true,
  22396. type: "string"
  22397. },
  22398. repo: {
  22399. required: true,
  22400. type: "string"
  22401. }
  22402. },
  22403. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  22404. },
  22405. addProtectedBranchRequiredSignatures: {
  22406. headers: {
  22407. accept: "application/vnd.github.zzzax-preview+json"
  22408. },
  22409. method: "POST",
  22410. params: {
  22411. branch: {
  22412. required: true,
  22413. type: "string"
  22414. },
  22415. owner: {
  22416. required: true,
  22417. type: "string"
  22418. },
  22419. repo: {
  22420. required: true,
  22421. type: "string"
  22422. }
  22423. },
  22424. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  22425. },
  22426. addProtectedBranchRequiredStatusChecksContexts: {
  22427. method: "POST",
  22428. params: {
  22429. branch: {
  22430. required: true,
  22431. type: "string"
  22432. },
  22433. contexts: {
  22434. mapTo: "data",
  22435. required: true,
  22436. type: "string[]"
  22437. },
  22438. owner: {
  22439. required: true,
  22440. type: "string"
  22441. },
  22442. repo: {
  22443. required: true,
  22444. type: "string"
  22445. }
  22446. },
  22447. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  22448. },
  22449. addProtectedBranchTeamRestrictions: {
  22450. method: "POST",
  22451. params: {
  22452. branch: {
  22453. required: true,
  22454. type: "string"
  22455. },
  22456. owner: {
  22457. required: true,
  22458. type: "string"
  22459. },
  22460. repo: {
  22461. required: true,
  22462. type: "string"
  22463. },
  22464. teams: {
  22465. mapTo: "data",
  22466. required: true,
  22467. type: "string[]"
  22468. }
  22469. },
  22470. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  22471. },
  22472. addProtectedBranchUserRestrictions: {
  22473. method: "POST",
  22474. params: {
  22475. branch: {
  22476. required: true,
  22477. type: "string"
  22478. },
  22479. owner: {
  22480. required: true,
  22481. type: "string"
  22482. },
  22483. repo: {
  22484. required: true,
  22485. type: "string"
  22486. },
  22487. users: {
  22488. mapTo: "data",
  22489. required: true,
  22490. type: "string[]"
  22491. }
  22492. },
  22493. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  22494. },
  22495. checkCollaborator: {
  22496. method: "GET",
  22497. params: {
  22498. owner: {
  22499. required: true,
  22500. type: "string"
  22501. },
  22502. repo: {
  22503. required: true,
  22504. type: "string"
  22505. },
  22506. username: {
  22507. required: true,
  22508. type: "string"
  22509. }
  22510. },
  22511. url: "/repos/:owner/:repo/collaborators/:username"
  22512. },
  22513. checkVulnerabilityAlerts: {
  22514. headers: {
  22515. accept: "application/vnd.github.dorian-preview+json"
  22516. },
  22517. method: "GET",
  22518. params: {
  22519. owner: {
  22520. required: true,
  22521. type: "string"
  22522. },
  22523. repo: {
  22524. required: true,
  22525. type: "string"
  22526. }
  22527. },
  22528. url: "/repos/:owner/:repo/vulnerability-alerts"
  22529. },
  22530. compareCommits: {
  22531. method: "GET",
  22532. params: {
  22533. base: {
  22534. required: true,
  22535. type: "string"
  22536. },
  22537. head: {
  22538. required: true,
  22539. type: "string"
  22540. },
  22541. owner: {
  22542. required: true,
  22543. type: "string"
  22544. },
  22545. repo: {
  22546. required: true,
  22547. type: "string"
  22548. }
  22549. },
  22550. url: "/repos/:owner/:repo/compare/:base...:head"
  22551. },
  22552. createCommitComment: {
  22553. method: "POST",
  22554. params: {
  22555. body: {
  22556. required: true,
  22557. type: "string"
  22558. },
  22559. commit_sha: {
  22560. required: true,
  22561. type: "string"
  22562. },
  22563. line: {
  22564. type: "integer"
  22565. },
  22566. owner: {
  22567. required: true,
  22568. type: "string"
  22569. },
  22570. path: {
  22571. type: "string"
  22572. },
  22573. position: {
  22574. type: "integer"
  22575. },
  22576. repo: {
  22577. required: true,
  22578. type: "string"
  22579. },
  22580. sha: {
  22581. alias: "commit_sha",
  22582. deprecated: true,
  22583. type: "string"
  22584. }
  22585. },
  22586. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  22587. },
  22588. createDeployment: {
  22589. method: "POST",
  22590. params: {
  22591. auto_merge: {
  22592. type: "boolean"
  22593. },
  22594. description: {
  22595. type: "string"
  22596. },
  22597. environment: {
  22598. type: "string"
  22599. },
  22600. owner: {
  22601. required: true,
  22602. type: "string"
  22603. },
  22604. payload: {
  22605. type: "string"
  22606. },
  22607. production_environment: {
  22608. type: "boolean"
  22609. },
  22610. ref: {
  22611. required: true,
  22612. type: "string"
  22613. },
  22614. repo: {
  22615. required: true,
  22616. type: "string"
  22617. },
  22618. required_contexts: {
  22619. type: "string[]"
  22620. },
  22621. task: {
  22622. type: "string"
  22623. },
  22624. transient_environment: {
  22625. type: "boolean"
  22626. }
  22627. },
  22628. url: "/repos/:owner/:repo/deployments"
  22629. },
  22630. createDeploymentStatus: {
  22631. method: "POST",
  22632. params: {
  22633. auto_inactive: {
  22634. type: "boolean"
  22635. },
  22636. deployment_id: {
  22637. required: true,
  22638. type: "integer"
  22639. },
  22640. description: {
  22641. type: "string"
  22642. },
  22643. environment: {
  22644. enum: ["production", "staging", "qa"],
  22645. type: "string"
  22646. },
  22647. environment_url: {
  22648. type: "string"
  22649. },
  22650. log_url: {
  22651. type: "string"
  22652. },
  22653. owner: {
  22654. required: true,
  22655. type: "string"
  22656. },
  22657. repo: {
  22658. required: true,
  22659. type: "string"
  22660. },
  22661. state: {
  22662. enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
  22663. required: true,
  22664. type: "string"
  22665. },
  22666. target_url: {
  22667. type: "string"
  22668. }
  22669. },
  22670. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  22671. },
  22672. createDispatchEvent: {
  22673. method: "POST",
  22674. params: {
  22675. client_payload: {
  22676. type: "object"
  22677. },
  22678. event_type: {
  22679. type: "string"
  22680. },
  22681. owner: {
  22682. required: true,
  22683. type: "string"
  22684. },
  22685. repo: {
  22686. required: true,
  22687. type: "string"
  22688. }
  22689. },
  22690. url: "/repos/:owner/:repo/dispatches"
  22691. },
  22692. createFile: {
  22693. deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  22694. method: "PUT",
  22695. params: {
  22696. author: {
  22697. type: "object"
  22698. },
  22699. "author.email": {
  22700. required: true,
  22701. type: "string"
  22702. },
  22703. "author.name": {
  22704. required: true,
  22705. type: "string"
  22706. },
  22707. branch: {
  22708. type: "string"
  22709. },
  22710. committer: {
  22711. type: "object"
  22712. },
  22713. "committer.email": {
  22714. required: true,
  22715. type: "string"
  22716. },
  22717. "committer.name": {
  22718. required: true,
  22719. type: "string"
  22720. },
  22721. content: {
  22722. required: true,
  22723. type: "string"
  22724. },
  22725. message: {
  22726. required: true,
  22727. type: "string"
  22728. },
  22729. owner: {
  22730. required: true,
  22731. type: "string"
  22732. },
  22733. path: {
  22734. required: true,
  22735. type: "string"
  22736. },
  22737. repo: {
  22738. required: true,
  22739. type: "string"
  22740. },
  22741. sha: {
  22742. type: "string"
  22743. }
  22744. },
  22745. url: "/repos/:owner/:repo/contents/:path"
  22746. },
  22747. createForAuthenticatedUser: {
  22748. method: "POST",
  22749. params: {
  22750. allow_merge_commit: {
  22751. type: "boolean"
  22752. },
  22753. allow_rebase_merge: {
  22754. type: "boolean"
  22755. },
  22756. allow_squash_merge: {
  22757. type: "boolean"
  22758. },
  22759. auto_init: {
  22760. type: "boolean"
  22761. },
  22762. delete_branch_on_merge: {
  22763. type: "boolean"
  22764. },
  22765. description: {
  22766. type: "string"
  22767. },
  22768. gitignore_template: {
  22769. type: "string"
  22770. },
  22771. has_issues: {
  22772. type: "boolean"
  22773. },
  22774. has_projects: {
  22775. type: "boolean"
  22776. },
  22777. has_wiki: {
  22778. type: "boolean"
  22779. },
  22780. homepage: {
  22781. type: "string"
  22782. },
  22783. is_template: {
  22784. type: "boolean"
  22785. },
  22786. license_template: {
  22787. type: "string"
  22788. },
  22789. name: {
  22790. required: true,
  22791. type: "string"
  22792. },
  22793. private: {
  22794. type: "boolean"
  22795. },
  22796. team_id: {
  22797. type: "integer"
  22798. },
  22799. visibility: {
  22800. enum: ["public", "private", "visibility", "internal"],
  22801. type: "string"
  22802. }
  22803. },
  22804. url: "/user/repos"
  22805. },
  22806. createFork: {
  22807. method: "POST",
  22808. params: {
  22809. organization: {
  22810. type: "string"
  22811. },
  22812. owner: {
  22813. required: true,
  22814. type: "string"
  22815. },
  22816. repo: {
  22817. required: true,
  22818. type: "string"
  22819. }
  22820. },
  22821. url: "/repos/:owner/:repo/forks"
  22822. },
  22823. createHook: {
  22824. method: "POST",
  22825. params: {
  22826. active: {
  22827. type: "boolean"
  22828. },
  22829. config: {
  22830. required: true,
  22831. type: "object"
  22832. },
  22833. "config.content_type": {
  22834. type: "string"
  22835. },
  22836. "config.insecure_ssl": {
  22837. type: "string"
  22838. },
  22839. "config.secret": {
  22840. type: "string"
  22841. },
  22842. "config.url": {
  22843. required: true,
  22844. type: "string"
  22845. },
  22846. events: {
  22847. type: "string[]"
  22848. },
  22849. name: {
  22850. type: "string"
  22851. },
  22852. owner: {
  22853. required: true,
  22854. type: "string"
  22855. },
  22856. repo: {
  22857. required: true,
  22858. type: "string"
  22859. }
  22860. },
  22861. url: "/repos/:owner/:repo/hooks"
  22862. },
  22863. createInOrg: {
  22864. method: "POST",
  22865. params: {
  22866. allow_merge_commit: {
  22867. type: "boolean"
  22868. },
  22869. allow_rebase_merge: {
  22870. type: "boolean"
  22871. },
  22872. allow_squash_merge: {
  22873. type: "boolean"
  22874. },
  22875. auto_init: {
  22876. type: "boolean"
  22877. },
  22878. delete_branch_on_merge: {
  22879. type: "boolean"
  22880. },
  22881. description: {
  22882. type: "string"
  22883. },
  22884. gitignore_template: {
  22885. type: "string"
  22886. },
  22887. has_issues: {
  22888. type: "boolean"
  22889. },
  22890. has_projects: {
  22891. type: "boolean"
  22892. },
  22893. has_wiki: {
  22894. type: "boolean"
  22895. },
  22896. homepage: {
  22897. type: "string"
  22898. },
  22899. is_template: {
  22900. type: "boolean"
  22901. },
  22902. license_template: {
  22903. type: "string"
  22904. },
  22905. name: {
  22906. required: true,
  22907. type: "string"
  22908. },
  22909. org: {
  22910. required: true,
  22911. type: "string"
  22912. },
  22913. private: {
  22914. type: "boolean"
  22915. },
  22916. team_id: {
  22917. type: "integer"
  22918. },
  22919. visibility: {
  22920. enum: ["public", "private", "visibility", "internal"],
  22921. type: "string"
  22922. }
  22923. },
  22924. url: "/orgs/:org/repos"
  22925. },
  22926. createOrUpdateFile: {
  22927. method: "PUT",
  22928. params: {
  22929. author: {
  22930. type: "object"
  22931. },
  22932. "author.email": {
  22933. required: true,
  22934. type: "string"
  22935. },
  22936. "author.name": {
  22937. required: true,
  22938. type: "string"
  22939. },
  22940. branch: {
  22941. type: "string"
  22942. },
  22943. committer: {
  22944. type: "object"
  22945. },
  22946. "committer.email": {
  22947. required: true,
  22948. type: "string"
  22949. },
  22950. "committer.name": {
  22951. required: true,
  22952. type: "string"
  22953. },
  22954. content: {
  22955. required: true,
  22956. type: "string"
  22957. },
  22958. message: {
  22959. required: true,
  22960. type: "string"
  22961. },
  22962. owner: {
  22963. required: true,
  22964. type: "string"
  22965. },
  22966. path: {
  22967. required: true,
  22968. type: "string"
  22969. },
  22970. repo: {
  22971. required: true,
  22972. type: "string"
  22973. },
  22974. sha: {
  22975. type: "string"
  22976. }
  22977. },
  22978. url: "/repos/:owner/:repo/contents/:path"
  22979. },
  22980. createRelease: {
  22981. method: "POST",
  22982. params: {
  22983. body: {
  22984. type: "string"
  22985. },
  22986. draft: {
  22987. type: "boolean"
  22988. },
  22989. name: {
  22990. type: "string"
  22991. },
  22992. owner: {
  22993. required: true,
  22994. type: "string"
  22995. },
  22996. prerelease: {
  22997. type: "boolean"
  22998. },
  22999. repo: {
  23000. required: true,
  23001. type: "string"
  23002. },
  23003. tag_name: {
  23004. required: true,
  23005. type: "string"
  23006. },
  23007. target_commitish: {
  23008. type: "string"
  23009. }
  23010. },
  23011. url: "/repos/:owner/:repo/releases"
  23012. },
  23013. createStatus: {
  23014. method: "POST",
  23015. params: {
  23016. context: {
  23017. type: "string"
  23018. },
  23019. description: {
  23020. type: "string"
  23021. },
  23022. owner: {
  23023. required: true,
  23024. type: "string"
  23025. },
  23026. repo: {
  23027. required: true,
  23028. type: "string"
  23029. },
  23030. sha: {
  23031. required: true,
  23032. type: "string"
  23033. },
  23034. state: {
  23035. enum: ["error", "failure", "pending", "success"],
  23036. required: true,
  23037. type: "string"
  23038. },
  23039. target_url: {
  23040. type: "string"
  23041. }
  23042. },
  23043. url: "/repos/:owner/:repo/statuses/:sha"
  23044. },
  23045. createUsingTemplate: {
  23046. headers: {
  23047. accept: "application/vnd.github.baptiste-preview+json"
  23048. },
  23049. method: "POST",
  23050. params: {
  23051. description: {
  23052. type: "string"
  23053. },
  23054. name: {
  23055. required: true,
  23056. type: "string"
  23057. },
  23058. owner: {
  23059. type: "string"
  23060. },
  23061. private: {
  23062. type: "boolean"
  23063. },
  23064. template_owner: {
  23065. required: true,
  23066. type: "string"
  23067. },
  23068. template_repo: {
  23069. required: true,
  23070. type: "string"
  23071. }
  23072. },
  23073. url: "/repos/:template_owner/:template_repo/generate"
  23074. },
  23075. declineInvitation: {
  23076. method: "DELETE",
  23077. params: {
  23078. invitation_id: {
  23079. required: true,
  23080. type: "integer"
  23081. }
  23082. },
  23083. url: "/user/repository_invitations/:invitation_id"
  23084. },
  23085. delete: {
  23086. method: "DELETE",
  23087. params: {
  23088. owner: {
  23089. required: true,
  23090. type: "string"
  23091. },
  23092. repo: {
  23093. required: true,
  23094. type: "string"
  23095. }
  23096. },
  23097. url: "/repos/:owner/:repo"
  23098. },
  23099. deleteCommitComment: {
  23100. method: "DELETE",
  23101. params: {
  23102. comment_id: {
  23103. required: true,
  23104. type: "integer"
  23105. },
  23106. owner: {
  23107. required: true,
  23108. type: "string"
  23109. },
  23110. repo: {
  23111. required: true,
  23112. type: "string"
  23113. }
  23114. },
  23115. url: "/repos/:owner/:repo/comments/:comment_id"
  23116. },
  23117. deleteDownload: {
  23118. method: "DELETE",
  23119. params: {
  23120. download_id: {
  23121. required: true,
  23122. type: "integer"
  23123. },
  23124. owner: {
  23125. required: true,
  23126. type: "string"
  23127. },
  23128. repo: {
  23129. required: true,
  23130. type: "string"
  23131. }
  23132. },
  23133. url: "/repos/:owner/:repo/downloads/:download_id"
  23134. },
  23135. deleteFile: {
  23136. method: "DELETE",
  23137. params: {
  23138. author: {
  23139. type: "object"
  23140. },
  23141. "author.email": {
  23142. type: "string"
  23143. },
  23144. "author.name": {
  23145. type: "string"
  23146. },
  23147. branch: {
  23148. type: "string"
  23149. },
  23150. committer: {
  23151. type: "object"
  23152. },
  23153. "committer.email": {
  23154. type: "string"
  23155. },
  23156. "committer.name": {
  23157. type: "string"
  23158. },
  23159. message: {
  23160. required: true,
  23161. type: "string"
  23162. },
  23163. owner: {
  23164. required: true,
  23165. type: "string"
  23166. },
  23167. path: {
  23168. required: true,
  23169. type: "string"
  23170. },
  23171. repo: {
  23172. required: true,
  23173. type: "string"
  23174. },
  23175. sha: {
  23176. required: true,
  23177. type: "string"
  23178. }
  23179. },
  23180. url: "/repos/:owner/:repo/contents/:path"
  23181. },
  23182. deleteHook: {
  23183. method: "DELETE",
  23184. params: {
  23185. hook_id: {
  23186. required: true,
  23187. type: "integer"
  23188. },
  23189. owner: {
  23190. required: true,
  23191. type: "string"
  23192. },
  23193. repo: {
  23194. required: true,
  23195. type: "string"
  23196. }
  23197. },
  23198. url: "/repos/:owner/:repo/hooks/:hook_id"
  23199. },
  23200. deleteInvitation: {
  23201. method: "DELETE",
  23202. params: {
  23203. invitation_id: {
  23204. required: true,
  23205. type: "integer"
  23206. },
  23207. owner: {
  23208. required: true,
  23209. type: "string"
  23210. },
  23211. repo: {
  23212. required: true,
  23213. type: "string"
  23214. }
  23215. },
  23216. url: "/repos/:owner/:repo/invitations/:invitation_id"
  23217. },
  23218. deleteRelease: {
  23219. method: "DELETE",
  23220. params: {
  23221. owner: {
  23222. required: true,
  23223. type: "string"
  23224. },
  23225. release_id: {
  23226. required: true,
  23227. type: "integer"
  23228. },
  23229. repo: {
  23230. required: true,
  23231. type: "string"
  23232. }
  23233. },
  23234. url: "/repos/:owner/:repo/releases/:release_id"
  23235. },
  23236. deleteReleaseAsset: {
  23237. method: "DELETE",
  23238. params: {
  23239. asset_id: {
  23240. required: true,
  23241. type: "integer"
  23242. },
  23243. owner: {
  23244. required: true,
  23245. type: "string"
  23246. },
  23247. repo: {
  23248. required: true,
  23249. type: "string"
  23250. }
  23251. },
  23252. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  23253. },
  23254. disableAutomatedSecurityFixes: {
  23255. headers: {
  23256. accept: "application/vnd.github.london-preview+json"
  23257. },
  23258. method: "DELETE",
  23259. params: {
  23260. owner: {
  23261. required: true,
  23262. type: "string"
  23263. },
  23264. repo: {
  23265. required: true,
  23266. type: "string"
  23267. }
  23268. },
  23269. url: "/repos/:owner/:repo/automated-security-fixes"
  23270. },
  23271. disablePagesSite: {
  23272. headers: {
  23273. accept: "application/vnd.github.switcheroo-preview+json"
  23274. },
  23275. method: "DELETE",
  23276. params: {
  23277. owner: {
  23278. required: true,
  23279. type: "string"
  23280. },
  23281. repo: {
  23282. required: true,
  23283. type: "string"
  23284. }
  23285. },
  23286. url: "/repos/:owner/:repo/pages"
  23287. },
  23288. disableVulnerabilityAlerts: {
  23289. headers: {
  23290. accept: "application/vnd.github.dorian-preview+json"
  23291. },
  23292. method: "DELETE",
  23293. params: {
  23294. owner: {
  23295. required: true,
  23296. type: "string"
  23297. },
  23298. repo: {
  23299. required: true,
  23300. type: "string"
  23301. }
  23302. },
  23303. url: "/repos/:owner/:repo/vulnerability-alerts"
  23304. },
  23305. enableAutomatedSecurityFixes: {
  23306. headers: {
  23307. accept: "application/vnd.github.london-preview+json"
  23308. },
  23309. method: "PUT",
  23310. params: {
  23311. owner: {
  23312. required: true,
  23313. type: "string"
  23314. },
  23315. repo: {
  23316. required: true,
  23317. type: "string"
  23318. }
  23319. },
  23320. url: "/repos/:owner/:repo/automated-security-fixes"
  23321. },
  23322. enablePagesSite: {
  23323. headers: {
  23324. accept: "application/vnd.github.switcheroo-preview+json"
  23325. },
  23326. method: "POST",
  23327. params: {
  23328. owner: {
  23329. required: true,
  23330. type: "string"
  23331. },
  23332. repo: {
  23333. required: true,
  23334. type: "string"
  23335. },
  23336. source: {
  23337. type: "object"
  23338. },
  23339. "source.branch": {
  23340. enum: ["master", "gh-pages"],
  23341. type: "string"
  23342. },
  23343. "source.path": {
  23344. type: "string"
  23345. }
  23346. },
  23347. url: "/repos/:owner/:repo/pages"
  23348. },
  23349. enableVulnerabilityAlerts: {
  23350. headers: {
  23351. accept: "application/vnd.github.dorian-preview+json"
  23352. },
  23353. method: "PUT",
  23354. params: {
  23355. owner: {
  23356. required: true,
  23357. type: "string"
  23358. },
  23359. repo: {
  23360. required: true,
  23361. type: "string"
  23362. }
  23363. },
  23364. url: "/repos/:owner/:repo/vulnerability-alerts"
  23365. },
  23366. get: {
  23367. method: "GET",
  23368. params: {
  23369. owner: {
  23370. required: true,
  23371. type: "string"
  23372. },
  23373. repo: {
  23374. required: true,
  23375. type: "string"
  23376. }
  23377. },
  23378. url: "/repos/:owner/:repo"
  23379. },
  23380. getAppsWithAccessToProtectedBranch: {
  23381. method: "GET",
  23382. params: {
  23383. branch: {
  23384. required: true,
  23385. type: "string"
  23386. },
  23387. owner: {
  23388. required: true,
  23389. type: "string"
  23390. },
  23391. repo: {
  23392. required: true,
  23393. type: "string"
  23394. }
  23395. },
  23396. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  23397. },
  23398. getArchiveLink: {
  23399. method: "GET",
  23400. params: {
  23401. archive_format: {
  23402. required: true,
  23403. type: "string"
  23404. },
  23405. owner: {
  23406. required: true,
  23407. type: "string"
  23408. },
  23409. ref: {
  23410. required: true,
  23411. type: "string"
  23412. },
  23413. repo: {
  23414. required: true,
  23415. type: "string"
  23416. }
  23417. },
  23418. url: "/repos/:owner/:repo/:archive_format/:ref"
  23419. },
  23420. getBranch: {
  23421. method: "GET",
  23422. params: {
  23423. branch: {
  23424. required: true,
  23425. type: "string"
  23426. },
  23427. owner: {
  23428. required: true,
  23429. type: "string"
  23430. },
  23431. repo: {
  23432. required: true,
  23433. type: "string"
  23434. }
  23435. },
  23436. url: "/repos/:owner/:repo/branches/:branch"
  23437. },
  23438. getBranchProtection: {
  23439. method: "GET",
  23440. params: {
  23441. branch: {
  23442. required: true,
  23443. type: "string"
  23444. },
  23445. owner: {
  23446. required: true,
  23447. type: "string"
  23448. },
  23449. repo: {
  23450. required: true,
  23451. type: "string"
  23452. }
  23453. },
  23454. url: "/repos/:owner/:repo/branches/:branch/protection"
  23455. },
  23456. getClones: {
  23457. method: "GET",
  23458. params: {
  23459. owner: {
  23460. required: true,
  23461. type: "string"
  23462. },
  23463. per: {
  23464. enum: ["day", "week"],
  23465. type: "string"
  23466. },
  23467. repo: {
  23468. required: true,
  23469. type: "string"
  23470. }
  23471. },
  23472. url: "/repos/:owner/:repo/traffic/clones"
  23473. },
  23474. getCodeFrequencyStats: {
  23475. method: "GET",
  23476. params: {
  23477. owner: {
  23478. required: true,
  23479. type: "string"
  23480. },
  23481. repo: {
  23482. required: true,
  23483. type: "string"
  23484. }
  23485. },
  23486. url: "/repos/:owner/:repo/stats/code_frequency"
  23487. },
  23488. getCollaboratorPermissionLevel: {
  23489. method: "GET",
  23490. params: {
  23491. owner: {
  23492. required: true,
  23493. type: "string"
  23494. },
  23495. repo: {
  23496. required: true,
  23497. type: "string"
  23498. },
  23499. username: {
  23500. required: true,
  23501. type: "string"
  23502. }
  23503. },
  23504. url: "/repos/:owner/:repo/collaborators/:username/permission"
  23505. },
  23506. getCombinedStatusForRef: {
  23507. method: "GET",
  23508. params: {
  23509. owner: {
  23510. required: true,
  23511. type: "string"
  23512. },
  23513. ref: {
  23514. required: true,
  23515. type: "string"
  23516. },
  23517. repo: {
  23518. required: true,
  23519. type: "string"
  23520. }
  23521. },
  23522. url: "/repos/:owner/:repo/commits/:ref/status"
  23523. },
  23524. getCommit: {
  23525. method: "GET",
  23526. params: {
  23527. commit_sha: {
  23528. alias: "ref",
  23529. deprecated: true,
  23530. type: "string"
  23531. },
  23532. owner: {
  23533. required: true,
  23534. type: "string"
  23535. },
  23536. ref: {
  23537. required: true,
  23538. type: "string"
  23539. },
  23540. repo: {
  23541. required: true,
  23542. type: "string"
  23543. },
  23544. sha: {
  23545. alias: "ref",
  23546. deprecated: true,
  23547. type: "string"
  23548. }
  23549. },
  23550. url: "/repos/:owner/:repo/commits/:ref"
  23551. },
  23552. getCommitActivityStats: {
  23553. method: "GET",
  23554. params: {
  23555. owner: {
  23556. required: true,
  23557. type: "string"
  23558. },
  23559. repo: {
  23560. required: true,
  23561. type: "string"
  23562. }
  23563. },
  23564. url: "/repos/:owner/:repo/stats/commit_activity"
  23565. },
  23566. getCommitComment: {
  23567. method: "GET",
  23568. params: {
  23569. comment_id: {
  23570. required: true,
  23571. type: "integer"
  23572. },
  23573. owner: {
  23574. required: true,
  23575. type: "string"
  23576. },
  23577. repo: {
  23578. required: true,
  23579. type: "string"
  23580. }
  23581. },
  23582. url: "/repos/:owner/:repo/comments/:comment_id"
  23583. },
  23584. getCommitRefSha: {
  23585. deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
  23586. headers: {
  23587. accept: "application/vnd.github.v3.sha"
  23588. },
  23589. method: "GET",
  23590. params: {
  23591. owner: {
  23592. required: true,
  23593. type: "string"
  23594. },
  23595. ref: {
  23596. required: true,
  23597. type: "string"
  23598. },
  23599. repo: {
  23600. required: true,
  23601. type: "string"
  23602. }
  23603. },
  23604. url: "/repos/:owner/:repo/commits/:ref"
  23605. },
  23606. getContents: {
  23607. method: "GET",
  23608. params: {
  23609. owner: {
  23610. required: true,
  23611. type: "string"
  23612. },
  23613. path: {
  23614. required: true,
  23615. type: "string"
  23616. },
  23617. ref: {
  23618. type: "string"
  23619. },
  23620. repo: {
  23621. required: true,
  23622. type: "string"
  23623. }
  23624. },
  23625. url: "/repos/:owner/:repo/contents/:path"
  23626. },
  23627. getContributorsStats: {
  23628. method: "GET",
  23629. params: {
  23630. owner: {
  23631. required: true,
  23632. type: "string"
  23633. },
  23634. repo: {
  23635. required: true,
  23636. type: "string"
  23637. }
  23638. },
  23639. url: "/repos/:owner/:repo/stats/contributors"
  23640. },
  23641. getDeployKey: {
  23642. method: "GET",
  23643. params: {
  23644. key_id: {
  23645. required: true,
  23646. type: "integer"
  23647. },
  23648. owner: {
  23649. required: true,
  23650. type: "string"
  23651. },
  23652. repo: {
  23653. required: true,
  23654. type: "string"
  23655. }
  23656. },
  23657. url: "/repos/:owner/:repo/keys/:key_id"
  23658. },
  23659. getDeployment: {
  23660. method: "GET",
  23661. params: {
  23662. deployment_id: {
  23663. required: true,
  23664. type: "integer"
  23665. },
  23666. owner: {
  23667. required: true,
  23668. type: "string"
  23669. },
  23670. repo: {
  23671. required: true,
  23672. type: "string"
  23673. }
  23674. },
  23675. url: "/repos/:owner/:repo/deployments/:deployment_id"
  23676. },
  23677. getDeploymentStatus: {
  23678. method: "GET",
  23679. params: {
  23680. deployment_id: {
  23681. required: true,
  23682. type: "integer"
  23683. },
  23684. owner: {
  23685. required: true,
  23686. type: "string"
  23687. },
  23688. repo: {
  23689. required: true,
  23690. type: "string"
  23691. },
  23692. status_id: {
  23693. required: true,
  23694. type: "integer"
  23695. }
  23696. },
  23697. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
  23698. },
  23699. getDownload: {
  23700. method: "GET",
  23701. params: {
  23702. download_id: {
  23703. required: true,
  23704. type: "integer"
  23705. },
  23706. owner: {
  23707. required: true,
  23708. type: "string"
  23709. },
  23710. repo: {
  23711. required: true,
  23712. type: "string"
  23713. }
  23714. },
  23715. url: "/repos/:owner/:repo/downloads/:download_id"
  23716. },
  23717. getHook: {
  23718. method: "GET",
  23719. params: {
  23720. hook_id: {
  23721. required: true,
  23722. type: "integer"
  23723. },
  23724. owner: {
  23725. required: true,
  23726. type: "string"
  23727. },
  23728. repo: {
  23729. required: true,
  23730. type: "string"
  23731. }
  23732. },
  23733. url: "/repos/:owner/:repo/hooks/:hook_id"
  23734. },
  23735. getLatestPagesBuild: {
  23736. method: "GET",
  23737. params: {
  23738. owner: {
  23739. required: true,
  23740. type: "string"
  23741. },
  23742. repo: {
  23743. required: true,
  23744. type: "string"
  23745. }
  23746. },
  23747. url: "/repos/:owner/:repo/pages/builds/latest"
  23748. },
  23749. getLatestRelease: {
  23750. method: "GET",
  23751. params: {
  23752. owner: {
  23753. required: true,
  23754. type: "string"
  23755. },
  23756. repo: {
  23757. required: true,
  23758. type: "string"
  23759. }
  23760. },
  23761. url: "/repos/:owner/:repo/releases/latest"
  23762. },
  23763. getPages: {
  23764. method: "GET",
  23765. params: {
  23766. owner: {
  23767. required: true,
  23768. type: "string"
  23769. },
  23770. repo: {
  23771. required: true,
  23772. type: "string"
  23773. }
  23774. },
  23775. url: "/repos/:owner/:repo/pages"
  23776. },
  23777. getPagesBuild: {
  23778. method: "GET",
  23779. params: {
  23780. build_id: {
  23781. required: true,
  23782. type: "integer"
  23783. },
  23784. owner: {
  23785. required: true,
  23786. type: "string"
  23787. },
  23788. repo: {
  23789. required: true,
  23790. type: "string"
  23791. }
  23792. },
  23793. url: "/repos/:owner/:repo/pages/builds/:build_id"
  23794. },
  23795. getParticipationStats: {
  23796. method: "GET",
  23797. params: {
  23798. owner: {
  23799. required: true,
  23800. type: "string"
  23801. },
  23802. repo: {
  23803. required: true,
  23804. type: "string"
  23805. }
  23806. },
  23807. url: "/repos/:owner/:repo/stats/participation"
  23808. },
  23809. getProtectedBranchAdminEnforcement: {
  23810. method: "GET",
  23811. params: {
  23812. branch: {
  23813. required: true,
  23814. type: "string"
  23815. },
  23816. owner: {
  23817. required: true,
  23818. type: "string"
  23819. },
  23820. repo: {
  23821. required: true,
  23822. type: "string"
  23823. }
  23824. },
  23825. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  23826. },
  23827. getProtectedBranchPullRequestReviewEnforcement: {
  23828. method: "GET",
  23829. params: {
  23830. branch: {
  23831. required: true,
  23832. type: "string"
  23833. },
  23834. owner: {
  23835. required: true,
  23836. type: "string"
  23837. },
  23838. repo: {
  23839. required: true,
  23840. type: "string"
  23841. }
  23842. },
  23843. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  23844. },
  23845. getProtectedBranchRequiredSignatures: {
  23846. headers: {
  23847. accept: "application/vnd.github.zzzax-preview+json"
  23848. },
  23849. method: "GET",
  23850. params: {
  23851. branch: {
  23852. required: true,
  23853. type: "string"
  23854. },
  23855. owner: {
  23856. required: true,
  23857. type: "string"
  23858. },
  23859. repo: {
  23860. required: true,
  23861. type: "string"
  23862. }
  23863. },
  23864. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  23865. },
  23866. getProtectedBranchRequiredStatusChecks: {
  23867. method: "GET",
  23868. params: {
  23869. branch: {
  23870. required: true,
  23871. type: "string"
  23872. },
  23873. owner: {
  23874. required: true,
  23875. type: "string"
  23876. },
  23877. repo: {
  23878. required: true,
  23879. type: "string"
  23880. }
  23881. },
  23882. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  23883. },
  23884. getProtectedBranchRestrictions: {
  23885. method: "GET",
  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. },
  23900. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  23901. },
  23902. getPunchCardStats: {
  23903. method: "GET",
  23904. params: {
  23905. owner: {
  23906. required: true,
  23907. type: "string"
  23908. },
  23909. repo: {
  23910. required: true,
  23911. type: "string"
  23912. }
  23913. },
  23914. url: "/repos/:owner/:repo/stats/punch_card"
  23915. },
  23916. getReadme: {
  23917. method: "GET",
  23918. params: {
  23919. owner: {
  23920. required: true,
  23921. type: "string"
  23922. },
  23923. ref: {
  23924. type: "string"
  23925. },
  23926. repo: {
  23927. required: true,
  23928. type: "string"
  23929. }
  23930. },
  23931. url: "/repos/:owner/:repo/readme"
  23932. },
  23933. getRelease: {
  23934. method: "GET",
  23935. params: {
  23936. owner: {
  23937. required: true,
  23938. type: "string"
  23939. },
  23940. release_id: {
  23941. required: true,
  23942. type: "integer"
  23943. },
  23944. repo: {
  23945. required: true,
  23946. type: "string"
  23947. }
  23948. },
  23949. url: "/repos/:owner/:repo/releases/:release_id"
  23950. },
  23951. getReleaseAsset: {
  23952. method: "GET",
  23953. params: {
  23954. asset_id: {
  23955. required: true,
  23956. type: "integer"
  23957. },
  23958. owner: {
  23959. required: true,
  23960. type: "string"
  23961. },
  23962. repo: {
  23963. required: true,
  23964. type: "string"
  23965. }
  23966. },
  23967. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  23968. },
  23969. getReleaseByTag: {
  23970. method: "GET",
  23971. params: {
  23972. owner: {
  23973. required: true,
  23974. type: "string"
  23975. },
  23976. repo: {
  23977. required: true,
  23978. type: "string"
  23979. },
  23980. tag: {
  23981. required: true,
  23982. type: "string"
  23983. }
  23984. },
  23985. url: "/repos/:owner/:repo/releases/tags/:tag"
  23986. },
  23987. getTeamsWithAccessToProtectedBranch: {
  23988. method: "GET",
  23989. params: {
  23990. branch: {
  23991. required: true,
  23992. type: "string"
  23993. },
  23994. owner: {
  23995. required: true,
  23996. type: "string"
  23997. },
  23998. repo: {
  23999. required: true,
  24000. type: "string"
  24001. }
  24002. },
  24003. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  24004. },
  24005. getTopPaths: {
  24006. method: "GET",
  24007. params: {
  24008. owner: {
  24009. required: true,
  24010. type: "string"
  24011. },
  24012. repo: {
  24013. required: true,
  24014. type: "string"
  24015. }
  24016. },
  24017. url: "/repos/:owner/:repo/traffic/popular/paths"
  24018. },
  24019. getTopReferrers: {
  24020. method: "GET",
  24021. params: {
  24022. owner: {
  24023. required: true,
  24024. type: "string"
  24025. },
  24026. repo: {
  24027. required: true,
  24028. type: "string"
  24029. }
  24030. },
  24031. url: "/repos/:owner/:repo/traffic/popular/referrers"
  24032. },
  24033. getUsersWithAccessToProtectedBranch: {
  24034. method: "GET",
  24035. params: {
  24036. branch: {
  24037. required: true,
  24038. type: "string"
  24039. },
  24040. owner: {
  24041. required: true,
  24042. type: "string"
  24043. },
  24044. repo: {
  24045. required: true,
  24046. type: "string"
  24047. }
  24048. },
  24049. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  24050. },
  24051. getViews: {
  24052. method: "GET",
  24053. params: {
  24054. owner: {
  24055. required: true,
  24056. type: "string"
  24057. },
  24058. per: {
  24059. enum: ["day", "week"],
  24060. type: "string"
  24061. },
  24062. repo: {
  24063. required: true,
  24064. type: "string"
  24065. }
  24066. },
  24067. url: "/repos/:owner/:repo/traffic/views"
  24068. },
  24069. list: {
  24070. method: "GET",
  24071. params: {
  24072. affiliation: {
  24073. type: "string"
  24074. },
  24075. direction: {
  24076. enum: ["asc", "desc"],
  24077. type: "string"
  24078. },
  24079. page: {
  24080. type: "integer"
  24081. },
  24082. per_page: {
  24083. type: "integer"
  24084. },
  24085. sort: {
  24086. enum: ["created", "updated", "pushed", "full_name"],
  24087. type: "string"
  24088. },
  24089. type: {
  24090. enum: ["all", "owner", "public", "private", "member"],
  24091. type: "string"
  24092. },
  24093. visibility: {
  24094. enum: ["all", "public", "private"],
  24095. type: "string"
  24096. }
  24097. },
  24098. url: "/user/repos"
  24099. },
  24100. listAppsWithAccessToProtectedBranch: {
  24101. deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
  24102. method: "GET",
  24103. params: {
  24104. branch: {
  24105. required: true,
  24106. type: "string"
  24107. },
  24108. owner: {
  24109. required: true,
  24110. type: "string"
  24111. },
  24112. repo: {
  24113. required: true,
  24114. type: "string"
  24115. }
  24116. },
  24117. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  24118. },
  24119. listAssetsForRelease: {
  24120. method: "GET",
  24121. params: {
  24122. owner: {
  24123. required: true,
  24124. type: "string"
  24125. },
  24126. page: {
  24127. type: "integer"
  24128. },
  24129. per_page: {
  24130. type: "integer"
  24131. },
  24132. release_id: {
  24133. required: true,
  24134. type: "integer"
  24135. },
  24136. repo: {
  24137. required: true,
  24138. type: "string"
  24139. }
  24140. },
  24141. url: "/repos/:owner/:repo/releases/:release_id/assets"
  24142. },
  24143. listBranches: {
  24144. method: "GET",
  24145. params: {
  24146. owner: {
  24147. required: true,
  24148. type: "string"
  24149. },
  24150. page: {
  24151. type: "integer"
  24152. },
  24153. per_page: {
  24154. type: "integer"
  24155. },
  24156. protected: {
  24157. type: "boolean"
  24158. },
  24159. repo: {
  24160. required: true,
  24161. type: "string"
  24162. }
  24163. },
  24164. url: "/repos/:owner/:repo/branches"
  24165. },
  24166. listBranchesForHeadCommit: {
  24167. headers: {
  24168. accept: "application/vnd.github.groot-preview+json"
  24169. },
  24170. method: "GET",
  24171. params: {
  24172. commit_sha: {
  24173. required: true,
  24174. type: "string"
  24175. },
  24176. owner: {
  24177. required: true,
  24178. type: "string"
  24179. },
  24180. repo: {
  24181. required: true,
  24182. type: "string"
  24183. }
  24184. },
  24185. url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
  24186. },
  24187. listCollaborators: {
  24188. method: "GET",
  24189. params: {
  24190. affiliation: {
  24191. enum: ["outside", "direct", "all"],
  24192. type: "string"
  24193. },
  24194. owner: {
  24195. required: true,
  24196. type: "string"
  24197. },
  24198. page: {
  24199. type: "integer"
  24200. },
  24201. per_page: {
  24202. type: "integer"
  24203. },
  24204. repo: {
  24205. required: true,
  24206. type: "string"
  24207. }
  24208. },
  24209. url: "/repos/:owner/:repo/collaborators"
  24210. },
  24211. listCommentsForCommit: {
  24212. method: "GET",
  24213. params: {
  24214. commit_sha: {
  24215. required: true,
  24216. type: "string"
  24217. },
  24218. owner: {
  24219. required: true,
  24220. type: "string"
  24221. },
  24222. page: {
  24223. type: "integer"
  24224. },
  24225. per_page: {
  24226. type: "integer"
  24227. },
  24228. ref: {
  24229. alias: "commit_sha",
  24230. deprecated: true,
  24231. type: "string"
  24232. },
  24233. repo: {
  24234. required: true,
  24235. type: "string"
  24236. }
  24237. },
  24238. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  24239. },
  24240. listCommitComments: {
  24241. method: "GET",
  24242. params: {
  24243. owner: {
  24244. required: true,
  24245. type: "string"
  24246. },
  24247. page: {
  24248. type: "integer"
  24249. },
  24250. per_page: {
  24251. type: "integer"
  24252. },
  24253. repo: {
  24254. required: true,
  24255. type: "string"
  24256. }
  24257. },
  24258. url: "/repos/:owner/:repo/comments"
  24259. },
  24260. listCommits: {
  24261. method: "GET",
  24262. params: {
  24263. author: {
  24264. type: "string"
  24265. },
  24266. owner: {
  24267. required: true,
  24268. type: "string"
  24269. },
  24270. page: {
  24271. type: "integer"
  24272. },
  24273. path: {
  24274. type: "string"
  24275. },
  24276. per_page: {
  24277. type: "integer"
  24278. },
  24279. repo: {
  24280. required: true,
  24281. type: "string"
  24282. },
  24283. sha: {
  24284. type: "string"
  24285. },
  24286. since: {
  24287. type: "string"
  24288. },
  24289. until: {
  24290. type: "string"
  24291. }
  24292. },
  24293. url: "/repos/:owner/:repo/commits"
  24294. },
  24295. listContributors: {
  24296. method: "GET",
  24297. params: {
  24298. anon: {
  24299. type: "string"
  24300. },
  24301. owner: {
  24302. required: true,
  24303. type: "string"
  24304. },
  24305. page: {
  24306. type: "integer"
  24307. },
  24308. per_page: {
  24309. type: "integer"
  24310. },
  24311. repo: {
  24312. required: true,
  24313. type: "string"
  24314. }
  24315. },
  24316. url: "/repos/:owner/:repo/contributors"
  24317. },
  24318. listDeployKeys: {
  24319. method: "GET",
  24320. params: {
  24321. owner: {
  24322. required: true,
  24323. type: "string"
  24324. },
  24325. page: {
  24326. type: "integer"
  24327. },
  24328. per_page: {
  24329. type: "integer"
  24330. },
  24331. repo: {
  24332. required: true,
  24333. type: "string"
  24334. }
  24335. },
  24336. url: "/repos/:owner/:repo/keys"
  24337. },
  24338. listDeploymentStatuses: {
  24339. method: "GET",
  24340. params: {
  24341. deployment_id: {
  24342. required: true,
  24343. type: "integer"
  24344. },
  24345. owner: {
  24346. required: true,
  24347. type: "string"
  24348. },
  24349. page: {
  24350. type: "integer"
  24351. },
  24352. per_page: {
  24353. type: "integer"
  24354. },
  24355. repo: {
  24356. required: true,
  24357. type: "string"
  24358. }
  24359. },
  24360. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  24361. },
  24362. listDeployments: {
  24363. method: "GET",
  24364. params: {
  24365. environment: {
  24366. type: "string"
  24367. },
  24368. owner: {
  24369. required: true,
  24370. type: "string"
  24371. },
  24372. page: {
  24373. type: "integer"
  24374. },
  24375. per_page: {
  24376. type: "integer"
  24377. },
  24378. ref: {
  24379. type: "string"
  24380. },
  24381. repo: {
  24382. required: true,
  24383. type: "string"
  24384. },
  24385. sha: {
  24386. type: "string"
  24387. },
  24388. task: {
  24389. type: "string"
  24390. }
  24391. },
  24392. url: "/repos/:owner/:repo/deployments"
  24393. },
  24394. listDownloads: {
  24395. method: "GET",
  24396. params: {
  24397. owner: {
  24398. required: true,
  24399. type: "string"
  24400. },
  24401. page: {
  24402. type: "integer"
  24403. },
  24404. per_page: {
  24405. type: "integer"
  24406. },
  24407. repo: {
  24408. required: true,
  24409. type: "string"
  24410. }
  24411. },
  24412. url: "/repos/:owner/:repo/downloads"
  24413. },
  24414. listForOrg: {
  24415. method: "GET",
  24416. params: {
  24417. direction: {
  24418. enum: ["asc", "desc"],
  24419. type: "string"
  24420. },
  24421. org: {
  24422. required: true,
  24423. type: "string"
  24424. },
  24425. page: {
  24426. type: "integer"
  24427. },
  24428. per_page: {
  24429. type: "integer"
  24430. },
  24431. sort: {
  24432. enum: ["created", "updated", "pushed", "full_name"],
  24433. type: "string"
  24434. },
  24435. type: {
  24436. enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
  24437. type: "string"
  24438. }
  24439. },
  24440. url: "/orgs/:org/repos"
  24441. },
  24442. listForUser: {
  24443. method: "GET",
  24444. params: {
  24445. direction: {
  24446. enum: ["asc", "desc"],
  24447. type: "string"
  24448. },
  24449. page: {
  24450. type: "integer"
  24451. },
  24452. per_page: {
  24453. type: "integer"
  24454. },
  24455. sort: {
  24456. enum: ["created", "updated", "pushed", "full_name"],
  24457. type: "string"
  24458. },
  24459. type: {
  24460. enum: ["all", "owner", "member"],
  24461. type: "string"
  24462. },
  24463. username: {
  24464. required: true,
  24465. type: "string"
  24466. }
  24467. },
  24468. url: "/users/:username/repos"
  24469. },
  24470. listForks: {
  24471. method: "GET",
  24472. params: {
  24473. owner: {
  24474. required: true,
  24475. type: "string"
  24476. },
  24477. page: {
  24478. type: "integer"
  24479. },
  24480. per_page: {
  24481. type: "integer"
  24482. },
  24483. repo: {
  24484. required: true,
  24485. type: "string"
  24486. },
  24487. sort: {
  24488. enum: ["newest", "oldest", "stargazers"],
  24489. type: "string"
  24490. }
  24491. },
  24492. url: "/repos/:owner/:repo/forks"
  24493. },
  24494. listHooks: {
  24495. method: "GET",
  24496. params: {
  24497. owner: {
  24498. required: true,
  24499. type: "string"
  24500. },
  24501. page: {
  24502. type: "integer"
  24503. },
  24504. per_page: {
  24505. type: "integer"
  24506. },
  24507. repo: {
  24508. required: true,
  24509. type: "string"
  24510. }
  24511. },
  24512. url: "/repos/:owner/:repo/hooks"
  24513. },
  24514. listInvitations: {
  24515. method: "GET",
  24516. params: {
  24517. owner: {
  24518. required: true,
  24519. type: "string"
  24520. },
  24521. page: {
  24522. type: "integer"
  24523. },
  24524. per_page: {
  24525. type: "integer"
  24526. },
  24527. repo: {
  24528. required: true,
  24529. type: "string"
  24530. }
  24531. },
  24532. url: "/repos/:owner/:repo/invitations"
  24533. },
  24534. listInvitationsForAuthenticatedUser: {
  24535. method: "GET",
  24536. params: {
  24537. page: {
  24538. type: "integer"
  24539. },
  24540. per_page: {
  24541. type: "integer"
  24542. }
  24543. },
  24544. url: "/user/repository_invitations"
  24545. },
  24546. listLanguages: {
  24547. method: "GET",
  24548. params: {
  24549. owner: {
  24550. required: true,
  24551. type: "string"
  24552. },
  24553. repo: {
  24554. required: true,
  24555. type: "string"
  24556. }
  24557. },
  24558. url: "/repos/:owner/:repo/languages"
  24559. },
  24560. listPagesBuilds: {
  24561. method: "GET",
  24562. params: {
  24563. owner: {
  24564. required: true,
  24565. type: "string"
  24566. },
  24567. page: {
  24568. type: "integer"
  24569. },
  24570. per_page: {
  24571. type: "integer"
  24572. },
  24573. repo: {
  24574. required: true,
  24575. type: "string"
  24576. }
  24577. },
  24578. url: "/repos/:owner/:repo/pages/builds"
  24579. },
  24580. listProtectedBranchRequiredStatusChecksContexts: {
  24581. method: "GET",
  24582. params: {
  24583. branch: {
  24584. required: true,
  24585. type: "string"
  24586. },
  24587. owner: {
  24588. required: true,
  24589. type: "string"
  24590. },
  24591. repo: {
  24592. required: true,
  24593. type: "string"
  24594. }
  24595. },
  24596. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  24597. },
  24598. listProtectedBranchTeamRestrictions: {
  24599. deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
  24600. method: "GET",
  24601. params: {
  24602. branch: {
  24603. required: true,
  24604. type: "string"
  24605. },
  24606. owner: {
  24607. required: true,
  24608. type: "string"
  24609. },
  24610. repo: {
  24611. required: true,
  24612. type: "string"
  24613. }
  24614. },
  24615. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  24616. },
  24617. listProtectedBranchUserRestrictions: {
  24618. deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
  24619. method: "GET",
  24620. params: {
  24621. branch: {
  24622. required: true,
  24623. type: "string"
  24624. },
  24625. owner: {
  24626. required: true,
  24627. type: "string"
  24628. },
  24629. repo: {
  24630. required: true,
  24631. type: "string"
  24632. }
  24633. },
  24634. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  24635. },
  24636. listPublic: {
  24637. method: "GET",
  24638. params: {
  24639. page: {
  24640. type: "integer"
  24641. },
  24642. per_page: {
  24643. type: "integer"
  24644. },
  24645. since: {
  24646. type: "integer"
  24647. }
  24648. },
  24649. url: "/repositories"
  24650. },
  24651. listPullRequestsAssociatedWithCommit: {
  24652. headers: {
  24653. accept: "application/vnd.github.groot-preview+json"
  24654. },
  24655. method: "GET",
  24656. params: {
  24657. commit_sha: {
  24658. required: true,
  24659. type: "string"
  24660. },
  24661. owner: {
  24662. required: true,
  24663. type: "string"
  24664. },
  24665. page: {
  24666. type: "integer"
  24667. },
  24668. per_page: {
  24669. type: "integer"
  24670. },
  24671. repo: {
  24672. required: true,
  24673. type: "string"
  24674. }
  24675. },
  24676. url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
  24677. },
  24678. listReleases: {
  24679. method: "GET",
  24680. params: {
  24681. owner: {
  24682. required: true,
  24683. type: "string"
  24684. },
  24685. page: {
  24686. type: "integer"
  24687. },
  24688. per_page: {
  24689. type: "integer"
  24690. },
  24691. repo: {
  24692. required: true,
  24693. type: "string"
  24694. }
  24695. },
  24696. url: "/repos/:owner/:repo/releases"
  24697. },
  24698. listStatusesForRef: {
  24699. method: "GET",
  24700. params: {
  24701. owner: {
  24702. required: true,
  24703. type: "string"
  24704. },
  24705. page: {
  24706. type: "integer"
  24707. },
  24708. per_page: {
  24709. type: "integer"
  24710. },
  24711. ref: {
  24712. required: true,
  24713. type: "string"
  24714. },
  24715. repo: {
  24716. required: true,
  24717. type: "string"
  24718. }
  24719. },
  24720. url: "/repos/:owner/:repo/commits/:ref/statuses"
  24721. },
  24722. listTags: {
  24723. method: "GET",
  24724. params: {
  24725. owner: {
  24726. required: true,
  24727. type: "string"
  24728. },
  24729. page: {
  24730. type: "integer"
  24731. },
  24732. per_page: {
  24733. type: "integer"
  24734. },
  24735. repo: {
  24736. required: true,
  24737. type: "string"
  24738. }
  24739. },
  24740. url: "/repos/:owner/:repo/tags"
  24741. },
  24742. listTeams: {
  24743. method: "GET",
  24744. params: {
  24745. owner: {
  24746. required: true,
  24747. type: "string"
  24748. },
  24749. page: {
  24750. type: "integer"
  24751. },
  24752. per_page: {
  24753. type: "integer"
  24754. },
  24755. repo: {
  24756. required: true,
  24757. type: "string"
  24758. }
  24759. },
  24760. url: "/repos/:owner/:repo/teams"
  24761. },
  24762. listTeamsWithAccessToProtectedBranch: {
  24763. deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
  24764. method: "GET",
  24765. params: {
  24766. branch: {
  24767. required: true,
  24768. type: "string"
  24769. },
  24770. owner: {
  24771. required: true,
  24772. type: "string"
  24773. },
  24774. repo: {
  24775. required: true,
  24776. type: "string"
  24777. }
  24778. },
  24779. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  24780. },
  24781. listTopics: {
  24782. headers: {
  24783. accept: "application/vnd.github.mercy-preview+json"
  24784. },
  24785. method: "GET",
  24786. params: {
  24787. owner: {
  24788. required: true,
  24789. type: "string"
  24790. },
  24791. repo: {
  24792. required: true,
  24793. type: "string"
  24794. }
  24795. },
  24796. url: "/repos/:owner/:repo/topics"
  24797. },
  24798. listUsersWithAccessToProtectedBranch: {
  24799. deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
  24800. method: "GET",
  24801. params: {
  24802. branch: {
  24803. required: true,
  24804. type: "string"
  24805. },
  24806. owner: {
  24807. required: true,
  24808. type: "string"
  24809. },
  24810. repo: {
  24811. required: true,
  24812. type: "string"
  24813. }
  24814. },
  24815. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  24816. },
  24817. merge: {
  24818. method: "POST",
  24819. params: {
  24820. base: {
  24821. required: true,
  24822. type: "string"
  24823. },
  24824. commit_message: {
  24825. type: "string"
  24826. },
  24827. head: {
  24828. required: true,
  24829. type: "string"
  24830. },
  24831. owner: {
  24832. required: true,
  24833. type: "string"
  24834. },
  24835. repo: {
  24836. required: true,
  24837. type: "string"
  24838. }
  24839. },
  24840. url: "/repos/:owner/:repo/merges"
  24841. },
  24842. pingHook: {
  24843. method: "POST",
  24844. params: {
  24845. hook_id: {
  24846. required: true,
  24847. type: "integer"
  24848. },
  24849. owner: {
  24850. required: true,
  24851. type: "string"
  24852. },
  24853. repo: {
  24854. required: true,
  24855. type: "string"
  24856. }
  24857. },
  24858. url: "/repos/:owner/:repo/hooks/:hook_id/pings"
  24859. },
  24860. removeBranchProtection: {
  24861. method: "DELETE",
  24862. params: {
  24863. branch: {
  24864. required: true,
  24865. type: "string"
  24866. },
  24867. owner: {
  24868. required: true,
  24869. type: "string"
  24870. },
  24871. repo: {
  24872. required: true,
  24873. type: "string"
  24874. }
  24875. },
  24876. url: "/repos/:owner/:repo/branches/:branch/protection"
  24877. },
  24878. removeCollaborator: {
  24879. method: "DELETE",
  24880. params: {
  24881. owner: {
  24882. required: true,
  24883. type: "string"
  24884. },
  24885. repo: {
  24886. required: true,
  24887. type: "string"
  24888. },
  24889. username: {
  24890. required: true,
  24891. type: "string"
  24892. }
  24893. },
  24894. url: "/repos/:owner/:repo/collaborators/:username"
  24895. },
  24896. removeDeployKey: {
  24897. method: "DELETE",
  24898. params: {
  24899. key_id: {
  24900. required: true,
  24901. type: "integer"
  24902. },
  24903. owner: {
  24904. required: true,
  24905. type: "string"
  24906. },
  24907. repo: {
  24908. required: true,
  24909. type: "string"
  24910. }
  24911. },
  24912. url: "/repos/:owner/:repo/keys/:key_id"
  24913. },
  24914. removeProtectedBranchAdminEnforcement: {
  24915. method: "DELETE",
  24916. params: {
  24917. branch: {
  24918. required: true,
  24919. type: "string"
  24920. },
  24921. owner: {
  24922. required: true,
  24923. type: "string"
  24924. },
  24925. repo: {
  24926. required: true,
  24927. type: "string"
  24928. }
  24929. },
  24930. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  24931. },
  24932. removeProtectedBranchAppRestrictions: {
  24933. method: "DELETE",
  24934. params: {
  24935. apps: {
  24936. mapTo: "data",
  24937. required: true,
  24938. type: "string[]"
  24939. },
  24940. branch: {
  24941. required: true,
  24942. type: "string"
  24943. },
  24944. owner: {
  24945. required: true,
  24946. type: "string"
  24947. },
  24948. repo: {
  24949. required: true,
  24950. type: "string"
  24951. }
  24952. },
  24953. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  24954. },
  24955. removeProtectedBranchPullRequestReviewEnforcement: {
  24956. method: "DELETE",
  24957. params: {
  24958. branch: {
  24959. required: true,
  24960. type: "string"
  24961. },
  24962. owner: {
  24963. required: true,
  24964. type: "string"
  24965. },
  24966. repo: {
  24967. required: true,
  24968. type: "string"
  24969. }
  24970. },
  24971. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  24972. },
  24973. removeProtectedBranchRequiredSignatures: {
  24974. headers: {
  24975. accept: "application/vnd.github.zzzax-preview+json"
  24976. },
  24977. method: "DELETE",
  24978. params: {
  24979. branch: {
  24980. required: true,
  24981. type: "string"
  24982. },
  24983. owner: {
  24984. required: true,
  24985. type: "string"
  24986. },
  24987. repo: {
  24988. required: true,
  24989. type: "string"
  24990. }
  24991. },
  24992. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  24993. },
  24994. removeProtectedBranchRequiredStatusChecks: {
  24995. method: "DELETE",
  24996. params: {
  24997. branch: {
  24998. required: true,
  24999. type: "string"
  25000. },
  25001. owner: {
  25002. required: true,
  25003. type: "string"
  25004. },
  25005. repo: {
  25006. required: true,
  25007. type: "string"
  25008. }
  25009. },
  25010. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  25011. },
  25012. removeProtectedBranchRequiredStatusChecksContexts: {
  25013. method: "DELETE",
  25014. params: {
  25015. branch: {
  25016. required: true,
  25017. type: "string"
  25018. },
  25019. contexts: {
  25020. mapTo: "data",
  25021. required: true,
  25022. type: "string[]"
  25023. },
  25024. owner: {
  25025. required: true,
  25026. type: "string"
  25027. },
  25028. repo: {
  25029. required: true,
  25030. type: "string"
  25031. }
  25032. },
  25033. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  25034. },
  25035. removeProtectedBranchRestrictions: {
  25036. method: "DELETE",
  25037. params: {
  25038. branch: {
  25039. required: true,
  25040. type: "string"
  25041. },
  25042. owner: {
  25043. required: true,
  25044. type: "string"
  25045. },
  25046. repo: {
  25047. required: true,
  25048. type: "string"
  25049. }
  25050. },
  25051. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  25052. },
  25053. removeProtectedBranchTeamRestrictions: {
  25054. method: "DELETE",
  25055. params: {
  25056. branch: {
  25057. required: true,
  25058. type: "string"
  25059. },
  25060. owner: {
  25061. required: true,
  25062. type: "string"
  25063. },
  25064. repo: {
  25065. required: true,
  25066. type: "string"
  25067. },
  25068. teams: {
  25069. mapTo: "data",
  25070. required: true,
  25071. type: "string[]"
  25072. }
  25073. },
  25074. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25075. },
  25076. removeProtectedBranchUserRestrictions: {
  25077. method: "DELETE",
  25078. params: {
  25079. branch: {
  25080. required: true,
  25081. type: "string"
  25082. },
  25083. owner: {
  25084. required: true,
  25085. type: "string"
  25086. },
  25087. repo: {
  25088. required: true,
  25089. type: "string"
  25090. },
  25091. users: {
  25092. mapTo: "data",
  25093. required: true,
  25094. type: "string[]"
  25095. }
  25096. },
  25097. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25098. },
  25099. replaceProtectedBranchAppRestrictions: {
  25100. method: "PUT",
  25101. params: {
  25102. apps: {
  25103. mapTo: "data",
  25104. required: true,
  25105. type: "string[]"
  25106. },
  25107. branch: {
  25108. required: true,
  25109. type: "string"
  25110. },
  25111. owner: {
  25112. required: true,
  25113. type: "string"
  25114. },
  25115. repo: {
  25116. required: true,
  25117. type: "string"
  25118. }
  25119. },
  25120. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  25121. },
  25122. replaceProtectedBranchRequiredStatusChecksContexts: {
  25123. method: "PUT",
  25124. params: {
  25125. branch: {
  25126. required: true,
  25127. type: "string"
  25128. },
  25129. contexts: {
  25130. mapTo: "data",
  25131. required: true,
  25132. type: "string[]"
  25133. },
  25134. owner: {
  25135. required: true,
  25136. type: "string"
  25137. },
  25138. repo: {
  25139. required: true,
  25140. type: "string"
  25141. }
  25142. },
  25143. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  25144. },
  25145. replaceProtectedBranchTeamRestrictions: {
  25146. method: "PUT",
  25147. params: {
  25148. branch: {
  25149. required: true,
  25150. type: "string"
  25151. },
  25152. owner: {
  25153. required: true,
  25154. type: "string"
  25155. },
  25156. repo: {
  25157. required: true,
  25158. type: "string"
  25159. },
  25160. teams: {
  25161. mapTo: "data",
  25162. required: true,
  25163. type: "string[]"
  25164. }
  25165. },
  25166. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25167. },
  25168. replaceProtectedBranchUserRestrictions: {
  25169. method: "PUT",
  25170. params: {
  25171. branch: {
  25172. required: true,
  25173. type: "string"
  25174. },
  25175. owner: {
  25176. required: true,
  25177. type: "string"
  25178. },
  25179. repo: {
  25180. required: true,
  25181. type: "string"
  25182. },
  25183. users: {
  25184. mapTo: "data",
  25185. required: true,
  25186. type: "string[]"
  25187. }
  25188. },
  25189. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25190. },
  25191. replaceTopics: {
  25192. headers: {
  25193. accept: "application/vnd.github.mercy-preview+json"
  25194. },
  25195. method: "PUT",
  25196. params: {
  25197. names: {
  25198. required: true,
  25199. type: "string[]"
  25200. },
  25201. owner: {
  25202. required: true,
  25203. type: "string"
  25204. },
  25205. repo: {
  25206. required: true,
  25207. type: "string"
  25208. }
  25209. },
  25210. url: "/repos/:owner/:repo/topics"
  25211. },
  25212. requestPageBuild: {
  25213. method: "POST",
  25214. params: {
  25215. owner: {
  25216. required: true,
  25217. type: "string"
  25218. },
  25219. repo: {
  25220. required: true,
  25221. type: "string"
  25222. }
  25223. },
  25224. url: "/repos/:owner/:repo/pages/builds"
  25225. },
  25226. retrieveCommunityProfileMetrics: {
  25227. method: "GET",
  25228. params: {
  25229. owner: {
  25230. required: true,
  25231. type: "string"
  25232. },
  25233. repo: {
  25234. required: true,
  25235. type: "string"
  25236. }
  25237. },
  25238. url: "/repos/:owner/:repo/community/profile"
  25239. },
  25240. testPushHook: {
  25241. method: "POST",
  25242. params: {
  25243. hook_id: {
  25244. required: true,
  25245. type: "integer"
  25246. },
  25247. owner: {
  25248. required: true,
  25249. type: "string"
  25250. },
  25251. repo: {
  25252. required: true,
  25253. type: "string"
  25254. }
  25255. },
  25256. url: "/repos/:owner/:repo/hooks/:hook_id/tests"
  25257. },
  25258. transfer: {
  25259. method: "POST",
  25260. params: {
  25261. new_owner: {
  25262. type: "string"
  25263. },
  25264. owner: {
  25265. required: true,
  25266. type: "string"
  25267. },
  25268. repo: {
  25269. required: true,
  25270. type: "string"
  25271. },
  25272. team_ids: {
  25273. type: "integer[]"
  25274. }
  25275. },
  25276. url: "/repos/:owner/:repo/transfer"
  25277. },
  25278. update: {
  25279. method: "PATCH",
  25280. params: {
  25281. allow_merge_commit: {
  25282. type: "boolean"
  25283. },
  25284. allow_rebase_merge: {
  25285. type: "boolean"
  25286. },
  25287. allow_squash_merge: {
  25288. type: "boolean"
  25289. },
  25290. archived: {
  25291. type: "boolean"
  25292. },
  25293. default_branch: {
  25294. type: "string"
  25295. },
  25296. delete_branch_on_merge: {
  25297. type: "boolean"
  25298. },
  25299. description: {
  25300. type: "string"
  25301. },
  25302. has_issues: {
  25303. type: "boolean"
  25304. },
  25305. has_projects: {
  25306. type: "boolean"
  25307. },
  25308. has_wiki: {
  25309. type: "boolean"
  25310. },
  25311. homepage: {
  25312. type: "string"
  25313. },
  25314. is_template: {
  25315. type: "boolean"
  25316. },
  25317. name: {
  25318. type: "string"
  25319. },
  25320. owner: {
  25321. required: true,
  25322. type: "string"
  25323. },
  25324. private: {
  25325. type: "boolean"
  25326. },
  25327. repo: {
  25328. required: true,
  25329. type: "string"
  25330. },
  25331. visibility: {
  25332. enum: ["public", "private", "visibility", "internal"],
  25333. type: "string"
  25334. }
  25335. },
  25336. url: "/repos/:owner/:repo"
  25337. },
  25338. updateBranchProtection: {
  25339. method: "PUT",
  25340. params: {
  25341. allow_deletions: {
  25342. type: "boolean"
  25343. },
  25344. allow_force_pushes: {
  25345. allowNull: true,
  25346. type: "boolean"
  25347. },
  25348. branch: {
  25349. required: true,
  25350. type: "string"
  25351. },
  25352. enforce_admins: {
  25353. allowNull: true,
  25354. required: true,
  25355. type: "boolean"
  25356. },
  25357. owner: {
  25358. required: true,
  25359. type: "string"
  25360. },
  25361. repo: {
  25362. required: true,
  25363. type: "string"
  25364. },
  25365. required_linear_history: {
  25366. type: "boolean"
  25367. },
  25368. required_pull_request_reviews: {
  25369. allowNull: true,
  25370. required: true,
  25371. type: "object"
  25372. },
  25373. "required_pull_request_reviews.dismiss_stale_reviews": {
  25374. type: "boolean"
  25375. },
  25376. "required_pull_request_reviews.dismissal_restrictions": {
  25377. type: "object"
  25378. },
  25379. "required_pull_request_reviews.dismissal_restrictions.teams": {
  25380. type: "string[]"
  25381. },
  25382. "required_pull_request_reviews.dismissal_restrictions.users": {
  25383. type: "string[]"
  25384. },
  25385. "required_pull_request_reviews.require_code_owner_reviews": {
  25386. type: "boolean"
  25387. },
  25388. "required_pull_request_reviews.required_approving_review_count": {
  25389. type: "integer"
  25390. },
  25391. required_status_checks: {
  25392. allowNull: true,
  25393. required: true,
  25394. type: "object"
  25395. },
  25396. "required_status_checks.contexts": {
  25397. required: true,
  25398. type: "string[]"
  25399. },
  25400. "required_status_checks.strict": {
  25401. required: true,
  25402. type: "boolean"
  25403. },
  25404. restrictions: {
  25405. allowNull: true,
  25406. required: true,
  25407. type: "object"
  25408. },
  25409. "restrictions.apps": {
  25410. type: "string[]"
  25411. },
  25412. "restrictions.teams": {
  25413. required: true,
  25414. type: "string[]"
  25415. },
  25416. "restrictions.users": {
  25417. required: true,
  25418. type: "string[]"
  25419. }
  25420. },
  25421. url: "/repos/:owner/:repo/branches/:branch/protection"
  25422. },
  25423. updateCommitComment: {
  25424. method: "PATCH",
  25425. params: {
  25426. body: {
  25427. required: true,
  25428. type: "string"
  25429. },
  25430. comment_id: {
  25431. required: true,
  25432. type: "integer"
  25433. },
  25434. owner: {
  25435. required: true,
  25436. type: "string"
  25437. },
  25438. repo: {
  25439. required: true,
  25440. type: "string"
  25441. }
  25442. },
  25443. url: "/repos/:owner/:repo/comments/:comment_id"
  25444. },
  25445. updateFile: {
  25446. deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  25447. method: "PUT",
  25448. params: {
  25449. author: {
  25450. type: "object"
  25451. },
  25452. "author.email": {
  25453. required: true,
  25454. type: "string"
  25455. },
  25456. "author.name": {
  25457. required: true,
  25458. type: "string"
  25459. },
  25460. branch: {
  25461. type: "string"
  25462. },
  25463. committer: {
  25464. type: "object"
  25465. },
  25466. "committer.email": {
  25467. required: true,
  25468. type: "string"
  25469. },
  25470. "committer.name": {
  25471. required: true,
  25472. type: "string"
  25473. },
  25474. content: {
  25475. required: true,
  25476. type: "string"
  25477. },
  25478. message: {
  25479. required: true,
  25480. type: "string"
  25481. },
  25482. owner: {
  25483. required: true,
  25484. type: "string"
  25485. },
  25486. path: {
  25487. required: true,
  25488. type: "string"
  25489. },
  25490. repo: {
  25491. required: true,
  25492. type: "string"
  25493. },
  25494. sha: {
  25495. type: "string"
  25496. }
  25497. },
  25498. url: "/repos/:owner/:repo/contents/:path"
  25499. },
  25500. updateHook: {
  25501. method: "PATCH",
  25502. params: {
  25503. active: {
  25504. type: "boolean"
  25505. },
  25506. add_events: {
  25507. type: "string[]"
  25508. },
  25509. config: {
  25510. type: "object"
  25511. },
  25512. "config.content_type": {
  25513. type: "string"
  25514. },
  25515. "config.insecure_ssl": {
  25516. type: "string"
  25517. },
  25518. "config.secret": {
  25519. type: "string"
  25520. },
  25521. "config.url": {
  25522. required: true,
  25523. type: "string"
  25524. },
  25525. events: {
  25526. type: "string[]"
  25527. },
  25528. hook_id: {
  25529. required: true,
  25530. type: "integer"
  25531. },
  25532. owner: {
  25533. required: true,
  25534. type: "string"
  25535. },
  25536. remove_events: {
  25537. type: "string[]"
  25538. },
  25539. repo: {
  25540. required: true,
  25541. type: "string"
  25542. }
  25543. },
  25544. url: "/repos/:owner/:repo/hooks/:hook_id"
  25545. },
  25546. updateInformationAboutPagesSite: {
  25547. method: "PUT",
  25548. params: {
  25549. cname: {
  25550. type: "string"
  25551. },
  25552. owner: {
  25553. required: true,
  25554. type: "string"
  25555. },
  25556. repo: {
  25557. required: true,
  25558. type: "string"
  25559. },
  25560. source: {
  25561. enum: ['"gh-pages"', '"master"', '"master /docs"'],
  25562. type: "string"
  25563. }
  25564. },
  25565. url: "/repos/:owner/:repo/pages"
  25566. },
  25567. updateInvitation: {
  25568. method: "PATCH",
  25569. params: {
  25570. invitation_id: {
  25571. required: true,
  25572. type: "integer"
  25573. },
  25574. owner: {
  25575. required: true,
  25576. type: "string"
  25577. },
  25578. permissions: {
  25579. enum: ["read", "write", "admin"],
  25580. type: "string"
  25581. },
  25582. repo: {
  25583. required: true,
  25584. type: "string"
  25585. }
  25586. },
  25587. url: "/repos/:owner/:repo/invitations/:invitation_id"
  25588. },
  25589. updateProtectedBranchPullRequestReviewEnforcement: {
  25590. method: "PATCH",
  25591. params: {
  25592. branch: {
  25593. required: true,
  25594. type: "string"
  25595. },
  25596. dismiss_stale_reviews: {
  25597. type: "boolean"
  25598. },
  25599. dismissal_restrictions: {
  25600. type: "object"
  25601. },
  25602. "dismissal_restrictions.teams": {
  25603. type: "string[]"
  25604. },
  25605. "dismissal_restrictions.users": {
  25606. type: "string[]"
  25607. },
  25608. owner: {
  25609. required: true,
  25610. type: "string"
  25611. },
  25612. repo: {
  25613. required: true,
  25614. type: "string"
  25615. },
  25616. require_code_owner_reviews: {
  25617. type: "boolean"
  25618. },
  25619. required_approving_review_count: {
  25620. type: "integer"
  25621. }
  25622. },
  25623. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  25624. },
  25625. updateProtectedBranchRequiredStatusChecks: {
  25626. method: "PATCH",
  25627. params: {
  25628. branch: {
  25629. required: true,
  25630. type: "string"
  25631. },
  25632. contexts: {
  25633. type: "string[]"
  25634. },
  25635. owner: {
  25636. required: true,
  25637. type: "string"
  25638. },
  25639. repo: {
  25640. required: true,
  25641. type: "string"
  25642. },
  25643. strict: {
  25644. type: "boolean"
  25645. }
  25646. },
  25647. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  25648. },
  25649. updateRelease: {
  25650. method: "PATCH",
  25651. params: {
  25652. body: {
  25653. type: "string"
  25654. },
  25655. draft: {
  25656. type: "boolean"
  25657. },
  25658. name: {
  25659. type: "string"
  25660. },
  25661. owner: {
  25662. required: true,
  25663. type: "string"
  25664. },
  25665. prerelease: {
  25666. type: "boolean"
  25667. },
  25668. release_id: {
  25669. required: true,
  25670. type: "integer"
  25671. },
  25672. repo: {
  25673. required: true,
  25674. type: "string"
  25675. },
  25676. tag_name: {
  25677. type: "string"
  25678. },
  25679. target_commitish: {
  25680. type: "string"
  25681. }
  25682. },
  25683. url: "/repos/:owner/:repo/releases/:release_id"
  25684. },
  25685. updateReleaseAsset: {
  25686. method: "PATCH",
  25687. params: {
  25688. asset_id: {
  25689. required: true,
  25690. type: "integer"
  25691. },
  25692. label: {
  25693. type: "string"
  25694. },
  25695. name: {
  25696. type: "string"
  25697. },
  25698. owner: {
  25699. required: true,
  25700. type: "string"
  25701. },
  25702. repo: {
  25703. required: true,
  25704. type: "string"
  25705. }
  25706. },
  25707. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  25708. },
  25709. uploadReleaseAsset: {
  25710. method: "POST",
  25711. params: {
  25712. data: {
  25713. mapTo: "data",
  25714. required: true,
  25715. type: "string | object"
  25716. },
  25717. file: {
  25718. alias: "data",
  25719. deprecated: true,
  25720. type: "string | object"
  25721. },
  25722. headers: {
  25723. required: true,
  25724. type: "object"
  25725. },
  25726. "headers.content-length": {
  25727. required: true,
  25728. type: "integer"
  25729. },
  25730. "headers.content-type": {
  25731. required: true,
  25732. type: "string"
  25733. },
  25734. label: {
  25735. type: "string"
  25736. },
  25737. name: {
  25738. required: true,
  25739. type: "string"
  25740. },
  25741. url: {
  25742. required: true,
  25743. type: "string"
  25744. }
  25745. },
  25746. url: ":url"
  25747. }
  25748. },
  25749. search: {
  25750. code: {
  25751. method: "GET",
  25752. params: {
  25753. order: {
  25754. enum: ["desc", "asc"],
  25755. type: "string"
  25756. },
  25757. page: {
  25758. type: "integer"
  25759. },
  25760. per_page: {
  25761. type: "integer"
  25762. },
  25763. q: {
  25764. required: true,
  25765. type: "string"
  25766. },
  25767. sort: {
  25768. enum: ["indexed"],
  25769. type: "string"
  25770. }
  25771. },
  25772. url: "/search/code"
  25773. },
  25774. commits: {
  25775. headers: {
  25776. accept: "application/vnd.github.cloak-preview+json"
  25777. },
  25778. method: "GET",
  25779. params: {
  25780. order: {
  25781. enum: ["desc", "asc"],
  25782. type: "string"
  25783. },
  25784. page: {
  25785. type: "integer"
  25786. },
  25787. per_page: {
  25788. type: "integer"
  25789. },
  25790. q: {
  25791. required: true,
  25792. type: "string"
  25793. },
  25794. sort: {
  25795. enum: ["author-date", "committer-date"],
  25796. type: "string"
  25797. }
  25798. },
  25799. url: "/search/commits"
  25800. },
  25801. issues: {
  25802. deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
  25803. method: "GET",
  25804. params: {
  25805. order: {
  25806. enum: ["desc", "asc"],
  25807. type: "string"
  25808. },
  25809. page: {
  25810. type: "integer"
  25811. },
  25812. per_page: {
  25813. type: "integer"
  25814. },
  25815. q: {
  25816. required: true,
  25817. type: "string"
  25818. },
  25819. sort: {
  25820. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  25821. type: "string"
  25822. }
  25823. },
  25824. url: "/search/issues"
  25825. },
  25826. issuesAndPullRequests: {
  25827. method: "GET",
  25828. params: {
  25829. order: {
  25830. enum: ["desc", "asc"],
  25831. type: "string"
  25832. },
  25833. page: {
  25834. type: "integer"
  25835. },
  25836. per_page: {
  25837. type: "integer"
  25838. },
  25839. q: {
  25840. required: true,
  25841. type: "string"
  25842. },
  25843. sort: {
  25844. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  25845. type: "string"
  25846. }
  25847. },
  25848. url: "/search/issues"
  25849. },
  25850. labels: {
  25851. method: "GET",
  25852. params: {
  25853. order: {
  25854. enum: ["desc", "asc"],
  25855. type: "string"
  25856. },
  25857. q: {
  25858. required: true,
  25859. type: "string"
  25860. },
  25861. repository_id: {
  25862. required: true,
  25863. type: "integer"
  25864. },
  25865. sort: {
  25866. enum: ["created", "updated"],
  25867. type: "string"
  25868. }
  25869. },
  25870. url: "/search/labels"
  25871. },
  25872. repos: {
  25873. method: "GET",
  25874. params: {
  25875. order: {
  25876. enum: ["desc", "asc"],
  25877. type: "string"
  25878. },
  25879. page: {
  25880. type: "integer"
  25881. },
  25882. per_page: {
  25883. type: "integer"
  25884. },
  25885. q: {
  25886. required: true,
  25887. type: "string"
  25888. },
  25889. sort: {
  25890. enum: ["stars", "forks", "help-wanted-issues", "updated"],
  25891. type: "string"
  25892. }
  25893. },
  25894. url: "/search/repositories"
  25895. },
  25896. topics: {
  25897. method: "GET",
  25898. params: {
  25899. q: {
  25900. required: true,
  25901. type: "string"
  25902. }
  25903. },
  25904. url: "/search/topics"
  25905. },
  25906. users: {
  25907. method: "GET",
  25908. params: {
  25909. order: {
  25910. enum: ["desc", "asc"],
  25911. type: "string"
  25912. },
  25913. page: {
  25914. type: "integer"
  25915. },
  25916. per_page: {
  25917. type: "integer"
  25918. },
  25919. q: {
  25920. required: true,
  25921. type: "string"
  25922. },
  25923. sort: {
  25924. enum: ["followers", "repositories", "joined"],
  25925. type: "string"
  25926. }
  25927. },
  25928. url: "/search/users"
  25929. }
  25930. },
  25931. teams: {
  25932. addMember: {
  25933. deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
  25934. method: "PUT",
  25935. params: {
  25936. team_id: {
  25937. required: true,
  25938. type: "integer"
  25939. },
  25940. username: {
  25941. required: true,
  25942. type: "string"
  25943. }
  25944. },
  25945. url: "/teams/:team_id/members/:username"
  25946. },
  25947. addMemberLegacy: {
  25948. deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
  25949. method: "PUT",
  25950. params: {
  25951. team_id: {
  25952. required: true,
  25953. type: "integer"
  25954. },
  25955. username: {
  25956. required: true,
  25957. type: "string"
  25958. }
  25959. },
  25960. url: "/teams/:team_id/members/:username"
  25961. },
  25962. addOrUpdateMembership: {
  25963. deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
  25964. method: "PUT",
  25965. params: {
  25966. role: {
  25967. enum: ["member", "maintainer"],
  25968. type: "string"
  25969. },
  25970. team_id: {
  25971. required: true,
  25972. type: "integer"
  25973. },
  25974. username: {
  25975. required: true,
  25976. type: "string"
  25977. }
  25978. },
  25979. url: "/teams/:team_id/memberships/:username"
  25980. },
  25981. addOrUpdateMembershipInOrg: {
  25982. method: "PUT",
  25983. params: {
  25984. org: {
  25985. required: true,
  25986. type: "string"
  25987. },
  25988. role: {
  25989. enum: ["member", "maintainer"],
  25990. type: "string"
  25991. },
  25992. team_slug: {
  25993. required: true,
  25994. type: "string"
  25995. },
  25996. username: {
  25997. required: true,
  25998. type: "string"
  25999. }
  26000. },
  26001. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  26002. },
  26003. addOrUpdateMembershipLegacy: {
  26004. deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
  26005. method: "PUT",
  26006. params: {
  26007. role: {
  26008. enum: ["member", "maintainer"],
  26009. type: "string"
  26010. },
  26011. team_id: {
  26012. required: true,
  26013. type: "integer"
  26014. },
  26015. username: {
  26016. required: true,
  26017. type: "string"
  26018. }
  26019. },
  26020. url: "/teams/:team_id/memberships/:username"
  26021. },
  26022. addOrUpdateProject: {
  26023. deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
  26024. headers: {
  26025. accept: "application/vnd.github.inertia-preview+json"
  26026. },
  26027. method: "PUT",
  26028. params: {
  26029. permission: {
  26030. enum: ["read", "write", "admin"],
  26031. type: "string"
  26032. },
  26033. project_id: {
  26034. required: true,
  26035. type: "integer"
  26036. },
  26037. team_id: {
  26038. required: true,
  26039. type: "integer"
  26040. }
  26041. },
  26042. url: "/teams/:team_id/projects/:project_id"
  26043. },
  26044. addOrUpdateProjectInOrg: {
  26045. headers: {
  26046. accept: "application/vnd.github.inertia-preview+json"
  26047. },
  26048. method: "PUT",
  26049. params: {
  26050. org: {
  26051. required: true,
  26052. type: "string"
  26053. },
  26054. permission: {
  26055. enum: ["read", "write", "admin"],
  26056. type: "string"
  26057. },
  26058. project_id: {
  26059. required: true,
  26060. type: "integer"
  26061. },
  26062. team_slug: {
  26063. required: true,
  26064. type: "string"
  26065. }
  26066. },
  26067. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  26068. },
  26069. addOrUpdateProjectLegacy: {
  26070. deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
  26071. headers: {
  26072. accept: "application/vnd.github.inertia-preview+json"
  26073. },
  26074. method: "PUT",
  26075. params: {
  26076. permission: {
  26077. enum: ["read", "write", "admin"],
  26078. type: "string"
  26079. },
  26080. project_id: {
  26081. required: true,
  26082. type: "integer"
  26083. },
  26084. team_id: {
  26085. required: true,
  26086. type: "integer"
  26087. }
  26088. },
  26089. url: "/teams/:team_id/projects/:project_id"
  26090. },
  26091. addOrUpdateRepo: {
  26092. deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
  26093. method: "PUT",
  26094. params: {
  26095. owner: {
  26096. required: true,
  26097. type: "string"
  26098. },
  26099. permission: {
  26100. enum: ["pull", "push", "admin"],
  26101. type: "string"
  26102. },
  26103. repo: {
  26104. required: true,
  26105. type: "string"
  26106. },
  26107. team_id: {
  26108. required: true,
  26109. type: "integer"
  26110. }
  26111. },
  26112. url: "/teams/:team_id/repos/:owner/:repo"
  26113. },
  26114. addOrUpdateRepoInOrg: {
  26115. method: "PUT",
  26116. params: {
  26117. org: {
  26118. required: true,
  26119. type: "string"
  26120. },
  26121. owner: {
  26122. required: true,
  26123. type: "string"
  26124. },
  26125. permission: {
  26126. enum: ["pull", "push", "admin"],
  26127. type: "string"
  26128. },
  26129. repo: {
  26130. required: true,
  26131. type: "string"
  26132. },
  26133. team_slug: {
  26134. required: true,
  26135. type: "string"
  26136. }
  26137. },
  26138. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  26139. },
  26140. addOrUpdateRepoLegacy: {
  26141. deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
  26142. method: "PUT",
  26143. params: {
  26144. owner: {
  26145. required: true,
  26146. type: "string"
  26147. },
  26148. permission: {
  26149. enum: ["pull", "push", "admin"],
  26150. type: "string"
  26151. },
  26152. repo: {
  26153. required: true,
  26154. type: "string"
  26155. },
  26156. team_id: {
  26157. required: true,
  26158. type: "integer"
  26159. }
  26160. },
  26161. url: "/teams/:team_id/repos/:owner/:repo"
  26162. },
  26163. checkManagesRepo: {
  26164. deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
  26165. method: "GET",
  26166. params: {
  26167. owner: {
  26168. required: true,
  26169. type: "string"
  26170. },
  26171. repo: {
  26172. required: true,
  26173. type: "string"
  26174. },
  26175. team_id: {
  26176. required: true,
  26177. type: "integer"
  26178. }
  26179. },
  26180. url: "/teams/:team_id/repos/:owner/:repo"
  26181. },
  26182. checkManagesRepoInOrg: {
  26183. method: "GET",
  26184. params: {
  26185. org: {
  26186. required: true,
  26187. type: "string"
  26188. },
  26189. owner: {
  26190. required: true,
  26191. type: "string"
  26192. },
  26193. repo: {
  26194. required: true,
  26195. type: "string"
  26196. },
  26197. team_slug: {
  26198. required: true,
  26199. type: "string"
  26200. }
  26201. },
  26202. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  26203. },
  26204. checkManagesRepoLegacy: {
  26205. deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
  26206. method: "GET",
  26207. params: {
  26208. owner: {
  26209. required: true,
  26210. type: "string"
  26211. },
  26212. repo: {
  26213. required: true,
  26214. type: "string"
  26215. },
  26216. team_id: {
  26217. required: true,
  26218. type: "integer"
  26219. }
  26220. },
  26221. url: "/teams/:team_id/repos/:owner/:repo"
  26222. },
  26223. create: {
  26224. method: "POST",
  26225. params: {
  26226. description: {
  26227. type: "string"
  26228. },
  26229. maintainers: {
  26230. type: "string[]"
  26231. },
  26232. name: {
  26233. required: true,
  26234. type: "string"
  26235. },
  26236. org: {
  26237. required: true,
  26238. type: "string"
  26239. },
  26240. parent_team_id: {
  26241. type: "integer"
  26242. },
  26243. permission: {
  26244. enum: ["pull", "push", "admin"],
  26245. type: "string"
  26246. },
  26247. privacy: {
  26248. enum: ["secret", "closed"],
  26249. type: "string"
  26250. },
  26251. repo_names: {
  26252. type: "string[]"
  26253. }
  26254. },
  26255. url: "/orgs/:org/teams"
  26256. },
  26257. createDiscussion: {
  26258. deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
  26259. method: "POST",
  26260. params: {
  26261. body: {
  26262. required: true,
  26263. type: "string"
  26264. },
  26265. private: {
  26266. type: "boolean"
  26267. },
  26268. team_id: {
  26269. required: true,
  26270. type: "integer"
  26271. },
  26272. title: {
  26273. required: true,
  26274. type: "string"
  26275. }
  26276. },
  26277. url: "/teams/:team_id/discussions"
  26278. },
  26279. createDiscussionComment: {
  26280. deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
  26281. method: "POST",
  26282. params: {
  26283. body: {
  26284. required: true,
  26285. type: "string"
  26286. },
  26287. discussion_number: {
  26288. required: true,
  26289. type: "integer"
  26290. },
  26291. team_id: {
  26292. required: true,
  26293. type: "integer"
  26294. }
  26295. },
  26296. url: "/teams/:team_id/discussions/:discussion_number/comments"
  26297. },
  26298. createDiscussionCommentInOrg: {
  26299. method: "POST",
  26300. params: {
  26301. body: {
  26302. required: true,
  26303. type: "string"
  26304. },
  26305. discussion_number: {
  26306. required: true,
  26307. type: "integer"
  26308. },
  26309. org: {
  26310. required: true,
  26311. type: "string"
  26312. },
  26313. team_slug: {
  26314. required: true,
  26315. type: "string"
  26316. }
  26317. },
  26318. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  26319. },
  26320. createDiscussionCommentLegacy: {
  26321. deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
  26322. method: "POST",
  26323. params: {
  26324. body: {
  26325. required: true,
  26326. type: "string"
  26327. },
  26328. discussion_number: {
  26329. required: true,
  26330. type: "integer"
  26331. },
  26332. team_id: {
  26333. required: true,
  26334. type: "integer"
  26335. }
  26336. },
  26337. url: "/teams/:team_id/discussions/:discussion_number/comments"
  26338. },
  26339. createDiscussionInOrg: {
  26340. method: "POST",
  26341. params: {
  26342. body: {
  26343. required: true,
  26344. type: "string"
  26345. },
  26346. org: {
  26347. required: true,
  26348. type: "string"
  26349. },
  26350. private: {
  26351. type: "boolean"
  26352. },
  26353. team_slug: {
  26354. required: true,
  26355. type: "string"
  26356. },
  26357. title: {
  26358. required: true,
  26359. type: "string"
  26360. }
  26361. },
  26362. url: "/orgs/:org/teams/:team_slug/discussions"
  26363. },
  26364. createDiscussionLegacy: {
  26365. deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
  26366. method: "POST",
  26367. params: {
  26368. body: {
  26369. required: true,
  26370. type: "string"
  26371. },
  26372. private: {
  26373. type: "boolean"
  26374. },
  26375. team_id: {
  26376. required: true,
  26377. type: "integer"
  26378. },
  26379. title: {
  26380. required: true,
  26381. type: "string"
  26382. }
  26383. },
  26384. url: "/teams/:team_id/discussions"
  26385. },
  26386. delete: {
  26387. deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
  26388. method: "DELETE",
  26389. params: {
  26390. team_id: {
  26391. required: true,
  26392. type: "integer"
  26393. }
  26394. },
  26395. url: "/teams/:team_id"
  26396. },
  26397. deleteDiscussion: {
  26398. deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
  26399. method: "DELETE",
  26400. params: {
  26401. discussion_number: {
  26402. required: true,
  26403. type: "integer"
  26404. },
  26405. team_id: {
  26406. required: true,
  26407. type: "integer"
  26408. }
  26409. },
  26410. url: "/teams/:team_id/discussions/:discussion_number"
  26411. },
  26412. deleteDiscussionComment: {
  26413. deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
  26414. method: "DELETE",
  26415. params: {
  26416. comment_number: {
  26417. required: true,
  26418. type: "integer"
  26419. },
  26420. discussion_number: {
  26421. required: true,
  26422. type: "integer"
  26423. },
  26424. team_id: {
  26425. required: true,
  26426. type: "integer"
  26427. }
  26428. },
  26429. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  26430. },
  26431. deleteDiscussionCommentInOrg: {
  26432. method: "DELETE",
  26433. params: {
  26434. comment_number: {
  26435. required: true,
  26436. type: "integer"
  26437. },
  26438. discussion_number: {
  26439. required: true,
  26440. type: "integer"
  26441. },
  26442. org: {
  26443. required: true,
  26444. type: "string"
  26445. },
  26446. team_slug: {
  26447. required: true,
  26448. type: "string"
  26449. }
  26450. },
  26451. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  26452. },
  26453. deleteDiscussionCommentLegacy: {
  26454. deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
  26455. method: "DELETE",
  26456. params: {
  26457. comment_number: {
  26458. required: true,
  26459. type: "integer"
  26460. },
  26461. discussion_number: {
  26462. required: true,
  26463. type: "integer"
  26464. },
  26465. team_id: {
  26466. required: true,
  26467. type: "integer"
  26468. }
  26469. },
  26470. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  26471. },
  26472. deleteDiscussionInOrg: {
  26473. method: "DELETE",
  26474. params: {
  26475. discussion_number: {
  26476. required: true,
  26477. type: "integer"
  26478. },
  26479. org: {
  26480. required: true,
  26481. type: "string"
  26482. },
  26483. team_slug: {
  26484. required: true,
  26485. type: "string"
  26486. }
  26487. },
  26488. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  26489. },
  26490. deleteDiscussionLegacy: {
  26491. deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
  26492. method: "DELETE",
  26493. params: {
  26494. discussion_number: {
  26495. required: true,
  26496. type: "integer"
  26497. },
  26498. team_id: {
  26499. required: true,
  26500. type: "integer"
  26501. }
  26502. },
  26503. url: "/teams/:team_id/discussions/:discussion_number"
  26504. },
  26505. deleteInOrg: {
  26506. method: "DELETE",
  26507. params: {
  26508. org: {
  26509. required: true,
  26510. type: "string"
  26511. },
  26512. team_slug: {
  26513. required: true,
  26514. type: "string"
  26515. }
  26516. },
  26517. url: "/orgs/:org/teams/:team_slug"
  26518. },
  26519. deleteLegacy: {
  26520. deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
  26521. method: "DELETE",
  26522. params: {
  26523. team_id: {
  26524. required: true,
  26525. type: "integer"
  26526. }
  26527. },
  26528. url: "/teams/:team_id"
  26529. },
  26530. get: {
  26531. deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
  26532. method: "GET",
  26533. params: {
  26534. team_id: {
  26535. required: true,
  26536. type: "integer"
  26537. }
  26538. },
  26539. url: "/teams/:team_id"
  26540. },
  26541. getByName: {
  26542. method: "GET",
  26543. params: {
  26544. org: {
  26545. required: true,
  26546. type: "string"
  26547. },
  26548. team_slug: {
  26549. required: true,
  26550. type: "string"
  26551. }
  26552. },
  26553. url: "/orgs/:org/teams/:team_slug"
  26554. },
  26555. getDiscussion: {
  26556. deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
  26557. method: "GET",
  26558. params: {
  26559. discussion_number: {
  26560. required: true,
  26561. type: "integer"
  26562. },
  26563. team_id: {
  26564. required: true,
  26565. type: "integer"
  26566. }
  26567. },
  26568. url: "/teams/:team_id/discussions/:discussion_number"
  26569. },
  26570. getDiscussionComment: {
  26571. deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
  26572. method: "GET",
  26573. params: {
  26574. comment_number: {
  26575. required: true,
  26576. type: "integer"
  26577. },
  26578. discussion_number: {
  26579. required: true,
  26580. type: "integer"
  26581. },
  26582. team_id: {
  26583. required: true,
  26584. type: "integer"
  26585. }
  26586. },
  26587. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  26588. },
  26589. getDiscussionCommentInOrg: {
  26590. method: "GET",
  26591. params: {
  26592. comment_number: {
  26593. required: true,
  26594. type: "integer"
  26595. },
  26596. discussion_number: {
  26597. required: true,
  26598. type: "integer"
  26599. },
  26600. org: {
  26601. required: true,
  26602. type: "string"
  26603. },
  26604. team_slug: {
  26605. required: true,
  26606. type: "string"
  26607. }
  26608. },
  26609. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  26610. },
  26611. getDiscussionCommentLegacy: {
  26612. deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
  26613. method: "GET",
  26614. params: {
  26615. comment_number: {
  26616. required: true,
  26617. type: "integer"
  26618. },
  26619. discussion_number: {
  26620. required: true,
  26621. type: "integer"
  26622. },
  26623. team_id: {
  26624. required: true,
  26625. type: "integer"
  26626. }
  26627. },
  26628. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  26629. },
  26630. getDiscussionInOrg: {
  26631. method: "GET",
  26632. params: {
  26633. discussion_number: {
  26634. required: true,
  26635. type: "integer"
  26636. },
  26637. org: {
  26638. required: true,
  26639. type: "string"
  26640. },
  26641. team_slug: {
  26642. required: true,
  26643. type: "string"
  26644. }
  26645. },
  26646. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  26647. },
  26648. getDiscussionLegacy: {
  26649. deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
  26650. method: "GET",
  26651. params: {
  26652. discussion_number: {
  26653. required: true,
  26654. type: "integer"
  26655. },
  26656. team_id: {
  26657. required: true,
  26658. type: "integer"
  26659. }
  26660. },
  26661. url: "/teams/:team_id/discussions/:discussion_number"
  26662. },
  26663. getLegacy: {
  26664. deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
  26665. method: "GET",
  26666. params: {
  26667. team_id: {
  26668. required: true,
  26669. type: "integer"
  26670. }
  26671. },
  26672. url: "/teams/:team_id"
  26673. },
  26674. getMember: {
  26675. deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
  26676. method: "GET",
  26677. params: {
  26678. team_id: {
  26679. required: true,
  26680. type: "integer"
  26681. },
  26682. username: {
  26683. required: true,
  26684. type: "string"
  26685. }
  26686. },
  26687. url: "/teams/:team_id/members/:username"
  26688. },
  26689. getMemberLegacy: {
  26690. deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
  26691. method: "GET",
  26692. params: {
  26693. team_id: {
  26694. required: true,
  26695. type: "integer"
  26696. },
  26697. username: {
  26698. required: true,
  26699. type: "string"
  26700. }
  26701. },
  26702. url: "/teams/:team_id/members/:username"
  26703. },
  26704. getMembership: {
  26705. deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
  26706. method: "GET",
  26707. params: {
  26708. team_id: {
  26709. required: true,
  26710. type: "integer"
  26711. },
  26712. username: {
  26713. required: true,
  26714. type: "string"
  26715. }
  26716. },
  26717. url: "/teams/:team_id/memberships/:username"
  26718. },
  26719. getMembershipInOrg: {
  26720. method: "GET",
  26721. params: {
  26722. org: {
  26723. required: true,
  26724. type: "string"
  26725. },
  26726. team_slug: {
  26727. required: true,
  26728. type: "string"
  26729. },
  26730. username: {
  26731. required: true,
  26732. type: "string"
  26733. }
  26734. },
  26735. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  26736. },
  26737. getMembershipLegacy: {
  26738. deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
  26739. method: "GET",
  26740. params: {
  26741. team_id: {
  26742. required: true,
  26743. type: "integer"
  26744. },
  26745. username: {
  26746. required: true,
  26747. type: "string"
  26748. }
  26749. },
  26750. url: "/teams/:team_id/memberships/:username"
  26751. },
  26752. list: {
  26753. method: "GET",
  26754. params: {
  26755. org: {
  26756. required: true,
  26757. type: "string"
  26758. },
  26759. page: {
  26760. type: "integer"
  26761. },
  26762. per_page: {
  26763. type: "integer"
  26764. }
  26765. },
  26766. url: "/orgs/:org/teams"
  26767. },
  26768. listChild: {
  26769. deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
  26770. method: "GET",
  26771. params: {
  26772. page: {
  26773. type: "integer"
  26774. },
  26775. per_page: {
  26776. type: "integer"
  26777. },
  26778. team_id: {
  26779. required: true,
  26780. type: "integer"
  26781. }
  26782. },
  26783. url: "/teams/:team_id/teams"
  26784. },
  26785. listChildInOrg: {
  26786. method: "GET",
  26787. params: {
  26788. org: {
  26789. required: true,
  26790. type: "string"
  26791. },
  26792. page: {
  26793. type: "integer"
  26794. },
  26795. per_page: {
  26796. type: "integer"
  26797. },
  26798. team_slug: {
  26799. required: true,
  26800. type: "string"
  26801. }
  26802. },
  26803. url: "/orgs/:org/teams/:team_slug/teams"
  26804. },
  26805. listChildLegacy: {
  26806. deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
  26807. method: "GET",
  26808. params: {
  26809. page: {
  26810. type: "integer"
  26811. },
  26812. per_page: {
  26813. type: "integer"
  26814. },
  26815. team_id: {
  26816. required: true,
  26817. type: "integer"
  26818. }
  26819. },
  26820. url: "/teams/:team_id/teams"
  26821. },
  26822. listDiscussionComments: {
  26823. deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
  26824. method: "GET",
  26825. params: {
  26826. direction: {
  26827. enum: ["asc", "desc"],
  26828. type: "string"
  26829. },
  26830. discussion_number: {
  26831. required: true,
  26832. type: "integer"
  26833. },
  26834. page: {
  26835. type: "integer"
  26836. },
  26837. per_page: {
  26838. type: "integer"
  26839. },
  26840. team_id: {
  26841. required: true,
  26842. type: "integer"
  26843. }
  26844. },
  26845. url: "/teams/:team_id/discussions/:discussion_number/comments"
  26846. },
  26847. listDiscussionCommentsInOrg: {
  26848. method: "GET",
  26849. params: {
  26850. direction: {
  26851. enum: ["asc", "desc"],
  26852. type: "string"
  26853. },
  26854. discussion_number: {
  26855. required: true,
  26856. type: "integer"
  26857. },
  26858. org: {
  26859. required: true,
  26860. type: "string"
  26861. },
  26862. page: {
  26863. type: "integer"
  26864. },
  26865. per_page: {
  26866. type: "integer"
  26867. },
  26868. team_slug: {
  26869. required: true,
  26870. type: "string"
  26871. }
  26872. },
  26873. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  26874. },
  26875. listDiscussionCommentsLegacy: {
  26876. deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
  26877. method: "GET",
  26878. params: {
  26879. direction: {
  26880. enum: ["asc", "desc"],
  26881. type: "string"
  26882. },
  26883. discussion_number: {
  26884. required: true,
  26885. type: "integer"
  26886. },
  26887. page: {
  26888. type: "integer"
  26889. },
  26890. per_page: {
  26891. type: "integer"
  26892. },
  26893. team_id: {
  26894. required: true,
  26895. type: "integer"
  26896. }
  26897. },
  26898. url: "/teams/:team_id/discussions/:discussion_number/comments"
  26899. },
  26900. listDiscussions: {
  26901. deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
  26902. method: "GET",
  26903. params: {
  26904. direction: {
  26905. enum: ["asc", "desc"],
  26906. type: "string"
  26907. },
  26908. page: {
  26909. type: "integer"
  26910. },
  26911. per_page: {
  26912. type: "integer"
  26913. },
  26914. team_id: {
  26915. required: true,
  26916. type: "integer"
  26917. }
  26918. },
  26919. url: "/teams/:team_id/discussions"
  26920. },
  26921. listDiscussionsInOrg: {
  26922. method: "GET",
  26923. params: {
  26924. direction: {
  26925. enum: ["asc", "desc"],
  26926. type: "string"
  26927. },
  26928. org: {
  26929. required: true,
  26930. type: "string"
  26931. },
  26932. page: {
  26933. type: "integer"
  26934. },
  26935. per_page: {
  26936. type: "integer"
  26937. },
  26938. team_slug: {
  26939. required: true,
  26940. type: "string"
  26941. }
  26942. },
  26943. url: "/orgs/:org/teams/:team_slug/discussions"
  26944. },
  26945. listDiscussionsLegacy: {
  26946. deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
  26947. method: "GET",
  26948. params: {
  26949. direction: {
  26950. enum: ["asc", "desc"],
  26951. type: "string"
  26952. },
  26953. page: {
  26954. type: "integer"
  26955. },
  26956. per_page: {
  26957. type: "integer"
  26958. },
  26959. team_id: {
  26960. required: true,
  26961. type: "integer"
  26962. }
  26963. },
  26964. url: "/teams/:team_id/discussions"
  26965. },
  26966. listForAuthenticatedUser: {
  26967. method: "GET",
  26968. params: {
  26969. page: {
  26970. type: "integer"
  26971. },
  26972. per_page: {
  26973. type: "integer"
  26974. }
  26975. },
  26976. url: "/user/teams"
  26977. },
  26978. listMembers: {
  26979. deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
  26980. method: "GET",
  26981. params: {
  26982. page: {
  26983. type: "integer"
  26984. },
  26985. per_page: {
  26986. type: "integer"
  26987. },
  26988. role: {
  26989. enum: ["member", "maintainer", "all"],
  26990. type: "string"
  26991. },
  26992. team_id: {
  26993. required: true,
  26994. type: "integer"
  26995. }
  26996. },
  26997. url: "/teams/:team_id/members"
  26998. },
  26999. listMembersInOrg: {
  27000. method: "GET",
  27001. params: {
  27002. org: {
  27003. required: true,
  27004. type: "string"
  27005. },
  27006. page: {
  27007. type: "integer"
  27008. },
  27009. per_page: {
  27010. type: "integer"
  27011. },
  27012. role: {
  27013. enum: ["member", "maintainer", "all"],
  27014. type: "string"
  27015. },
  27016. team_slug: {
  27017. required: true,
  27018. type: "string"
  27019. }
  27020. },
  27021. url: "/orgs/:org/teams/:team_slug/members"
  27022. },
  27023. listMembersLegacy: {
  27024. deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
  27025. method: "GET",
  27026. params: {
  27027. page: {
  27028. type: "integer"
  27029. },
  27030. per_page: {
  27031. type: "integer"
  27032. },
  27033. role: {
  27034. enum: ["member", "maintainer", "all"],
  27035. type: "string"
  27036. },
  27037. team_id: {
  27038. required: true,
  27039. type: "integer"
  27040. }
  27041. },
  27042. url: "/teams/:team_id/members"
  27043. },
  27044. listPendingInvitations: {
  27045. deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
  27046. method: "GET",
  27047. params: {
  27048. page: {
  27049. type: "integer"
  27050. },
  27051. per_page: {
  27052. type: "integer"
  27053. },
  27054. team_id: {
  27055. required: true,
  27056. type: "integer"
  27057. }
  27058. },
  27059. url: "/teams/:team_id/invitations"
  27060. },
  27061. listPendingInvitationsInOrg: {
  27062. method: "GET",
  27063. params: {
  27064. org: {
  27065. required: true,
  27066. type: "string"
  27067. },
  27068. page: {
  27069. type: "integer"
  27070. },
  27071. per_page: {
  27072. type: "integer"
  27073. },
  27074. team_slug: {
  27075. required: true,
  27076. type: "string"
  27077. }
  27078. },
  27079. url: "/orgs/:org/teams/:team_slug/invitations"
  27080. },
  27081. listPendingInvitationsLegacy: {
  27082. deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
  27083. method: "GET",
  27084. params: {
  27085. page: {
  27086. type: "integer"
  27087. },
  27088. per_page: {
  27089. type: "integer"
  27090. },
  27091. team_id: {
  27092. required: true,
  27093. type: "integer"
  27094. }
  27095. },
  27096. url: "/teams/:team_id/invitations"
  27097. },
  27098. listProjects: {
  27099. deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
  27100. headers: {
  27101. accept: "application/vnd.github.inertia-preview+json"
  27102. },
  27103. method: "GET",
  27104. params: {
  27105. page: {
  27106. type: "integer"
  27107. },
  27108. per_page: {
  27109. type: "integer"
  27110. },
  27111. team_id: {
  27112. required: true,
  27113. type: "integer"
  27114. }
  27115. },
  27116. url: "/teams/:team_id/projects"
  27117. },
  27118. listProjectsInOrg: {
  27119. headers: {
  27120. accept: "application/vnd.github.inertia-preview+json"
  27121. },
  27122. method: "GET",
  27123. params: {
  27124. org: {
  27125. required: true,
  27126. type: "string"
  27127. },
  27128. page: {
  27129. type: "integer"
  27130. },
  27131. per_page: {
  27132. type: "integer"
  27133. },
  27134. team_slug: {
  27135. required: true,
  27136. type: "string"
  27137. }
  27138. },
  27139. url: "/orgs/:org/teams/:team_slug/projects"
  27140. },
  27141. listProjectsLegacy: {
  27142. deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
  27143. headers: {
  27144. accept: "application/vnd.github.inertia-preview+json"
  27145. },
  27146. method: "GET",
  27147. params: {
  27148. page: {
  27149. type: "integer"
  27150. },
  27151. per_page: {
  27152. type: "integer"
  27153. },
  27154. team_id: {
  27155. required: true,
  27156. type: "integer"
  27157. }
  27158. },
  27159. url: "/teams/:team_id/projects"
  27160. },
  27161. listRepos: {
  27162. deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
  27163. method: "GET",
  27164. params: {
  27165. page: {
  27166. type: "integer"
  27167. },
  27168. per_page: {
  27169. type: "integer"
  27170. },
  27171. team_id: {
  27172. required: true,
  27173. type: "integer"
  27174. }
  27175. },
  27176. url: "/teams/:team_id/repos"
  27177. },
  27178. listReposInOrg: {
  27179. method: "GET",
  27180. params: {
  27181. org: {
  27182. required: true,
  27183. type: "string"
  27184. },
  27185. page: {
  27186. type: "integer"
  27187. },
  27188. per_page: {
  27189. type: "integer"
  27190. },
  27191. team_slug: {
  27192. required: true,
  27193. type: "string"
  27194. }
  27195. },
  27196. url: "/orgs/:org/teams/:team_slug/repos"
  27197. },
  27198. listReposLegacy: {
  27199. deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
  27200. method: "GET",
  27201. params: {
  27202. page: {
  27203. type: "integer"
  27204. },
  27205. per_page: {
  27206. type: "integer"
  27207. },
  27208. team_id: {
  27209. required: true,
  27210. type: "integer"
  27211. }
  27212. },
  27213. url: "/teams/:team_id/repos"
  27214. },
  27215. removeMember: {
  27216. deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
  27217. method: "DELETE",
  27218. params: {
  27219. team_id: {
  27220. required: true,
  27221. type: "integer"
  27222. },
  27223. username: {
  27224. required: true,
  27225. type: "string"
  27226. }
  27227. },
  27228. url: "/teams/:team_id/members/:username"
  27229. },
  27230. removeMemberLegacy: {
  27231. deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
  27232. method: "DELETE",
  27233. params: {
  27234. team_id: {
  27235. required: true,
  27236. type: "integer"
  27237. },
  27238. username: {
  27239. required: true,
  27240. type: "string"
  27241. }
  27242. },
  27243. url: "/teams/:team_id/members/:username"
  27244. },
  27245. removeMembership: {
  27246. deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
  27247. method: "DELETE",
  27248. params: {
  27249. team_id: {
  27250. required: true,
  27251. type: "integer"
  27252. },
  27253. username: {
  27254. required: true,
  27255. type: "string"
  27256. }
  27257. },
  27258. url: "/teams/:team_id/memberships/:username"
  27259. },
  27260. removeMembershipInOrg: {
  27261. method: "DELETE",
  27262. params: {
  27263. org: {
  27264. required: true,
  27265. type: "string"
  27266. },
  27267. team_slug: {
  27268. required: true,
  27269. type: "string"
  27270. },
  27271. username: {
  27272. required: true,
  27273. type: "string"
  27274. }
  27275. },
  27276. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  27277. },
  27278. removeMembershipLegacy: {
  27279. deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
  27280. method: "DELETE",
  27281. params: {
  27282. team_id: {
  27283. required: true,
  27284. type: "integer"
  27285. },
  27286. username: {
  27287. required: true,
  27288. type: "string"
  27289. }
  27290. },
  27291. url: "/teams/:team_id/memberships/:username"
  27292. },
  27293. removeProject: {
  27294. deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
  27295. method: "DELETE",
  27296. params: {
  27297. project_id: {
  27298. required: true,
  27299. type: "integer"
  27300. },
  27301. team_id: {
  27302. required: true,
  27303. type: "integer"
  27304. }
  27305. },
  27306. url: "/teams/:team_id/projects/:project_id"
  27307. },
  27308. removeProjectInOrg: {
  27309. method: "DELETE",
  27310. params: {
  27311. org: {
  27312. required: true,
  27313. type: "string"
  27314. },
  27315. project_id: {
  27316. required: true,
  27317. type: "integer"
  27318. },
  27319. team_slug: {
  27320. required: true,
  27321. type: "string"
  27322. }
  27323. },
  27324. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  27325. },
  27326. removeProjectLegacy: {
  27327. deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
  27328. method: "DELETE",
  27329. params: {
  27330. project_id: {
  27331. required: true,
  27332. type: "integer"
  27333. },
  27334. team_id: {
  27335. required: true,
  27336. type: "integer"
  27337. }
  27338. },
  27339. url: "/teams/:team_id/projects/:project_id"
  27340. },
  27341. removeRepo: {
  27342. deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
  27343. method: "DELETE",
  27344. params: {
  27345. owner: {
  27346. required: true,
  27347. type: "string"
  27348. },
  27349. repo: {
  27350. required: true,
  27351. type: "string"
  27352. },
  27353. team_id: {
  27354. required: true,
  27355. type: "integer"
  27356. }
  27357. },
  27358. url: "/teams/:team_id/repos/:owner/:repo"
  27359. },
  27360. removeRepoInOrg: {
  27361. method: "DELETE",
  27362. params: {
  27363. org: {
  27364. required: true,
  27365. type: "string"
  27366. },
  27367. owner: {
  27368. required: true,
  27369. type: "string"
  27370. },
  27371. repo: {
  27372. required: true,
  27373. type: "string"
  27374. },
  27375. team_slug: {
  27376. required: true,
  27377. type: "string"
  27378. }
  27379. },
  27380. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  27381. },
  27382. removeRepoLegacy: {
  27383. deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
  27384. method: "DELETE",
  27385. params: {
  27386. owner: {
  27387. required: true,
  27388. type: "string"
  27389. },
  27390. repo: {
  27391. required: true,
  27392. type: "string"
  27393. },
  27394. team_id: {
  27395. required: true,
  27396. type: "integer"
  27397. }
  27398. },
  27399. url: "/teams/:team_id/repos/:owner/:repo"
  27400. },
  27401. reviewProject: {
  27402. deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
  27403. headers: {
  27404. accept: "application/vnd.github.inertia-preview+json"
  27405. },
  27406. method: "GET",
  27407. params: {
  27408. project_id: {
  27409. required: true,
  27410. type: "integer"
  27411. },
  27412. team_id: {
  27413. required: true,
  27414. type: "integer"
  27415. }
  27416. },
  27417. url: "/teams/:team_id/projects/:project_id"
  27418. },
  27419. reviewProjectInOrg: {
  27420. headers: {
  27421. accept: "application/vnd.github.inertia-preview+json"
  27422. },
  27423. method: "GET",
  27424. params: {
  27425. org: {
  27426. required: true,
  27427. type: "string"
  27428. },
  27429. project_id: {
  27430. required: true,
  27431. type: "integer"
  27432. },
  27433. team_slug: {
  27434. required: true,
  27435. type: "string"
  27436. }
  27437. },
  27438. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  27439. },
  27440. reviewProjectLegacy: {
  27441. deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
  27442. headers: {
  27443. accept: "application/vnd.github.inertia-preview+json"
  27444. },
  27445. method: "GET",
  27446. params: {
  27447. project_id: {
  27448. required: true,
  27449. type: "integer"
  27450. },
  27451. team_id: {
  27452. required: true,
  27453. type: "integer"
  27454. }
  27455. },
  27456. url: "/teams/:team_id/projects/:project_id"
  27457. },
  27458. update: {
  27459. deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
  27460. method: "PATCH",
  27461. params: {
  27462. description: {
  27463. type: "string"
  27464. },
  27465. name: {
  27466. required: true,
  27467. type: "string"
  27468. },
  27469. parent_team_id: {
  27470. type: "integer"
  27471. },
  27472. permission: {
  27473. enum: ["pull", "push", "admin"],
  27474. type: "string"
  27475. },
  27476. privacy: {
  27477. enum: ["secret", "closed"],
  27478. type: "string"
  27479. },
  27480. team_id: {
  27481. required: true,
  27482. type: "integer"
  27483. }
  27484. },
  27485. url: "/teams/:team_id"
  27486. },
  27487. updateDiscussion: {
  27488. deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
  27489. method: "PATCH",
  27490. params: {
  27491. body: {
  27492. type: "string"
  27493. },
  27494. discussion_number: {
  27495. required: true,
  27496. type: "integer"
  27497. },
  27498. team_id: {
  27499. required: true,
  27500. type: "integer"
  27501. },
  27502. title: {
  27503. type: "string"
  27504. }
  27505. },
  27506. url: "/teams/:team_id/discussions/:discussion_number"
  27507. },
  27508. updateDiscussionComment: {
  27509. deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
  27510. method: "PATCH",
  27511. params: {
  27512. body: {
  27513. required: true,
  27514. type: "string"
  27515. },
  27516. comment_number: {
  27517. required: true,
  27518. type: "integer"
  27519. },
  27520. discussion_number: {
  27521. required: true,
  27522. type: "integer"
  27523. },
  27524. team_id: {
  27525. required: true,
  27526. type: "integer"
  27527. }
  27528. },
  27529. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27530. },
  27531. updateDiscussionCommentInOrg: {
  27532. method: "PATCH",
  27533. params: {
  27534. body: {
  27535. required: true,
  27536. type: "string"
  27537. },
  27538. comment_number: {
  27539. required: true,
  27540. type: "integer"
  27541. },
  27542. discussion_number: {
  27543. required: true,
  27544. type: "integer"
  27545. },
  27546. org: {
  27547. required: true,
  27548. type: "string"
  27549. },
  27550. team_slug: {
  27551. required: true,
  27552. type: "string"
  27553. }
  27554. },
  27555. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  27556. },
  27557. updateDiscussionCommentLegacy: {
  27558. deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
  27559. method: "PATCH",
  27560. params: {
  27561. body: {
  27562. required: true,
  27563. type: "string"
  27564. },
  27565. comment_number: {
  27566. required: true,
  27567. type: "integer"
  27568. },
  27569. discussion_number: {
  27570. required: true,
  27571. type: "integer"
  27572. },
  27573. team_id: {
  27574. required: true,
  27575. type: "integer"
  27576. }
  27577. },
  27578. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27579. },
  27580. updateDiscussionInOrg: {
  27581. method: "PATCH",
  27582. params: {
  27583. body: {
  27584. type: "string"
  27585. },
  27586. discussion_number: {
  27587. required: true,
  27588. type: "integer"
  27589. },
  27590. org: {
  27591. required: true,
  27592. type: "string"
  27593. },
  27594. team_slug: {
  27595. required: true,
  27596. type: "string"
  27597. },
  27598. title: {
  27599. type: "string"
  27600. }
  27601. },
  27602. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  27603. },
  27604. updateDiscussionLegacy: {
  27605. deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
  27606. method: "PATCH",
  27607. params: {
  27608. body: {
  27609. type: "string"
  27610. },
  27611. discussion_number: {
  27612. required: true,
  27613. type: "integer"
  27614. },
  27615. team_id: {
  27616. required: true,
  27617. type: "integer"
  27618. },
  27619. title: {
  27620. type: "string"
  27621. }
  27622. },
  27623. url: "/teams/:team_id/discussions/:discussion_number"
  27624. },
  27625. updateInOrg: {
  27626. method: "PATCH",
  27627. params: {
  27628. description: {
  27629. type: "string"
  27630. },
  27631. name: {
  27632. required: true,
  27633. type: "string"
  27634. },
  27635. org: {
  27636. required: true,
  27637. type: "string"
  27638. },
  27639. parent_team_id: {
  27640. type: "integer"
  27641. },
  27642. permission: {
  27643. enum: ["pull", "push", "admin"],
  27644. type: "string"
  27645. },
  27646. privacy: {
  27647. enum: ["secret", "closed"],
  27648. type: "string"
  27649. },
  27650. team_slug: {
  27651. required: true,
  27652. type: "string"
  27653. }
  27654. },
  27655. url: "/orgs/:org/teams/:team_slug"
  27656. },
  27657. updateLegacy: {
  27658. deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
  27659. method: "PATCH",
  27660. params: {
  27661. description: {
  27662. type: "string"
  27663. },
  27664. name: {
  27665. required: true,
  27666. type: "string"
  27667. },
  27668. parent_team_id: {
  27669. type: "integer"
  27670. },
  27671. permission: {
  27672. enum: ["pull", "push", "admin"],
  27673. type: "string"
  27674. },
  27675. privacy: {
  27676. enum: ["secret", "closed"],
  27677. type: "string"
  27678. },
  27679. team_id: {
  27680. required: true,
  27681. type: "integer"
  27682. }
  27683. },
  27684. url: "/teams/:team_id"
  27685. }
  27686. },
  27687. users: {
  27688. addEmails: {
  27689. method: "POST",
  27690. params: {
  27691. emails: {
  27692. required: true,
  27693. type: "string[]"
  27694. }
  27695. },
  27696. url: "/user/emails"
  27697. },
  27698. block: {
  27699. method: "PUT",
  27700. params: {
  27701. username: {
  27702. required: true,
  27703. type: "string"
  27704. }
  27705. },
  27706. url: "/user/blocks/:username"
  27707. },
  27708. checkBlocked: {
  27709. method: "GET",
  27710. params: {
  27711. username: {
  27712. required: true,
  27713. type: "string"
  27714. }
  27715. },
  27716. url: "/user/blocks/:username"
  27717. },
  27718. checkFollowing: {
  27719. method: "GET",
  27720. params: {
  27721. username: {
  27722. required: true,
  27723. type: "string"
  27724. }
  27725. },
  27726. url: "/user/following/:username"
  27727. },
  27728. checkFollowingForUser: {
  27729. method: "GET",
  27730. params: {
  27731. target_user: {
  27732. required: true,
  27733. type: "string"
  27734. },
  27735. username: {
  27736. required: true,
  27737. type: "string"
  27738. }
  27739. },
  27740. url: "/users/:username/following/:target_user"
  27741. },
  27742. createGpgKey: {
  27743. method: "POST",
  27744. params: {
  27745. armored_public_key: {
  27746. type: "string"
  27747. }
  27748. },
  27749. url: "/user/gpg_keys"
  27750. },
  27751. createPublicKey: {
  27752. method: "POST",
  27753. params: {
  27754. key: {
  27755. type: "string"
  27756. },
  27757. title: {
  27758. type: "string"
  27759. }
  27760. },
  27761. url: "/user/keys"
  27762. },
  27763. deleteEmails: {
  27764. method: "DELETE",
  27765. params: {
  27766. emails: {
  27767. required: true,
  27768. type: "string[]"
  27769. }
  27770. },
  27771. url: "/user/emails"
  27772. },
  27773. deleteGpgKey: {
  27774. method: "DELETE",
  27775. params: {
  27776. gpg_key_id: {
  27777. required: true,
  27778. type: "integer"
  27779. }
  27780. },
  27781. url: "/user/gpg_keys/:gpg_key_id"
  27782. },
  27783. deletePublicKey: {
  27784. method: "DELETE",
  27785. params: {
  27786. key_id: {
  27787. required: true,
  27788. type: "integer"
  27789. }
  27790. },
  27791. url: "/user/keys/:key_id"
  27792. },
  27793. follow: {
  27794. method: "PUT",
  27795. params: {
  27796. username: {
  27797. required: true,
  27798. type: "string"
  27799. }
  27800. },
  27801. url: "/user/following/:username"
  27802. },
  27803. getAuthenticated: {
  27804. method: "GET",
  27805. params: {},
  27806. url: "/user"
  27807. },
  27808. getByUsername: {
  27809. method: "GET",
  27810. params: {
  27811. username: {
  27812. required: true,
  27813. type: "string"
  27814. }
  27815. },
  27816. url: "/users/:username"
  27817. },
  27818. getContextForUser: {
  27819. method: "GET",
  27820. params: {
  27821. subject_id: {
  27822. type: "string"
  27823. },
  27824. subject_type: {
  27825. enum: ["organization", "repository", "issue", "pull_request"],
  27826. type: "string"
  27827. },
  27828. username: {
  27829. required: true,
  27830. type: "string"
  27831. }
  27832. },
  27833. url: "/users/:username/hovercard"
  27834. },
  27835. getGpgKey: {
  27836. method: "GET",
  27837. params: {
  27838. gpg_key_id: {
  27839. required: true,
  27840. type: "integer"
  27841. }
  27842. },
  27843. url: "/user/gpg_keys/:gpg_key_id"
  27844. },
  27845. getPublicKey: {
  27846. method: "GET",
  27847. params: {
  27848. key_id: {
  27849. required: true,
  27850. type: "integer"
  27851. }
  27852. },
  27853. url: "/user/keys/:key_id"
  27854. },
  27855. list: {
  27856. method: "GET",
  27857. params: {
  27858. page: {
  27859. type: "integer"
  27860. },
  27861. per_page: {
  27862. type: "integer"
  27863. },
  27864. since: {
  27865. type: "string"
  27866. }
  27867. },
  27868. url: "/users"
  27869. },
  27870. listBlocked: {
  27871. method: "GET",
  27872. params: {},
  27873. url: "/user/blocks"
  27874. },
  27875. listEmails: {
  27876. method: "GET",
  27877. params: {
  27878. page: {
  27879. type: "integer"
  27880. },
  27881. per_page: {
  27882. type: "integer"
  27883. }
  27884. },
  27885. url: "/user/emails"
  27886. },
  27887. listFollowersForAuthenticatedUser: {
  27888. method: "GET",
  27889. params: {
  27890. page: {
  27891. type: "integer"
  27892. },
  27893. per_page: {
  27894. type: "integer"
  27895. }
  27896. },
  27897. url: "/user/followers"
  27898. },
  27899. listFollowersForUser: {
  27900. method: "GET",
  27901. params: {
  27902. page: {
  27903. type: "integer"
  27904. },
  27905. per_page: {
  27906. type: "integer"
  27907. },
  27908. username: {
  27909. required: true,
  27910. type: "string"
  27911. }
  27912. },
  27913. url: "/users/:username/followers"
  27914. },
  27915. listFollowingForAuthenticatedUser: {
  27916. method: "GET",
  27917. params: {
  27918. page: {
  27919. type: "integer"
  27920. },
  27921. per_page: {
  27922. type: "integer"
  27923. }
  27924. },
  27925. url: "/user/following"
  27926. },
  27927. listFollowingForUser: {
  27928. method: "GET",
  27929. params: {
  27930. page: {
  27931. type: "integer"
  27932. },
  27933. per_page: {
  27934. type: "integer"
  27935. },
  27936. username: {
  27937. required: true,
  27938. type: "string"
  27939. }
  27940. },
  27941. url: "/users/:username/following"
  27942. },
  27943. listGpgKeys: {
  27944. method: "GET",
  27945. params: {
  27946. page: {
  27947. type: "integer"
  27948. },
  27949. per_page: {
  27950. type: "integer"
  27951. }
  27952. },
  27953. url: "/user/gpg_keys"
  27954. },
  27955. listGpgKeysForUser: {
  27956. method: "GET",
  27957. params: {
  27958. page: {
  27959. type: "integer"
  27960. },
  27961. per_page: {
  27962. type: "integer"
  27963. },
  27964. username: {
  27965. required: true,
  27966. type: "string"
  27967. }
  27968. },
  27969. url: "/users/:username/gpg_keys"
  27970. },
  27971. listPublicEmails: {
  27972. method: "GET",
  27973. params: {
  27974. page: {
  27975. type: "integer"
  27976. },
  27977. per_page: {
  27978. type: "integer"
  27979. }
  27980. },
  27981. url: "/user/public_emails"
  27982. },
  27983. listPublicKeys: {
  27984. method: "GET",
  27985. params: {
  27986. page: {
  27987. type: "integer"
  27988. },
  27989. per_page: {
  27990. type: "integer"
  27991. }
  27992. },
  27993. url: "/user/keys"
  27994. },
  27995. listPublicKeysForUser: {
  27996. method: "GET",
  27997. params: {
  27998. page: {
  27999. type: "integer"
  28000. },
  28001. per_page: {
  28002. type: "integer"
  28003. },
  28004. username: {
  28005. required: true,
  28006. type: "string"
  28007. }
  28008. },
  28009. url: "/users/:username/keys"
  28010. },
  28011. togglePrimaryEmailVisibility: {
  28012. method: "PATCH",
  28013. params: {
  28014. email: {
  28015. required: true,
  28016. type: "string"
  28017. },
  28018. visibility: {
  28019. required: true,
  28020. type: "string"
  28021. }
  28022. },
  28023. url: "/user/email/visibility"
  28024. },
  28025. unblock: {
  28026. method: "DELETE",
  28027. params: {
  28028. username: {
  28029. required: true,
  28030. type: "string"
  28031. }
  28032. },
  28033. url: "/user/blocks/:username"
  28034. },
  28035. unfollow: {
  28036. method: "DELETE",
  28037. params: {
  28038. username: {
  28039. required: true,
  28040. type: "string"
  28041. }
  28042. },
  28043. url: "/user/following/:username"
  28044. },
  28045. updateAuthenticated: {
  28046. method: "PATCH",
  28047. params: {
  28048. bio: {
  28049. type: "string"
  28050. },
  28051. blog: {
  28052. type: "string"
  28053. },
  28054. company: {
  28055. type: "string"
  28056. },
  28057. email: {
  28058. type: "string"
  28059. },
  28060. hireable: {
  28061. type: "boolean"
  28062. },
  28063. location: {
  28064. type: "string"
  28065. },
  28066. name: {
  28067. type: "string"
  28068. }
  28069. },
  28070. url: "/user"
  28071. }
  28072. }
  28073. };
  28074. const VERSION = "2.4.0";
  28075. function registerEndpoints(octokit, routes) {
  28076. Object.keys(routes).forEach(namespaceName => {
  28077. if (!octokit[namespaceName]) {
  28078. octokit[namespaceName] = {};
  28079. }
  28080. Object.keys(routes[namespaceName]).forEach(apiName => {
  28081. const apiOptions = routes[namespaceName][apiName];
  28082. const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
  28083. if (typeof apiOptions[key] !== "undefined") {
  28084. map[key] = apiOptions[key];
  28085. }
  28086. return map;
  28087. }, {});
  28088. endpointDefaults.request = {
  28089. validate: apiOptions.params
  28090. };
  28091. let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
  28092. // Not the most elegant solution, but we don’t want to move deprecation
  28093. // logic into octokit/endpoint.js as it’s out of scope
  28094. const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
  28095. if (hasDeprecatedParam) {
  28096. const patch = patchForDeprecation.bind(null, octokit, apiOptions);
  28097. request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
  28098. request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
  28099. request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
  28100. }
  28101. if (apiOptions.deprecated) {
  28102. octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
  28103. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
  28104. octokit[namespaceName][apiName] = request;
  28105. return request.apply(null, arguments);
  28106. }, request);
  28107. return;
  28108. }
  28109. octokit[namespaceName][apiName] = request;
  28110. });
  28111. });
  28112. }
  28113. function patchForDeprecation(octokit, apiOptions, method, methodName) {
  28114. const patchedMethod = options => {
  28115. options = Object.assign({}, options);
  28116. Object.keys(options).forEach(key => {
  28117. if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
  28118. const aliasKey = apiOptions.params[key].alias;
  28119. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
  28120. if (!(aliasKey in options)) {
  28121. options[aliasKey] = options[key];
  28122. }
  28123. delete options[key];
  28124. }
  28125. });
  28126. return method(options);
  28127. };
  28128. Object.keys(method).forEach(key => {
  28129. patchedMethod[key] = method[key];
  28130. });
  28131. return patchedMethod;
  28132. }
  28133. /**
  28134. * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
  28135. * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
  28136. * done, we will remove the registerEndpoints methods and return the methods
  28137. * directly as with the other plugins. At that point we will also remove the
  28138. * legacy workarounds and deprecations.
  28139. *
  28140. * See the plan at
  28141. * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
  28142. */
  28143. function restEndpointMethods(octokit) {
  28144. // @ts-ignore
  28145. octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
  28146. registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
  28147. // See https://github.com/octokit/rest.js/pull/1134
  28148. [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
  28149. Object.defineProperty(octokit, deprecatedScope, {
  28150. get() {
  28151. octokit.log.warn( // @ts-ignore
  28152. new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
  28153. return octokit[scope];
  28154. }
  28155. });
  28156. });
  28157. return {};
  28158. }
  28159. restEndpointMethods.VERSION = VERSION;
  28160. exports.restEndpointMethods = restEndpointMethods;
  28161. //# sourceMappingURL=index.js.map
  28162. /***/ }),
  28163. /***/ 850:
  28164. /***/ (function(module, __unusedexports, __webpack_require__) {
  28165. module.exports = paginationMethodsPlugin
  28166. function paginationMethodsPlugin (octokit) {
  28167. octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
  28168. octokit.getLastPage = __webpack_require__(30).bind(null, octokit)
  28169. octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
  28170. octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
  28171. octokit.hasFirstPage = __webpack_require__(536)
  28172. octokit.hasLastPage = __webpack_require__(336)
  28173. octokit.hasNextPage = __webpack_require__(929)
  28174. octokit.hasPreviousPage = __webpack_require__(558)
  28175. }
  28176. /***/ }),
  28177. /***/ 854:
  28178. /***/ (function(module) {
  28179. /**
  28180. * lodash (Custom Build) <https://lodash.com/>
  28181. * Build: `lodash modularize exports="npm" -o ./`
  28182. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  28183. * Released under MIT license <https://lodash.com/license>
  28184. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  28185. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  28186. */
  28187. /** Used as the `TypeError` message for "Functions" methods. */
  28188. var FUNC_ERROR_TEXT = 'Expected a function';
  28189. /** Used to stand-in for `undefined` hash values. */
  28190. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  28191. /** Used as references for various `Number` constants. */
  28192. var INFINITY = 1 / 0;
  28193. /** `Object#toString` result references. */
  28194. var funcTag = '[object Function]',
  28195. genTag = '[object GeneratorFunction]',
  28196. symbolTag = '[object Symbol]';
  28197. /** Used to match property names within property paths. */
  28198. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  28199. reIsPlainProp = /^\w*$/,
  28200. reLeadingDot = /^\./,
  28201. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  28202. /**
  28203. * Used to match `RegExp`
  28204. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  28205. */
  28206. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  28207. /** Used to match backslashes in property paths. */
  28208. var reEscapeChar = /\\(\\)?/g;
  28209. /** Used to detect host constructors (Safari). */
  28210. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  28211. /** Detect free variable `global` from Node.js. */
  28212. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  28213. /** Detect free variable `self`. */
  28214. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  28215. /** Used as a reference to the global object. */
  28216. var root = freeGlobal || freeSelf || Function('return this')();
  28217. /**
  28218. * Gets the value at `key` of `object`.
  28219. *
  28220. * @private
  28221. * @param {Object} [object] The object to query.
  28222. * @param {string} key The key of the property to get.
  28223. * @returns {*} Returns the property value.
  28224. */
  28225. function getValue(object, key) {
  28226. return object == null ? undefined : object[key];
  28227. }
  28228. /**
  28229. * Checks if `value` is a host object in IE < 9.
  28230. *
  28231. * @private
  28232. * @param {*} value The value to check.
  28233. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  28234. */
  28235. function isHostObject(value) {
  28236. // Many host objects are `Object` objects that can coerce to strings
  28237. // despite having improperly defined `toString` methods.
  28238. var result = false;
  28239. if (value != null && typeof value.toString != 'function') {
  28240. try {
  28241. result = !!(value + '');
  28242. } catch (e) {}
  28243. }
  28244. return result;
  28245. }
  28246. /** Used for built-in method references. */
  28247. var arrayProto = Array.prototype,
  28248. funcProto = Function.prototype,
  28249. objectProto = Object.prototype;
  28250. /** Used to detect overreaching core-js shims. */
  28251. var coreJsData = root['__core-js_shared__'];
  28252. /** Used to detect methods masquerading as native. */
  28253. var maskSrcKey = (function() {
  28254. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  28255. return uid ? ('Symbol(src)_1.' + uid) : '';
  28256. }());
  28257. /** Used to resolve the decompiled source of functions. */
  28258. var funcToString = funcProto.toString;
  28259. /** Used to check objects for own properties. */
  28260. var hasOwnProperty = objectProto.hasOwnProperty;
  28261. /**
  28262. * Used to resolve the
  28263. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  28264. * of values.
  28265. */
  28266. var objectToString = objectProto.toString;
  28267. /** Used to detect if a method is native. */
  28268. var reIsNative = RegExp('^' +
  28269. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  28270. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  28271. );
  28272. /** Built-in value references. */
  28273. var Symbol = root.Symbol,
  28274. splice = arrayProto.splice;
  28275. /* Built-in method references that are verified to be native. */
  28276. var Map = getNative(root, 'Map'),
  28277. nativeCreate = getNative(Object, 'create');
  28278. /** Used to convert symbols to primitives and strings. */
  28279. var symbolProto = Symbol ? Symbol.prototype : undefined,
  28280. symbolToString = symbolProto ? symbolProto.toString : undefined;
  28281. /**
  28282. * Creates a hash object.
  28283. *
  28284. * @private
  28285. * @constructor
  28286. * @param {Array} [entries] The key-value pairs to cache.
  28287. */
  28288. function Hash(entries) {
  28289. var index = -1,
  28290. length = entries ? entries.length : 0;
  28291. this.clear();
  28292. while (++index < length) {
  28293. var entry = entries[index];
  28294. this.set(entry[0], entry[1]);
  28295. }
  28296. }
  28297. /**
  28298. * Removes all key-value entries from the hash.
  28299. *
  28300. * @private
  28301. * @name clear
  28302. * @memberOf Hash
  28303. */
  28304. function hashClear() {
  28305. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  28306. }
  28307. /**
  28308. * Removes `key` and its value from the hash.
  28309. *
  28310. * @private
  28311. * @name delete
  28312. * @memberOf Hash
  28313. * @param {Object} hash The hash to modify.
  28314. * @param {string} key The key of the value to remove.
  28315. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  28316. */
  28317. function hashDelete(key) {
  28318. return this.has(key) && delete this.__data__[key];
  28319. }
  28320. /**
  28321. * Gets the hash value for `key`.
  28322. *
  28323. * @private
  28324. * @name get
  28325. * @memberOf Hash
  28326. * @param {string} key The key of the value to get.
  28327. * @returns {*} Returns the entry value.
  28328. */
  28329. function hashGet(key) {
  28330. var data = this.__data__;
  28331. if (nativeCreate) {
  28332. var result = data[key];
  28333. return result === HASH_UNDEFINED ? undefined : result;
  28334. }
  28335. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  28336. }
  28337. /**
  28338. * Checks if a hash value for `key` exists.
  28339. *
  28340. * @private
  28341. * @name has
  28342. * @memberOf Hash
  28343. * @param {string} key The key of the entry to check.
  28344. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  28345. */
  28346. function hashHas(key) {
  28347. var data = this.__data__;
  28348. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  28349. }
  28350. /**
  28351. * Sets the hash `key` to `value`.
  28352. *
  28353. * @private
  28354. * @name set
  28355. * @memberOf Hash
  28356. * @param {string} key The key of the value to set.
  28357. * @param {*} value The value to set.
  28358. * @returns {Object} Returns the hash instance.
  28359. */
  28360. function hashSet(key, value) {
  28361. var data = this.__data__;
  28362. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  28363. return this;
  28364. }
  28365. // Add methods to `Hash`.
  28366. Hash.prototype.clear = hashClear;
  28367. Hash.prototype['delete'] = hashDelete;
  28368. Hash.prototype.get = hashGet;
  28369. Hash.prototype.has = hashHas;
  28370. Hash.prototype.set = hashSet;
  28371. /**
  28372. * Creates an list cache object.
  28373. *
  28374. * @private
  28375. * @constructor
  28376. * @param {Array} [entries] The key-value pairs to cache.
  28377. */
  28378. function ListCache(entries) {
  28379. var index = -1,
  28380. length = entries ? entries.length : 0;
  28381. this.clear();
  28382. while (++index < length) {
  28383. var entry = entries[index];
  28384. this.set(entry[0], entry[1]);
  28385. }
  28386. }
  28387. /**
  28388. * Removes all key-value entries from the list cache.
  28389. *
  28390. * @private
  28391. * @name clear
  28392. * @memberOf ListCache
  28393. */
  28394. function listCacheClear() {
  28395. this.__data__ = [];
  28396. }
  28397. /**
  28398. * Removes `key` and its value from the list cache.
  28399. *
  28400. * @private
  28401. * @name delete
  28402. * @memberOf ListCache
  28403. * @param {string} key The key of the value to remove.
  28404. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  28405. */
  28406. function listCacheDelete(key) {
  28407. var data = this.__data__,
  28408. index = assocIndexOf(data, key);
  28409. if (index < 0) {
  28410. return false;
  28411. }
  28412. var lastIndex = data.length - 1;
  28413. if (index == lastIndex) {
  28414. data.pop();
  28415. } else {
  28416. splice.call(data, index, 1);
  28417. }
  28418. return true;
  28419. }
  28420. /**
  28421. * Gets the list cache value for `key`.
  28422. *
  28423. * @private
  28424. * @name get
  28425. * @memberOf ListCache
  28426. * @param {string} key The key of the value to get.
  28427. * @returns {*} Returns the entry value.
  28428. */
  28429. function listCacheGet(key) {
  28430. var data = this.__data__,
  28431. index = assocIndexOf(data, key);
  28432. return index < 0 ? undefined : data[index][1];
  28433. }
  28434. /**
  28435. * Checks if a list cache value for `key` exists.
  28436. *
  28437. * @private
  28438. * @name has
  28439. * @memberOf ListCache
  28440. * @param {string} key The key of the entry to check.
  28441. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  28442. */
  28443. function listCacheHas(key) {
  28444. return assocIndexOf(this.__data__, key) > -1;
  28445. }
  28446. /**
  28447. * Sets the list cache `key` to `value`.
  28448. *
  28449. * @private
  28450. * @name set
  28451. * @memberOf ListCache
  28452. * @param {string} key The key of the value to set.
  28453. * @param {*} value The value to set.
  28454. * @returns {Object} Returns the list cache instance.
  28455. */
  28456. function listCacheSet(key, value) {
  28457. var data = this.__data__,
  28458. index = assocIndexOf(data, key);
  28459. if (index < 0) {
  28460. data.push([key, value]);
  28461. } else {
  28462. data[index][1] = value;
  28463. }
  28464. return this;
  28465. }
  28466. // Add methods to `ListCache`.
  28467. ListCache.prototype.clear = listCacheClear;
  28468. ListCache.prototype['delete'] = listCacheDelete;
  28469. ListCache.prototype.get = listCacheGet;
  28470. ListCache.prototype.has = listCacheHas;
  28471. ListCache.prototype.set = listCacheSet;
  28472. /**
  28473. * Creates a map cache object to store key-value pairs.
  28474. *
  28475. * @private
  28476. * @constructor
  28477. * @param {Array} [entries] The key-value pairs to cache.
  28478. */
  28479. function MapCache(entries) {
  28480. var index = -1,
  28481. length = entries ? entries.length : 0;
  28482. this.clear();
  28483. while (++index < length) {
  28484. var entry = entries[index];
  28485. this.set(entry[0], entry[1]);
  28486. }
  28487. }
  28488. /**
  28489. * Removes all key-value entries from the map.
  28490. *
  28491. * @private
  28492. * @name clear
  28493. * @memberOf MapCache
  28494. */
  28495. function mapCacheClear() {
  28496. this.__data__ = {
  28497. 'hash': new Hash,
  28498. 'map': new (Map || ListCache),
  28499. 'string': new Hash
  28500. };
  28501. }
  28502. /**
  28503. * Removes `key` and its value from the map.
  28504. *
  28505. * @private
  28506. * @name delete
  28507. * @memberOf MapCache
  28508. * @param {string} key The key of the value to remove.
  28509. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  28510. */
  28511. function mapCacheDelete(key) {
  28512. return getMapData(this, key)['delete'](key);
  28513. }
  28514. /**
  28515. * Gets the map value for `key`.
  28516. *
  28517. * @private
  28518. * @name get
  28519. * @memberOf MapCache
  28520. * @param {string} key The key of the value to get.
  28521. * @returns {*} Returns the entry value.
  28522. */
  28523. function mapCacheGet(key) {
  28524. return getMapData(this, key).get(key);
  28525. }
  28526. /**
  28527. * Checks if a map value for `key` exists.
  28528. *
  28529. * @private
  28530. * @name has
  28531. * @memberOf MapCache
  28532. * @param {string} key The key of the entry to check.
  28533. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  28534. */
  28535. function mapCacheHas(key) {
  28536. return getMapData(this, key).has(key);
  28537. }
  28538. /**
  28539. * Sets the map `key` to `value`.
  28540. *
  28541. * @private
  28542. * @name set
  28543. * @memberOf MapCache
  28544. * @param {string} key The key of the value to set.
  28545. * @param {*} value The value to set.
  28546. * @returns {Object} Returns the map cache instance.
  28547. */
  28548. function mapCacheSet(key, value) {
  28549. getMapData(this, key).set(key, value);
  28550. return this;
  28551. }
  28552. // Add methods to `MapCache`.
  28553. MapCache.prototype.clear = mapCacheClear;
  28554. MapCache.prototype['delete'] = mapCacheDelete;
  28555. MapCache.prototype.get = mapCacheGet;
  28556. MapCache.prototype.has = mapCacheHas;
  28557. MapCache.prototype.set = mapCacheSet;
  28558. /**
  28559. * Gets the index at which the `key` is found in `array` of key-value pairs.
  28560. *
  28561. * @private
  28562. * @param {Array} array The array to inspect.
  28563. * @param {*} key The key to search for.
  28564. * @returns {number} Returns the index of the matched value, else `-1`.
  28565. */
  28566. function assocIndexOf(array, key) {
  28567. var length = array.length;
  28568. while (length--) {
  28569. if (eq(array[length][0], key)) {
  28570. return length;
  28571. }
  28572. }
  28573. return -1;
  28574. }
  28575. /**
  28576. * The base implementation of `_.get` without support for default values.
  28577. *
  28578. * @private
  28579. * @param {Object} object The object to query.
  28580. * @param {Array|string} path The path of the property to get.
  28581. * @returns {*} Returns the resolved value.
  28582. */
  28583. function baseGet(object, path) {
  28584. path = isKey(path, object) ? [path] : castPath(path);
  28585. var index = 0,
  28586. length = path.length;
  28587. while (object != null && index < length) {
  28588. object = object[toKey(path[index++])];
  28589. }
  28590. return (index && index == length) ? object : undefined;
  28591. }
  28592. /**
  28593. * The base implementation of `_.isNative` without bad shim checks.
  28594. *
  28595. * @private
  28596. * @param {*} value The value to check.
  28597. * @returns {boolean} Returns `true` if `value` is a native function,
  28598. * else `false`.
  28599. */
  28600. function baseIsNative(value) {
  28601. if (!isObject(value) || isMasked(value)) {
  28602. return false;
  28603. }
  28604. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  28605. return pattern.test(toSource(value));
  28606. }
  28607. /**
  28608. * The base implementation of `_.toString` which doesn't convert nullish
  28609. * values to empty strings.
  28610. *
  28611. * @private
  28612. * @param {*} value The value to process.
  28613. * @returns {string} Returns the string.
  28614. */
  28615. function baseToString(value) {
  28616. // Exit early for strings to avoid a performance hit in some environments.
  28617. if (typeof value == 'string') {
  28618. return value;
  28619. }
  28620. if (isSymbol(value)) {
  28621. return symbolToString ? symbolToString.call(value) : '';
  28622. }
  28623. var result = (value + '');
  28624. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  28625. }
  28626. /**
  28627. * Casts `value` to a path array if it's not one.
  28628. *
  28629. * @private
  28630. * @param {*} value The value to inspect.
  28631. * @returns {Array} Returns the cast property path array.
  28632. */
  28633. function castPath(value) {
  28634. return isArray(value) ? value : stringToPath(value);
  28635. }
  28636. /**
  28637. * Gets the data for `map`.
  28638. *
  28639. * @private
  28640. * @param {Object} map The map to query.
  28641. * @param {string} key The reference key.
  28642. * @returns {*} Returns the map data.
  28643. */
  28644. function getMapData(map, key) {
  28645. var data = map.__data__;
  28646. return isKeyable(key)
  28647. ? data[typeof key == 'string' ? 'string' : 'hash']
  28648. : data.map;
  28649. }
  28650. /**
  28651. * Gets the native function at `key` of `object`.
  28652. *
  28653. * @private
  28654. * @param {Object} object The object to query.
  28655. * @param {string} key The key of the method to get.
  28656. * @returns {*} Returns the function if it's native, else `undefined`.
  28657. */
  28658. function getNative(object, key) {
  28659. var value = getValue(object, key);
  28660. return baseIsNative(value) ? value : undefined;
  28661. }
  28662. /**
  28663. * Checks if `value` is a property name and not a property path.
  28664. *
  28665. * @private
  28666. * @param {*} value The value to check.
  28667. * @param {Object} [object] The object to query keys on.
  28668. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  28669. */
  28670. function isKey(value, object) {
  28671. if (isArray(value)) {
  28672. return false;
  28673. }
  28674. var type = typeof value;
  28675. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  28676. value == null || isSymbol(value)) {
  28677. return true;
  28678. }
  28679. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  28680. (object != null && value in Object(object));
  28681. }
  28682. /**
  28683. * Checks if `value` is suitable for use as unique object key.
  28684. *
  28685. * @private
  28686. * @param {*} value The value to check.
  28687. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  28688. */
  28689. function isKeyable(value) {
  28690. var type = typeof value;
  28691. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  28692. ? (value !== '__proto__')
  28693. : (value === null);
  28694. }
  28695. /**
  28696. * Checks if `func` has its source masked.
  28697. *
  28698. * @private
  28699. * @param {Function} func The function to check.
  28700. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  28701. */
  28702. function isMasked(func) {
  28703. return !!maskSrcKey && (maskSrcKey in func);
  28704. }
  28705. /**
  28706. * Converts `string` to a property path array.
  28707. *
  28708. * @private
  28709. * @param {string} string The string to convert.
  28710. * @returns {Array} Returns the property path array.
  28711. */
  28712. var stringToPath = memoize(function(string) {
  28713. string = toString(string);
  28714. var result = [];
  28715. if (reLeadingDot.test(string)) {
  28716. result.push('');
  28717. }
  28718. string.replace(rePropName, function(match, number, quote, string) {
  28719. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  28720. });
  28721. return result;
  28722. });
  28723. /**
  28724. * Converts `value` to a string key if it's not a string or symbol.
  28725. *
  28726. * @private
  28727. * @param {*} value The value to inspect.
  28728. * @returns {string|symbol} Returns the key.
  28729. */
  28730. function toKey(value) {
  28731. if (typeof value == 'string' || isSymbol(value)) {
  28732. return value;
  28733. }
  28734. var result = (value + '');
  28735. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  28736. }
  28737. /**
  28738. * Converts `func` to its source code.
  28739. *
  28740. * @private
  28741. * @param {Function} func The function to process.
  28742. * @returns {string} Returns the source code.
  28743. */
  28744. function toSource(func) {
  28745. if (func != null) {
  28746. try {
  28747. return funcToString.call(func);
  28748. } catch (e) {}
  28749. try {
  28750. return (func + '');
  28751. } catch (e) {}
  28752. }
  28753. return '';
  28754. }
  28755. /**
  28756. * Creates a function that memoizes the result of `func`. If `resolver` is
  28757. * provided, it determines the cache key for storing the result based on the
  28758. * arguments provided to the memoized function. By default, the first argument
  28759. * provided to the memoized function is used as the map cache key. The `func`
  28760. * is invoked with the `this` binding of the memoized function.
  28761. *
  28762. * **Note:** The cache is exposed as the `cache` property on the memoized
  28763. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  28764. * constructor with one whose instances implement the
  28765. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  28766. * method interface of `delete`, `get`, `has`, and `set`.
  28767. *
  28768. * @static
  28769. * @memberOf _
  28770. * @since 0.1.0
  28771. * @category Function
  28772. * @param {Function} func The function to have its output memoized.
  28773. * @param {Function} [resolver] The function to resolve the cache key.
  28774. * @returns {Function} Returns the new memoized function.
  28775. * @example
  28776. *
  28777. * var object = { 'a': 1, 'b': 2 };
  28778. * var other = { 'c': 3, 'd': 4 };
  28779. *
  28780. * var values = _.memoize(_.values);
  28781. * values(object);
  28782. * // => [1, 2]
  28783. *
  28784. * values(other);
  28785. * // => [3, 4]
  28786. *
  28787. * object.a = 2;
  28788. * values(object);
  28789. * // => [1, 2]
  28790. *
  28791. * // Modify the result cache.
  28792. * values.cache.set(object, ['a', 'b']);
  28793. * values(object);
  28794. * // => ['a', 'b']
  28795. *
  28796. * // Replace `_.memoize.Cache`.
  28797. * _.memoize.Cache = WeakMap;
  28798. */
  28799. function memoize(func, resolver) {
  28800. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  28801. throw new TypeError(FUNC_ERROR_TEXT);
  28802. }
  28803. var memoized = function() {
  28804. var args = arguments,
  28805. key = resolver ? resolver.apply(this, args) : args[0],
  28806. cache = memoized.cache;
  28807. if (cache.has(key)) {
  28808. return cache.get(key);
  28809. }
  28810. var result = func.apply(this, args);
  28811. memoized.cache = cache.set(key, result);
  28812. return result;
  28813. };
  28814. memoized.cache = new (memoize.Cache || MapCache);
  28815. return memoized;
  28816. }
  28817. // Assign cache to `_.memoize`.
  28818. memoize.Cache = MapCache;
  28819. /**
  28820. * Performs a
  28821. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  28822. * comparison between two values to determine if they are equivalent.
  28823. *
  28824. * @static
  28825. * @memberOf _
  28826. * @since 4.0.0
  28827. * @category Lang
  28828. * @param {*} value The value to compare.
  28829. * @param {*} other The other value to compare.
  28830. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  28831. * @example
  28832. *
  28833. * var object = { 'a': 1 };
  28834. * var other = { 'a': 1 };
  28835. *
  28836. * _.eq(object, object);
  28837. * // => true
  28838. *
  28839. * _.eq(object, other);
  28840. * // => false
  28841. *
  28842. * _.eq('a', 'a');
  28843. * // => true
  28844. *
  28845. * _.eq('a', Object('a'));
  28846. * // => false
  28847. *
  28848. * _.eq(NaN, NaN);
  28849. * // => true
  28850. */
  28851. function eq(value, other) {
  28852. return value === other || (value !== value && other !== other);
  28853. }
  28854. /**
  28855. * Checks if `value` is classified as an `Array` object.
  28856. *
  28857. * @static
  28858. * @memberOf _
  28859. * @since 0.1.0
  28860. * @category Lang
  28861. * @param {*} value The value to check.
  28862. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  28863. * @example
  28864. *
  28865. * _.isArray([1, 2, 3]);
  28866. * // => true
  28867. *
  28868. * _.isArray(document.body.children);
  28869. * // => false
  28870. *
  28871. * _.isArray('abc');
  28872. * // => false
  28873. *
  28874. * _.isArray(_.noop);
  28875. * // => false
  28876. */
  28877. var isArray = Array.isArray;
  28878. /**
  28879. * Checks if `value` is classified as a `Function` object.
  28880. *
  28881. * @static
  28882. * @memberOf _
  28883. * @since 0.1.0
  28884. * @category Lang
  28885. * @param {*} value The value to check.
  28886. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  28887. * @example
  28888. *
  28889. * _.isFunction(_);
  28890. * // => true
  28891. *
  28892. * _.isFunction(/abc/);
  28893. * // => false
  28894. */
  28895. function isFunction(value) {
  28896. // The use of `Object#toString` avoids issues with the `typeof` operator
  28897. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  28898. var tag = isObject(value) ? objectToString.call(value) : '';
  28899. return tag == funcTag || tag == genTag;
  28900. }
  28901. /**
  28902. * Checks if `value` is the
  28903. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  28904. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  28905. *
  28906. * @static
  28907. * @memberOf _
  28908. * @since 0.1.0
  28909. * @category Lang
  28910. * @param {*} value The value to check.
  28911. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  28912. * @example
  28913. *
  28914. * _.isObject({});
  28915. * // => true
  28916. *
  28917. * _.isObject([1, 2, 3]);
  28918. * // => true
  28919. *
  28920. * _.isObject(_.noop);
  28921. * // => true
  28922. *
  28923. * _.isObject(null);
  28924. * // => false
  28925. */
  28926. function isObject(value) {
  28927. var type = typeof value;
  28928. return !!value && (type == 'object' || type == 'function');
  28929. }
  28930. /**
  28931. * Checks if `value` is object-like. A value is object-like if it's not `null`
  28932. * and has a `typeof` result of "object".
  28933. *
  28934. * @static
  28935. * @memberOf _
  28936. * @since 4.0.0
  28937. * @category Lang
  28938. * @param {*} value The value to check.
  28939. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  28940. * @example
  28941. *
  28942. * _.isObjectLike({});
  28943. * // => true
  28944. *
  28945. * _.isObjectLike([1, 2, 3]);
  28946. * // => true
  28947. *
  28948. * _.isObjectLike(_.noop);
  28949. * // => false
  28950. *
  28951. * _.isObjectLike(null);
  28952. * // => false
  28953. */
  28954. function isObjectLike(value) {
  28955. return !!value && typeof value == 'object';
  28956. }
  28957. /**
  28958. * Checks if `value` is classified as a `Symbol` primitive or object.
  28959. *
  28960. * @static
  28961. * @memberOf _
  28962. * @since 4.0.0
  28963. * @category Lang
  28964. * @param {*} value The value to check.
  28965. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  28966. * @example
  28967. *
  28968. * _.isSymbol(Symbol.iterator);
  28969. * // => true
  28970. *
  28971. * _.isSymbol('abc');
  28972. * // => false
  28973. */
  28974. function isSymbol(value) {
  28975. return typeof value == 'symbol' ||
  28976. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  28977. }
  28978. /**
  28979. * Converts `value` to a string. An empty string is returned for `null`
  28980. * and `undefined` values. The sign of `-0` is preserved.
  28981. *
  28982. * @static
  28983. * @memberOf _
  28984. * @since 4.0.0
  28985. * @category Lang
  28986. * @param {*} value The value to process.
  28987. * @returns {string} Returns the string.
  28988. * @example
  28989. *
  28990. * _.toString(null);
  28991. * // => ''
  28992. *
  28993. * _.toString(-0);
  28994. * // => '-0'
  28995. *
  28996. * _.toString([1, 2, 3]);
  28997. * // => '1,2,3'
  28998. */
  28999. function toString(value) {
  29000. return value == null ? '' : baseToString(value);
  29001. }
  29002. /**
  29003. * Gets the value at `path` of `object`. If the resolved value is
  29004. * `undefined`, the `defaultValue` is returned in its place.
  29005. *
  29006. * @static
  29007. * @memberOf _
  29008. * @since 3.7.0
  29009. * @category Object
  29010. * @param {Object} object The object to query.
  29011. * @param {Array|string} path The path of the property to get.
  29012. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  29013. * @returns {*} Returns the resolved value.
  29014. * @example
  29015. *
  29016. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  29017. *
  29018. * _.get(object, 'a[0].b.c');
  29019. * // => 3
  29020. *
  29021. * _.get(object, ['a', '0', 'b', 'c']);
  29022. * // => 3
  29023. *
  29024. * _.get(object, 'a.b.c', 'default');
  29025. * // => 'default'
  29026. */
  29027. function get(object, path, defaultValue) {
  29028. var result = object == null ? undefined : baseGet(object, path);
  29029. return result === undefined ? defaultValue : result;
  29030. }
  29031. module.exports = get;
  29032. /***/ }),
  29033. /***/ 855:
  29034. /***/ (function(module, __unusedexports, __webpack_require__) {
  29035. module.exports = registerPlugin;
  29036. const factory = __webpack_require__(47);
  29037. function registerPlugin(plugins, pluginFunction) {
  29038. return factory(
  29039. plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
  29040. );
  29041. }
  29042. /***/ }),
  29043. /***/ 856:
  29044. /***/ (function(module, __unusedexports, __webpack_require__) {
  29045. module.exports = __webpack_require__(141);
  29046. /***/ }),
  29047. /***/ 863:
  29048. /***/ (function(module, __unusedexports, __webpack_require__) {
  29049. module.exports = authenticationBeforeRequest;
  29050. const btoa = __webpack_require__(675);
  29051. const withAuthorizationPrefix = __webpack_require__(143);
  29052. function authenticationBeforeRequest(state, options) {
  29053. if (typeof state.auth === "string") {
  29054. options.headers.authorization = withAuthorizationPrefix(state.auth);
  29055. return;
  29056. }
  29057. if (state.auth.username) {
  29058. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  29059. options.headers.authorization = `Basic ${hash}`;
  29060. if (state.otp) {
  29061. options.headers["x-github-otp"] = state.otp;
  29062. }
  29063. return;
  29064. }
  29065. if (state.auth.clientId) {
  29066. // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as
  29067. // Basic Authorization instead of query parameters. The only routes where that applies share the same
  29068. // URL though: `/applications/:client_id/tokens/:access_token`.
  29069. //
  29070. // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)
  29071. // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)
  29072. // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)
  29073. //
  29074. // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token"
  29075. // as well as "/applications/123/tokens/token456"
  29076. if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) {
  29077. const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`);
  29078. options.headers.authorization = `Basic ${hash}`;
  29079. return;
  29080. }
  29081. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  29082. options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`;
  29083. return;
  29084. }
  29085. return Promise.resolve()
  29086. .then(() => {
  29087. return state.auth();
  29088. })
  29089. .then(authorization => {
  29090. options.headers.authorization = withAuthorizationPrefix(authorization);
  29091. });
  29092. }
  29093. /***/ }),
  29094. /***/ 866:
  29095. /***/ (function(module, __unusedexports, __webpack_require__) {
  29096. "use strict";
  29097. var shebangRegex = __webpack_require__(816);
  29098. module.exports = function (str) {
  29099. var match = str.match(shebangRegex);
  29100. if (!match) {
  29101. return null;
  29102. }
  29103. var arr = match[0].replace(/#! ?/, '').split(' ');
  29104. var bin = arr[0].split('/').pop();
  29105. var arg = arr[1];
  29106. return (bin === 'env' ?
  29107. arg :
  29108. bin + (arg ? ' ' + arg : '')
  29109. );
  29110. };
  29111. /***/ }),
  29112. /***/ 874:
  29113. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  29114. "use strict";
  29115. // Copyright (c) Microsoft. All rights reserved.
  29116. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  29117. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  29118. return new (P || (P = Promise))(function (resolve, reject) {
  29119. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  29120. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  29121. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  29122. step((generator = generator.apply(thisArg, _arguments || [])).next());
  29123. });
  29124. };
  29125. Object.defineProperty(exports, "__esModule", { value: true });
  29126. const url = __webpack_require__(835);
  29127. const http = __webpack_require__(605);
  29128. const https = __webpack_require__(34);
  29129. const util = __webpack_require__(729);
  29130. let fs;
  29131. let tunnel;
  29132. var HttpCodes;
  29133. (function (HttpCodes) {
  29134. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  29135. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  29136. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  29137. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  29138. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  29139. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  29140. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  29141. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  29142. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  29143. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  29144. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  29145. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  29146. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  29147. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  29148. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  29149. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  29150. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  29151. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  29152. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  29153. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  29154. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  29155. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  29156. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  29157. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  29158. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  29159. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  29160. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  29161. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  29162. const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
  29163. const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
  29164. const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
  29165. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  29166. const ExponentialBackoffCeiling = 10;
  29167. const ExponentialBackoffTimeSlice = 5;
  29168. class HttpClientResponse {
  29169. constructor(message) {
  29170. this.message = message;
  29171. }
  29172. readBody() {
  29173. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  29174. let buffer = Buffer.alloc(0);
  29175. const encodingCharset = util.obtainContentCharset(this);
  29176. // Extract Encoding from header: 'content-encoding'
  29177. // Match `gzip`, `gzip, deflate` variations of GZIP encoding
  29178. const contentEncoding = this.message.headers['content-encoding'] || '';
  29179. const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
  29180. this.message.on('data', function (data) {
  29181. const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
  29182. buffer = Buffer.concat([buffer, chunk]);
  29183. }).on('end', function () {
  29184. return __awaiter(this, void 0, void 0, function* () {
  29185. if (isGzippedEncoded) { // Process GZipped Response Body HERE
  29186. const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
  29187. resolve(gunzippedBody);
  29188. }
  29189. else {
  29190. resolve(buffer.toString(encodingCharset));
  29191. }
  29192. });
  29193. }).on('error', function (err) {
  29194. reject(err);
  29195. });
  29196. }));
  29197. }
  29198. }
  29199. exports.HttpClientResponse = HttpClientResponse;
  29200. function isHttps(requestUrl) {
  29201. let parsedUrl = url.parse(requestUrl);
  29202. return parsedUrl.protocol === 'https:';
  29203. }
  29204. exports.isHttps = isHttps;
  29205. var EnvironmentVariables;
  29206. (function (EnvironmentVariables) {
  29207. EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
  29208. EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
  29209. EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
  29210. })(EnvironmentVariables || (EnvironmentVariables = {}));
  29211. class HttpClient {
  29212. constructor(userAgent, handlers, requestOptions) {
  29213. this._ignoreSslError = false;
  29214. this._allowRedirects = true;
  29215. this._allowRedirectDowngrade = false;
  29216. this._maxRedirects = 50;
  29217. this._allowRetries = false;
  29218. this._maxRetries = 1;
  29219. this._keepAlive = false;
  29220. this._disposed = false;
  29221. this.userAgent = userAgent;
  29222. this.handlers = handlers || [];
  29223. let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
  29224. if (no_proxy) {
  29225. this._httpProxyBypassHosts = [];
  29226. no_proxy.split(',').forEach(bypass => {
  29227. this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
  29228. });
  29229. }
  29230. this.requestOptions = requestOptions;
  29231. if (requestOptions) {
  29232. if (requestOptions.ignoreSslError != null) {
  29233. this._ignoreSslError = requestOptions.ignoreSslError;
  29234. }
  29235. this._socketTimeout = requestOptions.socketTimeout;
  29236. this._httpProxy = requestOptions.proxy;
  29237. if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
  29238. this._httpProxyBypassHosts = [];
  29239. requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
  29240. this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
  29241. });
  29242. }
  29243. this._certConfig = requestOptions.cert;
  29244. if (this._certConfig) {
  29245. // If using cert, need fs
  29246. fs = __webpack_require__(747);
  29247. // cache the cert content into memory, so we don't have to read it from disk every time
  29248. if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
  29249. this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
  29250. }
  29251. if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
  29252. this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
  29253. }
  29254. if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
  29255. this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
  29256. }
  29257. }
  29258. if (requestOptions.allowRedirects != null) {
  29259. this._allowRedirects = requestOptions.allowRedirects;
  29260. }
  29261. if (requestOptions.allowRedirectDowngrade != null) {
  29262. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  29263. }
  29264. if (requestOptions.maxRedirects != null) {
  29265. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  29266. }
  29267. if (requestOptions.keepAlive != null) {
  29268. this._keepAlive = requestOptions.keepAlive;
  29269. }
  29270. if (requestOptions.allowRetries != null) {
  29271. this._allowRetries = requestOptions.allowRetries;
  29272. }
  29273. if (requestOptions.maxRetries != null) {
  29274. this._maxRetries = requestOptions.maxRetries;
  29275. }
  29276. }
  29277. }
  29278. options(requestUrl, additionalHeaders) {
  29279. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  29280. }
  29281. get(requestUrl, additionalHeaders) {
  29282. return this.request('GET', requestUrl, null, additionalHeaders || {});
  29283. }
  29284. del(requestUrl, additionalHeaders) {
  29285. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  29286. }
  29287. post(requestUrl, data, additionalHeaders) {
  29288. return this.request('POST', requestUrl, data, additionalHeaders || {});
  29289. }
  29290. patch(requestUrl, data, additionalHeaders) {
  29291. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  29292. }
  29293. put(requestUrl, data, additionalHeaders) {
  29294. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  29295. }
  29296. head(requestUrl, additionalHeaders) {
  29297. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  29298. }
  29299. sendStream(verb, requestUrl, stream, additionalHeaders) {
  29300. return this.request(verb, requestUrl, stream, additionalHeaders);
  29301. }
  29302. /**
  29303. * Makes a raw http request.
  29304. * All other methods such as get, post, patch, and request ultimately call this.
  29305. * Prefer get, del, post and patch
  29306. */
  29307. request(verb, requestUrl, data, headers) {
  29308. return __awaiter(this, void 0, void 0, function* () {
  29309. if (this._disposed) {
  29310. throw new Error("Client has already been disposed.");
  29311. }
  29312. let parsedUrl = url.parse(requestUrl);
  29313. let info = this._prepareRequest(verb, parsedUrl, headers);
  29314. // Only perform retries on reads since writes may not be idempotent.
  29315. let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
  29316. let numTries = 0;
  29317. let response;
  29318. while (numTries < maxTries) {
  29319. try {
  29320. response = yield this.requestRaw(info, data);
  29321. }
  29322. catch (err) {
  29323. numTries++;
  29324. if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
  29325. yield this._performExponentialBackoff(numTries);
  29326. continue;
  29327. }
  29328. throw err;
  29329. }
  29330. // Check if it's an authentication challenge
  29331. if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
  29332. let authenticationHandler;
  29333. for (let i = 0; i < this.handlers.length; i++) {
  29334. if (this.handlers[i].canHandleAuthentication(response)) {
  29335. authenticationHandler = this.handlers[i];
  29336. break;
  29337. }
  29338. }
  29339. if (authenticationHandler) {
  29340. return authenticationHandler.handleAuthentication(this, info, data);
  29341. }
  29342. else {
  29343. // We have received an unauthorized response but have no handlers to handle it.
  29344. // Let the response return to the caller.
  29345. return response;
  29346. }
  29347. }
  29348. let redirectsRemaining = this._maxRedirects;
  29349. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
  29350. && this._allowRedirects
  29351. && redirectsRemaining > 0) {
  29352. const redirectUrl = response.message.headers["location"];
  29353. if (!redirectUrl) {
  29354. // if there's no location to redirect to, we won't
  29355. break;
  29356. }
  29357. let parsedRedirectUrl = url.parse(redirectUrl);
  29358. if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
  29359. 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.");
  29360. }
  29361. // we need to finish reading the response before reassigning response
  29362. // which will leak the open socket.
  29363. yield response.readBody();
  29364. // let's make the request with the new redirectUrl
  29365. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  29366. response = yield this.requestRaw(info, data);
  29367. redirectsRemaining--;
  29368. }
  29369. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  29370. // If not a retry code, return immediately instead of retrying
  29371. return response;
  29372. }
  29373. numTries += 1;
  29374. if (numTries < maxTries) {
  29375. yield response.readBody();
  29376. yield this._performExponentialBackoff(numTries);
  29377. }
  29378. }
  29379. return response;
  29380. });
  29381. }
  29382. /**
  29383. * Needs to be called if keepAlive is set to true in request options.
  29384. */
  29385. dispose() {
  29386. if (this._agent) {
  29387. this._agent.destroy();
  29388. }
  29389. this._disposed = true;
  29390. }
  29391. /**
  29392. * Raw request.
  29393. * @param info
  29394. * @param data
  29395. */
  29396. requestRaw(info, data) {
  29397. return new Promise((resolve, reject) => {
  29398. let callbackForResult = function (err, res) {
  29399. if (err) {
  29400. reject(err);
  29401. }
  29402. resolve(res);
  29403. };
  29404. this.requestRawWithCallback(info, data, callbackForResult);
  29405. });
  29406. }
  29407. /**
  29408. * Raw request with callback.
  29409. * @param info
  29410. * @param data
  29411. * @param onResult
  29412. */
  29413. requestRawWithCallback(info, data, onResult) {
  29414. let socket;
  29415. if (typeof (data) === 'string') {
  29416. info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
  29417. }
  29418. let callbackCalled = false;
  29419. let handleResult = (err, res) => {
  29420. if (!callbackCalled) {
  29421. callbackCalled = true;
  29422. onResult(err, res);
  29423. }
  29424. };
  29425. let req = info.httpModule.request(info.options, (msg) => {
  29426. let res = new HttpClientResponse(msg);
  29427. handleResult(null, res);
  29428. });
  29429. req.on('socket', (sock) => {
  29430. socket = sock;
  29431. });
  29432. // If we ever get disconnected, we want the socket to timeout eventually
  29433. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  29434. if (socket) {
  29435. socket.destroy();
  29436. }
  29437. handleResult(new Error('Request timeout: ' + info.options.path), null);
  29438. });
  29439. req.on('error', function (err) {
  29440. // err has statusCode property
  29441. // res should have headers
  29442. handleResult(err, null);
  29443. });
  29444. if (data && typeof (data) === 'string') {
  29445. req.write(data, 'utf8');
  29446. }
  29447. if (data && typeof (data) !== 'string') {
  29448. data.on('close', function () {
  29449. req.end();
  29450. });
  29451. data.pipe(req);
  29452. }
  29453. else {
  29454. req.end();
  29455. }
  29456. }
  29457. _prepareRequest(method, requestUrl, headers) {
  29458. const info = {};
  29459. info.parsedUrl = requestUrl;
  29460. const usingSsl = info.parsedUrl.protocol === 'https:';
  29461. info.httpModule = usingSsl ? https : http;
  29462. const defaultPort = usingSsl ? 443 : 80;
  29463. info.options = {};
  29464. info.options.host = info.parsedUrl.hostname;
  29465. info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
  29466. info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  29467. info.options.method = method;
  29468. info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
  29469. this._socketTimeout = info.options.timeout;
  29470. info.options.headers = this._mergeHeaders(headers);
  29471. if (this.userAgent != null) {
  29472. info.options.headers["user-agent"] = this.userAgent;
  29473. }
  29474. info.options.agent = this._getAgent(info.parsedUrl);
  29475. // gives handlers an opportunity to participate
  29476. if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
  29477. this.handlers.forEach((handler) => {
  29478. handler.prepareRequest(info.options);
  29479. });
  29480. }
  29481. return info;
  29482. }
  29483. _isPresigned(requestUrl) {
  29484. if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
  29485. const patterns = this.requestOptions.presignedUrlPatterns;
  29486. for (let i = 0; i < patterns.length; i++) {
  29487. if (requestUrl.match(patterns[i])) {
  29488. return true;
  29489. }
  29490. }
  29491. }
  29492. return false;
  29493. }
  29494. _mergeHeaders(headers) {
  29495. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
  29496. if (this.requestOptions && this.requestOptions.headers) {
  29497. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  29498. }
  29499. return lowercaseKeys(headers || {});
  29500. }
  29501. _getAgent(parsedUrl) {
  29502. let agent;
  29503. let proxy = this._getProxy(parsedUrl);
  29504. let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
  29505. if (this._keepAlive && useProxy) {
  29506. agent = this._proxyAgent;
  29507. }
  29508. if (this._keepAlive && !useProxy) {
  29509. agent = this._agent;
  29510. }
  29511. // if agent is already assigned use that agent.
  29512. if (!!agent) {
  29513. return agent;
  29514. }
  29515. const usingSsl = parsedUrl.protocol === 'https:';
  29516. let maxSockets = 100;
  29517. if (!!this.requestOptions) {
  29518. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  29519. }
  29520. if (useProxy) {
  29521. // If using proxy, need tunnel
  29522. if (!tunnel) {
  29523. tunnel = __webpack_require__(856);
  29524. }
  29525. const agentOptions = {
  29526. maxSockets: maxSockets,
  29527. keepAlive: this._keepAlive,
  29528. proxy: {
  29529. proxyAuth: proxy.proxyAuth,
  29530. host: proxy.proxyUrl.hostname,
  29531. port: proxy.proxyUrl.port
  29532. },
  29533. };
  29534. let tunnelAgent;
  29535. const overHttps = proxy.proxyUrl.protocol === 'https:';
  29536. if (usingSsl) {
  29537. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  29538. }
  29539. else {
  29540. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  29541. }
  29542. agent = tunnelAgent(agentOptions);
  29543. this._proxyAgent = agent;
  29544. }
  29545. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  29546. if (this._keepAlive && !agent) {
  29547. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  29548. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  29549. this._agent = agent;
  29550. }
  29551. // if not using private agent and tunnel agent isn't setup then use global agent
  29552. if (!agent) {
  29553. agent = usingSsl ? https.globalAgent : http.globalAgent;
  29554. }
  29555. if (usingSsl && this._ignoreSslError) {
  29556. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  29557. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  29558. // we have to cast it to any and change it directly
  29559. agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
  29560. }
  29561. if (usingSsl && this._certConfig) {
  29562. agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
  29563. }
  29564. return agent;
  29565. }
  29566. _getProxy(parsedUrl) {
  29567. let usingSsl = parsedUrl.protocol === 'https:';
  29568. let proxyConfig = this._httpProxy;
  29569. // fallback to http_proxy and https_proxy env
  29570. let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
  29571. let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
  29572. if (!proxyConfig) {
  29573. if (https_proxy && usingSsl) {
  29574. proxyConfig = {
  29575. proxyUrl: https_proxy
  29576. };
  29577. }
  29578. else if (http_proxy) {
  29579. proxyConfig = {
  29580. proxyUrl: http_proxy
  29581. };
  29582. }
  29583. }
  29584. let proxyUrl;
  29585. let proxyAuth;
  29586. if (proxyConfig) {
  29587. if (proxyConfig.proxyUrl.length > 0) {
  29588. proxyUrl = url.parse(proxyConfig.proxyUrl);
  29589. }
  29590. if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
  29591. proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
  29592. }
  29593. }
  29594. return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
  29595. }
  29596. _isMatchInBypassProxyList(parsedUrl) {
  29597. if (!this._httpProxyBypassHosts) {
  29598. return false;
  29599. }
  29600. let bypass = false;
  29601. this._httpProxyBypassHosts.forEach(bypassHost => {
  29602. if (bypassHost.test(parsedUrl.href)) {
  29603. bypass = true;
  29604. }
  29605. });
  29606. return bypass;
  29607. }
  29608. _performExponentialBackoff(retryNumber) {
  29609. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  29610. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  29611. return new Promise(resolve => setTimeout(() => resolve(), ms));
  29612. }
  29613. }
  29614. exports.HttpClient = HttpClient;
  29615. /***/ }),
  29616. /***/ 881:
  29617. /***/ (function(module) {
  29618. "use strict";
  29619. const isWin = process.platform === 'win32';
  29620. function notFoundError(original, syscall) {
  29621. return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
  29622. code: 'ENOENT',
  29623. errno: 'ENOENT',
  29624. syscall: `${syscall} ${original.command}`,
  29625. path: original.command,
  29626. spawnargs: original.args,
  29627. });
  29628. }
  29629. function hookChildProcess(cp, parsed) {
  29630. if (!isWin) {
  29631. return;
  29632. }
  29633. const originalEmit = cp.emit;
  29634. cp.emit = function (name, arg1) {
  29635. // If emitting "exit" event and exit code is 1, we need to check if
  29636. // the command exists and emit an "error" instead
  29637. // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
  29638. if (name === 'exit') {
  29639. const err = verifyENOENT(arg1, parsed, 'spawn');
  29640. if (err) {
  29641. return originalEmit.call(cp, 'error', err);
  29642. }
  29643. }
  29644. return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
  29645. };
  29646. }
  29647. function verifyENOENT(status, parsed) {
  29648. if (isWin && status === 1 && !parsed.file) {
  29649. return notFoundError(parsed.original, 'spawn');
  29650. }
  29651. return null;
  29652. }
  29653. function verifyENOENTSync(status, parsed) {
  29654. if (isWin && status === 1 && !parsed.file) {
  29655. return notFoundError(parsed.original, 'spawnSync');
  29656. }
  29657. return null;
  29658. }
  29659. module.exports = {
  29660. hookChildProcess,
  29661. verifyENOENT,
  29662. verifyENOENTSync,
  29663. notFoundError,
  29664. };
  29665. /***/ }),
  29666. /***/ 883:
  29667. /***/ (function(module) {
  29668. /**
  29669. * lodash (Custom Build) <https://lodash.com/>
  29670. * Build: `lodash modularize exports="npm" -o ./`
  29671. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  29672. * Released under MIT license <https://lodash.com/license>
  29673. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  29674. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  29675. */
  29676. /** Used as the `TypeError` message for "Functions" methods. */
  29677. var FUNC_ERROR_TEXT = 'Expected a function';
  29678. /** Used to stand-in for `undefined` hash values. */
  29679. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  29680. /** Used as references for various `Number` constants. */
  29681. var INFINITY = 1 / 0,
  29682. MAX_SAFE_INTEGER = 9007199254740991;
  29683. /** `Object#toString` result references. */
  29684. var funcTag = '[object Function]',
  29685. genTag = '[object GeneratorFunction]',
  29686. symbolTag = '[object Symbol]';
  29687. /** Used to match property names within property paths. */
  29688. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  29689. reIsPlainProp = /^\w*$/,
  29690. reLeadingDot = /^\./,
  29691. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  29692. /**
  29693. * Used to match `RegExp`
  29694. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  29695. */
  29696. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  29697. /** Used to match backslashes in property paths. */
  29698. var reEscapeChar = /\\(\\)?/g;
  29699. /** Used to detect host constructors (Safari). */
  29700. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  29701. /** Used to detect unsigned integer values. */
  29702. var reIsUint = /^(?:0|[1-9]\d*)$/;
  29703. /** Detect free variable `global` from Node.js. */
  29704. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  29705. /** Detect free variable `self`. */
  29706. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  29707. /** Used as a reference to the global object. */
  29708. var root = freeGlobal || freeSelf || Function('return this')();
  29709. /**
  29710. * Gets the value at `key` of `object`.
  29711. *
  29712. * @private
  29713. * @param {Object} [object] The object to query.
  29714. * @param {string} key The key of the property to get.
  29715. * @returns {*} Returns the property value.
  29716. */
  29717. function getValue(object, key) {
  29718. return object == null ? undefined : object[key];
  29719. }
  29720. /**
  29721. * Checks if `value` is a host object in IE < 9.
  29722. *
  29723. * @private
  29724. * @param {*} value The value to check.
  29725. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  29726. */
  29727. function isHostObject(value) {
  29728. // Many host objects are `Object` objects that can coerce to strings
  29729. // despite having improperly defined `toString` methods.
  29730. var result = false;
  29731. if (value != null && typeof value.toString != 'function') {
  29732. try {
  29733. result = !!(value + '');
  29734. } catch (e) {}
  29735. }
  29736. return result;
  29737. }
  29738. /** Used for built-in method references. */
  29739. var arrayProto = Array.prototype,
  29740. funcProto = Function.prototype,
  29741. objectProto = Object.prototype;
  29742. /** Used to detect overreaching core-js shims. */
  29743. var coreJsData = root['__core-js_shared__'];
  29744. /** Used to detect methods masquerading as native. */
  29745. var maskSrcKey = (function() {
  29746. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  29747. return uid ? ('Symbol(src)_1.' + uid) : '';
  29748. }());
  29749. /** Used to resolve the decompiled source of functions. */
  29750. var funcToString = funcProto.toString;
  29751. /** Used to check objects for own properties. */
  29752. var hasOwnProperty = objectProto.hasOwnProperty;
  29753. /**
  29754. * Used to resolve the
  29755. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  29756. * of values.
  29757. */
  29758. var objectToString = objectProto.toString;
  29759. /** Used to detect if a method is native. */
  29760. var reIsNative = RegExp('^' +
  29761. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  29762. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  29763. );
  29764. /** Built-in value references. */
  29765. var Symbol = root.Symbol,
  29766. splice = arrayProto.splice;
  29767. /* Built-in method references that are verified to be native. */
  29768. var Map = getNative(root, 'Map'),
  29769. nativeCreate = getNative(Object, 'create');
  29770. /** Used to convert symbols to primitives and strings. */
  29771. var symbolProto = Symbol ? Symbol.prototype : undefined,
  29772. symbolToString = symbolProto ? symbolProto.toString : undefined;
  29773. /**
  29774. * Creates a hash object.
  29775. *
  29776. * @private
  29777. * @constructor
  29778. * @param {Array} [entries] The key-value pairs to cache.
  29779. */
  29780. function Hash(entries) {
  29781. var index = -1,
  29782. length = entries ? entries.length : 0;
  29783. this.clear();
  29784. while (++index < length) {
  29785. var entry = entries[index];
  29786. this.set(entry[0], entry[1]);
  29787. }
  29788. }
  29789. /**
  29790. * Removes all key-value entries from the hash.
  29791. *
  29792. * @private
  29793. * @name clear
  29794. * @memberOf Hash
  29795. */
  29796. function hashClear() {
  29797. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  29798. }
  29799. /**
  29800. * Removes `key` and its value from the hash.
  29801. *
  29802. * @private
  29803. * @name delete
  29804. * @memberOf Hash
  29805. * @param {Object} hash The hash to modify.
  29806. * @param {string} key The key of the value to remove.
  29807. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29808. */
  29809. function hashDelete(key) {
  29810. return this.has(key) && delete this.__data__[key];
  29811. }
  29812. /**
  29813. * Gets the hash value for `key`.
  29814. *
  29815. * @private
  29816. * @name get
  29817. * @memberOf Hash
  29818. * @param {string} key The key of the value to get.
  29819. * @returns {*} Returns the entry value.
  29820. */
  29821. function hashGet(key) {
  29822. var data = this.__data__;
  29823. if (nativeCreate) {
  29824. var result = data[key];
  29825. return result === HASH_UNDEFINED ? undefined : result;
  29826. }
  29827. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  29828. }
  29829. /**
  29830. * Checks if a hash value for `key` exists.
  29831. *
  29832. * @private
  29833. * @name has
  29834. * @memberOf Hash
  29835. * @param {string} key The key of the entry to check.
  29836. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  29837. */
  29838. function hashHas(key) {
  29839. var data = this.__data__;
  29840. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  29841. }
  29842. /**
  29843. * Sets the hash `key` to `value`.
  29844. *
  29845. * @private
  29846. * @name set
  29847. * @memberOf Hash
  29848. * @param {string} key The key of the value to set.
  29849. * @param {*} value The value to set.
  29850. * @returns {Object} Returns the hash instance.
  29851. */
  29852. function hashSet(key, value) {
  29853. var data = this.__data__;
  29854. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  29855. return this;
  29856. }
  29857. // Add methods to `Hash`.
  29858. Hash.prototype.clear = hashClear;
  29859. Hash.prototype['delete'] = hashDelete;
  29860. Hash.prototype.get = hashGet;
  29861. Hash.prototype.has = hashHas;
  29862. Hash.prototype.set = hashSet;
  29863. /**
  29864. * Creates an list cache object.
  29865. *
  29866. * @private
  29867. * @constructor
  29868. * @param {Array} [entries] The key-value pairs to cache.
  29869. */
  29870. function ListCache(entries) {
  29871. var index = -1,
  29872. length = entries ? entries.length : 0;
  29873. this.clear();
  29874. while (++index < length) {
  29875. var entry = entries[index];
  29876. this.set(entry[0], entry[1]);
  29877. }
  29878. }
  29879. /**
  29880. * Removes all key-value entries from the list cache.
  29881. *
  29882. * @private
  29883. * @name clear
  29884. * @memberOf ListCache
  29885. */
  29886. function listCacheClear() {
  29887. this.__data__ = [];
  29888. }
  29889. /**
  29890. * Removes `key` and its value from the list cache.
  29891. *
  29892. * @private
  29893. * @name delete
  29894. * @memberOf ListCache
  29895. * @param {string} key The key of the value to remove.
  29896. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29897. */
  29898. function listCacheDelete(key) {
  29899. var data = this.__data__,
  29900. index = assocIndexOf(data, key);
  29901. if (index < 0) {
  29902. return false;
  29903. }
  29904. var lastIndex = data.length - 1;
  29905. if (index == lastIndex) {
  29906. data.pop();
  29907. } else {
  29908. splice.call(data, index, 1);
  29909. }
  29910. return true;
  29911. }
  29912. /**
  29913. * Gets the list cache value for `key`.
  29914. *
  29915. * @private
  29916. * @name get
  29917. * @memberOf ListCache
  29918. * @param {string} key The key of the value to get.
  29919. * @returns {*} Returns the entry value.
  29920. */
  29921. function listCacheGet(key) {
  29922. var data = this.__data__,
  29923. index = assocIndexOf(data, key);
  29924. return index < 0 ? undefined : data[index][1];
  29925. }
  29926. /**
  29927. * Checks if a list cache value for `key` exists.
  29928. *
  29929. * @private
  29930. * @name has
  29931. * @memberOf ListCache
  29932. * @param {string} key The key of the entry to check.
  29933. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  29934. */
  29935. function listCacheHas(key) {
  29936. return assocIndexOf(this.__data__, key) > -1;
  29937. }
  29938. /**
  29939. * Sets the list cache `key` to `value`.
  29940. *
  29941. * @private
  29942. * @name set
  29943. * @memberOf ListCache
  29944. * @param {string} key The key of the value to set.
  29945. * @param {*} value The value to set.
  29946. * @returns {Object} Returns the list cache instance.
  29947. */
  29948. function listCacheSet(key, value) {
  29949. var data = this.__data__,
  29950. index = assocIndexOf(data, key);
  29951. if (index < 0) {
  29952. data.push([key, value]);
  29953. } else {
  29954. data[index][1] = value;
  29955. }
  29956. return this;
  29957. }
  29958. // Add methods to `ListCache`.
  29959. ListCache.prototype.clear = listCacheClear;
  29960. ListCache.prototype['delete'] = listCacheDelete;
  29961. ListCache.prototype.get = listCacheGet;
  29962. ListCache.prototype.has = listCacheHas;
  29963. ListCache.prototype.set = listCacheSet;
  29964. /**
  29965. * Creates a map cache object to store key-value pairs.
  29966. *
  29967. * @private
  29968. * @constructor
  29969. * @param {Array} [entries] The key-value pairs to cache.
  29970. */
  29971. function MapCache(entries) {
  29972. var index = -1,
  29973. length = entries ? entries.length : 0;
  29974. this.clear();
  29975. while (++index < length) {
  29976. var entry = entries[index];
  29977. this.set(entry[0], entry[1]);
  29978. }
  29979. }
  29980. /**
  29981. * Removes all key-value entries from the map.
  29982. *
  29983. * @private
  29984. * @name clear
  29985. * @memberOf MapCache
  29986. */
  29987. function mapCacheClear() {
  29988. this.__data__ = {
  29989. 'hash': new Hash,
  29990. 'map': new (Map || ListCache),
  29991. 'string': new Hash
  29992. };
  29993. }
  29994. /**
  29995. * Removes `key` and its value from the map.
  29996. *
  29997. * @private
  29998. * @name delete
  29999. * @memberOf MapCache
  30000. * @param {string} key The key of the value to remove.
  30001. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  30002. */
  30003. function mapCacheDelete(key) {
  30004. return getMapData(this, key)['delete'](key);
  30005. }
  30006. /**
  30007. * Gets the map value for `key`.
  30008. *
  30009. * @private
  30010. * @name get
  30011. * @memberOf MapCache
  30012. * @param {string} key The key of the value to get.
  30013. * @returns {*} Returns the entry value.
  30014. */
  30015. function mapCacheGet(key) {
  30016. return getMapData(this, key).get(key);
  30017. }
  30018. /**
  30019. * Checks if a map value for `key` exists.
  30020. *
  30021. * @private
  30022. * @name has
  30023. * @memberOf MapCache
  30024. * @param {string} key The key of the entry to check.
  30025. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  30026. */
  30027. function mapCacheHas(key) {
  30028. return getMapData(this, key).has(key);
  30029. }
  30030. /**
  30031. * Sets the map `key` to `value`.
  30032. *
  30033. * @private
  30034. * @name set
  30035. * @memberOf MapCache
  30036. * @param {string} key The key of the value to set.
  30037. * @param {*} value The value to set.
  30038. * @returns {Object} Returns the map cache instance.
  30039. */
  30040. function mapCacheSet(key, value) {
  30041. getMapData(this, key).set(key, value);
  30042. return this;
  30043. }
  30044. // Add methods to `MapCache`.
  30045. MapCache.prototype.clear = mapCacheClear;
  30046. MapCache.prototype['delete'] = mapCacheDelete;
  30047. MapCache.prototype.get = mapCacheGet;
  30048. MapCache.prototype.has = mapCacheHas;
  30049. MapCache.prototype.set = mapCacheSet;
  30050. /**
  30051. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  30052. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30053. * for equality comparisons.
  30054. *
  30055. * @private
  30056. * @param {Object} object The object to modify.
  30057. * @param {string} key The key of the property to assign.
  30058. * @param {*} value The value to assign.
  30059. */
  30060. function assignValue(object, key, value) {
  30061. var objValue = object[key];
  30062. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  30063. (value === undefined && !(key in object))) {
  30064. object[key] = value;
  30065. }
  30066. }
  30067. /**
  30068. * Gets the index at which the `key` is found in `array` of key-value pairs.
  30069. *
  30070. * @private
  30071. * @param {Array} array The array to inspect.
  30072. * @param {*} key The key to search for.
  30073. * @returns {number} Returns the index of the matched value, else `-1`.
  30074. */
  30075. function assocIndexOf(array, key) {
  30076. var length = array.length;
  30077. while (length--) {
  30078. if (eq(array[length][0], key)) {
  30079. return length;
  30080. }
  30081. }
  30082. return -1;
  30083. }
  30084. /**
  30085. * The base implementation of `_.isNative` without bad shim checks.
  30086. *
  30087. * @private
  30088. * @param {*} value The value to check.
  30089. * @returns {boolean} Returns `true` if `value` is a native function,
  30090. * else `false`.
  30091. */
  30092. function baseIsNative(value) {
  30093. if (!isObject(value) || isMasked(value)) {
  30094. return false;
  30095. }
  30096. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  30097. return pattern.test(toSource(value));
  30098. }
  30099. /**
  30100. * The base implementation of `_.set`.
  30101. *
  30102. * @private
  30103. * @param {Object} object The object to modify.
  30104. * @param {Array|string} path The path of the property to set.
  30105. * @param {*} value The value to set.
  30106. * @param {Function} [customizer] The function to customize path creation.
  30107. * @returns {Object} Returns `object`.
  30108. */
  30109. function baseSet(object, path, value, customizer) {
  30110. if (!isObject(object)) {
  30111. return object;
  30112. }
  30113. path = isKey(path, object) ? [path] : castPath(path);
  30114. var index = -1,
  30115. length = path.length,
  30116. lastIndex = length - 1,
  30117. nested = object;
  30118. while (nested != null && ++index < length) {
  30119. var key = toKey(path[index]),
  30120. newValue = value;
  30121. if (index != lastIndex) {
  30122. var objValue = nested[key];
  30123. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  30124. if (newValue === undefined) {
  30125. newValue = isObject(objValue)
  30126. ? objValue
  30127. : (isIndex(path[index + 1]) ? [] : {});
  30128. }
  30129. }
  30130. assignValue(nested, key, newValue);
  30131. nested = nested[key];
  30132. }
  30133. return object;
  30134. }
  30135. /**
  30136. * The base implementation of `_.toString` which doesn't convert nullish
  30137. * values to empty strings.
  30138. *
  30139. * @private
  30140. * @param {*} value The value to process.
  30141. * @returns {string} Returns the string.
  30142. */
  30143. function baseToString(value) {
  30144. // Exit early for strings to avoid a performance hit in some environments.
  30145. if (typeof value == 'string') {
  30146. return value;
  30147. }
  30148. if (isSymbol(value)) {
  30149. return symbolToString ? symbolToString.call(value) : '';
  30150. }
  30151. var result = (value + '');
  30152. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30153. }
  30154. /**
  30155. * Casts `value` to a path array if it's not one.
  30156. *
  30157. * @private
  30158. * @param {*} value The value to inspect.
  30159. * @returns {Array} Returns the cast property path array.
  30160. */
  30161. function castPath(value) {
  30162. return isArray(value) ? value : stringToPath(value);
  30163. }
  30164. /**
  30165. * Gets the data for `map`.
  30166. *
  30167. * @private
  30168. * @param {Object} map The map to query.
  30169. * @param {string} key The reference key.
  30170. * @returns {*} Returns the map data.
  30171. */
  30172. function getMapData(map, key) {
  30173. var data = map.__data__;
  30174. return isKeyable(key)
  30175. ? data[typeof key == 'string' ? 'string' : 'hash']
  30176. : data.map;
  30177. }
  30178. /**
  30179. * Gets the native function at `key` of `object`.
  30180. *
  30181. * @private
  30182. * @param {Object} object The object to query.
  30183. * @param {string} key The key of the method to get.
  30184. * @returns {*} Returns the function if it's native, else `undefined`.
  30185. */
  30186. function getNative(object, key) {
  30187. var value = getValue(object, key);
  30188. return baseIsNative(value) ? value : undefined;
  30189. }
  30190. /**
  30191. * Checks if `value` is a valid array-like index.
  30192. *
  30193. * @private
  30194. * @param {*} value The value to check.
  30195. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  30196. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  30197. */
  30198. function isIndex(value, length) {
  30199. length = length == null ? MAX_SAFE_INTEGER : length;
  30200. return !!length &&
  30201. (typeof value == 'number' || reIsUint.test(value)) &&
  30202. (value > -1 && value % 1 == 0 && value < length);
  30203. }
  30204. /**
  30205. * Checks if `value` is a property name and not a property path.
  30206. *
  30207. * @private
  30208. * @param {*} value The value to check.
  30209. * @param {Object} [object] The object to query keys on.
  30210. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  30211. */
  30212. function isKey(value, object) {
  30213. if (isArray(value)) {
  30214. return false;
  30215. }
  30216. var type = typeof value;
  30217. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  30218. value == null || isSymbol(value)) {
  30219. return true;
  30220. }
  30221. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  30222. (object != null && value in Object(object));
  30223. }
  30224. /**
  30225. * Checks if `value` is suitable for use as unique object key.
  30226. *
  30227. * @private
  30228. * @param {*} value The value to check.
  30229. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  30230. */
  30231. function isKeyable(value) {
  30232. var type = typeof value;
  30233. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  30234. ? (value !== '__proto__')
  30235. : (value === null);
  30236. }
  30237. /**
  30238. * Checks if `func` has its source masked.
  30239. *
  30240. * @private
  30241. * @param {Function} func The function to check.
  30242. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  30243. */
  30244. function isMasked(func) {
  30245. return !!maskSrcKey && (maskSrcKey in func);
  30246. }
  30247. /**
  30248. * Converts `string` to a property path array.
  30249. *
  30250. * @private
  30251. * @param {string} string The string to convert.
  30252. * @returns {Array} Returns the property path array.
  30253. */
  30254. var stringToPath = memoize(function(string) {
  30255. string = toString(string);
  30256. var result = [];
  30257. if (reLeadingDot.test(string)) {
  30258. result.push('');
  30259. }
  30260. string.replace(rePropName, function(match, number, quote, string) {
  30261. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  30262. });
  30263. return result;
  30264. });
  30265. /**
  30266. * Converts `value` to a string key if it's not a string or symbol.
  30267. *
  30268. * @private
  30269. * @param {*} value The value to inspect.
  30270. * @returns {string|symbol} Returns the key.
  30271. */
  30272. function toKey(value) {
  30273. if (typeof value == 'string' || isSymbol(value)) {
  30274. return value;
  30275. }
  30276. var result = (value + '');
  30277. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30278. }
  30279. /**
  30280. * Converts `func` to its source code.
  30281. *
  30282. * @private
  30283. * @param {Function} func The function to process.
  30284. * @returns {string} Returns the source code.
  30285. */
  30286. function toSource(func) {
  30287. if (func != null) {
  30288. try {
  30289. return funcToString.call(func);
  30290. } catch (e) {}
  30291. try {
  30292. return (func + '');
  30293. } catch (e) {}
  30294. }
  30295. return '';
  30296. }
  30297. /**
  30298. * Creates a function that memoizes the result of `func`. If `resolver` is
  30299. * provided, it determines the cache key for storing the result based on the
  30300. * arguments provided to the memoized function. By default, the first argument
  30301. * provided to the memoized function is used as the map cache key. The `func`
  30302. * is invoked with the `this` binding of the memoized function.
  30303. *
  30304. * **Note:** The cache is exposed as the `cache` property on the memoized
  30305. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  30306. * constructor with one whose instances implement the
  30307. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  30308. * method interface of `delete`, `get`, `has`, and `set`.
  30309. *
  30310. * @static
  30311. * @memberOf _
  30312. * @since 0.1.0
  30313. * @category Function
  30314. * @param {Function} func The function to have its output memoized.
  30315. * @param {Function} [resolver] The function to resolve the cache key.
  30316. * @returns {Function} Returns the new memoized function.
  30317. * @example
  30318. *
  30319. * var object = { 'a': 1, 'b': 2 };
  30320. * var other = { 'c': 3, 'd': 4 };
  30321. *
  30322. * var values = _.memoize(_.values);
  30323. * values(object);
  30324. * // => [1, 2]
  30325. *
  30326. * values(other);
  30327. * // => [3, 4]
  30328. *
  30329. * object.a = 2;
  30330. * values(object);
  30331. * // => [1, 2]
  30332. *
  30333. * // Modify the result cache.
  30334. * values.cache.set(object, ['a', 'b']);
  30335. * values(object);
  30336. * // => ['a', 'b']
  30337. *
  30338. * // Replace `_.memoize.Cache`.
  30339. * _.memoize.Cache = WeakMap;
  30340. */
  30341. function memoize(func, resolver) {
  30342. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  30343. throw new TypeError(FUNC_ERROR_TEXT);
  30344. }
  30345. var memoized = function() {
  30346. var args = arguments,
  30347. key = resolver ? resolver.apply(this, args) : args[0],
  30348. cache = memoized.cache;
  30349. if (cache.has(key)) {
  30350. return cache.get(key);
  30351. }
  30352. var result = func.apply(this, args);
  30353. memoized.cache = cache.set(key, result);
  30354. return result;
  30355. };
  30356. memoized.cache = new (memoize.Cache || MapCache);
  30357. return memoized;
  30358. }
  30359. // Assign cache to `_.memoize`.
  30360. memoize.Cache = MapCache;
  30361. /**
  30362. * Performs a
  30363. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30364. * comparison between two values to determine if they are equivalent.
  30365. *
  30366. * @static
  30367. * @memberOf _
  30368. * @since 4.0.0
  30369. * @category Lang
  30370. * @param {*} value The value to compare.
  30371. * @param {*} other The other value to compare.
  30372. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  30373. * @example
  30374. *
  30375. * var object = { 'a': 1 };
  30376. * var other = { 'a': 1 };
  30377. *
  30378. * _.eq(object, object);
  30379. * // => true
  30380. *
  30381. * _.eq(object, other);
  30382. * // => false
  30383. *
  30384. * _.eq('a', 'a');
  30385. * // => true
  30386. *
  30387. * _.eq('a', Object('a'));
  30388. * // => false
  30389. *
  30390. * _.eq(NaN, NaN);
  30391. * // => true
  30392. */
  30393. function eq(value, other) {
  30394. return value === other || (value !== value && other !== other);
  30395. }
  30396. /**
  30397. * Checks if `value` is classified as an `Array` object.
  30398. *
  30399. * @static
  30400. * @memberOf _
  30401. * @since 0.1.0
  30402. * @category Lang
  30403. * @param {*} value The value to check.
  30404. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  30405. * @example
  30406. *
  30407. * _.isArray([1, 2, 3]);
  30408. * // => true
  30409. *
  30410. * _.isArray(document.body.children);
  30411. * // => false
  30412. *
  30413. * _.isArray('abc');
  30414. * // => false
  30415. *
  30416. * _.isArray(_.noop);
  30417. * // => false
  30418. */
  30419. var isArray = Array.isArray;
  30420. /**
  30421. * Checks if `value` is classified as a `Function` object.
  30422. *
  30423. * @static
  30424. * @memberOf _
  30425. * @since 0.1.0
  30426. * @category Lang
  30427. * @param {*} value The value to check.
  30428. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  30429. * @example
  30430. *
  30431. * _.isFunction(_);
  30432. * // => true
  30433. *
  30434. * _.isFunction(/abc/);
  30435. * // => false
  30436. */
  30437. function isFunction(value) {
  30438. // The use of `Object#toString` avoids issues with the `typeof` operator
  30439. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  30440. var tag = isObject(value) ? objectToString.call(value) : '';
  30441. return tag == funcTag || tag == genTag;
  30442. }
  30443. /**
  30444. * Checks if `value` is the
  30445. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  30446. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  30447. *
  30448. * @static
  30449. * @memberOf _
  30450. * @since 0.1.0
  30451. * @category Lang
  30452. * @param {*} value The value to check.
  30453. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  30454. * @example
  30455. *
  30456. * _.isObject({});
  30457. * // => true
  30458. *
  30459. * _.isObject([1, 2, 3]);
  30460. * // => true
  30461. *
  30462. * _.isObject(_.noop);
  30463. * // => true
  30464. *
  30465. * _.isObject(null);
  30466. * // => false
  30467. */
  30468. function isObject(value) {
  30469. var type = typeof value;
  30470. return !!value && (type == 'object' || type == 'function');
  30471. }
  30472. /**
  30473. * Checks if `value` is object-like. A value is object-like if it's not `null`
  30474. * and has a `typeof` result of "object".
  30475. *
  30476. * @static
  30477. * @memberOf _
  30478. * @since 4.0.0
  30479. * @category Lang
  30480. * @param {*} value The value to check.
  30481. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  30482. * @example
  30483. *
  30484. * _.isObjectLike({});
  30485. * // => true
  30486. *
  30487. * _.isObjectLike([1, 2, 3]);
  30488. * // => true
  30489. *
  30490. * _.isObjectLike(_.noop);
  30491. * // => false
  30492. *
  30493. * _.isObjectLike(null);
  30494. * // => false
  30495. */
  30496. function isObjectLike(value) {
  30497. return !!value && typeof value == 'object';
  30498. }
  30499. /**
  30500. * Checks if `value` is classified as a `Symbol` primitive or object.
  30501. *
  30502. * @static
  30503. * @memberOf _
  30504. * @since 4.0.0
  30505. * @category Lang
  30506. * @param {*} value The value to check.
  30507. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  30508. * @example
  30509. *
  30510. * _.isSymbol(Symbol.iterator);
  30511. * // => true
  30512. *
  30513. * _.isSymbol('abc');
  30514. * // => false
  30515. */
  30516. function isSymbol(value) {
  30517. return typeof value == 'symbol' ||
  30518. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  30519. }
  30520. /**
  30521. * Converts `value` to a string. An empty string is returned for `null`
  30522. * and `undefined` values. The sign of `-0` is preserved.
  30523. *
  30524. * @static
  30525. * @memberOf _
  30526. * @since 4.0.0
  30527. * @category Lang
  30528. * @param {*} value The value to process.
  30529. * @returns {string} Returns the string.
  30530. * @example
  30531. *
  30532. * _.toString(null);
  30533. * // => ''
  30534. *
  30535. * _.toString(-0);
  30536. * // => '-0'
  30537. *
  30538. * _.toString([1, 2, 3]);
  30539. * // => '1,2,3'
  30540. */
  30541. function toString(value) {
  30542. return value == null ? '' : baseToString(value);
  30543. }
  30544. /**
  30545. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  30546. * it's created. Arrays are created for missing index properties while objects
  30547. * are created for all other missing properties. Use `_.setWith` to customize
  30548. * `path` creation.
  30549. *
  30550. * **Note:** This method mutates `object`.
  30551. *
  30552. * @static
  30553. * @memberOf _
  30554. * @since 3.7.0
  30555. * @category Object
  30556. * @param {Object} object The object to modify.
  30557. * @param {Array|string} path The path of the property to set.
  30558. * @param {*} value The value to set.
  30559. * @returns {Object} Returns `object`.
  30560. * @example
  30561. *
  30562. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  30563. *
  30564. * _.set(object, 'a[0].b.c', 4);
  30565. * console.log(object.a[0].b.c);
  30566. * // => 4
  30567. *
  30568. * _.set(object, ['x', '0', 'y', 'z'], 5);
  30569. * console.log(object.x[0].y.z);
  30570. * // => 5
  30571. */
  30572. function set(object, path, value) {
  30573. return object == null ? object : baseSet(object, path, value);
  30574. }
  30575. module.exports = set;
  30576. /***/ }),
  30577. /***/ 897:
  30578. /***/ (function(module, __unusedexports, __webpack_require__) {
  30579. "use strict";
  30580. var getSideChannel = __webpack_require__(701);
  30581. var utils = __webpack_require__(581);
  30582. var formats = __webpack_require__(13);
  30583. var has = Object.prototype.hasOwnProperty;
  30584. var arrayPrefixGenerators = {
  30585. brackets: function brackets(prefix) {
  30586. return prefix + '[]';
  30587. },
  30588. comma: 'comma',
  30589. indices: function indices(prefix, key) {
  30590. return prefix + '[' + key + ']';
  30591. },
  30592. repeat: function repeat(prefix) {
  30593. return prefix;
  30594. }
  30595. };
  30596. var isArray = Array.isArray;
  30597. var push = Array.prototype.push;
  30598. var pushToArray = function (arr, valueOrArray) {
  30599. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  30600. };
  30601. var toISO = Date.prototype.toISOString;
  30602. var defaultFormat = formats['default'];
  30603. var defaults = {
  30604. addQueryPrefix: false,
  30605. allowDots: false,
  30606. charset: 'utf-8',
  30607. charsetSentinel: false,
  30608. delimiter: '&',
  30609. encode: true,
  30610. encoder: utils.encode,
  30611. encodeValuesOnly: false,
  30612. format: defaultFormat,
  30613. formatter: formats.formatters[defaultFormat],
  30614. // deprecated
  30615. indices: false,
  30616. serializeDate: function serializeDate(date) {
  30617. return toISO.call(date);
  30618. },
  30619. skipNulls: false,
  30620. strictNullHandling: false
  30621. };
  30622. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  30623. return typeof v === 'string'
  30624. || typeof v === 'number'
  30625. || typeof v === 'boolean'
  30626. || typeof v === 'symbol'
  30627. || typeof v === 'bigint';
  30628. };
  30629. var stringify = function stringify(
  30630. object,
  30631. prefix,
  30632. generateArrayPrefix,
  30633. strictNullHandling,
  30634. skipNulls,
  30635. encoder,
  30636. filter,
  30637. sort,
  30638. allowDots,
  30639. serializeDate,
  30640. format,
  30641. formatter,
  30642. encodeValuesOnly,
  30643. charset,
  30644. sideChannel
  30645. ) {
  30646. var obj = object;
  30647. if (sideChannel.has(object)) {
  30648. throw new RangeError('Cyclic object value');
  30649. }
  30650. if (typeof filter === 'function') {
  30651. obj = filter(prefix, obj);
  30652. } else if (obj instanceof Date) {
  30653. obj = serializeDate(obj);
  30654. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  30655. obj = utils.maybeMap(obj, function (value) {
  30656. if (value instanceof Date) {
  30657. return serializeDate(value);
  30658. }
  30659. return value;
  30660. });
  30661. }
  30662. if (obj === null) {
  30663. if (strictNullHandling) {
  30664. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  30665. }
  30666. obj = '';
  30667. }
  30668. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  30669. if (encoder) {
  30670. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  30671. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  30672. }
  30673. return [formatter(prefix) + '=' + formatter(String(obj))];
  30674. }
  30675. var values = [];
  30676. if (typeof obj === 'undefined') {
  30677. return values;
  30678. }
  30679. var objKeys;
  30680. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  30681. // we need to join elements in
  30682. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
  30683. } else if (isArray(filter)) {
  30684. objKeys = filter;
  30685. } else {
  30686. var keys = Object.keys(obj);
  30687. objKeys = sort ? keys.sort(sort) : keys;
  30688. }
  30689. for (var i = 0; i < objKeys.length; ++i) {
  30690. var key = objKeys[i];
  30691. var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
  30692. if (skipNulls && value === null) {
  30693. continue;
  30694. }
  30695. var keyPrefix = isArray(obj)
  30696. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
  30697. : prefix + (allowDots ? '.' + key : '[' + key + ']');
  30698. sideChannel.set(object, true);
  30699. var valueSideChannel = getSideChannel();
  30700. pushToArray(values, stringify(
  30701. value,
  30702. keyPrefix,
  30703. generateArrayPrefix,
  30704. strictNullHandling,
  30705. skipNulls,
  30706. encoder,
  30707. filter,
  30708. sort,
  30709. allowDots,
  30710. serializeDate,
  30711. format,
  30712. formatter,
  30713. encodeValuesOnly,
  30714. charset,
  30715. valueSideChannel
  30716. ));
  30717. }
  30718. return values;
  30719. };
  30720. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  30721. if (!opts) {
  30722. return defaults;
  30723. }
  30724. if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
  30725. throw new TypeError('Encoder has to be a function.');
  30726. }
  30727. var charset = opts.charset || defaults.charset;
  30728. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  30729. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  30730. }
  30731. var format = formats['default'];
  30732. if (typeof opts.format !== 'undefined') {
  30733. if (!has.call(formats.formatters, opts.format)) {
  30734. throw new TypeError('Unknown format option provided.');
  30735. }
  30736. format = opts.format;
  30737. }
  30738. var formatter = formats.formatters[format];
  30739. var filter = defaults.filter;
  30740. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  30741. filter = opts.filter;
  30742. }
  30743. return {
  30744. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  30745. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  30746. charset: charset,
  30747. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  30748. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  30749. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  30750. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  30751. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  30752. filter: filter,
  30753. format: format,
  30754. formatter: formatter,
  30755. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  30756. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  30757. sort: typeof opts.sort === 'function' ? opts.sort : null,
  30758. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  30759. };
  30760. };
  30761. module.exports = function (object, opts) {
  30762. var obj = object;
  30763. var options = normalizeStringifyOptions(opts);
  30764. var objKeys;
  30765. var filter;
  30766. if (typeof options.filter === 'function') {
  30767. filter = options.filter;
  30768. obj = filter('', obj);
  30769. } else if (isArray(options.filter)) {
  30770. filter = options.filter;
  30771. objKeys = filter;
  30772. }
  30773. var keys = [];
  30774. if (typeof obj !== 'object' || obj === null) {
  30775. return '';
  30776. }
  30777. var arrayFormat;
  30778. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  30779. arrayFormat = opts.arrayFormat;
  30780. } else if (opts && 'indices' in opts) {
  30781. arrayFormat = opts.indices ? 'indices' : 'repeat';
  30782. } else {
  30783. arrayFormat = 'indices';
  30784. }
  30785. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  30786. if (!objKeys) {
  30787. objKeys = Object.keys(obj);
  30788. }
  30789. if (options.sort) {
  30790. objKeys.sort(options.sort);
  30791. }
  30792. var sideChannel = getSideChannel();
  30793. for (var i = 0; i < objKeys.length; ++i) {
  30794. var key = objKeys[i];
  30795. if (options.skipNulls && obj[key] === null) {
  30796. continue;
  30797. }
  30798. pushToArray(keys, stringify(
  30799. obj[key],
  30800. key,
  30801. generateArrayPrefix,
  30802. options.strictNullHandling,
  30803. options.skipNulls,
  30804. options.encode ? options.encoder : null,
  30805. options.filter,
  30806. options.sort,
  30807. options.allowDots,
  30808. options.serializeDate,
  30809. options.format,
  30810. options.formatter,
  30811. options.encodeValuesOnly,
  30812. options.charset,
  30813. sideChannel
  30814. ));
  30815. }
  30816. var joined = keys.join(options.delimiter);
  30817. var prefix = options.addQueryPrefix === true ? '?' : '';
  30818. if (options.charsetSentinel) {
  30819. if (options.charset === 'iso-8859-1') {
  30820. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  30821. prefix += 'utf8=%26%2310003%3B&';
  30822. } else {
  30823. // encodeURIComponent('✓')
  30824. prefix += 'utf8=%E2%9C%93&';
  30825. }
  30826. }
  30827. return joined.length > 0 ? prefix + joined : '';
  30828. };
  30829. /***/ }),
  30830. /***/ 898:
  30831. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  30832. "use strict";
  30833. Object.defineProperty(exports, '__esModule', { value: true });
  30834. var request = __webpack_require__(753);
  30835. var universalUserAgent = __webpack_require__(796);
  30836. const VERSION = "4.3.1";
  30837. class GraphqlError extends Error {
  30838. constructor(request, response) {
  30839. const message = response.data.errors[0].message;
  30840. super(message);
  30841. Object.assign(this, response.data);
  30842. this.name = "GraphqlError";
  30843. this.request = request; // Maintains proper stack trace (only available on V8)
  30844. /* istanbul ignore next */
  30845. if (Error.captureStackTrace) {
  30846. Error.captureStackTrace(this, this.constructor);
  30847. }
  30848. }
  30849. }
  30850. const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
  30851. function graphql(request, query, options) {
  30852. options = typeof query === "string" ? options = Object.assign({
  30853. query
  30854. }, options) : options = query;
  30855. const requestOptions = Object.keys(options).reduce((result, key) => {
  30856. if (NON_VARIABLE_OPTIONS.includes(key)) {
  30857. result[key] = options[key];
  30858. return result;
  30859. }
  30860. if (!result.variables) {
  30861. result.variables = {};
  30862. }
  30863. result.variables[key] = options[key];
  30864. return result;
  30865. }, {});
  30866. return request(requestOptions).then(response => {
  30867. if (response.data.errors) {
  30868. throw new GraphqlError(requestOptions, {
  30869. data: response.data
  30870. });
  30871. }
  30872. return response.data.data;
  30873. });
  30874. }
  30875. function withDefaults(request$1, newDefaults) {
  30876. const newRequest = request$1.defaults(newDefaults);
  30877. const newApi = (query, options) => {
  30878. return graphql(newRequest, query, options);
  30879. };
  30880. return Object.assign(newApi, {
  30881. defaults: withDefaults.bind(null, newRequest),
  30882. endpoint: request.request.endpoint
  30883. });
  30884. }
  30885. const graphql$1 = withDefaults(request.request, {
  30886. headers: {
  30887. "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  30888. },
  30889. method: "POST",
  30890. url: "/graphql"
  30891. });
  30892. function withCustomRequest(customRequest) {
  30893. return withDefaults(customRequest, {
  30894. method: "POST",
  30895. url: "/graphql"
  30896. });
  30897. }
  30898. exports.graphql = graphql$1;
  30899. exports.withCustomRequest = withCustomRequest;
  30900. //# sourceMappingURL=index.js.map
  30901. /***/ }),
  30902. /***/ 915:
  30903. /***/ (function(module, __unusedexports, __webpack_require__) {
  30904. "use strict";
  30905. var undefined;
  30906. var $SyntaxError = SyntaxError;
  30907. var $Function = Function;
  30908. var $TypeError = TypeError;
  30909. // eslint-disable-next-line consistent-return
  30910. var getEvalledConstructor = function (expressionSyntax) {
  30911. try {
  30912. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  30913. } catch (e) {}
  30914. };
  30915. var $gOPD = Object.getOwnPropertyDescriptor;
  30916. if ($gOPD) {
  30917. try {
  30918. $gOPD({}, '');
  30919. } catch (e) {
  30920. $gOPD = null; // this is IE 8, which has a broken gOPD
  30921. }
  30922. }
  30923. var throwTypeError = function () {
  30924. throw new $TypeError();
  30925. };
  30926. var ThrowTypeError = $gOPD
  30927. ? (function () {
  30928. try {
  30929. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  30930. arguments.callee; // IE 8 does not throw here
  30931. return throwTypeError;
  30932. } catch (calleeThrows) {
  30933. try {
  30934. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  30935. return $gOPD(arguments, 'callee').get;
  30936. } catch (gOPDthrows) {
  30937. return throwTypeError;
  30938. }
  30939. }
  30940. }())
  30941. : throwTypeError;
  30942. var hasSymbols = __webpack_require__(277)();
  30943. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  30944. var needsEval = {};
  30945. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  30946. var INTRINSICS = {
  30947. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  30948. '%Array%': Array,
  30949. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  30950. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  30951. '%AsyncFromSyncIteratorPrototype%': undefined,
  30952. '%AsyncFunction%': needsEval,
  30953. '%AsyncGenerator%': needsEval,
  30954. '%AsyncGeneratorFunction%': needsEval,
  30955. '%AsyncIteratorPrototype%': needsEval,
  30956. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  30957. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  30958. '%Boolean%': Boolean,
  30959. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  30960. '%Date%': Date,
  30961. '%decodeURI%': decodeURI,
  30962. '%decodeURIComponent%': decodeURIComponent,
  30963. '%encodeURI%': encodeURI,
  30964. '%encodeURIComponent%': encodeURIComponent,
  30965. '%Error%': Error,
  30966. '%eval%': eval, // eslint-disable-line no-eval
  30967. '%EvalError%': EvalError,
  30968. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  30969. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  30970. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  30971. '%Function%': $Function,
  30972. '%GeneratorFunction%': needsEval,
  30973. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  30974. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  30975. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  30976. '%isFinite%': isFinite,
  30977. '%isNaN%': isNaN,
  30978. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  30979. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  30980. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  30981. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  30982. '%Math%': Math,
  30983. '%Number%': Number,
  30984. '%Object%': Object,
  30985. '%parseFloat%': parseFloat,
  30986. '%parseInt%': parseInt,
  30987. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  30988. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  30989. '%RangeError%': RangeError,
  30990. '%ReferenceError%': ReferenceError,
  30991. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  30992. '%RegExp%': RegExp,
  30993. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  30994. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  30995. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  30996. '%String%': String,
  30997. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  30998. '%Symbol%': hasSymbols ? Symbol : undefined,
  30999. '%SyntaxError%': $SyntaxError,
  31000. '%ThrowTypeError%': ThrowTypeError,
  31001. '%TypedArray%': TypedArray,
  31002. '%TypeError%': $TypeError,
  31003. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  31004. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  31005. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  31006. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  31007. '%URIError%': URIError,
  31008. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  31009. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  31010. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  31011. };
  31012. var doEval = function doEval(name) {
  31013. var value;
  31014. if (name === '%AsyncFunction%') {
  31015. value = getEvalledConstructor('async function () {}');
  31016. } else if (name === '%GeneratorFunction%') {
  31017. value = getEvalledConstructor('function* () {}');
  31018. } else if (name === '%AsyncGeneratorFunction%') {
  31019. value = getEvalledConstructor('async function* () {}');
  31020. } else if (name === '%AsyncGenerator%') {
  31021. var fn = doEval('%AsyncGeneratorFunction%');
  31022. if (fn) {
  31023. value = fn.prototype;
  31024. }
  31025. } else if (name === '%AsyncIteratorPrototype%') {
  31026. var gen = doEval('%AsyncGenerator%');
  31027. if (gen) {
  31028. value = getProto(gen.prototype);
  31029. }
  31030. }
  31031. INTRINSICS[name] = value;
  31032. return value;
  31033. };
  31034. var LEGACY_ALIASES = {
  31035. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  31036. '%ArrayPrototype%': ['Array', 'prototype'],
  31037. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  31038. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  31039. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  31040. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  31041. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  31042. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  31043. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  31044. '%BooleanPrototype%': ['Boolean', 'prototype'],
  31045. '%DataViewPrototype%': ['DataView', 'prototype'],
  31046. '%DatePrototype%': ['Date', 'prototype'],
  31047. '%ErrorPrototype%': ['Error', 'prototype'],
  31048. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  31049. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  31050. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  31051. '%FunctionPrototype%': ['Function', 'prototype'],
  31052. '%Generator%': ['GeneratorFunction', 'prototype'],
  31053. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  31054. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  31055. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  31056. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  31057. '%JSONParse%': ['JSON', 'parse'],
  31058. '%JSONStringify%': ['JSON', 'stringify'],
  31059. '%MapPrototype%': ['Map', 'prototype'],
  31060. '%NumberPrototype%': ['Number', 'prototype'],
  31061. '%ObjectPrototype%': ['Object', 'prototype'],
  31062. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  31063. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  31064. '%PromisePrototype%': ['Promise', 'prototype'],
  31065. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  31066. '%Promise_all%': ['Promise', 'all'],
  31067. '%Promise_reject%': ['Promise', 'reject'],
  31068. '%Promise_resolve%': ['Promise', 'resolve'],
  31069. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  31070. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  31071. '%RegExpPrototype%': ['RegExp', 'prototype'],
  31072. '%SetPrototype%': ['Set', 'prototype'],
  31073. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  31074. '%StringPrototype%': ['String', 'prototype'],
  31075. '%SymbolPrototype%': ['Symbol', 'prototype'],
  31076. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  31077. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  31078. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  31079. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  31080. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  31081. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  31082. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  31083. '%URIErrorPrototype%': ['URIError', 'prototype'],
  31084. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  31085. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  31086. };
  31087. var bind = __webpack_require__(739);
  31088. var hasOwn = __webpack_require__(174);
  31089. var $concat = bind.call(Function.call, Array.prototype.concat);
  31090. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  31091. var $replace = bind.call(Function.call, String.prototype.replace);
  31092. var $strSlice = bind.call(Function.call, String.prototype.slice);
  31093. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  31094. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  31095. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  31096. var stringToPath = function stringToPath(string) {
  31097. var first = $strSlice(string, 0, 1);
  31098. var last = $strSlice(string, -1);
  31099. if (first === '%' && last !== '%') {
  31100. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  31101. } else if (last === '%' && first !== '%') {
  31102. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  31103. }
  31104. var result = [];
  31105. $replace(string, rePropName, function (match, number, quote, subString) {
  31106. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  31107. });
  31108. return result;
  31109. };
  31110. /* end adaptation */
  31111. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  31112. var intrinsicName = name;
  31113. var alias;
  31114. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  31115. alias = LEGACY_ALIASES[intrinsicName];
  31116. intrinsicName = '%' + alias[0] + '%';
  31117. }
  31118. if (hasOwn(INTRINSICS, intrinsicName)) {
  31119. var value = INTRINSICS[intrinsicName];
  31120. if (value === needsEval) {
  31121. value = doEval(intrinsicName);
  31122. }
  31123. if (typeof value === 'undefined' && !allowMissing) {
  31124. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  31125. }
  31126. return {
  31127. alias: alias,
  31128. name: intrinsicName,
  31129. value: value
  31130. };
  31131. }
  31132. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  31133. };
  31134. module.exports = function GetIntrinsic(name, allowMissing) {
  31135. if (typeof name !== 'string' || name.length === 0) {
  31136. throw new $TypeError('intrinsic name must be a non-empty string');
  31137. }
  31138. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  31139. throw new $TypeError('"allowMissing" argument must be a boolean');
  31140. }
  31141. var parts = stringToPath(name);
  31142. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  31143. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  31144. var intrinsicRealName = intrinsic.name;
  31145. var value = intrinsic.value;
  31146. var skipFurtherCaching = false;
  31147. var alias = intrinsic.alias;
  31148. if (alias) {
  31149. intrinsicBaseName = alias[0];
  31150. $spliceApply(parts, $concat([0, 1], alias));
  31151. }
  31152. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  31153. var part = parts[i];
  31154. var first = $strSlice(part, 0, 1);
  31155. var last = $strSlice(part, -1);
  31156. if (
  31157. (
  31158. (first === '"' || first === "'" || first === '`')
  31159. || (last === '"' || last === "'" || last === '`')
  31160. )
  31161. && first !== last
  31162. ) {
  31163. throw new $SyntaxError('property names with quotes must have matching quotes');
  31164. }
  31165. if (part === 'constructor' || !isOwn) {
  31166. skipFurtherCaching = true;
  31167. }
  31168. intrinsicBaseName += '.' + part;
  31169. intrinsicRealName = '%' + intrinsicBaseName + '%';
  31170. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  31171. value = INTRINSICS[intrinsicRealName];
  31172. } else if (value != null) {
  31173. if (!(part in value)) {
  31174. if (!allowMissing) {
  31175. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  31176. }
  31177. return void undefined;
  31178. }
  31179. if ($gOPD && (i + 1) >= parts.length) {
  31180. var desc = $gOPD(value, part);
  31181. isOwn = !!desc;
  31182. // By convention, when a data property is converted to an accessor
  31183. // property to emulate a data property that does not suffer from
  31184. // the override mistake, that accessor's getter is marked with
  31185. // an `originalValue` property. Here, when we detect this, we
  31186. // uphold the illusion by pretending to see that original data
  31187. // property, i.e., returning the value rather than the getter
  31188. // itself.
  31189. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  31190. value = desc.get;
  31191. } else {
  31192. value = value[part];
  31193. }
  31194. } else {
  31195. isOwn = hasOwn(value, part);
  31196. value = value[part];
  31197. }
  31198. if (isOwn && !skipFurtherCaching) {
  31199. INTRINSICS[intrinsicRealName] = value;
  31200. }
  31201. }
  31202. }
  31203. return value;
  31204. };
  31205. /***/ }),
  31206. /***/ 916:
  31207. /***/ (function(__unusedmodule, exports) {
  31208. "use strict";
  31209. Object.defineProperty(exports, '__esModule', { value: true });
  31210. const VERSION = "1.0.0";
  31211. /**
  31212. * @param octokit Octokit instance
  31213. * @param options Options passed to Octokit constructor
  31214. */
  31215. function requestLog(octokit) {
  31216. octokit.hook.wrap("request", (request, options) => {
  31217. octokit.log.debug("request", options);
  31218. const start = Date.now();
  31219. const requestOptions = octokit.request.endpoint.parse(options);
  31220. const path = requestOptions.url.replace(options.baseUrl, "");
  31221. return request(options).then(response => {
  31222. octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
  31223. return response;
  31224. }).catch(error => {
  31225. octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
  31226. throw error;
  31227. });
  31228. });
  31229. }
  31230. requestLog.VERSION = VERSION;
  31231. exports.requestLog = requestLog;
  31232. //# sourceMappingURL=index.js.map
  31233. /***/ }),
  31234. /***/ 923:
  31235. /***/ (function(module) {
  31236. "use strict";
  31237. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  31238. module.exports = function hasSymbols() {
  31239. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  31240. if (typeof Symbol.iterator === 'symbol') { return true; }
  31241. var obj = {};
  31242. var sym = Symbol('test');
  31243. var symObj = Object(sym);
  31244. if (typeof sym === 'string') { return false; }
  31245. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  31246. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  31247. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  31248. // if (sym instanceof Symbol) { return false; }
  31249. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  31250. // if (!(symObj instanceof Symbol)) { return false; }
  31251. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  31252. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  31253. var symVal = 42;
  31254. obj[sym] = symVal;
  31255. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  31256. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  31257. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  31258. var syms = Object.getOwnPropertySymbols(obj);
  31259. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  31260. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  31261. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  31262. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  31263. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  31264. }
  31265. return true;
  31266. };
  31267. /***/ }),
  31268. /***/ 929:
  31269. /***/ (function(module, __unusedexports, __webpack_require__) {
  31270. module.exports = hasNextPage
  31271. const deprecate = __webpack_require__(370)
  31272. const getPageLinks = __webpack_require__(577)
  31273. function hasNextPage (link) {
  31274. deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  31275. return getPageLinks(link).next
  31276. }
  31277. /***/ }),
  31278. /***/ 936:
  31279. /***/ (function(module, __unusedexports, __webpack_require__) {
  31280. "use strict";
  31281. const punycode = __webpack_require__(213);
  31282. const tr46 = __webpack_require__(976);
  31283. const specialSchemes = {
  31284. ftp: 21,
  31285. file: null,
  31286. gopher: 70,
  31287. http: 80,
  31288. https: 443,
  31289. ws: 80,
  31290. wss: 443
  31291. };
  31292. const failure = Symbol("failure");
  31293. function countSymbols(str) {
  31294. return punycode.ucs2.decode(str).length;
  31295. }
  31296. function at(input, idx) {
  31297. const c = input[idx];
  31298. return isNaN(c) ? undefined : String.fromCodePoint(c);
  31299. }
  31300. function isASCIIDigit(c) {
  31301. return c >= 0x30 && c <= 0x39;
  31302. }
  31303. function isASCIIAlpha(c) {
  31304. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  31305. }
  31306. function isASCIIAlphanumeric(c) {
  31307. return isASCIIAlpha(c) || isASCIIDigit(c);
  31308. }
  31309. function isASCIIHex(c) {
  31310. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  31311. }
  31312. function isSingleDot(buffer) {
  31313. return buffer === "." || buffer.toLowerCase() === "%2e";
  31314. }
  31315. function isDoubleDot(buffer) {
  31316. buffer = buffer.toLowerCase();
  31317. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  31318. }
  31319. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  31320. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  31321. }
  31322. function isWindowsDriveLetterString(string) {
  31323. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  31324. }
  31325. function isNormalizedWindowsDriveLetterString(string) {
  31326. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  31327. }
  31328. function containsForbiddenHostCodePoint(string) {
  31329. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  31330. }
  31331. function containsForbiddenHostCodePointExcludingPercent(string) {
  31332. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  31333. }
  31334. function isSpecialScheme(scheme) {
  31335. return specialSchemes[scheme] !== undefined;
  31336. }
  31337. function isSpecial(url) {
  31338. return isSpecialScheme(url.scheme);
  31339. }
  31340. function defaultPort(scheme) {
  31341. return specialSchemes[scheme];
  31342. }
  31343. function percentEncode(c) {
  31344. let hex = c.toString(16).toUpperCase();
  31345. if (hex.length === 1) {
  31346. hex = "0" + hex;
  31347. }
  31348. return "%" + hex;
  31349. }
  31350. function utf8PercentEncode(c) {
  31351. const buf = new Buffer(c);
  31352. let str = "";
  31353. for (let i = 0; i < buf.length; ++i) {
  31354. str += percentEncode(buf[i]);
  31355. }
  31356. return str;
  31357. }
  31358. function utf8PercentDecode(str) {
  31359. const input = new Buffer(str);
  31360. const output = [];
  31361. for (let i = 0; i < input.length; ++i) {
  31362. if (input[i] !== 37) {
  31363. output.push(input[i]);
  31364. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  31365. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  31366. i += 2;
  31367. } else {
  31368. output.push(input[i]);
  31369. }
  31370. }
  31371. return new Buffer(output).toString();
  31372. }
  31373. function isC0ControlPercentEncode(c) {
  31374. return c <= 0x1F || c > 0x7E;
  31375. }
  31376. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  31377. function isPathPercentEncode(c) {
  31378. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  31379. }
  31380. const extraUserinfoPercentEncodeSet =
  31381. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  31382. function isUserinfoPercentEncode(c) {
  31383. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  31384. }
  31385. function percentEncodeChar(c, encodeSetPredicate) {
  31386. const cStr = String.fromCodePoint(c);
  31387. if (encodeSetPredicate(c)) {
  31388. return utf8PercentEncode(cStr);
  31389. }
  31390. return cStr;
  31391. }
  31392. function parseIPv4Number(input) {
  31393. let R = 10;
  31394. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  31395. input = input.substring(2);
  31396. R = 16;
  31397. } else if (input.length >= 2 && input.charAt(0) === "0") {
  31398. input = input.substring(1);
  31399. R = 8;
  31400. }
  31401. if (input === "") {
  31402. return 0;
  31403. }
  31404. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  31405. if (regex.test(input)) {
  31406. return failure;
  31407. }
  31408. return parseInt(input, R);
  31409. }
  31410. function parseIPv4(input) {
  31411. const parts = input.split(".");
  31412. if (parts[parts.length - 1] === "") {
  31413. if (parts.length > 1) {
  31414. parts.pop();
  31415. }
  31416. }
  31417. if (parts.length > 4) {
  31418. return input;
  31419. }
  31420. const numbers = [];
  31421. for (const part of parts) {
  31422. if (part === "") {
  31423. return input;
  31424. }
  31425. const n = parseIPv4Number(part);
  31426. if (n === failure) {
  31427. return input;
  31428. }
  31429. numbers.push(n);
  31430. }
  31431. for (let i = 0; i < numbers.length - 1; ++i) {
  31432. if (numbers[i] > 255) {
  31433. return failure;
  31434. }
  31435. }
  31436. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  31437. return failure;
  31438. }
  31439. let ipv4 = numbers.pop();
  31440. let counter = 0;
  31441. for (const n of numbers) {
  31442. ipv4 += n * Math.pow(256, 3 - counter);
  31443. ++counter;
  31444. }
  31445. return ipv4;
  31446. }
  31447. function serializeIPv4(address) {
  31448. let output = "";
  31449. let n = address;
  31450. for (let i = 1; i <= 4; ++i) {
  31451. output = String(n % 256) + output;
  31452. if (i !== 4) {
  31453. output = "." + output;
  31454. }
  31455. n = Math.floor(n / 256);
  31456. }
  31457. return output;
  31458. }
  31459. function parseIPv6(input) {
  31460. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  31461. let pieceIndex = 0;
  31462. let compress = null;
  31463. let pointer = 0;
  31464. input = punycode.ucs2.decode(input);
  31465. if (input[pointer] === 58) {
  31466. if (input[pointer + 1] !== 58) {
  31467. return failure;
  31468. }
  31469. pointer += 2;
  31470. ++pieceIndex;
  31471. compress = pieceIndex;
  31472. }
  31473. while (pointer < input.length) {
  31474. if (pieceIndex === 8) {
  31475. return failure;
  31476. }
  31477. if (input[pointer] === 58) {
  31478. if (compress !== null) {
  31479. return failure;
  31480. }
  31481. ++pointer;
  31482. ++pieceIndex;
  31483. compress = pieceIndex;
  31484. continue;
  31485. }
  31486. let value = 0;
  31487. let length = 0;
  31488. while (length < 4 && isASCIIHex(input[pointer])) {
  31489. value = value * 0x10 + parseInt(at(input, pointer), 16);
  31490. ++pointer;
  31491. ++length;
  31492. }
  31493. if (input[pointer] === 46) {
  31494. if (length === 0) {
  31495. return failure;
  31496. }
  31497. pointer -= length;
  31498. if (pieceIndex > 6) {
  31499. return failure;
  31500. }
  31501. let numbersSeen = 0;
  31502. while (input[pointer] !== undefined) {
  31503. let ipv4Piece = null;
  31504. if (numbersSeen > 0) {
  31505. if (input[pointer] === 46 && numbersSeen < 4) {
  31506. ++pointer;
  31507. } else {
  31508. return failure;
  31509. }
  31510. }
  31511. if (!isASCIIDigit(input[pointer])) {
  31512. return failure;
  31513. }
  31514. while (isASCIIDigit(input[pointer])) {
  31515. const number = parseInt(at(input, pointer));
  31516. if (ipv4Piece === null) {
  31517. ipv4Piece = number;
  31518. } else if (ipv4Piece === 0) {
  31519. return failure;
  31520. } else {
  31521. ipv4Piece = ipv4Piece * 10 + number;
  31522. }
  31523. if (ipv4Piece > 255) {
  31524. return failure;
  31525. }
  31526. ++pointer;
  31527. }
  31528. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  31529. ++numbersSeen;
  31530. if (numbersSeen === 2 || numbersSeen === 4) {
  31531. ++pieceIndex;
  31532. }
  31533. }
  31534. if (numbersSeen !== 4) {
  31535. return failure;
  31536. }
  31537. break;
  31538. } else if (input[pointer] === 58) {
  31539. ++pointer;
  31540. if (input[pointer] === undefined) {
  31541. return failure;
  31542. }
  31543. } else if (input[pointer] !== undefined) {
  31544. return failure;
  31545. }
  31546. address[pieceIndex] = value;
  31547. ++pieceIndex;
  31548. }
  31549. if (compress !== null) {
  31550. let swaps = pieceIndex - compress;
  31551. pieceIndex = 7;
  31552. while (pieceIndex !== 0 && swaps > 0) {
  31553. const temp = address[compress + swaps - 1];
  31554. address[compress + swaps - 1] = address[pieceIndex];
  31555. address[pieceIndex] = temp;
  31556. --pieceIndex;
  31557. --swaps;
  31558. }
  31559. } else if (compress === null && pieceIndex !== 8) {
  31560. return failure;
  31561. }
  31562. return address;
  31563. }
  31564. function serializeIPv6(address) {
  31565. let output = "";
  31566. const seqResult = findLongestZeroSequence(address);
  31567. const compress = seqResult.idx;
  31568. let ignore0 = false;
  31569. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  31570. if (ignore0 && address[pieceIndex] === 0) {
  31571. continue;
  31572. } else if (ignore0) {
  31573. ignore0 = false;
  31574. }
  31575. if (compress === pieceIndex) {
  31576. const separator = pieceIndex === 0 ? "::" : ":";
  31577. output += separator;
  31578. ignore0 = true;
  31579. continue;
  31580. }
  31581. output += address[pieceIndex].toString(16);
  31582. if (pieceIndex !== 7) {
  31583. output += ":";
  31584. }
  31585. }
  31586. return output;
  31587. }
  31588. function parseHost(input, isSpecialArg) {
  31589. if (input[0] === "[") {
  31590. if (input[input.length - 1] !== "]") {
  31591. return failure;
  31592. }
  31593. return parseIPv6(input.substring(1, input.length - 1));
  31594. }
  31595. if (!isSpecialArg) {
  31596. return parseOpaqueHost(input);
  31597. }
  31598. const domain = utf8PercentDecode(input);
  31599. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  31600. if (asciiDomain === null) {
  31601. return failure;
  31602. }
  31603. if (containsForbiddenHostCodePoint(asciiDomain)) {
  31604. return failure;
  31605. }
  31606. const ipv4Host = parseIPv4(asciiDomain);
  31607. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  31608. return ipv4Host;
  31609. }
  31610. return asciiDomain;
  31611. }
  31612. function parseOpaqueHost(input) {
  31613. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  31614. return failure;
  31615. }
  31616. let output = "";
  31617. const decoded = punycode.ucs2.decode(input);
  31618. for (let i = 0; i < decoded.length; ++i) {
  31619. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  31620. }
  31621. return output;
  31622. }
  31623. function findLongestZeroSequence(arr) {
  31624. let maxIdx = null;
  31625. let maxLen = 1; // only find elements > 1
  31626. let currStart = null;
  31627. let currLen = 0;
  31628. for (let i = 0; i < arr.length; ++i) {
  31629. if (arr[i] !== 0) {
  31630. if (currLen > maxLen) {
  31631. maxIdx = currStart;
  31632. maxLen = currLen;
  31633. }
  31634. currStart = null;
  31635. currLen = 0;
  31636. } else {
  31637. if (currStart === null) {
  31638. currStart = i;
  31639. }
  31640. ++currLen;
  31641. }
  31642. }
  31643. // if trailing zeros
  31644. if (currLen > maxLen) {
  31645. maxIdx = currStart;
  31646. maxLen = currLen;
  31647. }
  31648. return {
  31649. idx: maxIdx,
  31650. len: maxLen
  31651. };
  31652. }
  31653. function serializeHost(host) {
  31654. if (typeof host === "number") {
  31655. return serializeIPv4(host);
  31656. }
  31657. // IPv6 serializer
  31658. if (host instanceof Array) {
  31659. return "[" + serializeIPv6(host) + "]";
  31660. }
  31661. return host;
  31662. }
  31663. function trimControlChars(url) {
  31664. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  31665. }
  31666. function trimTabAndNewline(url) {
  31667. return url.replace(/\u0009|\u000A|\u000D/g, "");
  31668. }
  31669. function shortenPath(url) {
  31670. const path = url.path;
  31671. if (path.length === 0) {
  31672. return;
  31673. }
  31674. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  31675. return;
  31676. }
  31677. path.pop();
  31678. }
  31679. function includesCredentials(url) {
  31680. return url.username !== "" || url.password !== "";
  31681. }
  31682. function cannotHaveAUsernamePasswordPort(url) {
  31683. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  31684. }
  31685. function isNormalizedWindowsDriveLetter(string) {
  31686. return /^[A-Za-z]:$/.test(string);
  31687. }
  31688. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  31689. this.pointer = 0;
  31690. this.input = input;
  31691. this.base = base || null;
  31692. this.encodingOverride = encodingOverride || "utf-8";
  31693. this.stateOverride = stateOverride;
  31694. this.url = url;
  31695. this.failure = false;
  31696. this.parseError = false;
  31697. if (!this.url) {
  31698. this.url = {
  31699. scheme: "",
  31700. username: "",
  31701. password: "",
  31702. host: null,
  31703. port: null,
  31704. path: [],
  31705. query: null,
  31706. fragment: null,
  31707. cannotBeABaseURL: false
  31708. };
  31709. const res = trimControlChars(this.input);
  31710. if (res !== this.input) {
  31711. this.parseError = true;
  31712. }
  31713. this.input = res;
  31714. }
  31715. const res = trimTabAndNewline(this.input);
  31716. if (res !== this.input) {
  31717. this.parseError = true;
  31718. }
  31719. this.input = res;
  31720. this.state = stateOverride || "scheme start";
  31721. this.buffer = "";
  31722. this.atFlag = false;
  31723. this.arrFlag = false;
  31724. this.passwordTokenSeenFlag = false;
  31725. this.input = punycode.ucs2.decode(this.input);
  31726. for (; this.pointer <= this.input.length; ++this.pointer) {
  31727. const c = this.input[this.pointer];
  31728. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  31729. // exec state machine
  31730. const ret = this["parse " + this.state](c, cStr);
  31731. if (!ret) {
  31732. break; // terminate algorithm
  31733. } else if (ret === failure) {
  31734. this.failure = true;
  31735. break;
  31736. }
  31737. }
  31738. }
  31739. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  31740. if (isASCIIAlpha(c)) {
  31741. this.buffer += cStr.toLowerCase();
  31742. this.state = "scheme";
  31743. } else if (!this.stateOverride) {
  31744. this.state = "no scheme";
  31745. --this.pointer;
  31746. } else {
  31747. this.parseError = true;
  31748. return failure;
  31749. }
  31750. return true;
  31751. };
  31752. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  31753. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  31754. this.buffer += cStr.toLowerCase();
  31755. } else if (c === 58) {
  31756. if (this.stateOverride) {
  31757. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  31758. return false;
  31759. }
  31760. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  31761. return false;
  31762. }
  31763. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  31764. return false;
  31765. }
  31766. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  31767. return false;
  31768. }
  31769. }
  31770. this.url.scheme = this.buffer;
  31771. this.buffer = "";
  31772. if (this.stateOverride) {
  31773. return false;
  31774. }
  31775. if (this.url.scheme === "file") {
  31776. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  31777. this.parseError = true;
  31778. }
  31779. this.state = "file";
  31780. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  31781. this.state = "special relative or authority";
  31782. } else if (isSpecial(this.url)) {
  31783. this.state = "special authority slashes";
  31784. } else if (this.input[this.pointer + 1] === 47) {
  31785. this.state = "path or authority";
  31786. ++this.pointer;
  31787. } else {
  31788. this.url.cannotBeABaseURL = true;
  31789. this.url.path.push("");
  31790. this.state = "cannot-be-a-base-URL path";
  31791. }
  31792. } else if (!this.stateOverride) {
  31793. this.buffer = "";
  31794. this.state = "no scheme";
  31795. this.pointer = -1;
  31796. } else {
  31797. this.parseError = true;
  31798. return failure;
  31799. }
  31800. return true;
  31801. };
  31802. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  31803. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  31804. return failure;
  31805. } else if (this.base.cannotBeABaseURL && c === 35) {
  31806. this.url.scheme = this.base.scheme;
  31807. this.url.path = this.base.path.slice();
  31808. this.url.query = this.base.query;
  31809. this.url.fragment = "";
  31810. this.url.cannotBeABaseURL = true;
  31811. this.state = "fragment";
  31812. } else if (this.base.scheme === "file") {
  31813. this.state = "file";
  31814. --this.pointer;
  31815. } else {
  31816. this.state = "relative";
  31817. --this.pointer;
  31818. }
  31819. return true;
  31820. };
  31821. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  31822. if (c === 47 && this.input[this.pointer + 1] === 47) {
  31823. this.state = "special authority ignore slashes";
  31824. ++this.pointer;
  31825. } else {
  31826. this.parseError = true;
  31827. this.state = "relative";
  31828. --this.pointer;
  31829. }
  31830. return true;
  31831. };
  31832. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  31833. if (c === 47) {
  31834. this.state = "authority";
  31835. } else {
  31836. this.state = "path";
  31837. --this.pointer;
  31838. }
  31839. return true;
  31840. };
  31841. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  31842. this.url.scheme = this.base.scheme;
  31843. if (isNaN(c)) {
  31844. this.url.username = this.base.username;
  31845. this.url.password = this.base.password;
  31846. this.url.host = this.base.host;
  31847. this.url.port = this.base.port;
  31848. this.url.path = this.base.path.slice();
  31849. this.url.query = this.base.query;
  31850. } else if (c === 47) {
  31851. this.state = "relative slash";
  31852. } else if (c === 63) {
  31853. this.url.username = this.base.username;
  31854. this.url.password = this.base.password;
  31855. this.url.host = this.base.host;
  31856. this.url.port = this.base.port;
  31857. this.url.path = this.base.path.slice();
  31858. this.url.query = "";
  31859. this.state = "query";
  31860. } else if (c === 35) {
  31861. this.url.username = this.base.username;
  31862. this.url.password = this.base.password;
  31863. this.url.host = this.base.host;
  31864. this.url.port = this.base.port;
  31865. this.url.path = this.base.path.slice();
  31866. this.url.query = this.base.query;
  31867. this.url.fragment = "";
  31868. this.state = "fragment";
  31869. } else if (isSpecial(this.url) && c === 92) {
  31870. this.parseError = true;
  31871. this.state = "relative slash";
  31872. } else {
  31873. this.url.username = this.base.username;
  31874. this.url.password = this.base.password;
  31875. this.url.host = this.base.host;
  31876. this.url.port = this.base.port;
  31877. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  31878. this.state = "path";
  31879. --this.pointer;
  31880. }
  31881. return true;
  31882. };
  31883. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  31884. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  31885. if (c === 92) {
  31886. this.parseError = true;
  31887. }
  31888. this.state = "special authority ignore slashes";
  31889. } else if (c === 47) {
  31890. this.state = "authority";
  31891. } else {
  31892. this.url.username = this.base.username;
  31893. this.url.password = this.base.password;
  31894. this.url.host = this.base.host;
  31895. this.url.port = this.base.port;
  31896. this.state = "path";
  31897. --this.pointer;
  31898. }
  31899. return true;
  31900. };
  31901. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  31902. if (c === 47 && this.input[this.pointer + 1] === 47) {
  31903. this.state = "special authority ignore slashes";
  31904. ++this.pointer;
  31905. } else {
  31906. this.parseError = true;
  31907. this.state = "special authority ignore slashes";
  31908. --this.pointer;
  31909. }
  31910. return true;
  31911. };
  31912. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  31913. if (c !== 47 && c !== 92) {
  31914. this.state = "authority";
  31915. --this.pointer;
  31916. } else {
  31917. this.parseError = true;
  31918. }
  31919. return true;
  31920. };
  31921. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  31922. if (c === 64) {
  31923. this.parseError = true;
  31924. if (this.atFlag) {
  31925. this.buffer = "%40" + this.buffer;
  31926. }
  31927. this.atFlag = true;
  31928. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  31929. const len = countSymbols(this.buffer);
  31930. for (let pointer = 0; pointer < len; ++pointer) {
  31931. const codePoint = this.buffer.codePointAt(pointer);
  31932. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  31933. this.passwordTokenSeenFlag = true;
  31934. continue;
  31935. }
  31936. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  31937. if (this.passwordTokenSeenFlag) {
  31938. this.url.password += encodedCodePoints;
  31939. } else {
  31940. this.url.username += encodedCodePoints;
  31941. }
  31942. }
  31943. this.buffer = "";
  31944. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  31945. (isSpecial(this.url) && c === 92)) {
  31946. if (this.atFlag && this.buffer === "") {
  31947. this.parseError = true;
  31948. return failure;
  31949. }
  31950. this.pointer -= countSymbols(this.buffer) + 1;
  31951. this.buffer = "";
  31952. this.state = "host";
  31953. } else {
  31954. this.buffer += cStr;
  31955. }
  31956. return true;
  31957. };
  31958. URLStateMachine.prototype["parse hostname"] =
  31959. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  31960. if (this.stateOverride && this.url.scheme === "file") {
  31961. --this.pointer;
  31962. this.state = "file host";
  31963. } else if (c === 58 && !this.arrFlag) {
  31964. if (this.buffer === "") {
  31965. this.parseError = true;
  31966. return failure;
  31967. }
  31968. const host = parseHost(this.buffer, isSpecial(this.url));
  31969. if (host === failure) {
  31970. return failure;
  31971. }
  31972. this.url.host = host;
  31973. this.buffer = "";
  31974. this.state = "port";
  31975. if (this.stateOverride === "hostname") {
  31976. return false;
  31977. }
  31978. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  31979. (isSpecial(this.url) && c === 92)) {
  31980. --this.pointer;
  31981. if (isSpecial(this.url) && this.buffer === "") {
  31982. this.parseError = true;
  31983. return failure;
  31984. } else if (this.stateOverride && this.buffer === "" &&
  31985. (includesCredentials(this.url) || this.url.port !== null)) {
  31986. this.parseError = true;
  31987. return false;
  31988. }
  31989. const host = parseHost(this.buffer, isSpecial(this.url));
  31990. if (host === failure) {
  31991. return failure;
  31992. }
  31993. this.url.host = host;
  31994. this.buffer = "";
  31995. this.state = "path start";
  31996. if (this.stateOverride) {
  31997. return false;
  31998. }
  31999. } else {
  32000. if (c === 91) {
  32001. this.arrFlag = true;
  32002. } else if (c === 93) {
  32003. this.arrFlag = false;
  32004. }
  32005. this.buffer += cStr;
  32006. }
  32007. return true;
  32008. };
  32009. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  32010. if (isASCIIDigit(c)) {
  32011. this.buffer += cStr;
  32012. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  32013. (isSpecial(this.url) && c === 92) ||
  32014. this.stateOverride) {
  32015. if (this.buffer !== "") {
  32016. const port = parseInt(this.buffer);
  32017. if (port > Math.pow(2, 16) - 1) {
  32018. this.parseError = true;
  32019. return failure;
  32020. }
  32021. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  32022. this.buffer = "";
  32023. }
  32024. if (this.stateOverride) {
  32025. return false;
  32026. }
  32027. this.state = "path start";
  32028. --this.pointer;
  32029. } else {
  32030. this.parseError = true;
  32031. return failure;
  32032. }
  32033. return true;
  32034. };
  32035. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  32036. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  32037. this.url.scheme = "file";
  32038. if (c === 47 || c === 92) {
  32039. if (c === 92) {
  32040. this.parseError = true;
  32041. }
  32042. this.state = "file slash";
  32043. } else if (this.base !== null && this.base.scheme === "file") {
  32044. if (isNaN(c)) {
  32045. this.url.host = this.base.host;
  32046. this.url.path = this.base.path.slice();
  32047. this.url.query = this.base.query;
  32048. } else if (c === 63) {
  32049. this.url.host = this.base.host;
  32050. this.url.path = this.base.path.slice();
  32051. this.url.query = "";
  32052. this.state = "query";
  32053. } else if (c === 35) {
  32054. this.url.host = this.base.host;
  32055. this.url.path = this.base.path.slice();
  32056. this.url.query = this.base.query;
  32057. this.url.fragment = "";
  32058. this.state = "fragment";
  32059. } else {
  32060. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  32061. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  32062. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  32063. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  32064. this.url.host = this.base.host;
  32065. this.url.path = this.base.path.slice();
  32066. shortenPath(this.url);
  32067. } else {
  32068. this.parseError = true;
  32069. }
  32070. this.state = "path";
  32071. --this.pointer;
  32072. }
  32073. } else {
  32074. this.state = "path";
  32075. --this.pointer;
  32076. }
  32077. return true;
  32078. };
  32079. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  32080. if (c === 47 || c === 92) {
  32081. if (c === 92) {
  32082. this.parseError = true;
  32083. }
  32084. this.state = "file host";
  32085. } else {
  32086. if (this.base !== null && this.base.scheme === "file") {
  32087. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  32088. this.url.path.push(this.base.path[0]);
  32089. } else {
  32090. this.url.host = this.base.host;
  32091. }
  32092. }
  32093. this.state = "path";
  32094. --this.pointer;
  32095. }
  32096. return true;
  32097. };
  32098. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  32099. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  32100. --this.pointer;
  32101. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  32102. this.parseError = true;
  32103. this.state = "path";
  32104. } else if (this.buffer === "") {
  32105. this.url.host = "";
  32106. if (this.stateOverride) {
  32107. return false;
  32108. }
  32109. this.state = "path start";
  32110. } else {
  32111. let host = parseHost(this.buffer, isSpecial(this.url));
  32112. if (host === failure) {
  32113. return failure;
  32114. }
  32115. if (host === "localhost") {
  32116. host = "";
  32117. }
  32118. this.url.host = host;
  32119. if (this.stateOverride) {
  32120. return false;
  32121. }
  32122. this.buffer = "";
  32123. this.state = "path start";
  32124. }
  32125. } else {
  32126. this.buffer += cStr;
  32127. }
  32128. return true;
  32129. };
  32130. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  32131. if (isSpecial(this.url)) {
  32132. if (c === 92) {
  32133. this.parseError = true;
  32134. }
  32135. this.state = "path";
  32136. if (c !== 47 && c !== 92) {
  32137. --this.pointer;
  32138. }
  32139. } else if (!this.stateOverride && c === 63) {
  32140. this.url.query = "";
  32141. this.state = "query";
  32142. } else if (!this.stateOverride && c === 35) {
  32143. this.url.fragment = "";
  32144. this.state = "fragment";
  32145. } else if (c !== undefined) {
  32146. this.state = "path";
  32147. if (c !== 47) {
  32148. --this.pointer;
  32149. }
  32150. }
  32151. return true;
  32152. };
  32153. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  32154. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  32155. (!this.stateOverride && (c === 63 || c === 35))) {
  32156. if (isSpecial(this.url) && c === 92) {
  32157. this.parseError = true;
  32158. }
  32159. if (isDoubleDot(this.buffer)) {
  32160. shortenPath(this.url);
  32161. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  32162. this.url.path.push("");
  32163. }
  32164. } else if (isSingleDot(this.buffer) && c !== 47 &&
  32165. !(isSpecial(this.url) && c === 92)) {
  32166. this.url.path.push("");
  32167. } else if (!isSingleDot(this.buffer)) {
  32168. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  32169. if (this.url.host !== "" && this.url.host !== null) {
  32170. this.parseError = true;
  32171. this.url.host = "";
  32172. }
  32173. this.buffer = this.buffer[0] + ":";
  32174. }
  32175. this.url.path.push(this.buffer);
  32176. }
  32177. this.buffer = "";
  32178. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  32179. while (this.url.path.length > 1 && this.url.path[0] === "") {
  32180. this.parseError = true;
  32181. this.url.path.shift();
  32182. }
  32183. }
  32184. if (c === 63) {
  32185. this.url.query = "";
  32186. this.state = "query";
  32187. }
  32188. if (c === 35) {
  32189. this.url.fragment = "";
  32190. this.state = "fragment";
  32191. }
  32192. } else {
  32193. // TODO: If c is not a URL code point and not "%", parse error.
  32194. if (c === 37 &&
  32195. (!isASCIIHex(this.input[this.pointer + 1]) ||
  32196. !isASCIIHex(this.input[this.pointer + 2]))) {
  32197. this.parseError = true;
  32198. }
  32199. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  32200. }
  32201. return true;
  32202. };
  32203. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  32204. if (c === 63) {
  32205. this.url.query = "";
  32206. this.state = "query";
  32207. } else if (c === 35) {
  32208. this.url.fragment = "";
  32209. this.state = "fragment";
  32210. } else {
  32211. // TODO: Add: not a URL code point
  32212. if (!isNaN(c) && c !== 37) {
  32213. this.parseError = true;
  32214. }
  32215. if (c === 37 &&
  32216. (!isASCIIHex(this.input[this.pointer + 1]) ||
  32217. !isASCIIHex(this.input[this.pointer + 2]))) {
  32218. this.parseError = true;
  32219. }
  32220. if (!isNaN(c)) {
  32221. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  32222. }
  32223. }
  32224. return true;
  32225. };
  32226. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  32227. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  32228. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  32229. this.encodingOverride = "utf-8";
  32230. }
  32231. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  32232. for (let i = 0; i < buffer.length; ++i) {
  32233. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  32234. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  32235. this.url.query += percentEncode(buffer[i]);
  32236. } else {
  32237. this.url.query += String.fromCodePoint(buffer[i]);
  32238. }
  32239. }
  32240. this.buffer = "";
  32241. if (c === 35) {
  32242. this.url.fragment = "";
  32243. this.state = "fragment";
  32244. }
  32245. } else {
  32246. // TODO: If c is not a URL code point and not "%", parse error.
  32247. if (c === 37 &&
  32248. (!isASCIIHex(this.input[this.pointer + 1]) ||
  32249. !isASCIIHex(this.input[this.pointer + 2]))) {
  32250. this.parseError = true;
  32251. }
  32252. this.buffer += cStr;
  32253. }
  32254. return true;
  32255. };
  32256. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  32257. if (isNaN(c)) { // do nothing
  32258. } else if (c === 0x0) {
  32259. this.parseError = true;
  32260. } else {
  32261. // TODO: If c is not a URL code point and not "%", parse error.
  32262. if (c === 37 &&
  32263. (!isASCIIHex(this.input[this.pointer + 1]) ||
  32264. !isASCIIHex(this.input[this.pointer + 2]))) {
  32265. this.parseError = true;
  32266. }
  32267. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  32268. }
  32269. return true;
  32270. };
  32271. function serializeURL(url, excludeFragment) {
  32272. let output = url.scheme + ":";
  32273. if (url.host !== null) {
  32274. output += "//";
  32275. if (url.username !== "" || url.password !== "") {
  32276. output += url.username;
  32277. if (url.password !== "") {
  32278. output += ":" + url.password;
  32279. }
  32280. output += "@";
  32281. }
  32282. output += serializeHost(url.host);
  32283. if (url.port !== null) {
  32284. output += ":" + url.port;
  32285. }
  32286. } else if (url.host === null && url.scheme === "file") {
  32287. output += "//";
  32288. }
  32289. if (url.cannotBeABaseURL) {
  32290. output += url.path[0];
  32291. } else {
  32292. for (const string of url.path) {
  32293. output += "/" + string;
  32294. }
  32295. }
  32296. if (url.query !== null) {
  32297. output += "?" + url.query;
  32298. }
  32299. if (!excludeFragment && url.fragment !== null) {
  32300. output += "#" + url.fragment;
  32301. }
  32302. return output;
  32303. }
  32304. function serializeOrigin(tuple) {
  32305. let result = tuple.scheme + "://";
  32306. result += serializeHost(tuple.host);
  32307. if (tuple.port !== null) {
  32308. result += ":" + tuple.port;
  32309. }
  32310. return result;
  32311. }
  32312. module.exports.serializeURL = serializeURL;
  32313. module.exports.serializeURLOrigin = function (url) {
  32314. // https://url.spec.whatwg.org/#concept-url-origin
  32315. switch (url.scheme) {
  32316. case "blob":
  32317. try {
  32318. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  32319. } catch (e) {
  32320. // serializing an opaque origin returns "null"
  32321. return "null";
  32322. }
  32323. case "ftp":
  32324. case "gopher":
  32325. case "http":
  32326. case "https":
  32327. case "ws":
  32328. case "wss":
  32329. return serializeOrigin({
  32330. scheme: url.scheme,
  32331. host: url.host,
  32332. port: url.port
  32333. });
  32334. case "file":
  32335. // spec says "exercise to the reader", chrome says "file://"
  32336. return "file://";
  32337. default:
  32338. // serializing an opaque origin returns "null"
  32339. return "null";
  32340. }
  32341. };
  32342. module.exports.basicURLParse = function (input, options) {
  32343. if (options === undefined) {
  32344. options = {};
  32345. }
  32346. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  32347. if (usm.failure) {
  32348. return "failure";
  32349. }
  32350. return usm.url;
  32351. };
  32352. module.exports.setTheUsername = function (url, username) {
  32353. url.username = "";
  32354. const decoded = punycode.ucs2.decode(username);
  32355. for (let i = 0; i < decoded.length; ++i) {
  32356. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  32357. }
  32358. };
  32359. module.exports.setThePassword = function (url, password) {
  32360. url.password = "";
  32361. const decoded = punycode.ucs2.decode(password);
  32362. for (let i = 0; i < decoded.length; ++i) {
  32363. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  32364. }
  32365. };
  32366. module.exports.serializeHost = serializeHost;
  32367. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  32368. module.exports.serializeInteger = function (integer) {
  32369. return String(integer);
  32370. };
  32371. module.exports.parseURL = function (input, options) {
  32372. if (options === undefined) {
  32373. options = {};
  32374. }
  32375. // We don't handle blobs, so this just delegates:
  32376. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  32377. };
  32378. /***/ }),
  32379. /***/ 948:
  32380. /***/ (function(module) {
  32381. "use strict";
  32382. /**
  32383. * Tries to execute a function and discards any error that occurs.
  32384. * @param {Function} fn - Function that might or might not throw an error.
  32385. * @returns {?*} Return-value of the function when no error occurred.
  32386. */
  32387. module.exports = function(fn) {
  32388. try { return fn() } catch (e) {}
  32389. }
  32390. /***/ }),
  32391. /***/ 950:
  32392. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  32393. "use strict";
  32394. Object.defineProperty(exports, "__esModule", { value: true });
  32395. const url = __webpack_require__(835);
  32396. function getProxyUrl(reqUrl) {
  32397. let usingSsl = reqUrl.protocol === 'https:';
  32398. let proxyUrl;
  32399. if (checkBypass(reqUrl)) {
  32400. return proxyUrl;
  32401. }
  32402. let proxyVar;
  32403. if (usingSsl) {
  32404. proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  32405. }
  32406. else {
  32407. proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
  32408. }
  32409. if (proxyVar) {
  32410. proxyUrl = url.parse(proxyVar);
  32411. }
  32412. return proxyUrl;
  32413. }
  32414. exports.getProxyUrl = getProxyUrl;
  32415. function checkBypass(reqUrl) {
  32416. if (!reqUrl.hostname) {
  32417. return false;
  32418. }
  32419. let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  32420. if (!noProxy) {
  32421. return false;
  32422. }
  32423. // Determine the request port
  32424. let reqPort;
  32425. if (reqUrl.port) {
  32426. reqPort = Number(reqUrl.port);
  32427. }
  32428. else if (reqUrl.protocol === 'http:') {
  32429. reqPort = 80;
  32430. }
  32431. else if (reqUrl.protocol === 'https:') {
  32432. reqPort = 443;
  32433. }
  32434. // Format the request hostname and hostname with port
  32435. let upperReqHosts = [reqUrl.hostname.toUpperCase()];
  32436. if (typeof reqPort === 'number') {
  32437. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  32438. }
  32439. // Compare request host against noproxy
  32440. for (let upperNoProxyItem of noProxy
  32441. .split(',')
  32442. .map(x => x.trim().toUpperCase())
  32443. .filter(x => x)) {
  32444. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  32445. return true;
  32446. }
  32447. }
  32448. return false;
  32449. }
  32450. exports.checkBypass = checkBypass;
  32451. /***/ }),
  32452. /***/ 954:
  32453. /***/ (function(module) {
  32454. module.exports = validateAuth;
  32455. function validateAuth(auth) {
  32456. if (typeof auth === "string") {
  32457. return;
  32458. }
  32459. if (typeof auth === "function") {
  32460. return;
  32461. }
  32462. if (auth.username && auth.password) {
  32463. return;
  32464. }
  32465. if (auth.clientId && auth.clientSecret) {
  32466. return;
  32467. }
  32468. throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
  32469. }
  32470. /***/ }),
  32471. /***/ 955:
  32472. /***/ (function(module, __unusedexports, __webpack_require__) {
  32473. "use strict";
  32474. const path = __webpack_require__(622);
  32475. const childProcess = __webpack_require__(129);
  32476. const crossSpawn = __webpack_require__(20);
  32477. const stripEof = __webpack_require__(768);
  32478. const npmRunPath = __webpack_require__(621);
  32479. const isStream = __webpack_require__(323);
  32480. const _getStream = __webpack_require__(145);
  32481. const pFinally = __webpack_require__(697);
  32482. const onExit = __webpack_require__(260);
  32483. const errname = __webpack_require__(427);
  32484. const stdio = __webpack_require__(168);
  32485. const TEN_MEGABYTES = 1000 * 1000 * 10;
  32486. function handleArgs(cmd, args, opts) {
  32487. let parsed;
  32488. opts = Object.assign({
  32489. extendEnv: true,
  32490. env: {}
  32491. }, opts);
  32492. if (opts.extendEnv) {
  32493. opts.env = Object.assign({}, process.env, opts.env);
  32494. }
  32495. if (opts.__winShell === true) {
  32496. delete opts.__winShell;
  32497. parsed = {
  32498. command: cmd,
  32499. args,
  32500. options: opts,
  32501. file: cmd,
  32502. original: {
  32503. cmd,
  32504. args
  32505. }
  32506. };
  32507. } else {
  32508. parsed = crossSpawn._parse(cmd, args, opts);
  32509. }
  32510. opts = Object.assign({
  32511. maxBuffer: TEN_MEGABYTES,
  32512. buffer: true,
  32513. stripEof: true,
  32514. preferLocal: true,
  32515. localDir: parsed.options.cwd || process.cwd(),
  32516. encoding: 'utf8',
  32517. reject: true,
  32518. cleanup: true
  32519. }, parsed.options);
  32520. opts.stdio = stdio(opts);
  32521. if (opts.preferLocal) {
  32522. opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
  32523. }
  32524. if (opts.detached) {
  32525. // #115
  32526. opts.cleanup = false;
  32527. }
  32528. if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
  32529. // #116
  32530. parsed.args.unshift('/q');
  32531. }
  32532. return {
  32533. cmd: parsed.command,
  32534. args: parsed.args,
  32535. opts,
  32536. parsed
  32537. };
  32538. }
  32539. function handleInput(spawned, input) {
  32540. if (input === null || input === undefined) {
  32541. return;
  32542. }
  32543. if (isStream(input)) {
  32544. input.pipe(spawned.stdin);
  32545. } else {
  32546. spawned.stdin.end(input);
  32547. }
  32548. }
  32549. function handleOutput(opts, val) {
  32550. if (val && opts.stripEof) {
  32551. val = stripEof(val);
  32552. }
  32553. return val;
  32554. }
  32555. function handleShell(fn, cmd, opts) {
  32556. let file = '/bin/sh';
  32557. let args = ['-c', cmd];
  32558. opts = Object.assign({}, opts);
  32559. if (process.platform === 'win32') {
  32560. opts.__winShell = true;
  32561. file = process.env.comspec || 'cmd.exe';
  32562. args = ['/s', '/c', `"${cmd}"`];
  32563. opts.windowsVerbatimArguments = true;
  32564. }
  32565. if (opts.shell) {
  32566. file = opts.shell;
  32567. delete opts.shell;
  32568. }
  32569. return fn(file, args, opts);
  32570. }
  32571. function getStream(process, stream, {encoding, buffer, maxBuffer}) {
  32572. if (!process[stream]) {
  32573. return null;
  32574. }
  32575. let ret;
  32576. if (!buffer) {
  32577. // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
  32578. ret = new Promise((resolve, reject) => {
  32579. process[stream]
  32580. .once('end', resolve)
  32581. .once('error', reject);
  32582. });
  32583. } else if (encoding) {
  32584. ret = _getStream(process[stream], {
  32585. encoding,
  32586. maxBuffer
  32587. });
  32588. } else {
  32589. ret = _getStream.buffer(process[stream], {maxBuffer});
  32590. }
  32591. return ret.catch(err => {
  32592. err.stream = stream;
  32593. err.message = `${stream} ${err.message}`;
  32594. throw err;
  32595. });
  32596. }
  32597. function makeError(result, options) {
  32598. const {stdout, stderr} = result;
  32599. let err = result.error;
  32600. const {code, signal} = result;
  32601. const {parsed, joinedCmd} = options;
  32602. const timedOut = options.timedOut || false;
  32603. if (!err) {
  32604. let output = '';
  32605. if (Array.isArray(parsed.opts.stdio)) {
  32606. if (parsed.opts.stdio[2] !== 'inherit') {
  32607. output += output.length > 0 ? stderr : `\n${stderr}`;
  32608. }
  32609. if (parsed.opts.stdio[1] !== 'inherit') {
  32610. output += `\n${stdout}`;
  32611. }
  32612. } else if (parsed.opts.stdio !== 'inherit') {
  32613. output = `\n${stderr}${stdout}`;
  32614. }
  32615. err = new Error(`Command failed: ${joinedCmd}${output}`);
  32616. err.code = code < 0 ? errname(code) : code;
  32617. }
  32618. err.stdout = stdout;
  32619. err.stderr = stderr;
  32620. err.failed = true;
  32621. err.signal = signal || null;
  32622. err.cmd = joinedCmd;
  32623. err.timedOut = timedOut;
  32624. return err;
  32625. }
  32626. function joinCmd(cmd, args) {
  32627. let joinedCmd = cmd;
  32628. if (Array.isArray(args) && args.length > 0) {
  32629. joinedCmd += ' ' + args.join(' ');
  32630. }
  32631. return joinedCmd;
  32632. }
  32633. module.exports = (cmd, args, opts) => {
  32634. const parsed = handleArgs(cmd, args, opts);
  32635. const {encoding, buffer, maxBuffer} = parsed.opts;
  32636. const joinedCmd = joinCmd(cmd, args);
  32637. let spawned;
  32638. try {
  32639. spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
  32640. } catch (err) {
  32641. return Promise.reject(err);
  32642. }
  32643. let removeExitHandler;
  32644. if (parsed.opts.cleanup) {
  32645. removeExitHandler = onExit(() => {
  32646. spawned.kill();
  32647. });
  32648. }
  32649. let timeoutId = null;
  32650. let timedOut = false;
  32651. const cleanup = () => {
  32652. if (timeoutId) {
  32653. clearTimeout(timeoutId);
  32654. timeoutId = null;
  32655. }
  32656. if (removeExitHandler) {
  32657. removeExitHandler();
  32658. }
  32659. };
  32660. if (parsed.opts.timeout > 0) {
  32661. timeoutId = setTimeout(() => {
  32662. timeoutId = null;
  32663. timedOut = true;
  32664. spawned.kill(parsed.opts.killSignal);
  32665. }, parsed.opts.timeout);
  32666. }
  32667. const processDone = new Promise(resolve => {
  32668. spawned.on('exit', (code, signal) => {
  32669. cleanup();
  32670. resolve({code, signal});
  32671. });
  32672. spawned.on('error', err => {
  32673. cleanup();
  32674. resolve({error: err});
  32675. });
  32676. if (spawned.stdin) {
  32677. spawned.stdin.on('error', err => {
  32678. cleanup();
  32679. resolve({error: err});
  32680. });
  32681. }
  32682. });
  32683. function destroy() {
  32684. if (spawned.stdout) {
  32685. spawned.stdout.destroy();
  32686. }
  32687. if (spawned.stderr) {
  32688. spawned.stderr.destroy();
  32689. }
  32690. }
  32691. const handlePromise = () => pFinally(Promise.all([
  32692. processDone,
  32693. getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
  32694. getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
  32695. ]).then(arr => {
  32696. const result = arr[0];
  32697. result.stdout = arr[1];
  32698. result.stderr = arr[2];
  32699. if (result.error || result.code !== 0 || result.signal !== null) {
  32700. const err = makeError(result, {
  32701. joinedCmd,
  32702. parsed,
  32703. timedOut
  32704. });
  32705. // TODO: missing some timeout logic for killed
  32706. // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
  32707. // err.killed = spawned.killed || killed;
  32708. err.killed = err.killed || spawned.killed;
  32709. if (!parsed.opts.reject) {
  32710. return err;
  32711. }
  32712. throw err;
  32713. }
  32714. return {
  32715. stdout: handleOutput(parsed.opts, result.stdout),
  32716. stderr: handleOutput(parsed.opts, result.stderr),
  32717. code: 0,
  32718. failed: false,
  32719. killed: false,
  32720. signal: null,
  32721. cmd: joinedCmd,
  32722. timedOut: false
  32723. };
  32724. }), destroy);
  32725. crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
  32726. handleInput(spawned, parsed.opts.input);
  32727. spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
  32728. spawned.catch = onrejected => handlePromise().catch(onrejected);
  32729. return spawned;
  32730. };
  32731. // TODO: set `stderr: 'ignore'` when that option is implemented
  32732. module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
  32733. // TODO: set `stdout: 'ignore'` when that option is implemented
  32734. module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
  32735. module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
  32736. module.exports.sync = (cmd, args, opts) => {
  32737. const parsed = handleArgs(cmd, args, opts);
  32738. const joinedCmd = joinCmd(cmd, args);
  32739. if (isStream(parsed.opts.input)) {
  32740. throw new TypeError('The `input` option cannot be a stream in sync mode');
  32741. }
  32742. const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
  32743. result.code = result.status;
  32744. if (result.error || result.status !== 0 || result.signal !== null) {
  32745. const err = makeError(result, {
  32746. joinedCmd,
  32747. parsed
  32748. });
  32749. if (!parsed.opts.reject) {
  32750. return err;
  32751. }
  32752. throw err;
  32753. }
  32754. return {
  32755. stdout: handleOutput(parsed.opts, result.stdout),
  32756. stderr: handleOutput(parsed.opts, result.stderr),
  32757. code: 0,
  32758. failed: false,
  32759. signal: null,
  32760. cmd: joinedCmd,
  32761. timedOut: false
  32762. };
  32763. };
  32764. module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
  32765. /***/ }),
  32766. /***/ 966:
  32767. /***/ (function(module, __unusedexports, __webpack_require__) {
  32768. "use strict";
  32769. const {PassThrough} = __webpack_require__(413);
  32770. module.exports = options => {
  32771. options = Object.assign({}, options);
  32772. const {array} = options;
  32773. let {encoding} = options;
  32774. const buffer = encoding === 'buffer';
  32775. let objectMode = false;
  32776. if (array) {
  32777. objectMode = !(encoding || buffer);
  32778. } else {
  32779. encoding = encoding || 'utf8';
  32780. }
  32781. if (buffer) {
  32782. encoding = null;
  32783. }
  32784. let len = 0;
  32785. const ret = [];
  32786. const stream = new PassThrough({objectMode});
  32787. if (encoding) {
  32788. stream.setEncoding(encoding);
  32789. }
  32790. stream.on('data', chunk => {
  32791. ret.push(chunk);
  32792. if (objectMode) {
  32793. len = ret.length;
  32794. } else {
  32795. len += chunk.length;
  32796. }
  32797. });
  32798. stream.getBufferedValue = () => {
  32799. if (array) {
  32800. return ret;
  32801. }
  32802. return buffer ? Buffer.concat(ret, len) : ret.join('');
  32803. };
  32804. stream.getBufferedLength = () => len;
  32805. return stream;
  32806. };
  32807. /***/ }),
  32808. /***/ 969:
  32809. /***/ (function(module, __unusedexports, __webpack_require__) {
  32810. var wrappy = __webpack_require__(11)
  32811. module.exports = wrappy(once)
  32812. module.exports.strict = wrappy(onceStrict)
  32813. once.proto = once(function () {
  32814. Object.defineProperty(Function.prototype, 'once', {
  32815. value: function () {
  32816. return once(this)
  32817. },
  32818. configurable: true
  32819. })
  32820. Object.defineProperty(Function.prototype, 'onceStrict', {
  32821. value: function () {
  32822. return onceStrict(this)
  32823. },
  32824. configurable: true
  32825. })
  32826. })
  32827. function once (fn) {
  32828. var f = function () {
  32829. if (f.called) return f.value
  32830. f.called = true
  32831. return f.value = fn.apply(this, arguments)
  32832. }
  32833. f.called = false
  32834. return f
  32835. }
  32836. function onceStrict (fn) {
  32837. var f = function () {
  32838. if (f.called)
  32839. throw new Error(f.onceError)
  32840. f.called = true
  32841. return f.value = fn.apply(this, arguments)
  32842. }
  32843. var name = fn.name || 'Function wrapped with `once`'
  32844. f.onceError = name + " shouldn't be called more than once"
  32845. f.called = false
  32846. return f
  32847. }
  32848. /***/ }),
  32849. /***/ 976:
  32850. /***/ (function(module, __unusedexports, __webpack_require__) {
  32851. "use strict";
  32852. var punycode = __webpack_require__(213);
  32853. var mappingTable = __webpack_require__(482);
  32854. var PROCESSING_OPTIONS = {
  32855. TRANSITIONAL: 0,
  32856. NONTRANSITIONAL: 1
  32857. };
  32858. function normalize(str) { // fix bug in v8
  32859. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  32860. }
  32861. function findStatus(val) {
  32862. var start = 0;
  32863. var end = mappingTable.length - 1;
  32864. while (start <= end) {
  32865. var mid = Math.floor((start + end) / 2);
  32866. var target = mappingTable[mid];
  32867. if (target[0][0] <= val && target[0][1] >= val) {
  32868. return target;
  32869. } else if (target[0][0] > val) {
  32870. end = mid - 1;
  32871. } else {
  32872. start = mid + 1;
  32873. }
  32874. }
  32875. return null;
  32876. }
  32877. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  32878. function countSymbols(string) {
  32879. return string
  32880. // replace every surrogate pair with a BMP symbol
  32881. .replace(regexAstralSymbols, '_')
  32882. // then get the length
  32883. .length;
  32884. }
  32885. function mapChars(domain_name, useSTD3, processing_option) {
  32886. var hasError = false;
  32887. var processed = "";
  32888. var len = countSymbols(domain_name);
  32889. for (var i = 0; i < len; ++i) {
  32890. var codePoint = domain_name.codePointAt(i);
  32891. var status = findStatus(codePoint);
  32892. switch (status[1]) {
  32893. case "disallowed":
  32894. hasError = true;
  32895. processed += String.fromCodePoint(codePoint);
  32896. break;
  32897. case "ignored":
  32898. break;
  32899. case "mapped":
  32900. processed += String.fromCodePoint.apply(String, status[2]);
  32901. break;
  32902. case "deviation":
  32903. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  32904. processed += String.fromCodePoint.apply(String, status[2]);
  32905. } else {
  32906. processed += String.fromCodePoint(codePoint);
  32907. }
  32908. break;
  32909. case "valid":
  32910. processed += String.fromCodePoint(codePoint);
  32911. break;
  32912. case "disallowed_STD3_mapped":
  32913. if (useSTD3) {
  32914. hasError = true;
  32915. processed += String.fromCodePoint(codePoint);
  32916. } else {
  32917. processed += String.fromCodePoint.apply(String, status[2]);
  32918. }
  32919. break;
  32920. case "disallowed_STD3_valid":
  32921. if (useSTD3) {
  32922. hasError = true;
  32923. }
  32924. processed += String.fromCodePoint(codePoint);
  32925. break;
  32926. }
  32927. }
  32928. return {
  32929. string: processed,
  32930. error: hasError
  32931. };
  32932. }
  32933. 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]/;
  32934. function validateLabel(label, processing_option) {
  32935. if (label.substr(0, 4) === "xn--") {
  32936. label = punycode.toUnicode(label);
  32937. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  32938. }
  32939. var error = false;
  32940. if (normalize(label) !== label ||
  32941. (label[3] === "-" && label[4] === "-") ||
  32942. label[0] === "-" || label[label.length - 1] === "-" ||
  32943. label.indexOf(".") !== -1 ||
  32944. label.search(combiningMarksRegex) === 0) {
  32945. error = true;
  32946. }
  32947. var len = countSymbols(label);
  32948. for (var i = 0; i < len; ++i) {
  32949. var status = findStatus(label.codePointAt(i));
  32950. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  32951. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  32952. status[1] !== "valid" && status[1] !== "deviation")) {
  32953. error = true;
  32954. break;
  32955. }
  32956. }
  32957. return {
  32958. label: label,
  32959. error: error
  32960. };
  32961. }
  32962. function processing(domain_name, useSTD3, processing_option) {
  32963. var result = mapChars(domain_name, useSTD3, processing_option);
  32964. result.string = normalize(result.string);
  32965. var labels = result.string.split(".");
  32966. for (var i = 0; i < labels.length; ++i) {
  32967. try {
  32968. var validation = validateLabel(labels[i]);
  32969. labels[i] = validation.label;
  32970. result.error = result.error || validation.error;
  32971. } catch(e) {
  32972. result.error = true;
  32973. }
  32974. }
  32975. return {
  32976. string: labels.join("."),
  32977. error: result.error
  32978. };
  32979. }
  32980. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  32981. var result = processing(domain_name, useSTD3, processing_option);
  32982. var labels = result.string.split(".");
  32983. labels = labels.map(function(l) {
  32984. try {
  32985. return punycode.toASCII(l);
  32986. } catch(e) {
  32987. result.error = true;
  32988. return l;
  32989. }
  32990. });
  32991. if (verifyDnsLength) {
  32992. var total = labels.slice(0, labels.length - 1).join(".").length;
  32993. if (total.length > 253 || total.length === 0) {
  32994. result.error = true;
  32995. }
  32996. for (var i=0; i < labels.length; ++i) {
  32997. if (labels.length > 63 || labels.length === 0) {
  32998. result.error = true;
  32999. break;
  33000. }
  33001. }
  33002. }
  33003. if (result.error) return null;
  33004. return labels.join(".");
  33005. };
  33006. module.exports.toUnicode = function(domain_name, useSTD3) {
  33007. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  33008. return {
  33009. domain: result.string,
  33010. error: result.error
  33011. };
  33012. };
  33013. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  33014. /***/ }),
  33015. /***/ 986:
  33016. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  33017. "use strict";
  33018. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  33019. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  33020. return new (P || (P = Promise))(function (resolve, reject) {
  33021. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  33022. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  33023. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  33024. step((generator = generator.apply(thisArg, _arguments || [])).next());
  33025. });
  33026. };
  33027. Object.defineProperty(exports, "__esModule", { value: true });
  33028. const tr = __webpack_require__(9);
  33029. /**
  33030. * Exec a command.
  33031. * Output will be streamed to the live console.
  33032. * Returns promise with return code
  33033. *
  33034. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  33035. * @param args optional arguments for tool. Escaping is handled by the lib.
  33036. * @param options optional exec options. See ExecOptions
  33037. * @returns Promise<number> exit code
  33038. */
  33039. function exec(commandLine, args, options) {
  33040. return __awaiter(this, void 0, void 0, function* () {
  33041. const commandArgs = tr.argStringToArray(commandLine);
  33042. if (commandArgs.length === 0) {
  33043. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  33044. }
  33045. // Path to tool to execute should be first arg
  33046. const toolPath = commandArgs[0];
  33047. args = commandArgs.slice(1).concat(args || []);
  33048. const runner = new tr.ToolRunner(toolPath, args, options);
  33049. return runner.exec();
  33050. });
  33051. }
  33052. exports.exec = exec;
  33053. //# sourceMappingURL=exec.js.map
  33054. /***/ }),
  33055. /***/ 991:
  33056. /***/ (function(module, __unusedexports, __webpack_require__) {
  33057. module.exports = authenticationRequestError;
  33058. const { RequestError } = __webpack_require__(497);
  33059. function authenticationRequestError(state, error, options) {
  33060. if (!error.headers) throw error;
  33061. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  33062. // handle "2FA required" error only
  33063. if (error.status !== 401 || !otpRequired) {
  33064. throw error;
  33065. }
  33066. if (
  33067. error.status === 401 &&
  33068. otpRequired &&
  33069. error.request &&
  33070. error.request.headers["x-github-otp"]
  33071. ) {
  33072. if (state.otp) {
  33073. delete state.otp; // no longer valid, request again
  33074. } else {
  33075. throw new RequestError(
  33076. "Invalid one-time password for two-factor authentication",
  33077. 401,
  33078. {
  33079. headers: error.headers,
  33080. request: options
  33081. }
  33082. );
  33083. }
  33084. }
  33085. if (typeof state.auth.on2fa !== "function") {
  33086. throw new RequestError(
  33087. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  33088. 401,
  33089. {
  33090. headers: error.headers,
  33091. request: options
  33092. }
  33093. );
  33094. }
  33095. return Promise.resolve()
  33096. .then(() => {
  33097. return state.auth.on2fa();
  33098. })
  33099. .then(oneTimePassword => {
  33100. const newOptions = Object.assign(options, {
  33101. headers: Object.assign(options.headers, {
  33102. "x-github-otp": oneTimePassword
  33103. })
  33104. });
  33105. return state.octokit.request(newOptions).then(response => {
  33106. // If OTP still valid, then persist it for following requests
  33107. state.otp = oneTimePassword;
  33108. return response;
  33109. });
  33110. });
  33111. }
  33112. /***/ })
  33113. /******/ });